/* RESET */

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

html{
    scroll-behavior:smooth;
}

body{
    background:#f6f5f2;
    color:#000;
    font-family:'Inter', sans-serif;
}



/* HERO */

.hero{
    min-height:80vh;

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

    text-align:center;

    padding:0 8%;
}

.hero h1{
    font-size:5rem;
    font-weight:400;
    margin-bottom:120px;
}

.hero p{

    max-width:1200px;

    font-family:"Cormorant Garamond", serif;

    font-size:2.8rem;

    line-height:1.2;

    font-weight:300;

}
/* PROJECTS */

.projects{
    padding:120px 3%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    column-gap:40px;
    row-gap:100px;   /* Controls only the space between rows */
}

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

.project-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;

    transition:.4s ease;
}

.project-card img:hover{
    transform:scale(1.02);
}

.project-card h3{
    margin-top:20px;

    font-weight:400;
    font-size:1.4rem;
}

/* ABOUT */

.about{
    padding:150px 10%;
    text-align:center;
}

.about h2{
    font-size:3rem;
    margin-bottom:30px;
}

.about p{
    max-width:900px;
    margin:auto;

    font-family:'Cormorant Garamond', serif;
    font-size:2rem;
    line-height:1.4;
}


.project-card{
    text-decoration:none;
    color:black;
    display:block;
    text-align:center;
}

.project-card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    transition:.4s;
}

.project-card:hover img{
    transform:scale(1.03);
}

.project-card:hover h3{
    opacity:.7;
}


/* Navigation */

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

    padding:40px 60px;
}

.logo{
    text-decoration:none;
    color:black;
    font-size:2.5rem;
}

.nav-links{
    display:flex;
    gap:35px;
}

.nav-links a{
    color:black;
    text-decoration:none;
    letter-spacing:1px;
}

/* Hero */

.project-hero{

    display:grid;
    grid-template-columns:1fr 1fr;

    gap:120px;

    padding:70px 60px 100px;
}

.left h1{

    font-size:5rem;
    font-weight:300;

    margin-bottom:60px;

}

.info{

    margin-bottom:10px;

}

.info h4{

    margin-bottom:8px;
    font-weight:500;

}

.info p{

    font-family:'Cormorant Garamond', serif;
    font-size:1.3rem;

}

.right{
    display:flex;
    align-items:flex-start;
    padding-top:20px;   /* Adjust this value to line up with the title */
}


.right p{

    font-family:'Cormorant Garamond', serif;

    font-size:1.6rem;

    line-height:1.6;

}

.footer-section{
    width:100%;
    padding-bottom:40px;
}


.video-wrapper{
    position:relative;
}

.video-wrapper video{
    width:100%;
    display:block;
    cursor:pointer;
}

.play-icon{

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    font-size:5rem;

    color:white;

    text-shadow:0 4px 15px rgba(0,0,0,.4);

    pointer-events:none;

    transition:opacity .25s ease, transform .25s ease;

}

.video-wrapper:hover .play-icon{

    transform:translate(-50%, -50%) scale(1.08);

}

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

.contact{

    width:100%;

    display:flex;
    flex-direction:column;
    align-items:center;

    text-align:center;

    padding:180px 40px;

}

.contact h2{

    font-family:"Cormorant Garamond", serif;
    font-size:5rem;
    font-weight:300;

    margin-bottom:20px;

}

.contact p{

    max-width:550px;

    margin-bottom:60px;

    font-size:1.1rem;

}

.contact-form{

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

    display:flex;
    align-items:flex-end;

    gap:20px;

}

.contact-form textarea{

    flex:1;

    resize:none;

    background:transparent;

    border:none;
    border-bottom:1px solid black;

    padding:15px 0;

    font-size:1rem;

    font-family:"Inter", sans-serif;

    outline:none;

}

.contact-form button{

    background:none;
    border:none;

    font-size:2.5rem;

    cursor:pointer;

    transition:.3s;

}

.contact-form button:hover{

    transform:translateX(8px);

}


/* ---------- Marquee ---------- */

.marquee{
    overflow:hidden;
    white-space:nowrap;
    margin-bottom:80px;   /* Space between marquee and footer */
}

.marquee-track{
    display:inline-flex;
    width:max-content;
    animation:marquee 75s linear infinite;
}

.marquee-track span{
    font-family:"Cormorant Garamond", serif;
    font-style:italic;
    font-size:5rem;
    font-weight:300;
    padding-right:100px;
}

@keyframes marquee{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}


.gallery{
    width:85%;
    max-width:1400px;

    margin:100px auto;

    display:flex;
    flex-direction:column;
    gap:70px;
}

.gallery-item{
    margin:0;
}

.gallery-item img,
.gallery-item video{

    width:100%;
    display:block;

    cursor:pointer;

    transition:transform .35s ease;

}

.gallery-item:hover img,
.gallery-item:hover video{

    transform:scale(1.01);

}

/* ---------- Footer ---------- */

.footer{
    width:94%;
    margin:0 auto;

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

.footer-left p,
.footer-right p{
    margin:0;

    font-family:"Cormorant Garamond", serif;
    font-style:italic;
    font-size:1.2rem;
    font-weight:300;
}

/* ======================================
   LIGHTBOX
====================================== */

.lightbox{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.96);

    display:none;

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

    z-index:9999;

}

.lightbox.open{

    display:flex;

}

.lightbox-media{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    max-width:90vw;
    max-height:90vh;
}

.lightbox-media img,
.lightbox-media video{
    max-width:100%;
    max-height:80vh;
    object-fit:contain;
}

.lightbox-close{

    position:absolute;

    top:25px;
    right:35px;

    font-size:3rem;

    color:white;

    background:none;
    border:none;

    cursor:pointer;

}

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:white;

    font-size:4rem;

    cursor:pointer;

    padding:20px;

}

.lightbox-prev{

    left:20px;

}

.lightbox-next{

    right:20px;

}

.lightbox-counter{
    position:absolute;

    bottom:40px;

    left:50%;

    transform:translateX(-50%);

    color:white;

    font-family:"Cormorant Garamond", serif;
    font-size:1.2rem;
    font-style:italic;
    letter-spacing:2px;
}


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

.project-navigation{

    padding:0 60px;

    margin:150px 0 120px;

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

}

.project-link{

    display:flex;
    align-items:center;
    gap:14px;

    text-decoration:none;
    color:black;

    font-family:"Cormorant Garamond", serif;
    font-size:2rem;
    font-style:italic;
    font-weight:300;

}

.project-link.next{

    margin-left:auto;

}

.project-link .arrow{

    transition:transform .35s ease;

}

.project-link:hover .arrow{

    transform:translateX(8px);

}

.project-link.previous:hover .arrow{

    transform:translateX(-8px);

}

/* ======================================
   BACK TO TOP
====================================== */

#scrollTopBtn{

    position:fixed;

    bottom:40px;
    right:40px;

    width:55px;
    height:55px;

    border:none;
    border-radius:50%;

    background:white;

    color:black;

    font-size:1.5rem;

    cursor:pointer;

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

    opacity:0;
    visibility:hidden;

    transition:.35s ease;

    z-index:999;

}

#scrollTopBtn.show{

    opacity:1;
    visibility:visible;

}

#scrollTopBtn:hover{

    transform:translateY(-5px);

}


/* ======================================
   ABOUT IMAGE
====================================== */

.about-image{

    width:85%;
    max-width:1400px;

    margin:120px auto;

}

.about-image img{

    width:100%;
    display:block;

}

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

@media (max-width:900px){

    /* NAVIGATION */

    nav{
        padding:25px 20px;
    }

    .logo{
        font-size:2rem;
    }

    .nav-links{
        gap:20px;
    }

    .nav-links a{
        font-size:.8rem;
    }


    /* ==================================
       HOME PAGE
    ================================== */

    .hero{
        min-height:auto;
        padding:90px 25px;
    }

    .hero h1{
        font-size:3rem;
        margin-bottom:60px;
    }

    .hero p{
        font-size:2.2rem;
        line-height:1.2;
    }

    .projects{
        grid-template-columns:1fr;
        padding:80px 20px;
    }


    /* ==================================
       PROJECT PAGE HERO
    ================================== */

    .project-hero{

        display:flex;
        flex-direction:column;

        gap:45px;

        padding:50px 25px 60px;

    }


    /* PROJECT TITLE */

    .left h1{
    font-size:3rem;
    line-height:1.05;
    overflow-wrap:anywhere;
}

/* PREVENT MOBILE OVERFLOW */
.project-hero,
.left,
.right{
    min-width:0;
    max-width:100%;
}

    /* PROJECT INFORMATION */

    .info{

        margin-bottom:22px;

    }

    .info h4{

        font-size:.85rem;

        margin-bottom:5px;

    }

    .info p{

        font-size:1.2rem;

    }


    /* PROJECT DESCRIPTION */

    .right{

        display:block;

        padding-top:0;

    }

    .right p{

        font-size:1.45rem;

        line-height:1.5;

    }


    /* ==================================
       GALLERY
    ================================== */

    .gallery{

        width:92%;

        margin:50px auto;

        gap:35px;

    }

    .gallery-item{

        width:100%;

    }

    .gallery-item img,
    .gallery-item video{

        width:100%;

        max-width:100%;

        height:auto;

    }


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

    .project-navigation{

        width:92%;

        padding:0;

        margin:80px auto;

    }

    .project-link{

        font-size:1.3rem;

        gap:7px;

    }


    /* ==================================
       MARQUEE
    ================================== */

    .marquee{

        margin-bottom:50px;

    }

    .marquee-track span{

        font-size:3rem;

        padding-right:60px;

    }


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

    .footer{

        width:90%;

        flex-direction:column;

        gap:15px;

        text-align:center;

    }

    .footer-left p,
    .footer-right p{

        font-size:1rem;

    }


    /* ==================================
       BACK TO TOP
    ================================== */

    #scrollTopBtn{

        width:45px;
        height:45px;

        right:20px;
        bottom:20px;

        font-size:1.2rem;

    }

}