/* =====================================================================
   PORTFOLIO — Ngô Huyền Linh
   Design language: cream (#FFF7E6) + leaf green (#6CA24A) + sunshine /
   marigold / blush / sage accents, whimsical illustrative nature-inspired
   style — adapted from the "Sealed Stories" brand style guide.
   Note: "Quiche Sans" is a paid font (not on Google Fonts); the display
   font used here is Baloo 2 — free, rounded/playful, and with full
   Vietnamese diacritic support (Fredoka was tried first but its
   Vietnamese glyph coverage is broken/incomplete). Nunito is used for
   body text as specified, and also fully supports Vietnamese.
===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
   0. DESIGN TOKENS
   (variable names kept for compatibility with the rest of the file;
   values re-themed to the "Sealed Stories" palette)
--------------------------------------------------------------- */
:root{
    --cream:        #FFF7E6;
    --cream-soft:   #FBF0D9;
    --paper:        #FFFDF7;

    --maroon-950:   #29401D;
    --maroon-900:   #375A28;
    --maroon:       #6CA24A;
    --maroon-700:   #578A3A;
    --maroon-600:   #F28C38;
    --maroon-400:   #F7B7C4;

    --ink:          #33421F;
    --body-text:    #6B7A5A;
    --body-text-dark: #EAF2DE;

    --sunshine:     #F4C542;
    --marigold:     #F28C38;
    --pink:         #F7B7C4;
    --pink-soft:    #FCE7EC;
    --leaf:         #C7DDAE;

    --line:         rgba(108,162,74,.18);
    --line-dark:    rgba(255,247,230,.2);

    --shadow-sm:    0 8px 20px rgba(51,66,31,.08);
    --shadow-md:    0 16px 36px rgba(51,66,31,.10);
    --shadow-lg:    0 26px 56px rgba(51,66,31,.14);

    --radius-sm:    14px;
    --radius-md:    22px;
    --radius-lg:    30px;
    --radius-pill:  999px;

    --font-display: 'Baloo 2', system-ui, sans-serif;
    --font-body:    'Nunito', system-ui, sans-serif;

    /* wavy-line motif, tileable, colour swapped per surface */
    --wave-on-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='70' viewBox='0 0 220 70'%3E%3Cpath d='M0 35 C 27 5, 82 65, 110 35 S 193 5, 220 35' stroke='%23FFF7E6' stroke-width='2' fill='none' opacity='.2'/%3E%3C/svg%3E");
    --wave-on-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='70' viewBox='0 0 220 70'%3E%3Cpath d='M0 35 C 27 5, 82 65, 110 35 S 193 5, 220 35' stroke='%236CA24A' stroke-width='2' fill='none' opacity='.14'/%3E%3C/svg%3E");

    /* scalloped bottom edge, used under the hero card */
    --scallop-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='34' viewBox='0 0 140 34'%3E%3Cpath d='M0 0 C 11.6 0 11.6 24 23.3 24 C 35 24 35 0 46.6 0 C 58.3 0 58.3 24 70 24 C 81.6 24 81.6 0 93.3 0 C 105 0 105 24 116.6 24 C 128.3 24 128.3 0 140 0 L140 34 L0 34 Z' fill='%23FFF7E6'/%3E%3C/svg%3E");

    /* small whimsical flower doodle, used as a decorative accent */
    --flower-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23F4C542'%3E%3Ccircle cx='30' cy='14' r='10'/%3E%3Ccircle cx='46' cy='30' r='10'/%3E%3Ccircle cx='30' cy='46' r='10'/%3E%3Ccircle cx='14' cy='30' r='10'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='9' fill='%23F28C38'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------
   1. RESET / BASE
--------------------------------------------------------------- */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    position:relative;
    font-family:var(--font-body);
    background:var(--cream);
    color:var(--ink);
    min-height:100vh;
    padding-top:132px;
    overflow-x:hidden;
    line-height:1.6;
}

/* ---------------------------------------------------------------
   1b. DECORATIVE FLOWER BACKGROUND
   Scattered flower illustrations sitting behind all page content.
   z-index:-1 guarantees they always paint underneath text, photos,
   cards, nav and footer (which all have their own backgrounds), so
   they only ever show through the empty cream gaps of the layout.
--------------------------------------------------------------- */
body::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    pointer-events:none;
    background-repeat:no-repeat;
    background-image:
        url("../assets/images/decor/flower-6.png"),
        url("../assets/images/decor/flower-1.png"),
        url("../assets/images/decor/flower-4.png"),
        url("../assets/images/decor/flower-2.png"),
        url("../assets/images/decor/flower-5.png"),
        url("../assets/images/decor/flower-1.png"),
        url("../assets/images/decor/flower-6.png"),
        url("../assets/images/decor/flower-4.png");
    background-position:
        3% 6%,
        92% 4%,
        6% 34%,
        95% 40%,
        2% 66%,
        90% 72%,
        8% 92%,
        94% 96%;
    background-size:
        90px auto,
        70px auto,
        120px auto,
        95px auto,
        110px auto,
        60px auto,
        100px auto,
        80px auto;
    opacity:.85;
}

@media (max-width:900px){
    body::before{
        background-size:
            60px auto,
            50px auto,
            80px auto,
            65px auto,
            75px auto,
            45px auto,
            70px auto,
            55px auto;
        opacity:.6;
    }
}

@media (max-width:560px){
    body::before{
        display:none;
    }
}

h1,h2,h3,h4{
    font-family:var(--font-display);
    color:var(--maroon);
    line-height:1.15;
    letter-spacing:.2px;
}

a{
    color:inherit;
}

img{
    display:block;
    max-width:100%;
}

@media (prefers-reduced-motion: reduce){
    *{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }
}

/* ---------------------------------------------------------------
   2. NAVBAR
--------------------------------------------------------------- */
nav{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:92%;
    max-width:1350px;
    padding:16px 34px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-radius:var(--radius-pill);
    background:rgba(253,248,237,.94);
    border:1px solid var(--line);
    box-shadow:var(--shadow-sm);
    transition:.3s ease;
    z-index:1000;
}

nav.scrolled{
    padding:13px 30px;
    background:var(--paper);
    box-shadow:var(--shadow-md);
}

.logo{
    font-family:var(--font-display);
    font-size:28px;
    font-weight:800;
    letter-spacing:.5px;
    color:var(--maroon);
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:38px;
    list-style:none;
}

.nav-menu a{
    position:relative;
    text-decoration:none;
    font-size:16px;
    font-weight:600;
    color:var(--body-text);
    transition:.25s;
}

.nav-menu a:hover,
.nav-menu a.active{
    color:var(--maroon);
}

.nav-menu a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:3px;
    border-radius:var(--radius-pill);
    background:var(--maroon-400);
    transition:.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after{
    width:100%;
}

#themeToggle{
    width:48px;
    height:48px;
    border-radius:50%;
    border:1px solid var(--line);
    cursor:pointer;
    font-size:20px;
    background:var(--paper);
    box-shadow:var(--shadow-sm);
    transition:.25s;
}

#themeToggle:hover{
    transform:rotate(18deg);
    border-color:var(--maroon-400);
}

/* ---------------------------------------------------------------
   3. BUTTONS
--------------------------------------------------------------- */
.btn,
.btn2,
.btn-project,
.nav-btn{
    display:inline-block;
    padding:15px 32px;
    border-radius:var(--radius-pill);
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    transition:.28s ease;
    cursor:pointer;
    border:2px solid transparent;
}

.btn,
.btn-project{
    background:var(--maroon);
    color:var(--cream);
    box-shadow:var(--shadow-sm);
}

.btn:hover,
.btn-project:hover{
    background:var(--maroon-700);
    transform:translateY(-4px);
    box-shadow:var(--shadow-md);
}

.btn2{
    background:transparent;
    border-color:var(--maroon);
    color:var(--maroon);
}

.btn2:hover{
    background:var(--maroon);
    color:var(--cream);
    transform:translateY(-4px);
}

/* ---------------------------------------------------------------
   4. HERO
--------------------------------------------------------------- */
.hero{
    position:relative;
    max-width:1300px;
    min-height:74vh;
    margin:20px auto 0;
    padding:70px 60px 90px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:70px;
    background:var(--paper);
    border:2px solid var(--line);
    border-radius:60px;
    box-shadow:var(--shadow-lg);
    overflow:hidden;
}

.hero::before,
.hero::after{
    content:"";
    position:absolute;
    width:60px;
    height:60px;
    background-image:var(--flower-doodle);
    background-repeat:no-repeat;
    background-size:contain;
    opacity:.85;
}

.hero::before{
    top:36px;
    left:36px;
    transform:rotate(-12deg) scale(.8);
}

.hero::after{
    bottom:34px;
    right:38%;
    transform:rotate(18deg) scale(.55);
}

.wave-divider{
    max-width:1300px;
    margin:-1px auto 0;
    height:30px;
    background-image:var(--scallop-edge);
    background-repeat:repeat-x;
    background-position:center;
    background-size:120px 30px;
    opacity:.7;
}

.hero .hero-tag{
    background:var(--pink-soft);
    border-color:var(--pink);
    color:var(--marigold);
}

.hero .description{
    color:var(--body-text);
}

.hero .btn{
    background:var(--maroon);
    color:var(--cream);
}

.hero .btn:hover{
    background:var(--maroon-700);
}

.hero .btn2{
    border-color:var(--maroon);
    color:var(--maroon);
}

.hero .btn2:hover{
    background:var(--maroon);
    color:var(--cream);
}

.hero-left{
    flex:1;
    position:relative;
    z-index:1;
    animation:fadeSlideLeft .8s ease both;
}

.hero-right{
    flex:1;
    display:flex;
    justify-content:center;
    position:relative;
    z-index:1;
    animation:fadeSlideRight .8s ease both;
}

@keyframes fadeSlideLeft{
    from{ opacity:0; transform:translateX(-40px); }
    to{ opacity:1; transform:translateX(0); }
}

@keyframes fadeSlideRight{
    from{ opacity:0; transform:translateX(40px); }
    to{ opacity:1; transform:translateX(0); }
}

.hero-tag{
    display:inline-block;
    padding:9px 22px;
    border-radius:var(--radius-pill);
    background:var(--cream-soft);
    border:1px solid var(--line);
    color:var(--maroon-700);
    font-weight:600;
    font-size:14px;
    margin-bottom:24px;
}

.hero h1{
    font-size:70px;
    font-weight:800;
}

.hero h2{
    margin:16px 0 22px;
    font-size:26px;
    font-weight:600;
    color:var(--maroon-600);
}

.description{
    font-size:18px;
    line-height:1.85;
    color:var(--body-text);
    max-width:600px;
}

.hero-button{
    display:flex;
    gap:18px;
    margin-top:36px;
}

.glass-circle{
    position:relative;
    width:380px;
    height:380px;
    border-radius:52% 48% 46% 54% / 55% 45% 55% 45%;
    background:var(--leaf);
    border:5px solid var(--paper);
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:var(--shadow-lg);
    animation:float 5s ease-in-out infinite;
}

.glass-circle::before{
    content:"";
    position:absolute;
    inset:-22px;
    border-radius:48% 52% 54% 46% / 45% 55% 45% 55%;
    border:2px dashed var(--pink);
    z-index:-1;
}

.glass-circle img{
    width:100%;
    height:100%;
    border-radius:52% 48% 46% 54% / 55% 45% 55% 45%;
    object-fit:cover;
}

@keyframes float{
    0%,100%{ transform:translateY(0); }
    50%{ transform:translateY(-16px); }
}

/* ---------------------------------------------------------------
   5. OVERVIEW (home task cards)
--------------------------------------------------------------- */
.overview{
    max-width:1200px;
    margin:130px auto;
    padding:0 20px;
    text-align:center;
}

.section-title{
    font-size:40px;
    font-weight:700;
    text-align:center;
    margin-bottom:20px;
}

.section-description{
    max-width:700px;
    margin:0 auto 55px;
    font-size:17px;
    line-height:1.8;
    color:var(--body-text);
}

.overview-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.overview-card{
    text-align:left;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    padding:38px 30px;
    box-shadow:var(--shadow-sm);
    transition:.3s ease;
}

.overview-card:hover{
    transform:translateY(-8px);
    border-color:var(--maroon-400);
    box-shadow:var(--shadow-md);
}

.overview-card h2{
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    margin-bottom:18px;
    background:var(--maroon);
    border-radius:50%;
    box-shadow:var(--shadow-sm);
}

.overview-card h3{
    font-size:21px;
    margin-bottom:8px;
}

.overview-card p{
    font-size:15px;
    color:var(--body-text);
    line-height:1.6;
}

/* ---------------------------------------------------------------
   6. STATS (dark maroon band)
--------------------------------------------------------------- */
.stats{
    position:relative;
    max-width:none;
    margin:0;
    padding:70px 8%;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    background:var(--maroon);
    background-image:var(--wave-on-dark);
    background-repeat:repeat;
}

.stat{
    text-align:center;
    padding:10px;
}

.stat h2{
    font-size:44px;
    color:var(--cream);
    margin-bottom:8px;
}

.stat p{
    color:var(--body-text-dark);
    font-weight:600;
    letter-spacing:.3px;
}

/* ---------------------------------------------------------------
   7. LOADER
--------------------------------------------------------------- */
#loader{
    position:fixed;
    inset:0;
    background:var(--cream);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:18px;
    z-index:99999;
    transition:.6s ease;
}

.loader-logo{
    width:110px;
    height:110px;
    border-radius:50%;
    background:var(--maroon);
    display:flex;
    justify-content:center;
    align-items:center;
    font-family:var(--font-display);
    font-size:34px;
    font-weight:800;
    color:var(--cream);
    animation:pulse 1.4s ease-in-out infinite;
}

#loader h2{
    font-size:16px;
    font-weight:500;
    font-family:var(--font-body);
    color:var(--body-text);
}

@keyframes pulse{
    0%,100%{ transform:scale(1); }
    50%{ transform:scale(1.08); }
}

#loader.hide{
    opacity:0;
    visibility:hidden;
}


/* ---------------------------------------------------------------
   9. SCROLL PROGRESS / BACK TO TOP
--------------------------------------------------------------- */
#progress-bar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:4px;
    background:var(--maroon);
    z-index:9999;
}

#topBtn{
    position:fixed;
    right:30px;
    bottom:30px;
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:var(--maroon);
    color:var(--cream);
    font-size:22px;
    cursor:pointer;
    display:none;
    z-index:999;
    box-shadow:var(--shadow-md);
    transition:.3s;
}

#topBtn:hover{
    background:var(--maroon-700);
    transform:translateY(-6px);
}

/* ---------------------------------------------------------------
   10. REVEAL ON SCROLL
--------------------------------------------------------------- */
.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:.8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* ---------------------------------------------------------------
   11. TAG (small pill label)
--------------------------------------------------------------- */
.tag{
    display:inline-block;
    padding:8px 20px;
    border-radius:var(--radius-pill);
    background:var(--cream-soft);
    border:1px solid var(--line);
    color:var(--maroon-700);
    font-size:13px;
    font-weight:600;
    margin-bottom:20px;
}

/* ---------------------------------------------------------------
   12. ABOUT PAGE
--------------------------------------------------------------- */
.about-page{
    max-width:1200px;
    margin:150px auto 90px;
    display:grid;
    grid-template-columns:360px 1fr;
    gap:70px;
    align-items:center;
    padding:20px;
}

.about-left img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:52% 48% 46% 54% / 55% 45% 55% 45%;
    border:5px solid var(--paper);
    box-shadow:var(--shadow-lg);
}

.about-right h1{
    font-size:52px;
    margin:12px 0;
}

.about-right h3{
    color:var(--maroon-600);
    font-weight:600;
    font-family:var(--font-body);
    font-size:19px;
    margin-bottom:22px;
}

.about-right p{
    line-height:1.9;
    font-size:17px;
    color:var(--body-text);
}

.about-info{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
    margin-top:38px;
}

.info-card{
    background:var(--paper);
    border:1px solid var(--line);
    padding:26px;
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.info-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
}

.info-card h2{
    font-size:26px;
    margin-bottom:8px;
}

.info-card h4{
    font-size:16px;
    margin-bottom:6px;
}

.info-card p{
    font-size:14px;
    color:var(--body-text);
    line-height:1.6;
}

/* ---------------------------------------------------------------
   13. SKILLS (progress bars)
--------------------------------------------------------------- */
.skills{
    max-width:960px;
    margin:110px auto;
    padding:20px;
}

.skill{
    margin-bottom:32px;
}

.skill-name{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-weight:600;
    color:var(--ink);
}

.progress{
    height:14px;
    background:var(--cream-soft);
    border-radius:var(--radius-pill);
    overflow:hidden;
}

.progress-bar{
    height:100%;
    border-radius:var(--radius-pill);
    background:var(--maroon);
}

/* ---------------------------------------------------------------
   14. PROJECTS PAGE
--------------------------------------------------------------- */
.projects-page{
    max-width:1200px;
    margin:150px auto 0;
    padding:20px;
    text-align:center;
}

.projects-page h1{
    font-size:52px;
    margin-bottom:16px;
}

.projects-page > p{
    max-width:650px;
    margin:0 auto;
    font-size:17px;
    color:var(--body-text);
    line-height:1.8;
}

.project-grid{
    margin:60px 0 100px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:32px;
}

.project-card{
    display:flex;
    flex-direction:column;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-md);
}

.project-card img{
    width:100%;
    height:210px;
    object-fit:cover;
}

.project-content{
    padding:28px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.status{
    display:inline-block;
    align-self:flex-start;
    padding:7px 16px;
    border-radius:var(--radius-pill);
    background:#E5EFDD;
    color:#3E6B2C;
    font-size:13px;
    font-weight:600;
    margin-bottom:18px;
}

.project-content h2{
    font-size:24px;
    margin-bottom:12px;
}

.project-content p{
    line-height:1.75;
    color:var(--body-text);
    margin-bottom:22px;
    font-size:15px;
}

.project-info{
    display:flex;
    justify-content:space-between;
    margin-bottom:22px;
    font-size:14px;
    color:var(--body-text);
}

.btn-project{
    align-self:flex-start;
    margin-top:auto;
    padding:13px 24px;
    font-size:14px;
}

/* ---------------------------------------------------------------
   15. TASK PAGES
--------------------------------------------------------------- */
.task-hero{
    padding-top:150px;
    padding-bottom:70px;
    text-align:center;
    max-width:880px;
    margin:auto;
}

.task-number{
    display:inline-block;
    padding:9px 22px;
    border-radius:var(--radius-pill);
    background:var(--maroon);
    color:var(--cream);
    font-weight:600;
    font-size:14px;
    margin-bottom:22px;
}

.task-hero h1{
    font-size:52px;
    margin-bottom:18px;
}

.task-hero p{
    font-size:18px;
    line-height:1.8;
    color:var(--body-text);
}

.task-navigation{
    max-width:1100px;
    margin:30px auto;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
}

.nav-btn{
    background:var(--paper);
    border:1px solid var(--line);
    color:var(--ink);
    box-shadow:var(--shadow-sm);
    padding:13px 22px;
    font-size:14px;
}

.nav-btn:hover{
    background:var(--maroon);
    color:var(--cream);
    border-color:var(--maroon);
    transform:translateY(-4px);
}

.nav-btn-num{
    width:44px;
    height:44px;
    padding:0;
    border-radius:50%;
    background:var(--paper);
    border:1px solid var(--line);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:var(--ink);
    font-weight:700;
    box-shadow:var(--shadow-sm);
    transition:.25s;
    flex-shrink:0;
}

.nav-btn-num:hover{
    background:var(--maroon-600);
    color:var(--cream);
    border-color:var(--maroon-600);
    transform:translateY(-4px);
}

.nav-btn-num.active{
    background:var(--maroon);
    color:var(--cream);
    border-color:var(--maroon);
    box-shadow:var(--shadow-md);
}

.task-content{
    max-width:1050px;
    margin:20px auto 0;
    padding:20px;
    display:grid;
    gap:30px;
}

.task-box{
    background:var(--paper);
    border:1px solid var(--line);
    padding:36px;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.task-box:hover{
    box-shadow:var(--shadow-md);
}

.task-box h2{
    margin-bottom:18px;
    font-size:23px;
    color:var(--maroon);
}

.task-box p{
    line-height:1.85;
    color:var(--body-text);
}

.pdf-frame,
.pdf-preview iframe{
    width:100%;
    height:850px;
    border:1px solid var(--line);
    border-radius:var(--radius-md);
    margin-top:22px;
    background:var(--paper);
}

.pdf-actions{
    display:flex;
    gap:18px;
    margin-top:26px;
    flex-wrap:wrap;
}

.portfolio-table{
    width:100%;
    border-collapse:collapse;
    margin-top:18px;
    border-radius:var(--radius-sm);
    overflow:hidden;
}

.portfolio-table th{
    background:var(--maroon);
    color:var(--cream);
    padding:14px;
    text-align:left;
    font-family:var(--font-display);
    font-weight:600;
}

.portfolio-table td{
    padding:14px;
    border-bottom:1px solid var(--line);
    color:var(--ink);
}

.portfolio-table tr:nth-child(even){
    background:var(--cream-soft);
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:18px;
    margin-top:22px;
}

.gallery img{
    width:100%;
    border-radius:var(--radius-sm);
    cursor:pointer;
    transition:.3s;
}

.gallery img:hover{
    transform:scale(1.03);
}

/* ---------------------------------------------------------------
   16. REFLECTION PAGE
--------------------------------------------------------------- */
.reflection-page{
    max-width:980px;
    margin:150px auto 0;
    padding:20px;
    text-align:center;
}

.reflection-page h1{
    font-size:50px;
    margin:16px 0;
}

.reflection-intro{
    font-size:18px;
    line-height:1.85;
    color:var(--body-text);
    margin-bottom:60px;
}

.reflect-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:80px;
}

.reflect-stat{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius-md);
    padding:28px 15px;
    box-shadow:var(--shadow-sm);
    transition:.3s;
}

.reflect-stat:hover{
    transform:translateY(-6px);
}

.reflect-stat h2{
    font-size:34px;
    color:var(--maroon);
    margin-bottom:6px;
}

.reflect-stat p{
    font-size:13px;
    color:var(--body-text);
    font-weight:600;
}

.skills-section{
    margin-bottom:90px;
    text-align:left;
}

.skill-bar-item{
    margin-bottom:24px;
}

.skill-bar-label{
    display:flex;
    justify-content:space-between;
    font-weight:600;
    margin-bottom:9px;
    color:var(--ink);
}

.skill-bar-track{
    width:100%;
    height:13px;
    border-radius:var(--radius-pill);
    background:var(--cream-soft);
    overflow:hidden;
}

.skill-bar-fill{
    height:100%;
    border-radius:var(--radius-pill);
    background:var(--maroon);
    transition:width 1.1s ease;
}

.timeline{
    position:relative;
    margin-top:20px;
    text-align:left;
}

.timeline::before{
    content:"";
    position:absolute;
    left:34px;
    top:0;
    bottom:0;
    width:3px;
    background:var(--line);
}

.timeline-item{
    display:flex;
    gap:28px;
    margin-bottom:50px;
    align-items:flex-start;
}

.circle{
    width:68px;
    height:68px;
    border-radius:50%;
    background:var(--maroon);
    display:flex;
    justify-content:center;
    align-items:center;
    font-family:var(--font-display);
    font-size:24px;
    font-weight:700;
    color:var(--cream);
    flex-shrink:0;
    position:relative;
    z-index:2;
}

.timeline-content{
    background:var(--paper);
    border:1px solid var(--line);
    padding:28px;
    border-radius:var(--radius-md);
    box-shadow:var(--shadow-sm);
    width:100%;
    transition:.3s;
}

.timeline-content:hover{
    transform:translateY(-4px);
}

.timeline-content h3{
    margin-bottom:12px;
    font-size:19px;
}

.timeline-content p{
    line-height:1.8;
    color:var(--body-text);
    font-size:15px;
}

.reflect-quote{
    position:relative;
    margin-top:70px;
    padding:60px 40px;
    border-radius:var(--radius-lg);
    background:var(--maroon);
    background-image:var(--wave-on-dark);
    background-repeat:repeat;
    color:var(--cream);
    text-align:center;
    box-shadow:var(--shadow-lg);
    overflow:hidden;
}

.reflect-quote p{
    font-size:21px;
    font-style:italic;
    line-height:1.7;
    margin-bottom:16px;
    font-family:var(--font-display);
    font-weight:500;
}

.reflect-quote span{
    font-weight:700;
    font-size:15px;
    opacity:.85;
}

/* ---------------------------------------------------------------
   17. FOOTER
--------------------------------------------------------------- */
footer{
    position:relative;
    margin-top:130px;
    padding:70px 8% 36px;
    background:var(--maroon);
    background-image:var(--wave-on-dark);
    background-repeat:repeat;
    color:var(--body-text-dark);
    border-top-left-radius:48px;
    border-top-right-radius:48px;
    overflow:hidden;
}

.footer-container{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:60px;
}

.footer-logo{
    font-family:var(--font-display);
    font-size:32px;
    font-weight:800;
    color:var(--cream);
    margin-bottom:14px;
}

.footer-container p{
    color:var(--body-text-dark);
    line-height:1.6;
    font-size:15px;
}

.footer-title{
    font-family:var(--font-display);
    font-size:19px;
    margin-bottom:18px;
    color:var(--cream);
}

.footer-links{
    display:flex;
    flex-direction:column;
    gap:13px;
}

.footer-links a{
    text-decoration:none;
    color:var(--body-text-dark);
    transition:.25s;
    font-size:15px;
}

.footer-links a:hover{
    padding-left:8px;
    color:var(--cream);
}

.footer-bottom{
    position:relative;
    margin-top:46px;
    padding-top:26px;
    border-top:1px solid var(--line-dark);
    text-align:center;
    font-size:14px;
    color:var(--body-text-dark);
}

/* ---------------------------------------------------------------
   18. LIGHTBOX
--------------------------------------------------------------- */
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(20,8,5,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:var(--radius-md);
    box-shadow:0 25px 60px rgba(0,0,0,.5);
    animation:zoom .3s ease;
}

@keyframes zoom{
    from{ transform:scale(.85); opacity:0; }
    to{ transform:scale(1); opacity:1; }
}

/* ---------------------------------------------------------------
   19. SCROLLBAR
--------------------------------------------------------------- */
::-webkit-scrollbar{
    width:11px;
}

::-webkit-scrollbar-track{
    background:var(--cream-soft);
}

::-webkit-scrollbar-thumb{
    background:var(--maroon-600);
    border-radius:var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover{
    background:var(--maroon);
}
