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

/* Tailwind directives are handled via CDN, but here are custom styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #020617;
    /* bg-slate-950 */
    color: #f8fafc;
    /* text-slate-50 */
}

/* Kinetic Typography Animation */
.kinetic-text {
    background: linear-gradient(to right,
            #3b82f6,
            #8b5cf6,
            #ec4899,
            #3b82f6);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Language Switcher */
/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;

    /* Box Styles */
    background-color: rgba(15, 23, 42, 0.6);
    /* slate-900 with opacity */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    /* blue-500 border subtle */
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;

    /* Text Styles */
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: #f8fafc;
    text-decoration: none;

    /* Interaction */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lang-switcher:hover {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

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

/* =========================================
   Brand Assets Integration (Logo & Kinetic)
   ========================================= */

:root {
    --color-indigo: #4B0082;
    --color-cyan: #00FFFF;
}

/* Logo Styles */
.brand-logo-header {
    width: 48px;
    height: 48px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 5px rgba(75, 0, 130, 0.3));
    cursor: pointer;
}

.brand-logo-header:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

/* Kinetic Scroller Styles (Hero) */
.kinetic-mask {
    height: 1.25em;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    position: relative;
    /* Adjust alignment for large text */
    margin-bottom: -0.1em;
}

.kinetic-track {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

/* Animate on load or hover container */
.hero-container:hover .kinetic-track,
.hero-container .kinetic-track {
    /* Auto-scroll by default on load for impact */
    animation: scrollWords 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kinetic-word {
    height: 1.25em;
    display: flex;
    align-items: center;
    color: white;
    /* Fallback */
}

.word-highlight {
    background: linear-gradient(90deg, #4B0082, #00FFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.2));
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 0.15em;
    /* Thinner relative to font size */
    height: 1em;
    background-color: var(--color-cyan);
    margin-left: 0.1em;
    animation: blink 1s steps(2, start) infinite;
    vertical-align: baseline;
}

@keyframes scrollWords {

    0%,
    10% {
        transform: translateY(0);
    }

    15%,
    35% {
        transform: translateY(-1.25em);
    }

    40%,
    60% {
        transform: translateY(-2.5em);
    }

    65%,
    85% {
        transform: translateY(-3.75em);
    }

    90%,
    100% {
        transform: translateY(-5.0em);
    }

    /* Assumes 5 items in list for loop */
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================
   Sticky Header Styles
   ========================================= */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(2, 6, 23, 0.7);
    /* slate-950/70 */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    /* slate-800/50 */
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: #94a3b8;
    /* slate-400 */
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #f8fafc;
    /* white */
}

.nav-link.active {
    color: #f8fafc;
    font-weight: 600;
}

/* Hide original Language Switcher styles since we move it to header */
.lang-switcher {
    position: static;
    /* Reset absolute/fixed */
    margin: 0;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    /* Reuse previous visual styles if wanted, or simplify for header */
}