/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    /* Deep Ocean Tech Teal Spectrum */
    --deep-teal: #0D3D38;
    --core-teal: #14B8A6;
    --bright-teal: #5EEAD4;
    --white-teal: #CCFBF1;
    --bg-deep: #030B0A;
    --bg-surface: #0A1514;
    --bg-elevated: #0F1F1D;

    /* Semantic colors */
    --text-primary: #F0FDFA;
    --text-secondary: #99F6E4;
    --text-muted: #5EEAD4;
    --text-dim: #2DD4BF;
    --success: #34D399;
    --warning: #FBBF24;
    --error: #F87171;

    /* Glow effects */
    --glow-sm: 0 0 10px rgba(94, 234, 212, 0.3);
    --glow-md: 0 0 20px rgba(94, 234, 212, 0.4), 0 0 40px rgba(20, 184, 166, 0.2);
    --glow-lg: 0 0 30px rgba(94, 234, 212, 0.5), 0 0 60px rgba(20, 184, 166, 0.3), 0 0 90px rgba(13, 61, 56, 0.2);

    /* Fonts */
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease-premium: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    letter-spacing: -0.01em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== NOISE TEXTURE ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
}

/* ===== DOT GRID PATTERN ===== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(94, 234, 212, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* ===== AURORA GRADIENT MESH ===== */
.aurora-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    opacity: 0.15;
    filter: blur(100px);
    animation: aurora-drift 30s ease-in-out infinite;
}

.aurora-bg::before,
.aurora-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.aurora-bg::before {
    top: 20%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--core-teal) 0%, transparent 70%);
    animation: aurora-pulse-1 15s ease-in-out infinite;
}

.aurora-bg::after {
    top: 60%;
    right: 20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--bright-teal) 0%, transparent 70%);
    animation: aurora-pulse-2 20s ease-in-out infinite;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(94, 234, 212, 0.3);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 3rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.3;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 21, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 50px;
    padding: 0.25rem;
}

/* Hide duplicate language switchers if any */
.language-switcher~.language-switcher {
    display: none !important;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
}

.lang-btn:hover {
    color: var(--bright-teal);
}

.lang-btn.active {
    background: rgba(20, 184, 166, 0.2);
    color: var(--bright-teal);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}