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

/* BASE */
body{
    font-family: 'Inter', sans-serif;
    background:#0a0a0a;
    color:#fff;
    overflow-x:hidden;
}

/* NAV */
nav{
    position:fixed;
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:30px 60px;
    z-index:1000;
    transition:.4s;
}
nav.scrolled{
    background:rgba(10,10,10,.85);
    backdrop-filter:blur(10px);
}
nav h1{
    font-size:12px;
    letter-spacing:3px;
}
nav ul{
    display:flex;
    gap:40px;
    list-style:none;
}
nav a{
    text-decoration:none;
    color:#fff;
    font-size:12px;
    letter-spacing:2px;
    position:relative;
}
nav a::after{
    content:"";
    position:absolute;
    bottom:-5px;
    left:0;
    width:0;
    height:1px;
    background:#fff;
    transition:.3s;
}
nav a:hover::after{width:100%}

/* PAGE TRANSITION */
body.fade-out{
    opacity:0;
    transition:.4s;
}

/* HERO */
.hero{
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.hero h2{
    font-size:48px;
    font-weight:300;
    letter-spacing:4px;
}
.hero p{
    color:#aaa;
    margin-top:10px;
}
.hero a{
    display:inline-block;
    margin-top:40px;
    padding:12px 30px;
    border:1px solid #fff;
    text-decoration:none;
    font-size:12px;
    letter-spacing:2px;
}

/* SECTION */
.section{
    padding:140px 60px;
    max-width:1200px;
    margin:auto;
}

/* GRID */
.grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}
.grid-item{
    position:relative;
    overflow:hidden;
}
.grid-item img{
    width:100%;
    height:420px;
    object-fit:cover;
    transition:.6s;
}
.grid-item:hover img{
    transform:scale(1.08);
}

/* HOVER LABEL */
.grid-item span{
    position:absolute;
    bottom:20px;
    left:20px;
    font-size:12px;
    letter-spacing:2px;
    opacity:0;
    transition:.3s;
}
.grid-item:hover span{opacity:1}

/* REVEAL */
.reveal{
    opacity:0;
    transform:translateY(40px);
}
.reveal.active{
    opacity:1;
    transform:translateY(0);
    transition:1s ease;
}

/* CTA */
.cta{
    text-align:center;
}

/* CURSOR */
.cursor{
    width:20px;
    height:20px;
    border:1px solid #fff;
    border-radius:50%;
    position:fixed;
    pointer-events:none;
    transform:translate(-50%,-50%);
    transition:.1s;
    z-index:2000;
}
/* PRELOADER */
#loader{
    position:fixed;
    width:100%;
    height:100vh;
    background:#0a0a0a;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:3000;
}
#loader h1{
    font-size:14px;
    letter-spacing:4px;
    animation:fadeIn 1.5s ease forwards;
}

/* OVERLAY TRANSITION */
.transition{
    position:fixed;
    width:100%;
    height:100%;
    background:#0a0a0a;
    top:0;
    left:0;
    z-index:2000;
    transform:translateY(100%);
    transition:0.8s ease;
}
.transition.active{
    transform:translateY(0);
}

/* SMOOTH SCROLL FEEL */
html{
    scroll-behavior:smooth;
}

/* CURSOR EXPAND */
.cursor.active{
    transform:translate(-50%,-50%) scale(2);
}

/* MAGNETIC BUTTON */
.magnetic{
    display:inline-block;
    transition:transform .2s ease;
}

/* PARALLAX IMAGE */
.parallax img{
    transition:transform 0.2s ease-out;
}

/* FADE */
@keyframes fadeIn{
    from{opacity:0}
    to{opacity:1}
}