/* ===================================
   ANAIS PORTFOLIO
   Matcha + Blush Theme
=================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    background:#FFF9F4;
    color:#5C4635;

    font-family:'Nunito',sans-serif;

    overflow-x:hidden;

    position:relative;

}

/* =========================
   COLORS
========================= */

:root{

    --cream:#FFF9F4;
    --matcha:#B9C9A7;
    --sage:#D8E6CF;
    --pink:#F7D9E3;
    --hazelnut:#8B6E5C;
    --text:#5C4635;
    --white:#ffffff;

}

/* =========================
   BACKGROUND BLOBS
========================= */

.background-blob{

    position:fixed;

    border-radius:50%;

    filter:blur(70px);

    opacity:.45;

    z-index:-10;

}

.blob1{

    width:300px;
    height:300px;

    background:var(--matcha);

    top:-120px;
    left:-80px;

}

.blob2{

    width:280px;
    height:280px;

    background:var(--pink);

    right:-100px;
    top:180px;

}

.blob3{

    width:240px;
    height:240px;

    background:var(--sage);

    bottom:-100px;
    left:35%;

}

/* =========================
   NAVIGATION
========================= */

header{

    width:100%;

    padding:28px 8%;

}

nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-family:'Baloo 2',cursive;

    font-size:2rem;

    color:var(--hazelnut);

}

nav ul{

    list-style:none;

    display:flex;

    gap:32px;

}

nav a{

    text-decoration:none;

    color:var(--text);

    font-family:'Quicksand',sans-serif;

    font-weight:700;

    transition:.3s;

}

nav a:hover{

    color:var(--hazelnut);

}

.active{

    color:var(--hazelnut);

    position:relative;

}

.active::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:100%;

    height:4px;

    border-radius:30px;

    background:var(--matcha);

}

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

.hero{

    min-height:82vh;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:70px;

    padding:40px 8%;

}

.hero-text{

    flex:1;

}

.hello{

    color:var(--hazelnut);

    font-size:1.2rem;

    margin-bottom:10px;

}

.hero h1{

    font-family:'Baloo 2',cursive;

    font-size:5rem;

    color:var(--hazelnut);

    line-height:1;

}

.hero h3{

    margin-top:15px;

    color:#72906A;

    font-size:2rem;

    font-family:'Quicksand',sans-serif;

}

.intro{

    margin-top:28px;

    line-height:1.9;

    max-width:600px;

    font-size:1.08rem;

}

/* =========================
   BUTTONS
========================= */

.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:40px;

}

.main-button{

    background:var(--matcha);

    color:var(--text);

    padding:16px 30px;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.main-button:hover{

    transform:translateY(-4px) scale(1.03);

}

.secondary-button{

    background:white;

    color:var(--text);

    border:2px solid var(--pink);

    padding:16px 30px;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}

.secondary-button:hover{

    background:var(--pink);

    transform:translateY(-4px);

}

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

.hero-card{

    width:340px;

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

    backdrop-filter:blur(10px);

    border-radius:30px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

    transition:.35s;

    border:2px solid rgba(255,255,255,.5);

}

.hero-card:hover{

    transform:translateY(-10px) rotate(-1deg);

}

.card-top{

    background:var(--matcha);

    color:var(--text);

    padding:18px;

    text-align:center;

    font-family:'Quicksand',sans-serif;

    font-weight:700;

    font-size:1rem;

}

.card-content{

    padding:35px;

}

.card-content h2{

    font-family:'Baloo 2',cursive;

    font-size:2rem;

    margin-bottom:12px;

    color:var(--hazelnut);

}

.card-content p{

    line-height:1.8;

}

/* =========================
   FEATURED PROJECTS
========================= */

.featured{

    padding:90px 8%;

}

.featured h2{

    font-family:'Baloo 2',cursive;

    font-size:3rem;

    text-align:center;

    margin-bottom:55px;

    color:var(--hazelnut);

}

.project-preview{

    display:grid;

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

    gap:30px;

}

.preview-card{

    text-decoration:none;

    color:inherit;

    background:white;

    border-radius:28px;

    padding:28px;

    box-shadow:0 15px 35px rgba(0,0,0,.07);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.preview-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.preview-card:nth-child(1){

    background:#EFF8EA;

}

.preview-card:nth-child(2){

    background:#FFF0F4;

}

.preview-card:nth-child(3){

    background:#F8F5EF;

}

.preview-color{

    width:65px;

    height:8px;

    border-radius:50px;

    background:linear-gradient(
        90deg,
        var(--matcha),
        var(--pink)
    );

    margin-bottom:22px;

}

.preview-card h3{

    font-family:'Baloo 2',cursive;

    font-size:2rem;

    margin-bottom:12px;

    color:var(--hazelnut);

}

.preview-card p{

    line-height:1.8;

}

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

footer{

    text-align:center;

    padding:50px;

    font-family:'Quicksand',sans-serif;

    font-weight:700;

    color:var(--hazelnut);

}

/* =========================
   SIMPLE FADE ANIMATION
========================= */

.hero,
.featured{

    animation:fadeUp .9s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

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

@media(max-width:950px){

    nav{

        flex-direction:column;

        gap:20px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:18px;

    }

    .hero{

        flex-direction:column;

        text-align:center;

    }

    .intro{

        margin-left:auto;

        margin-right:auto;

    }

    .hero-buttons{

        justify-content:center;

        flex-wrap:wrap;

    }

    .hero-card{

        width:100%;

        max-width:420px;

    }

    .project-preview{

        grid-template-columns:1fr;

    }

    .hero h1{

        font-size:4rem;

    }

}

/* =========================
   PAGE FADE
========================= */

body{

    opacity:0;

    transition:opacity .6s ease;

}

body.loaded{

    opacity:1;

}

/* =========================
   ABOUT PAGE
========================= */

.about-page{

    padding:70px 8%;

}

.section-label{

    color:var(--hazelnut);

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:12px;

}

.about-page h1{

    font-family:'Baloo 2',cursive;

    font-size:4rem;

    color:var(--hazelnut);

    margin-bottom:20px;

}

.about-intro{

    max-width:750px;

    line-height:1.9;

    margin-bottom:60px;

    font-size:1.08rem;

}

.about-grid{

    display:grid;

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

    gap:30px;

}

.about-box{

    background:white;

    border-radius:28px;

    padding:30px;

    box-shadow:0 15px 35px rgba(0,0,0,.07);

    transition:.3s;

}

.about-box:hover{

    transform:translateY(-6px);

}

.about-box h2{

    font-family:'Baloo 2',cursive;

    color:var(--hazelnut);

    margin-bottom:18px;

}

.about-box p{

    line-height:1.9;

}

.goal-list{

    padding-left:22px;

    line-height:2;

}

.skill-tags{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

}

.skill-tags span{

    background:var(--pink);

    padding:10px 18px;

    border-radius:999px;

    font-weight:700;

    font-size:.95rem;

}

@media(max-width:850px){

.about-grid{

grid-template-columns:1fr;

}

.about-page h1{

font-size:3rem;

}

}

/* =========================
   PROJECTS PAGE
========================= */

.projects-page{

    padding:70px 8%;

}

.projects-page h1{

    font-family:'Baloo 2',cursive;

    font-size:4rem;

    color:var(--hazelnut);

    margin-bottom:20px;

}

.projects-intro{

    max-width:760px;

    line-height:1.9;

    margin-bottom:55px;

}

.projects-grid{

    display:grid;

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

    gap:30px;

}

.project-card{

    background:white;

    text-decoration:none;

    color:var(--text);

    padding:35px;

    border-radius:28px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.project-card:nth-child(odd){

    border-left:8px solid var(--matcha);

}

.project-card:nth-child(even){

    border-left:8px solid var(--pink);

}

.project-card:hover{

    transform:translateY(-10px) rotate(-.5deg);

    box-shadow:0 25px 45px rgba(0,0,0,.12);

}

.project-card h2{

    font-family:'Baloo 2',cursive;

    font-size:2rem;

    color:var(--hazelnut);

    margin-bottom:12px;

}

.project-card p{

    line-height:1.8;

    margin-bottom:25px;

}

.project-card span{

    font-weight:700;

    color:#72906A;

}

@media(max-width:850px){

.projects-grid{

grid-template-columns:1fr;

}

.projects-page h1{

font-size:3rem;

}

}

/* =========================
   CASE STUDY
========================= */

.case-study{

padding:70px 8%;

}

.back-link{

text-decoration:none;

color:var(--hazelnut);

font-weight:700;

}

.case-number{

margin-top:35px;

letter-spacing:3px;

font-size:.9rem;

color:#888;

}

.case-study h1{

font-family:'Baloo 2',cursive;

font-size:4.5rem;

color:var(--hazelnut);

margin-top:10px;

}

.case-subtitle{

font-size:1.2rem;

margin-bottom:40px;

}

.snapshot{

display:grid;

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

gap:20px;

margin-bottom:50px;

}

.snapshot div{

background:white;

padding:22px;

border-radius:20px;

box-shadow:0 12px 30px rgba(0,0,0,.08);

text-align:center;

}

.case-layout{

display:grid;

grid-template-columns:40% 60%;

gap:40px;

align-items:start;

}

.gallery-panel{

position:sticky;

top:40px;

}

.gallery-image{

height:420px;

background:#F5F5F5;

border-radius:28px;

display:flex;

justify-content:center;

align-items:center;

font-weight:700;

box-shadow:0 15px 35px rgba(0,0,0,.08);

}

.gallery-buttons{

display:flex;

gap:12px;

margin-top:20px;

}

.gallery-btn{

padding:12px 20px;

border:none;

border-radius:999px;

cursor:pointer;

font-weight:700;

background:var(--pink);

}

.active-gallery{

background:var(--matcha);

}

.gallery-controls{

display:flex;

justify-content:space-between;

margin-top:20px;

}

.gallery-controls button{

border:none;

background:var(--cream);

padding:10px 18px;

border-radius:999px;

cursor:pointer;

}

.expand-card{

background:white;

border-radius:28px;

padding:28px;

margin-bottom:22px;

box-shadow:0 15px 35px rgba(0,0,0,.08);

cursor:pointer;

transition:.3s;

}

.expand-card:hover{

transform:translateY(-5px);

}

.expand-card.active{

border:3px solid var(--pink);

transform:scale(1.02);

}

.expand-card h2{

font-family:'Baloo 2',cursive;

margin-bottom:15px;

color:var(--hazelnut);

}

.expand-card p{

line-height:1.9;

}

.next-project{

margin-top:50px;

text-align:right;

}

.next-project a{

text-decoration:none;

font-weight:700;

color:var(--hazelnut);

}

@media(max-width:900px){

.case-layout{

grid-template-columns:1fr;

}

.gallery-panel{

position:static;

}

.snapshot{

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

}

.case-study h1{

font-size:3.5rem;

}

}

/* =========================
   TIMELINE
========================= */

.timeline-page{

padding:70px 8%;

}

.timeline-page h1{

font-family:'Baloo 2',cursive;

font-size:4rem;

color:var(--hazelnut);

margin-bottom:20px;

}

.timeline{

position:relative;

margin-top:60px;

padding-left:30px;

border-left:5px solid var(--matcha);

}

.timeline-item{

position:relative;

margin-bottom:50px;

}

.timeline-dot{

position:absolute;

left:-42px;

top:20px;

width:20px;

height:20px;

border-radius:50%;

background:var(--pink);

border:4px solid white;

}

.timeline-card{

background:white;

padding:28px;

border-radius:25px;

box-shadow:0 15px 35px rgba(0,0,0,.08);

transition:.3s;

}

.timeline-card:hover{

transform:translateX(8px);

}

.timeline-card h2{

font-family:'Baloo 2',cursive;

color:var(--hazelnut);

margin-bottom:10px;

}

.timeline-card p{

line-height:1.8;

margin-bottom:12px;

}

.timeline-card span{

font-weight:700;

color:#7a8f70;

}

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

.contact-page{

padding:70px 8%;
text-align:center;

}

.contact-page h1{

font-family:'Baloo 2',cursive;
font-size:4rem;
color:var(--hazelnut);
margin-bottom:20px;

}

.contact-intro{

max-width:700px;
margin:auto;
line-height:1.9;
margin-bottom:50px;

}

.contact-card{

max-width:550px;
margin:auto;

background:white;

padding:40px;

border-radius:30px;

box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.contact-card h2{

font-family:'Baloo 2',cursive;

margin-bottom:25px;

color:var(--hazelnut);

}

.contact-card p{

margin-bottom:25px;

line-height:1.8;

}