/* ========================= */
/* RESET */
/* ========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#050505;
    color:white;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
}


/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar{

    position:fixed;

    top:20px;
    left:50%;

    transform:translateX(-50%);

    width:90%;
    max-width:900px;

    padding:18px 24px;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(30px);

    border-radius:35px;

    z-index:1000;

    transition:.4s;

}

.nav-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo img{

    width:90px;

    object-fit:contain;

}

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    color:#888;

    text-decoration:none;

    transition:.3s;

}

.nav-links a:hover{

    color:white;

}

.menu-btn{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:1.4rem;

    cursor:pointer;

}


/* ========================= */
/* MOBILE LINKS */
/* ========================= */

.mobile-links{

    display:flex;

    flex-direction:column;

    gap:25px;

    margin-top:0;

    max-height:0;

    overflow:hidden;

    opacity:0;

    transition:.4s;

}

.mobile-links a{

    text-decoration:none;

    color:#aaa;

}

.navbar.active .mobile-links{

    margin-top:30px;

    max-height:200px;

    opacity:1;

}


/* ========================= */
/* HERO */
/* ========================= */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    padding:0 10%;
}

.hero-content{

    max-width:700px;
}

.hero-label{

    color:#666;

    font-size:.9rem;

    letter-spacing:2px;

    text-transform:uppercase;
}

.hero h1{

    font-family:'Inter',sans-serif;

    margin-top:15px;

    font-size:clamp(4rem,9vw,7rem);

    line-height:.95;

    letter-spacing:-5px;

    font-weight:500;
}

.hero p{

    margin-top:30px;

    max-width:450px;

    color:#777;

    line-height:1.8;

    font-size:1.1rem;
}

.selected-work{

    display:block;

    margin-top:80px;

    color:#666;
}


/* ========================= */
/* PROJECTS */
/* ========================= */

.projects{

    width:85%;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

    padding-bottom:200px;

}

.project{

    position:relative;

    height:500px;

    overflow:hidden;

    border-radius:30px;

    background:#111;

}

.project img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.8s;

}

.project:hover img{

    transform:scale(1.05);

}

.overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:40px;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.75)
    );

    opacity:0;

    transition:.5s;

}

.project:hover .overlay{

    opacity:1;

}

.overlay span{

    color:#999;

    margin-top:10px;

}


/* ========================= */
/* ABOUT */
/* ========================= */

.about{

    width:85%;

    margin:auto;

    padding-bottom:180px;

}

.about h2{

    margin-bottom:30px;

}

.about p{

    max-width:650px;

    line-height:1.8;

    color:#888;

}


/* ========================= */
/* CONTACT */
/* ========================= */

.contact{

    width:85%;

    margin:auto;

    padding-bottom:150px;

}

.contact h2{

    margin-bottom:30px;

}

.contact p{

    color:#888;

}

.contact-links{

    display:flex;

    gap:30px;

    margin-top:40px;

}

.contact-links a{

    color:#aaa;

    text-decoration:none;

    transition:.3s;

}

.contact-links a:hover{

    color:white;

}


/* ========================= */
/* FOOTER */
/* ========================= */

footer{

    display:flex;

    justify-content:center;

    padding-bottom:50px;

}

.footer-card{

    display:inline-flex;

    align-items:center;

    padding:18px 32px;

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.06);

    backdrop-filter:blur(30px);

    border-radius:100px;

    color:#666;

}


/* ========================= */
/* SCROLL BUTTON */
/* ========================= */

.scroll-top{

    position:fixed;

    right:30px;

    bottom:30px;

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(30px);

    color:white;

    cursor:pointer;

    transition:.3s;

}

.scroll-top:hover{

    transform:translateY(-5px);

}

.scroll-top{

    position:fixed;

    right:30px;
    bottom:30px;

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.04);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(30px);

    color:white;

    cursor:pointer;

    opacity:0;

    pointer-events:none;

    transition:.4s;

}

.scroll-top.show{

    opacity:1;

    pointer-events:auto;
}


/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:768px){

    .nav-links{

        display:none;

    }

    .menu-btn{

        display:block;

    }

    .hero{

        padding:0 25px;

    }

    .hero h1{

        font-size:clamp(4rem,20vw,6rem);

        letter-spacing:-4px;

    }

    .hero p{

        font-size:1rem;

    }

    .projects{

        width:calc(100% - 30px);

        grid-template-columns:1fr;

    }

    .project{

        height:300px;

    }

    .overlay{

        opacity:1;

    }

    .contact-links{

        flex-direction:column;

        gap:15px;

    }

}

.single-project{

    width:min(1100px,90%);

    margin:auto;

    padding-top:150px;

}

.single-project h1{

    font-size:clamp(3rem,8vw,6rem);

    margin-top:10px;

}

.single-project p{

    margin-top:25px;

    color:#888;

    max-width:700px;

    line-height:1.8;

}

.gallery{

    margin-top:100px;

    display:flex;

    flex-direction:column;

    gap:30px;

}

.gallery img{

    width:100%;

    border-radius:30px;

}

.project{
    text-decoration: none;
    color: inherit;
}

.project h2{
    color: white;
}

.project span{
    color: #999;
}