html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Pure black background */
    color: #F9FAFB;
}

/* Floating Navbar Style */
.floating-nav {
    left: auto;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}

.site-nav-links {
    gap: clamp(0.9rem, 1.7vw, 2rem);
}

.mobile-nav-logo {
    display: block;
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.desktop-nav-logo {
    display: block;
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    color: #D1D5DB;
}

.nav-link:hover {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1E40AF; /* Deep Blue Accent */
    transition: width 0.3s ease;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #FFFFFF;
    font-weight: 600;
}

/* #particles-js {
    width: 100%;
    height: 100%;
    background-color: #000000;
} */

/* Corrected Typing Animation Style */
#typing-effect.typing {
    border-right: .15em solid #1E40AF;
    animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #1E40AF; }
}

.font-slimmer {
    font-weight: 500;
}

/* Glass effect for TEXT cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 64, 175, 0.6); /* Default border is deep blue */
    border-radius: 2rem; 
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2); /* Hover border is subtle grey */
    transform: translateY(-5px);
}

/* Glass effect for IMAGE cards */
.image-glass-effect {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Default border is subtle grey */
    border-radius: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.image-glass-effect img {
    transition: transform 0.4s ease;
}

.image-glass-effect:hover img {
    transform: scale(1.05);
}

.secondary-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-title-hover {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1E40AF;
    transition: width 0.3s ease;
}

.section-title-hover:hover::after {
    width: 60%;
}

.careers-section-heading {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.scroller {
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller-inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 30s linear infinite;
}

.scroller-inner {
    display: flex;
    gap: 2rem;
}

.scroller-inner span {
    font-size: 1.8rem;
    font-weight: 900;
    color: #6B7280;
    transition: color 0.3s ease;
}

.scroller-inner span:hover {
    color: #FFFFFF;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

.career-card {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.career-card .apply-button {
    margin-top: auto;
    align-self: flex-start;
}

#application-modal {
    align-items: flex-start;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

#application-modal > div {
    max-height: calc(100dvh - 2rem);
    margin-top: 0;
    margin-bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* AOS starts elements transparent. On mobile, rapid scrolling can skip its
   visibility update, leaving otherwise valid sections looking blank. */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 767px) {
    #mobile-menu {
        top: 6rem !important;
        background: rgba(3, 7, 18, 0.96) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    }

    #application-modal > div {
        border-radius: 1.25rem;
        padding: 1.25rem;
    }
}
