/* =====================================
   DESIGN TOKENS
   Palet: pink/lavender/mint pastel dengan
   aksen hot-pink, tipografi bulat & playful
===================================== */

:root {
    --bg: #FFF6FA;
    --bg-alt: #FDEFFF;

    --pink: #FF5FA2;
    --pink-soft: #FFD6E8;
    --pink-softer: #FFF0F6;

    --lavender: #9E7CFF;
    --lavender-soft: #E6DCFF;

    --mint: #23C39E;
    --mint-soft: #D3F7EC;

    --ink: #3D1E40;
    --ink-soft: #7C5C82;

    --card: #FFFFFF;
    --card-border: rgba(157, 90, 130, 0.12);

    --shadow-color: rgba(157, 60, 120, 0.16);

    --nav-bg: rgba(255, 255, 255, 0.85);

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #221327;
    --bg-alt: #2C1834;

    --pink: #FF7AB8;
    --pink-soft: #4A2340;
    --pink-softer: #33193A;

    --lavender: #C4A8FF;
    --lavender-soft: #3B2450;

    --mint: #6BE3C4;
    --mint-soft: #1C3A34;

    --ink: #FBEAFA;
    --ink-soft: #D4B6DE;

    --card: #2C1834;
    --card-border: rgba(255, 255, 255, 0.08);

    --shadow-color: rgba(0, 0, 0, 0.45);

    --nav-bg: rgba(34, 19, 39, 0.85);

    color-scheme: dark;
}


/* =====================================
   RESET & DASAR
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", sans-serif;
    font-weight: 500;

    color: var(--ink);
    line-height: 1.7;
    min-height: 100vh;

    background: var(--bg);

    transition: background 0.4s ease, color 0.4s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 12px;
    z-index: 1000;

    padding: 10px 18px;
    border-radius: 12px;

    background: var(--pink);
    color: #fff;

    font-weight: 700;
    text-decoration: none;

    transition: top 0.25s ease;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 3px solid var(--lavender);
    outline-offset: 3px;
}


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

.hero {
    position: relative;
    overflow: hidden;

    text-align: center;
    color: var(--ink);

    padding: 100px 20px 120px;

    background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.hero-blob--pink {
    width: 380px;
    height: 380px;
    top: -140px;
    left: -100px;
    background: var(--pink-soft);
    opacity: 0.9;
}

.hero-blob--lavender {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -80px;
    background: var(--lavender-soft);
    opacity: 0.85;
}

.hero-blob--mint {
    width: 220px;
    height: 220px;
    top: 40%;
    right: 8%;
    background: var(--mint-soft);
    opacity: 0.7;
}

.hero-sparkle {
    position: absolute;
    width: 26px;
    height: 26px;
    fill: var(--pink);
    opacity: 0.85;
    animation: twinkle 3.2s ease-in-out infinite;
}

.hero-sparkle--1 {
    top: 22%;
    left: 12%;
    animation-delay: 0s;
}

.hero-sparkle--2 {
    bottom: 18%;
    right: 14%;
    fill: var(--lavender);
    width: 18px;
    height: 18px;
    animation-delay: 1.4s;
}

@keyframes twinkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.25) rotate(10deg);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 820px;
    margin: auto;
}

.greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 20px;

    border-radius: 30px;

    background: var(--card);

    border: 1px solid var(--card-border);

    color: var(--pink);

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 10px 25px var(--shadow-color);

    margin-bottom: 26px;
}

.greeting-icon {
    width: 14px;
    height: 14px;
    fill: var(--pink);
}

h1,
h2,
h3 {
    font-family: "Fredoka", sans-serif;
}

h1 {
    font-size: clamp(40px, 6vw, 60px);

    font-weight: 600;

    letter-spacing: -0.5px;

    margin-bottom: 18px;

    color: var(--ink);
}

.subtitle {
    max-width: 600px;

    margin: auto;

    color: var(--ink-soft);

    font-size: 17px;
    font-weight: 500;
}


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

nav {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;

    padding: 14px 20px;

    background: var(--nav-bg);

    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--card-border);

    box-shadow: 0 10px 30px var(--shadow-color);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

nav a {
    display: inline-block;

    color: var(--ink);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    padding: 8px 16px;

    border-radius: 20px;

    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    background: var(--pink-soft);
    color: var(--pink);
    transform: translateY(-1px);
}

nav a[aria-current="page"] {
    background: var(--pink);
    color: #fff;
}


/* =====================================
   PAGING (HALAMAN 1 / HALAMAN 2)
===================================== */

.page-hidden {
    display: none;
}

.page-nav {
    display: flex;
    justify-content: center;

    margin: 6px 0 34px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 15px 32px;

    border: none;
    border-radius: 35px;

    background: linear-gradient(135deg, var(--pink), var(--lavender));

    color: #fff;

    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 14px 30px var(--shadow-color);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-btn--back {
    background: var(--card);
    color: var(--pink);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 22px var(--shadow-color);
}

.page-btn:hover {
    transform: translateY(-4px);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    border: 1px solid var(--card-border);

    background: var(--card);

    cursor: pointer;

    font-size: 16px;

    box-shadow: 0 6px 16px var(--shadow-color);

    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(-12deg) scale(1.08);
}


/* =====================================
   MAIN
===================================== */

main {
    width: min(90%, 1150px);

    margin: 70px auto;
}


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

.section-card {
    position: relative;
    overflow: hidden;

    background: var(--card);

    padding: 50px;

    margin-bottom: 34px;

    border-radius: 28px;

    border: 1px solid var(--card-border);

    border-bottom: 5px solid var(--pink);

    box-shadow: 0 20px 55px var(--shadow-color);

    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.section-card--pink {
    border-bottom-color: var(--pink);
}

.section-card--lavender {
    border-bottom-color: var(--lavender);
}

.section-card--mint {
    border-bottom-color: var(--mint);
}

.section-card:hover {
    transform: translateY(-4px);
}


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

.section-label {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--pink);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 10px;
}

.label-icon {
    width: 8px;
    height: 8px;
    fill: currentColor;
}

.section-card--lavender .section-label {
    color: var(--lavender);
}

.section-card--mint .section-label {
    color: var(--mint);
}

h2 {
    position: relative;
    z-index: 1;

    color: var(--ink);

    font-size: clamp(28px, 4vw, 38px);

    font-weight: 600;

    margin-bottom: 18px;
}

h3 {
    position: relative;
    z-index: 1;

    color: var(--ink);

    font-size: 18px;
    font-weight: 600;

    margin-top: 28px;
    margin-bottom: 14px;
}


/* =====================================
   TENTANG SAYA
===================================== */

.profile-container {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    gap: 65px;
}

.profile-image {
    flex: 1;

    text-align: center;
}

.profile-image img {
    width: 235px;
    height: 235px;

    object-fit: cover;

    border-radius: 42% 58% 61% 39% / 45% 40% 60% 55%;

    padding: 8px;

    background: linear-gradient(135deg, var(--pink), var(--lavender), var(--mint));

    box-shadow: 0 20px 45px var(--shadow-color);

    transition: transform 0.5s ease, border-radius 0.5s ease;
}

.profile-image img:hover {
    transform: translateY(-4px) rotate(-1deg);
    border-radius: 58% 42% 39% 61% / 55% 60% 40% 45%;
}

.profile-text {
    flex: 2;
}

.profile-text p {
    margin-bottom: 14px;

    font-size: 16px;
}


/* =====================================
   BIDANG MINAT
===================================== */

.interests {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.interests span {
    padding: 9px 18px;

    border-radius: 30px;

    background: var(--pink-softer);

    color: var(--pink);

    font-size: 13px;
    font-weight: 700;

    border: 1px solid var(--pink-soft);

    transition: transform 0.3s ease, background 0.3s ease;
}

.interests span:nth-child(2n) {
    background: var(--lavender-soft);
    color: var(--lavender);
    border-color: var(--lavender-soft);
}

.interests span:nth-child(3n) {
    background: var(--mint-soft);
    color: var(--mint);
    border-color: var(--mint-soft);
}

.interests span:hover {
    transform: translateY(-3px);
}


/* =====================================
   FAKTA SERU
===================================== */

.section-description {
    position: relative;
    z-index: 1;

    color: var(--ink-soft);

    margin-bottom: 28px;
}

.fact-grid {
    position: relative;
    z-index: 1;

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

    gap: 16px;
}

.fact-item {
    padding: 26px 16px;

    border-radius: 20px;

    background: var(--mint-soft);

    text-align: center;

    transition: transform 0.35s ease;
}

.fact-item:nth-child(2) {
    background: var(--pink-softer);
}

.fact-item:nth-child(3) {
    background: var(--lavender-soft);
}

.fact-item:nth-child(4) {
    background: var(--mint-soft);
}

.fact-item:hover {
    transform: translateY(-5px);
}

.fact-number {
    display: block;

    font-family: "Fredoka", sans-serif;
    font-size: 38px;
    font-weight: 600;

    color: var(--ink);

    margin-bottom: 6px;
}

.fact-label {
    display: block;

    font-size: 13px;
    font-weight: 600;

    color: var(--ink-soft);
}


/* =====================================
   MOTTO
===================================== */

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

.motto-quote {
    position: relative;
    z-index: 1;

    max-width: 640px;

    margin: 10px auto 0;

    padding: 6px 20px;
}

.motto-quote p {
    font-family: "Fredoka", sans-serif;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 500;

    color: var(--ink);

    line-height: 1.5;
}


/* =====================================
   BIODATA
===================================== */

.biodata-grid {
    position: relative;
    z-index: 1;

    display: grid;

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

    gap: 16px;
}

.biodata-item {
    position: relative;
    overflow: hidden;

    padding: 22px 24px;

    border-radius: 18px;

    background: var(--pink-softer);

    border: 1px solid var(--card-border);

    transition: transform 0.35s ease;
}

.biodata-item:nth-child(2n) {
    background: var(--lavender-soft);
}

.biodata-item:hover {
    transform: translateY(-4px);
}

.biodata-item span {
    display: block;

    color: var(--pink);

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 6px;
}

.biodata-item:nth-child(2n) span {
    color: var(--lavender);
}

.biodata-item p {
    color: var(--ink);

    font-size: 16px;
    font-weight: 600;
}


/* =====================================
   TABEL MATA KULIAH
===================================== */

.table-container {
    position: relative;
    z-index: 1;

    width: 100%;

    overflow-x: auto;

    border-radius: 20px;

    border: 1px solid var(--card-border);
}

table {
    width: 100%;

    min-width: 950px;

    border-collapse: collapse;

    background: var(--card);
}

th {
    background: linear-gradient(120deg, var(--pink), var(--lavender));

    color: #fff;

    padding: 18px 16px;

    text-align: left;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

td {
    padding: 16px;

    border-bottom: 1px solid var(--card-border);

    font-size: 13px;

    color: var(--ink);

    vertical-align: top;
}

tbody th[scope="row"] {
    padding: 16px;
    border-bottom: 1px solid var(--card-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--pink);
    text-align: left;
}

tbody tr:nth-child(even) {
    background: var(--bg-alt);
}

tfoot {
    background: var(--mint-soft);
}

tfoot td {
    padding: 18px 16px;

    color: var(--ink);

    border-bottom: none;

    font-size: 14px;
    font-weight: 700;
}


/* =====================================
   GITHUB
===================================== */

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

.github-section p {
    position: relative;
    z-index: 1;

    max-width: 560px;

    margin: auto;

    color: var(--ink-soft);
}

.github-button {
    position: relative;
    z-index: 1;

    display: inline-flex;

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

    margin-top: 26px;

    padding: 15px 34px;

    border-radius: 35px;

    background: linear-gradient(135deg, var(--pink), var(--lavender));

    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    box-shadow: 0 14px 30px var(--shadow-color);

    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.github-button:hover {
    transform: translateY(-4px);
}


/* =====================================
   FOOTER / HUBUNGI SAYA
===================================== */

footer {
    position: relative;

    overflow: hidden;

    background: linear-gradient(150deg, #3D1E40, #5B2E63 55%, #7A3F6E);

    color: #FBEAFA;

    padding: 70px 20px 30px;
}

.footer-content {
    position: relative;
    z-index: 1;

    width: min(90%, 1050px);

    margin: auto;
}

.footer-intro {
    max-width: 560px;

    margin: auto;

    text-align: center;
}

.footer-label {
    color: #FFB8DC;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 10px;
}

footer h2 {
    color: #fff;

    margin-bottom: 12px;
}

.footer-intro p:last-child {
    color: #E4C8E8;
}


/* =====================================
   EMAIL
===================================== */

.contact-container {
    display: flex;

    justify-content: center;

    margin: 40px auto 0;
}

.contact-item {
    width: 100%;
    max-width: 460px;

    padding: 24px 18px;

    border-radius: 18px;

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

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

    text-align: center;

    transition: transform 0.35s ease, background 0.35s ease;
}

.contact-item:hover {
    transform: translateY(-4px);

    background: rgba(255, 255, 255, 0.14);
}

.contact-title {
    display: block;

    color: #FFB8DC;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 8px;
}

.contact-item a {
    color: #fff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    word-break: break-word;

    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #FFB8DC;
}


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

.footer-bottom {
    display: flex;

    justify-content: space-between;

    margin-top: 50px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.14);

    color: #D9BEDC;

    font-size: 13px;
}


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

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: none;

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

    background: linear-gradient(135deg, var(--pink), var(--lavender));

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    box-shadow: 0 12px 28px var(--shadow-color);

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);

    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
}


/* =====================================
   RESPONSIVE HP
===================================== */

@media (max-width: 768px) {

    .hero {
        padding: 80px 20px;
    }

    nav {
        padding: 12px 10px;
    }

    nav a {
        font-size: 13px;

        padding: 7px 12px;
    }

    main {
        width: 92%;

        margin: 40px auto;
    }

    .section-card {
        padding: 32px 22px;

        border-radius: 22px;
    }

    .profile-container {
        flex-direction: column;

        gap: 36px;
    }

    .profile-image img {
        width: 200px;
        height: 200px;
    }

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

    .fact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;

        gap: 6px;

        text-align: center;
    }

}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

}
