/* ==========================================
   GOOGLE FONTS
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');


/* ==========================================
   RESET
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    transition:.4s ease;
    overflow-x:hidden;

}

img{

    display:block;
    max-width:100%;

}

a{

    text-decoration:none;
    color:inherit;

}

ul{

    list-style:none;

}


/* ==========================================
   COLOR VARIABLES
========================================== */

:root{

    --bg:#f3efe9;
    --card:#ffffff;
    --text:#2f2f2f;
    --text-light:#666;
    --border:#ded6cb;
    --accent:#b8956b;

    --nav:rgba(243,239,233,.85);

    --shadow:0 15px 40px rgba(0,0,0,.08);

}


/* ==========================================
   DARK MODE
========================================== */

body.dark{

    --bg:#1b1b1b;

    --card:#262626;

    --text:#f5f5f5;

    --text-light:#bdbdbd;

    --border:#393939;

    --accent:#d7b18c;

    --nav:rgba(20,20,20,.92);

    --shadow:0 18px 45px rgba(0,0,0,.45);

}


/* ==========================================
   GLOBAL TYPOGRAPHY
========================================== */

h1,
h2,
h3,
.logo{

    font-family:'Cormorant Garamond',serif;
    font-weight:600;

}

p{

    color:var(--text-light);
    line-height:1.9;

}

section{

    padding:110px 10%;

}

.line{

    width:70px;
    height:2px;
    background:var(--accent);
    margin:20px 0 35px;

}


/* ==========================================
   NAVBAR
========================================== */

nav{

    position:fixed;
    top:0;
    left:0;

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px 9%;

    background:var(--nav);

    backdrop-filter:blur(12px);

    border-bottom:1px solid rgba(0,0,0,.04);

    z-index:999;

}

.logo{

    font-size:1.8rem;
    letter-spacing:2px;
    color:var(--text);

}

nav ul{

    display:flex;
    align-items:center;
    gap:45px;

}

nav ul li a{

    font-size:.95rem;
    font-weight:500;
    color:var(--text);

    transition:.3s;

    position:relative;

}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:var(--accent);

    transition:.3s;

}

nav ul li a:hover::after{

    width:100%;

}

nav ul li a:hover{

    color:var(--accent);

}


/* ==========================================
   DARK MODE BUTTON
========================================== */

#theme-toggle{

    width:48px;
    height:48px;

    border:none;

    border-radius:50%;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-size:18px;

    box-shadow:var(--shadow);

    transition:.35s;

}

#theme-toggle:hover{

    transform:rotate(20deg) scale(1.08);

    background:var(--accent);

    color:#fff;

}


/* ==========================================
   HERO
========================================== */

.hero{

    min-height:100vh;

    display:grid;

    grid-template-columns:1fr 420px;

    gap:90px;

    align-items:center;

    padding:140px 10% 80px;

}

.hero-text{

    animation:fadeLeft 1s ease;

}

.year{

    display:inline-block;

    margin-bottom:25px;

    color:var(--accent);

    font-size:.9rem;

    letter-spacing:2px;

}

.hero h1{

    font-size:6rem;

    letter-spacing:2px;

    color:var(--text);

}

.subtitle{

    text-transform:uppercase;

    letter-spacing:6px;

    margin-top:12px;

    font-size:1rem;

}

.intro{

    margin-top:120px;

}

.intro h4{

    font-size:1.2rem;

    margin-bottom:8px;

    color:var(--text);

}

.intro span{

    color:var(--text-light);

}

.hero-image{

    animation:fadeRight 1s ease;

}

.hero-image img{

    width:100%;

    height:480px;

    object-fit:cover;

    box-shadow:var(--shadow);

}

.hero-image p{

    margin-top:30px;

    max-width:260px;

    font-size:.95rem;

}


/* ==========================================
   ANIMATIONS
========================================== */

@keyframes fadeLeft{

    from{

        opacity:0;
        transform:translateX(-50px);

    }

    to{

        opacity:1;
        transform:translateX(0);

    }

}

@keyframes fadeRight{

    from{

        opacity:0;
        transform:translateX(50px);

    }

    to{

        opacity:1;
        transform:translateX(0);

    }

}


/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    nav{

        padding:20px 7%;

    }

    nav ul{

        gap:20px;

    }

    .hero{

        grid-template-columns:1fr;

        text-align:center;

        gap:60px;

        padding-top:150px;

    }

    .hero-image{

        justify-self:center;

    }

    .hero-image p{

        margin:auto;
        margin-top:25px;

    }

    .intro{

        margin-top:60px;

    }

    .hero h1{

        font-size:4rem;

    }

}

@media(max-width:768px){

    nav{

        flex-direction:column;

        gap:20px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

    }

    .hero{

        padding:170px 8% 60px;

    }

    .hero h1{

        font-size:3rem;

    }

    .subtitle{

        letter-spacing:3px;

    }

    .hero-image img{

        height:400px;

    }

}
/* ==========================================
   ABOUT SECTION
========================================== */

.about{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;

}

.about-content h2{

    font-size:3.2rem;
    color:var(--text);

}

.about-content p{

    margin-bottom:40px;
    max-width:550px;

}

.signature{

    margin-top:50px;

}

.signature span{

    display:block;
    color:var(--accent);
    margin-bottom:10px;
    letter-spacing:1px;

}

.signature h3{

    font-size:2rem;
    font-family:'Cormorant Garamond',serif;
    color:var(--text);

}

.about-image{

    display:flex;
    justify-content:center;

}

.about-image img{

    width:100%;
    max-width:430px;
    height:560px;
    object-fit:cover;

    border-radius:8px;

    box-shadow:var(--shadow);

    transition:.4s;

}

.about-image img:hover{

    transform:translateY(-8px);

}


/* ==========================================
   SKILLS SECTION
========================================== */

.skills{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;

}

.skills-left h2{

    font-size:3.2rem;
    color:var(--text);

}

.skills ul{

    margin-top:25px;

}

.skills li{

    display:flex;
    align-items:center;

    gap:18px;

    margin-bottom:24px;

    padding:18px 20px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:10px;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

    transition:.35s;

}

.skills li:hover{

    transform:translateX(10px);

    border-color:var(--accent);

}

.skills li i{

    width:45px;
    height:45px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:var(--accent);

    color:#fff;

    font-size:18px;

}

.skills-right{

    display:flex;
    justify-content:center;

}

.skills-right img{

    width:100%;
    max-width:430px;

    height:560px;

    object-fit:cover;

    border-radius:8px;

    box-shadow:var(--shadow);

    transition:.4s;

}

.skills-right img:hover{

    transform:scale(1.02);

}


/* ==========================================
   HOBBIES SECTION
========================================== */

.hobbies{

    text-align:center;

}

.hobbies h2{

    font-size:3.2rem;
    color:var(--text);

}

.hobbies .line{

    margin:20px auto 50px;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:35px;

}

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:14px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:.4s;

}

.card:hover{

    transform:translateY(-12px);

}

.card img{

    width:100%;
    height:260px;
    object-fit:cover;

    transition:.4s;

}

.card:hover img{

    transform:scale(1.08);

}

.card h4{

    font-size:1.35rem;

    margin:25px 20px 10px;

    font-family:'Cormorant Garamond',serif;

    color:var(--text);

}

.card p{

    padding:0 20px 30px;

    color:var(--text-light);

}


/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:992px){

    .about,
    .skills{

        grid-template-columns:1fr;

        text-align:center;

    }

    .about-content p{

        margin:0 auto 35px;

    }

    .about-image,
    .skills-right{

        justify-content:center;

    }

    .skills li{

        text-align:left;

    }

}

@media(max-width:768px){

    .about-content h2,
    .skills-left h2,
    .hobbies h2{

        font-size:2.5rem;

    }

    .about-image img,
    .skills-right img{

        height:420px;

    }

    .cards{

        grid-template-columns:1fr;

    }

}
/* ==========================================
   CONTACT SECTION
========================================== */

.contact{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;

}

.contact-info h2{

    font-size:3.2rem;
    color:var(--text);

}

.contact-info .item{

    display:flex;
    align-items:center;
    gap:18px;

    margin-bottom:25px;

    padding:18px 20px;

    background:var(--card);

    border:1px solid var(--border);

    border-radius:10px;

    transition:.35s;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

}

.contact-info .item:hover{

    transform:translateX(10px);

    border-color:var(--accent);

}

.contact-info .item i{

    width:50px;
    height:50px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:var(--accent);

    color:#fff;

    font-size:18px;

}

.contact-info span{

    color:var(--text);

}

.contact-image{

    display:flex;
    justify-content:center;

}

.contact-image img{

    width:100%;
    max-width:450px;

    height:550px;

    object-fit:cover;

    border-radius:8px;

    box-shadow:var(--shadow);

    transition:.4s;

}

.contact-image img:hover{

    transform:scale(1.02);

}


/* ==========================================
   FOOTER
========================================== */

footer{

    margin-top:80px;

    padding:30px 10%;

    text-align:center;

    border-top:1px solid var(--border);

    background:var(--card);

}

footer p{

    color:var(--text-light);

    font-size:.95rem;

}


/* ==========================================
   SCROLL ANIMATION
========================================== */

.fade{

    opacity:0;

    transform:translateY(60px);

    transition:1s ease;

}

.fade.show{

    opacity:1;

    transform:translateY(0);

}


/* ==========================================
   BACK TO TOP BUTTON
========================================== */

#backToTop{

    position:fixed;

    right:30px;
    bottom:30px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:var(--accent);

    color:#fff;

    font-size:20px;

    cursor:pointer;

    box-shadow:var(--shadow);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:999;

}

#backToTop.show{

    opacity:1;

    visibility:visible;

}

#backToTop:hover{

    transform:translateY(-6px);

}


/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:var(--bg);

}

::-webkit-scrollbar-thumb{

    background:var(--accent);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#9d7a57;

}


/* ==========================================
   TEXT SELECTION
========================================== */

::selection{

    background:var(--accent);

    color:#fff;

}


/* ==========================================
   IMAGE HOVER EFFECT
========================================== */

img{

    transition:.4s ease;

}

img:hover{

    filter:brightness(1.03);

}


/* ==========================================
   BUTTONS
========================================== */

button{

    font-family:'Poppins',sans-serif;

}

button:focus{

    outline:none;

}


/* ==========================================
   RESPONSIVE DESIGN
========================================== */

@media(max-width:992px){

    .contact{

        grid-template-columns:1fr;

        text-align:center;

    }

    .contact-info{

        order:2;

    }

    .contact-image{

        order:1;

    }

    .contact-info .item{

        justify-content:flex-start;

    }

}

@media(max-width:768px){

    section{

        padding:80px 8%;

    }

    .contact-info h2{

        font-size:2.5rem;

    }

    .contact-image img{

        height:420px;

    }

    #backToTop{

        width:50px;
        height:50px;

        right:20px;
        bottom:20px;

    }

}

@media(max-width:600px){

    nav{

        flex-direction:column;

        gap:20px;

        padding:20px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    .hero h1{

        font-size:2.7rem;

    }

    .hero-image img{

        height:340px;

    }

    .about-image img,
    .skills-right img,
    .contact-image img{

        height:340px;

    }

}


/* ==========================================
   SMOOTH TRANSITIONS
========================================== */

*{

    transition:
        background-color .35s ease,
        color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}