/* =========================================================
   GLOBAL SETTINGS
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f1115;
    color: #e5e7eb;
    overflow-x: hidden;
}


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

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

    padding: 16px 8%;

    background: rgba(15,17,21,0);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    z-index: 1000;

    transform: translate3d(0,0,0);
    backface-visibility: hidden;

    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent / Scrolled States */

.navbar.transparent {
    background: rgba(15,17,21,0);
}

.navbar.scrolled {
    background: rgba(15,17,21,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


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

.logo-wrapper {
    display: flex;
    align-items: center;
}

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

.logo-icon {
    height: 45px;
    width: auto;
}

.logo-text {
    height: auto;
    width: 180px;
    margin-left: -5px;
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.nav-links {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    font-size: 15px;
    transition: 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: #e1111a;
}

.nav-links a.active {
    color: #e1111a;
    font-weight: 600;
}


/* =========================================================
   NAV INDICATOR
   ========================================================= */

.nav-indicator {
    position: absolute;
    bottom: -10px;
    height: 2px;
    background: #e1111a;
    box-shadow: 0 0 8px #e1111a;
    transition:
        left 0.35s cubic-bezier(.16,1,.3,1),
        width 0.35s cubic-bezier(.16,1,.3,1);
}

@media (max-width: 768px) {
    .nav-indicator {
        bottom: 0px;
    }
}


/* =========================================================
   GENERIC UTILITIES
   ========================================================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 8%;
}

.center {
    text-align: center;
}

.overlay {
    position: absolute;
    inset: 0;
}


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

.footer {
    text-align: center;
    padding: 30px;
    background-color: #0b0d11;
    font-size: 14px;
    color: #9ca3af;
}


/* =========================================================
   GLOBAL BUTTON
   ========================================================= */

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #e1111a;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s ease;
}

.cta-button:hover {
    background: #c60f16;
}


/* =========================================================
   APPLE-STYLE REVEAL
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translate3d(0,50px,0);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}


/* =========================================================
   STAGGER CARD ANIMATION
   ========================================================= */

.grid .card {
    opacity: 0;
    transform: translate3d(0,40px,0);
    transition:
        opacity 0.8s cubic-bezier(.16,1,.3,1),
        transform 0.8s cubic-bezier(.16,1,.3,1);
}

.grid .card.visible {
    opacity: 1;
    transform: translate3d(0,0,0);
}

.grid .card:nth-child(1) { transition-delay: 0.06s; }
.grid .card:nth-child(2) { transition-delay: 0.12s; }
.grid .card:nth-child(3) { transition-delay: 0.18s; }
.grid .card:nth-child(4) { transition-delay: 0.24s; }


/* =========================================================
   CONTENT LINKS
   ========================================================= */

.page-section a,
.page-section a:visited,
.page-section a:hover,
.page-section a:active {
    color: #e1111a;
    text-decoration: none;
}

.page-section {
    padding: 100px 0;
}


/* =========================================================
   RESPONSIVE SYSTEM
   ========================================================= */

@media (max-width: 1024px) {

    .navbar {
        padding: 16px 5%;
    }

    .logo-text {
        width: 150px;
    }

    .nav-links a {
        margin-left: 18px;
        font-size: 14px;
    }

    .container {
        padding: 0 100px;
    }

    .footer {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        padding: 14px 0;
    }

    .logo-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 28px;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding: 10px 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        margin: 0;
        font-size: 15px;
        scroll-snap-align: center;
    }

    .container {
        padding: 60px 30px 0 30px;
    }
}

@media (max-width: 480px) {

    .logo-icon {
        height: 30px;
    }

    .logo-text {
        width: 110px;
    }

    .nav-links a {
        font-size: 13px;
    }
}


/* ========================================
   Lazy Background Fade In
======================================== */

.bg-lazy {
    background-color: #0f1115;
    opacity: 0;
    transform: scale(1.03);
    transition:
        opacity 0.8s ease,
        transform 1.2s ease;
}

.bg-lazy.loaded {
    opacity: 1;
    transform: scale(1);
}

.page-section.section-compact {
    padding: 40px 0 !important;
}