/* ==========================================
   CSS VARIABLES
========================================== */

:root{
    --fire:#ff5a00;
    --white:#fff;
    --white-04:rgba(255,255,255,.04);
    --white-08:rgba(255,255,255,.08);
    --white-15:rgba(255,255,255,.15);
    --white-40:rgba(255,255,255,.40);
}

/* ==========================================
   RESET
========================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat',sans-serif;
    background:#151515;
    color:#fff;
    overflow-x:hidden;
}

/* ==========================================
   HEADER
========================================== */

#header{
    background:transparent;
    position:fixed;
    top:0;
    left:0;

    width:100%;

    padding:20px 70px;

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

    z-index:999;

    transition:.4s ease;
}

#header.hide{
    transform:translateY(-120%);
    opacity:0;
}

/* ==========================================
   LOGO
========================================== */

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.logo h3{
    font-size:1.4rem;
    font-weight:800;
    letter-spacing:2px;
    color:#fff;
}

.logo span{
    font-size:.75rem;
    color:rgba(255,255,255,.75);
}

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

nav{
    display:flex;
    gap:45px;
}

nav a{
    text-decoration:none;
    color:#fff;

    font-size:.9rem;
    font-weight:600;

    letter-spacing:1px;

    position:relative;

    transition:.3s;
}

nav a:hover{
    color:#ff5a00;
}

nav a.active{
    color:#ff5a00;
}

nav a.active::after{
    content:'';

    position:absolute;

    left:0;
    bottom:-10px;

    width:100%;
    height:2px;

    background:#ff5a00;
}

/* ==========================================
   HEADER ACTIONS
========================================== */

.header-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.search-btn,
.menu-btn{
    border:none;
    outline:none;
    cursor:pointer;

    color:#fff;

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

    backdrop-filter:blur(10px);

    transition:.3s;
}

.search-btn{
    width:50px;
    height:50px;
    border-radius:50%;
}

.menu-btn{
    padding:15px 20px;
    border-radius:50px;

    display:flex;
    gap:10px;
    align-items:center;
}

.search-btn:hover,
.menu-btn:hover{
    background:#ff5a00;
}

/* ==========================================
   SEARCH OVERLAY
========================================== */

.search-overlay{
    position:fixed;

    inset:0;

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

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

    opacity:0;
    visibility:hidden;

    transition:.4s;

    z-index:9999;
}

.search-overlay.active{
    opacity:1;
    visibility:visible;
}

.search-box{
    width:800px;
    max-width:90%;

    position:relative;

    display:flex;
    gap:15px;
}

.search-box input{
    flex:1;

    height:70px;

    border:none;
    outline:none;

    background:#111;

    color:#fff;

    padding:0 25px;

    font-size:1.1rem;

    border-radius:12px;
}

.search-submit{
    width:150px;

    border:none;

    cursor:pointer;

    border-radius:12px;

    background:#ff5a00;

    color:#fff;

    font-weight:700;

    transition:.3s;
}

.search-submit:hover{
    opacity:.85;
}

.close-search{
    position:absolute;

    right:0;
    top:-60px;

    width:45px;
    height:45px;

    border:none;

    cursor:pointer;

    border-radius:50%;

    color:#fff;

    background:#ff5a00;
}

/* ==========================================
   MOBILE MENU OVERLAY
========================================== */

.mobile-menu{
    position:fixed;
    inset:0;
    z-index:9999;

    display:flex;

    opacity:0;
    pointer-events:none;

    transition:.5s ease;
}

.mobile-menu.active{
    opacity:1;
    pointer-events:auto;
}

.menu-left{
    flex:1;
    background:transparent;
    backdrop-filter:none;
}

.menu-right{
    width:520px;
    height:100vh;

    background:#151515;

    padding:80px 70px;

    position:relative;

    border-left:1px solid rgba(255,255,255,.08);

    transform:translateX(100%);
    transition:transform .75s cubic-bezier(.77,0,.175,1);
}

.mobile-menu.active .menu-right{
    transform:translateX(0);
}

.close-menu{
    position:absolute;

    left:-32px;
    top:50%;

    transform:translateY(-50%);

    width:64px;
    height:64px;

    border:2px solid rgba(255,255,255,.15);
    border-radius:50%;

    background:#151515;

    color:#fff;

    font-size:24px;

    transition:.35s ease;
    cursor:pointer;
}

.close-menu:hover{
    border-color:#ff5a00;
    color:#ff5a00;

    transform:translateY(-50%) rotate(90deg);
}

/* ==========================================
   PAGE MOVEMENT (menu open effect)
========================================== */

.page-content{
    position:relative;
    min-height:100vh;
    background:#000;

    transform-origin:left center;

    transition:
        transform .8s cubic-bezier(.77,0,.175,1),
        border-radius .8s cubic-bezier(.77,0,.175,1);

    z-index:100;
}

.page-content.menu-open{
    transform:
        perspective(1800px)
        translateX(-18%)
        scale(.85);

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 40px 120px rgba(0,0,0,.45);
}

/* ==========================================
   MENU SCROLL + SECTIONS
========================================== */

.menu-scroll{
    height:100%;
    overflow-y:auto;

    padding-right:10px;
}

.menu-section{
    margin-bottom:28px;
}

.menu-section h2{
    font-size:1.8rem;
    font-weight:800;

    color:#fff;

    margin-bottom:22px;

    letter-spacing:-1px;
}

.menu-item{
    display:flex;
    gap:16px;

    margin-bottom:24px;

    cursor:pointer;

    transition:.3s ease;
}

.menu-item:hover{
    transform:translateX(8px);
}

.menu-item i{
    width:24px;
    color:#fff;
    font-size:1rem;
    margin-top:5px;
    transition:.3s ease;
}

.menu-item h3{
    color:#fff;
    font-size:1.15rem;
    font-weight:600;
    margin-bottom:4px;
    transition:.3s ease;
}

.menu-item p{
    color:rgba(255,255,255,.65);
    font-size:.85rem;
    line-height:1.5;
}

.menu-item:hover h3{
    color:#ff5a00;
}

.menu-link{
    display:flex;
    align-items:center;

    gap:14px;

    padding:12px 0;

    cursor:pointer;

    transition:.3s ease;
}

.menu-link i{
    width:22px;
    color:#fff;
    font-size:.9rem;
    transition:.3s ease;
}

.menu-link span{
    color:#fff;
    font-size:1rem;
    font-weight:500;
    transition:.3s ease;
}

.menu-link:hover{
    transform:translateX(8px);
}

.menu-link:hover span{
    color:#ff5a00;
}

.menu-link.active{
    color:#fff;
}

.menu-section a{
    display:block;
    color:#fff;
    text-decoration:none;
    font-size:1.1rem;
    font-weight:500;
    margin-bottom:16px;
    transition:.3s ease;
}

.menu-section a:visited{
    color:#fff;
}

.menu-section a:hover{
    color:#ff5a00;
    transform:translateX(8px);
}

.menu-card{
    margin-top:40px;
    padding-top:30px;
    border-top:1px solid rgba(255,255,255,.08);
}

.menu-card p{
    color:rgba(255,255,255,.7);
    line-height:1.8;
    margin-bottom:20px;
}

.menu-btn-primary{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s ease;
}

.menu-btn-primary:hover{
    color:#ff5a00;
    transform:translateX(8px);
}

.menu-scroll::-webkit-scrollbar{
    width:4px;
}

.menu-scroll::-webkit-scrollbar-track{
    background:transparent;
}

.menu-scroll::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.35);
    border-radius:50px;
}

.menu-scroll::-webkit-scrollbar-thumb:hover{
    background:#fff;
    box-shadow:
        0 0 10px rgba(255,255,255,.9),
        0 0 20px rgba(255,255,255,.4);
}

/* ==========================================
   GLASS UTILITY
========================================== */

.glass{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.08);
}

/* ==========================================
   WILL-CHANGE HELPERS
========================================== */

.hero-item{
    will-change:transform,opacity;
}

.parallax{
    will-change:transform;
}

/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-track{
    background:#111;
}

::-webkit-scrollbar-thumb{
    background:#ff5a00;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#ff7b33;
}

/* ==========================================
   RESPONSIVE — shared
========================================== */

@media(max-width:991px){

    header{
        padding:20px 25px;
    }

    nav{
        display:none;
    }

    .menu-right{
        width:100vw;
        padding:70px 30px 40px;
    }

    .close-menu{
        left:auto;
        right:20px;
        top:20px;
        transform:none;
    }

    .close-menu:hover{
        transform:rotate(90deg);
    }

}

@media(max-width:768px){

    .search-box{
        flex-direction:column;
        max-width:calc(100% - 40px);
    }

    .search-submit{
        width:100%;
        height:60px;
    }

}

@media(max-width:480px){

    header{
        padding:16px 20px;
    }

    .logo h3{
        font-size:1.1rem;
    }

    .logo img{
        width:44px;
        height:44px;
    }

    .menu-right{
        width:100vw;
        padding:60px 22px 36px;
    }

    .menu-section h2{
        font-size:1.6rem;
        margin-bottom:16px;
    }

    .menu-card{
        margin-top:24px;
        padding-top:22px;
    }

}
