/* ==================================================
   GLOBAL
================================================== */

body {
    background: #f8fbff;
    color: #263454;
    overflow-x: hidden;

    /* Mencegah semua teks diseleksi / disalin */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
}


/* ==================================================
   NAVBAR
================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;

    background: rgba(239, 248, 255, 0.94);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(126, 103, 200, 0.15);
}

.nav-inner {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 900;
    font-size: 1.35rem;

    color: #18264a;
    text-decoration: none;
}

.brand span {
    color: #8c7ac8;
    margin-left: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 22px;

    font-weight: 700;
    font-size: 0.92rem;
}

.nav-menu a {
    color: #263454;
    text-decoration: none;
}

.nav-menu a:hover,
.dropdown-btn:hover {
    color: #806fc1;
}


/* ==================================================
   DROPDOWN
================================================== */

.dropdown {
    position: relative;
}

.dropdown-btn {
    border: 0;
    background: none;

    color: #263454;
    font-weight: 700;
    font-size: 0.92rem;

    cursor: pointer;
}

.dropdown-menu {
    display: none;

    position: absolute;
    top: 28px;
    left: -12px;

    background: #ffffff;

    border: 1px solid #ddd5f5;
    border-radius: 16px;

    padding: 10px;

    box-shadow: 0 15px 35px rgba(72, 74, 130, 0.14);

    min-width: 150px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;

    padding: 8px 12px;

    border-radius: 10px;
}

.dropdown-menu a:hover {
    background: #eee9ff;
}


/* ==================================================
   HERO
================================================== */

.hero {
    background: linear-gradient(
        135deg,
        #bfe8ff 0%,
        #e4f6ff 45%,
        #d9ccff 100%
    );

    min-height: calc(100vh - 72px);

    display: flex;
    align-items: center;
}

.hero-grid {
    width: 100%;

    display: grid;

    grid-template-columns: 1fr 380px;

    gap: 70px;

    align-items: center;
}


/* ==================================================
   TEKS HOME
================================================== */

.hero-grid > div:first-child {
    grid-column: 2;
    grid-row: 1;
}

.hero-grid > div:last-child {
    grid-column: 1;
    grid-row: 1;

    text-align: left;
}

.eyebrow {
    font-size: 0.78rem;

    letter-spacing: 0.18em;

    font-weight: 900;

    color: #806fc1;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);

    line-height: 0.98;

    color: #18264a;

    max-width: 700px;
}

.hero h2 {
    color: #263d69;

    margin-top: 15px;
}

.lead {
    font-size: 1.12rem;

    color: #53617d;

    max-width: 620px;

    margin: 24px 0;

    line-height: 1.7;
}


/* ==================================================
   FOTO DI KANAN
================================================== */

.hero-card {
    position: relative;

    width: 100%;
    max-width: 350px;

    margin: auto;

    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    box-shadow: none;
}

.profile-photo {
    width: 250px;
    height: 300px;

    margin: 0 auto;

    padding: 7px;

    background: linear-gradient(
        135deg,
        #9edcff,
        #a99bdd,
        #d9ccff
    );

    border-radius: 28px;

    box-shadow:
        0 15px 35px rgba(73, 91, 145, 0.18);
}

.profile-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    border-radius: 22px;

    border: 4px solid white;
}


/* ==================================================
   SPARKLE
================================================== */

.sparkle {
    position: absolute;

    font-size: 1.7rem;

    color: #8c7ac8;
}

.s1 {
    top: 20px;
    left: 42px;
}

.s2 {
    right: 44px;
    top: 80px;
}

.s3 {
    bottom: 20px;
    left: 68px;
}


/* ==================================================
   BUTTON
================================================== */

.hero-actions {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.btn,
.button {
    display: inline-block;

    padding: 13px 20px;

    border-radius: 999px;

    font-weight: 800;

    text-decoration: none;

    transition: 0.25s;
}

.btn:hover,
.button:hover {
    transform: translateY(-3px);
}

.btn-primary,
.button {
    background: #18264a;

    color: white;
}

.btn-primary:hover,
.button:hover {
    background: #4b5d91;
}

.btn-secondary,
.button.secondary {
    background: #ffffff;

    color: #18264a;

    border: 2px solid #c8bff0;
}

.btn-secondary:hover,
.button.secondary:hover {
    background: #eee9ff;
}


/* ==================================================
   SECTION
================================================== */

.section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading.center {
    text-align: center;
}

.section-heading h1,
.section-heading h2 {
    color: #18264a;
}


/* ==================================================
   ABOUT - PROFIL
================================================== */

.profile-section {
    padding: 80px 0;

    background: #f8fbff;
}

.profile-card {
    max-width: 1000px;

    margin: auto;

    padding: 35px 40px;

    background: #ffffff;

    border: 1px solid #dddff5;

    border-radius: 25px;

    box-shadow:
        0 12px 30px rgba(73, 91, 145, 0.10);

    box-sizing: border-box;
}

.profile-card p {
    color: #53617d;

    font-size: 1rem;

    line-height: 1.8;

    margin-bottom: 18px;
}

.profile-card p:last-child {
    margin-bottom: 0;
}

.profile-card strong {
    color: #18264a;
}


/* ==================================================
   ABOUT - PENDIDIKAN
================================================== */

.timeline {
    max-width: 900px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 25px;
}

.timeline-item {
    display: flex;

    align-items: flex-start;

    gap: 18px;
}

.timeline-item .dot {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eee9ff;

    border: 2px solid #d9ccff;

    border-radius: 50%;

    font-size: 1.3rem;
}

.timeline-item .card {
    flex: 1;

    padding: 22px 25px;

    background: #ffffff;

    border: 1px solid #dddff5;

    border-radius: 20px;

    box-shadow:
        0 10px 25px rgba(73, 91, 145, 0.08);

    transition: 0.3s ease;

    box-sizing: border-box;
}

.timeline-item .card:hover {
    transform: translateX(5px);

    box-shadow:
        0 15px 30px rgba(73, 91, 145, 0.14);
}

.timeline-item .period {
    display: inline-block;

    margin-bottom: 7px;

    color: #806fc1;

    font-size: 0.8rem;

    font-weight: 700;
}

.timeline-item .card h3 {
    margin-bottom: 6px;

    color: #18264a;

    font-size: 1.25rem;
}

.timeline-item .card p {
    color: #53617d;

    line-height: 1.6;
}


/* ==================================================
   SKILL
================================================== */

.skill-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.skill-card {
    background: white;

    border: 1px solid #dddff5;

    border-radius: 24px;

    padding: 28px;

    box-shadow:
        0 12px 30px rgba(73, 91, 145, 0.10);
}

.skill-card h3 {
    color: #18264a;

    margin: 10px 0;
}

.skill-card p {
    color: #53617d;

    line-height: 1.6;
}

.bar {
    width: 100%;

    height: 10px;

    background: #e9e6f8;

    border-radius: 20px;

    margin-top: 18px;

    overflow: hidden;
}

.bar span {
    display: block;

    height: 100%;

    background: linear-gradient(
        90deg,
        #9edcff,
        #a99bdd
    );

    border-radius: 20px;
}

.skill-card small {
    display: block;

    margin-top: 8px;

    color: #806fc1;

    font-weight: bold;
}


/* ==================================================
   CONTACT
================================================== */

.contact-section {
    min-height: calc(100vh - 72px);

    padding: 80px 0;

    background: linear-gradient(
        135deg,
        #e4f6ff 0%,
        #f8fbff 50%,
        #eee9ff 100%
    );

    display: flex;

    align-items: center;
}


/* ==================================================
   CONTACT CARD
================================================== */

.contact-card {
    width: 100%;

    max-width: 1000px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    padding: 45px;

    background: rgba(255, 255, 255, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.9);

    border-radius: 30px;

    box-shadow:
        0 20px 50px rgba(73, 91, 145, 0.12);

    box-sizing: border-box;
}


/* ==================================================
   CONTACT INFO
================================================== */

.contact-info h1 {
    margin: 10px 0 15px;

    color: #18264a;

    font-size: 2.8rem;
}

.contact-description {
    color: #53617d;

    line-height: 1.7;

    margin-bottom: 30px;
}


/* ==================================================
   CONTACT DETAIL
================================================== */

.contact-detail {
    display: flex;

    flex-direction: column;

    gap: 20px;
}


/* ==================================================
   CONTACT ITEM
================================================== */

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px;

    background: #f8fbff;

    border: 1px solid #e1e5f5;

    border-radius: 18px;

    transition: 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);

    box-shadow:
        0 10px 25px rgba(73, 91, 145, 0.10);
}


/* ==================================================
   CONTACT ICON
================================================== */

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eee9ff;

    border-radius: 14px;

    font-size: 1.3rem;

    flex-shrink: 0;
}


/* ==================================================
   CONTACT TEXT
================================================== */

.contact-item h3 {
    margin-bottom: 4px;

    color: #18264a;

    font-size: 1rem;
}

.contact-item a {
    color: #806fc1;

    text-decoration: none;

    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}


/* ==================================================
   CONTACT FORM
================================================== */

.contact-form {
    padding: 30px;

    background: #ffffff;

    border-radius: 24px;

    border: 1px solid #dddff5;

    box-shadow:
        0 12px 30px rgba(73, 91, 145, 0.08);

    box-sizing: border-box;
}


/* ==================================================
   FORM TITLE
================================================== */

.form-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 25px;
}

.form-title h2 {
    color: #18264a;
}


/* ==================================================
   FORM GROUP
================================================== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #263454;

    font-weight: 700;
}


/* ==================================================
   INPUT & TEXTAREA
================================================== */

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d8dced;

    border-radius: 12px;

    background: #f8fbff;

    color: #263454;

    font-family: inherit;

    font-size: 0.95rem;

    outline: none;

    box-sizing: border-box;

    transition: 0.25s ease;
}

.form-group textarea {
    resize: vertical;

    min-height: 130px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #a99bdd;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(169, 155, 221, 0.15);
}


/* ==================================================
   SEND BUTTON
================================================== */

.send-button {
    width: 100%;

    padding: 13px 20px;

    border: none;

    border-radius: 999px;

    background: #18264a;

    color: white;

    font-family: inherit;

    font-size: 1rem;

    font-weight: 800;

    cursor: pointer;

    transition: 0.25s ease;
}

.send-button:hover {
    background: #4b5d91;

    transform: translateY(-3px);

    box-shadow:
        0 10px 20px rgba(73, 91, 145, 0.18);
}


/* ==================================================
   FOOTER
================================================== */

footer {
    background: #18264a;

    color: white;

    padding: 24px;

    text-align: center;
}

footer span {
    color: #bfe8ff;
}


/* ==================================================
   PROJECT
================================================== */

.project-section {
    padding: 70px 0;

    background: linear-gradient(
        135deg,
        var(--cream),
        #f5f0ff,
        #eaf8ff
    );
}


/* ==================================================
   PROJECT TITLE
================================================== */

.project-section .section-heading {
    margin-bottom: 45px;
}

.project-title {
    text-align: center;

    margin-bottom: 35px;
}

.project-title h1 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 900;
}


/* ==================================================
   PROJECT CARD
================================================== */

.project-card {
    width: 100%;

    max-width: 1000px;

    margin: 0 auto 50px;
}


/* ==================================================
   JUDUL PROJECT
================================================== */

.project-card-title {
    display: flex;

    align-items: center;

    gap: 12px;

    padding-bottom: 14px;

    margin-bottom: 20px;

    border-bottom: 2px solid var(--navy);
}

.project-card-title span {
    font-size: 1.4rem;
}

.project-card-title h2 {
    margin: 0;

    color: var(--navy);

    font-size: 1.4rem;
}


/* ==================================================
   BOX PROJECT
================================================== */

.project-box {
    width: 100%;

    padding: 30px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, .82);

    border: 1px solid rgba(24, 38, 74, .12);

    border-radius: 22px;

    box-shadow: var(--shadow);
}


/* ==================================================
   BAGIAN LOGO + INFORMASI
================================================== */

.project-top {
    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 35px;

    align-items: center;
}


/* ==================================================
   LOGO PROJECT
================================================== */

.project-logo {
    width: 230px;
    height: 230px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            var(--baby),
            var(--lav)
        );
}

.project-logo img {
    display: block;

    width: 200px;
    height: 200px;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    border-radius: 12px;

    filter:
        drop-shadow(
            0 10px 18px
            rgba(24, 38, 74, .12)
        );
}


/* ==================================================
   INFORMASI PROJECT
================================================== */

.project-info {
    min-width: 0;
}

.project-badges {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 12px;
}

.project-badges span {
    display: inline-block;

    padding: 7px 13px;

    border-radius: 50px;

    background: var(--lav);

    color: var(--navy);

    font-size: .8rem;

    font-weight: 700;
}

.project-info h2 {
    margin: 0 0 7px;

    color: var(--navy);

    font-size: 2rem;
}

.project-info h2 span {
    color: #8a70d2;
}

.project-tagline {
    margin: 0 0 12px;

    color: var(--muted);

    font-style: italic;
}

.project-info > p {
    margin: 0;

    color: var(--text);

    line-height: 1.7;
}

.project-info strong {
    color: var(--navy);
}


/* ==================================================
   TEKNOLOGI
================================================== */

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.project-tech span {
    display: inline-block;

    padding: 7px 13px;

    border: 1px solid rgba(24, 38, 74, .15);

    border-radius: 8px;

    background: var(--white);

    color: var(--navy);

    font-size: .85rem;

    font-weight: 600;
}


/* ==================================================
   KONSEP PROJECT
================================================== */

.project-concept {
    margin-top: 30px;

    padding: 18px 20px;

    border-left: 4px solid var(--lav);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(191, 232, 255, .35),
            rgba(217, 204, 255, .35)
        );
}

.project-concept h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 1.05rem;
}

.project-concept p {
    margin: 0;

    color: var(--text);

    line-height: 1.7;
}


/* ==================================================
   FITUR
================================================== */

.feature-title {
    margin: 30px 0 18px;

    color: var(--navy);

    font-size: 1.1rem;
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.feature-card {
    min-width: 0;

    padding: 18px;

    background: var(--white);

    border: 1px solid rgba(24, 38, 74, .12);

    border-radius: 12px;

    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 30px rgba(24, 38, 74, 0.12);
}

.feature-card > span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-bottom: 10px;

    border-radius: 50%;

    background: var(--navy);

    color: var(--white);

    font-size: .85rem;

    font-weight: 700;
}

.feature-card h3,
.feature-card h4 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 1rem;

    font-weight: 900;
}

.feature-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;

    font-size: .9rem;
}


/* ==================================================
   PROJECT KEDUA
================================================== */

.project-card + .project-card {
    margin-top: 55px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 800px) {

    .nav-menu {
        gap: 12px;
    }


    /* HOME */

    .hero {
        padding: 60px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 40px;

        text-align: center;
    }

    .hero-grid > div:first-child {
        grid-column: 1;

        grid-row: 1;

        max-width: 330px;
    }

    .hero-grid > div:last-child {
        grid-column: 1;

        grid-row: 2;

        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }


    /* ABOUT */

    .profile-card {
        padding: 30px;
    }

    .timeline {
        width: 95%;
    }


    /* SKILL */

    .skill-grid {
        grid-template-columns: 1fr;
    }


    /* CONTACT */

    .contact-card {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 30px;
    }

    .contact-info h1 {
        font-size: 2.3rem;
    }


    /* PROJECT */

    .project-top {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-box {
        padding: 25px;
    }

    .project-logo {
        margin: 0 auto;
    }

    .project-info {
        text-align: center;
    }

    .project-badges,
    .project-tech {
        justify-content: center;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    .nav-inner {
        height: 65px;
    }

    .nav-menu {
        gap: 8px;

        font-size: 0.8rem;
    }


    /* HOME */

    .hero {
        min-height: calc(100vh - 65px);

        padding: 40px 0;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-grid > div:first-child {
        max-width: 280px;
    }

    .profile-photo {
        width: 220px;

        height: 270px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .lead {
        font-size: 1rem;
    }


    /* ABOUT */

    .profile-section {
        padding: 50px 0;
    }

    .profile-card {
        padding: 22px;

        border-radius: 20px;
    }

    .profile-card p {
        font-size: 0.95rem;
    }

    .timeline {
        width: 100%;
    }

    .timeline-item {
        gap: 10px;
    }

    .timeline-item .dot {
        width: 38px;
        height: 38px;

        font-size: 1rem;
    }

    .timeline-item .card {
        padding: 18px;
    }


    /* SKILL */

    .skill-grid {
        grid-template-columns: 1fr;
    }


    /* CONTACT */

    .contact-section {
        padding: 50px 0;
    }

    .contact-card {
        padding: 20px;

        border-radius: 22px;
    }

    .contact-form {
        padding: 20px;
    }


    /* PROJECT */

    .project-section {
        padding: 50px 15px;
    }

    .project-box {
        padding: 18px;
    }

    .project-card-title h2 {
        font-size: 1.1rem;
    }

    .project-logo {
        width: 190px;
        height: 190px;
    }

    .project-logo img {
        width: 165px;
        height: 165px;
    }

    .project-info h2 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 18px;
    }

}
/* ==================================================
   TOMBOL KEMBALI KE ATAS
================================================== */

#backToTop {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: #18264a;
    color: #ffffff;

    font-size: 24px;
    font-weight: bold;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;

    z-index: 999;
}


/* Tombol muncul */

#backToTop.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* Efek saat mouse diarahkan */

#backToTop:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 25px
        rgba(24, 38, 74, 0.25);
}