/* ==========================================================================
   1. FONT IMPORTS & DEFINITIONS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Open+Sans:wght@400;600&display=swap');

/* ==========================================================================
   2. CSS RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul {
    margin: 0;
}

ul {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

body {
    background-color: #151515;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ==========================================================================
   3. DESKTOP WRAPPER (For Mobile Fallback)
   ========================================================================== */

.desktop-only-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ==========================================================================
   4. SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    height: 140px;
    width: 100%;
    background-color: #171717;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 70%;
    height: 80px;
    margin: -140px auto 20px auto; 
    background-color: rgba(23, 23, 23, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0 0 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.nav-left .nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nav-left a:hover .nav-logo {
    transform: scale(1.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    transition: transform 0.2s ease;
}

.social-icon-link:hover {
    transform: scale(1.2);
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-interactive-box {
    width: 200px;
    height: 50px;
    border: 1px solid #343539;
    background-color: #171717;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, -2.0, 0.25, 2.0);
}

.nav-interactive-box:hover {
    transition: width 0.3s ease-out;
}

.nav-interactive-box:hover,
.nav-interactive-box.is-at-top {
    width: 360px;
}

.pointer-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-grow: 1;
    overflow: hidden;
}

.nav-link {
    color: #7F8188;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease-out 0.1s, transform 0.2s ease-out 0.1s;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-interactive-box:hover .nav-link,
.nav-interactive-box.is-at-top .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.circular-progress-container {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center; 
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg,
.progress-ring-fg {
    fill: transparent;
    stroke-width: 5px;
}

.progress-ring-bg {
    stroke: #343539;
}

.progress-ring-fg {
    stroke: #7F8188;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}


/* ==========================================================================
   5. SITE FOOTER
   ========================================================================== */

.site-footer {
    width: 98%;
    background-color: #232322;
    padding: 40px 0;
    border-radius: 12px 12px 0 0;
    margin-top: 48px;
}

.footer-content-wrapper {
    width: 60%;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
}

.footer-column {
    text-align: left;
}

.footer-column h3 {
    color: #9e9e9e8c;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #9E9E9E;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #FFFFFF;
}


/* ==========================================================================
   6. GRADUAL BLUR EFFECT
   ========================================================================== */

.gradual-blur-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: backdrop-filter 0.3s ease-out;
}

.blur-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}


/* ==========================================================================
   7. GLOBAL RESPONSIVE & MOBILE FALLBACK
   ========================================================================== */

/* --- Global Nav Tweaks for Smaller Desktops --- */
@media (max-width: 1200px) {
    .main-nav {
        width: 85%;
    }
}

/* --- Mobile & Tablet Fallback Screen --- */
.mobile-fallback {
    display: none; /* Hidden on desktop by default */
}

@media (max-width: 1024px) {
    
    /* Lock the body scroll on smaller devices */
    body {
        overflow: hidden;
    }

    /* Hide the desktop content and the blur effect */
    .desktop-only-content,
    .gradual-blur-container {
        display: none !important;
    }

    /* Show and style the fallback page */
    .mobile-fallback {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        height: 100vh;
        padding: 0;
        background-color: #151515;
        color: #fff;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
    }

    .fallback-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 80px;
        background-color: #171717;
        padding: 0 40px;
        flex-shrink: 0;
    }

    .fallback-logo {
        width: 32px;
        height: 32px;
        opacity: 0.9;
    }

    .fallback-socials {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .fallback-socials img {
        width: 24px;
        height: 24px;
        opacity: 0.9;
    }

    .fallback-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        position: relative;
        padding: 20px;
        margin-top: -80px; /* Offset the header height to truly center content */
    }

    .fallback-title {
        font-family: 'Open Sans', sans-serif;
        font-size: 32px;
        font-weight: 600;
        color: #d1d1d1;
        z-index: 1;
    }
    
    .fallback-subtitle {
        font-size: 14px;
        color: #969696;
        margin-top: 12px;
        max-width: 300px;
        line-height: 1.6;
        z-index: 1;
    }
    
    .fallback-background-vector {
        position: absolute;
        inset: 0;
        background-image: url('images/Homepage/Vector.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 0.1;
        width: 100%;
        height: 100%;
        transform: scale(1.5);
    }

    .fallback-footer {
        text-align: center;
        padding-bottom: 160px;
        z-index: 1;
        flex-shrink: 0;
    }

    .fallback-footer p {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.05em;
        color: #888;
    }
}