/* ==========================================================================
   CINEMATIC MAINFRAME DESIGN SYSTEM & FOUNDATION
   ========================================================================== */

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

:root {
    /* Color Palette */
    --bg-primary: #050505;
    --bg-secondary: #09090B;
    --bg-tertiary: #111827;
    --bg-glass: rgba(9, 9, 11, 0.55);
    
    /* Accents & Holographic Nodes */
    --accent-cyan: #06B6D4;
    --accent-violet: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-purple: #A855F7;
    
    /* Gradients */
    --glow-violet: rgba(139, 92, 246, 0.08);
    --glow-cyan: rgba(6, 182, 212, 0.08);
    --glow-purple: rgba(168, 85, 247, 0.08);
    
    /* Text Hierarchy */
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-muted: #8E939E;
    --text-dark: #374151;
    
    /* Glassmorphism & Borders */
    --border-light: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(6, 182, 212, 0.2);
    
    /* Layer Depths (Spatial System) */
    --z-bg: 0;
    --z-canvas: 1;
    --z-grid: 2;
    --z-layer-1: 10;
    --z-layer-2: 20;
    --z-layer-3: 30;
    --z-hud: 1000;
    
    /* Layout & Spacing */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    --font-mono: 'Fira Code', Consolas, Monaco, monospace;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 18px;
    --max-width: 1400px;
    
    /* Asymmetrical Offset Spacings */
    --offset-y-sm: 2.5rem;
    --offset-y-md: 5rem;
    --offset-y-lg: 9rem;
    --offset-x-left: -4rem;
    --offset-x-right: 4rem;
    
    /* Extended Slower Spring Pacing (Awwwards Standard) */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Global mouse tracking refractions */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* --- Reset & Base Configurations --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: var(--bg-primary);
}

/* Selection State */
::selection {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
    transition: var(--transition-snappy);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Global Utilities & Scaffolding --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

section {
    padding: 10rem 0 6rem 0;
    position: relative;
    width: 100%;
    overflow: visible;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
}

/* Subtle Matrix scanline & noise overlays */
.mainframe-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.mainframe-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 64px 64px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.mainframe-beam {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.04;
    pointer-events: none;
    z-index: 9997;
    animation: crt-scanlines 12s linear infinite;
    will-change: transform;
}

/* Background Aurora Blobs (Slow Moving, GPU Bound) */
.ambient-aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
    will-change: transform;
    pointer-events: none;
}

.aurora-orb-violet {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-slow 35s infinite alternate ease-in-out;
}

.aurora-orb-cyan {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float-slower 45s infinite alternate ease-in-out;
}

.aurora-orb-purple {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    opacity: 0.08;
    animation: float-medium 40s infinite alternate ease-in-out;
}

/* Adaptive Ambient Lights that follow the cursor on body level */
.cursor-light-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%);
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
    will-change: transform;
    display: none; /* Activated in JS if mouse available */
}

/* ==========================================================================
   GHOST ATMOSPHERE TYPOGRAPHY & EDITORIAL LAYER SYSTEM
   ========================================================================== */

/* Giant faint background text — one per section, placed absolute */
.section-ghost-label {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 13vw, 15rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.022);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
    line-height: 1;
}

/* Outlined skeleton section index numbers (01, 02, 03...) */
.section-index-num {
    position: absolute;
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
}

/* Floating hero depth fragment cards */
.hero-fragment-card {
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-sm);
    padding: 0.9rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.65;
    position: absolute;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    min-width: 140px;
    animation: fade-in 0.8s ease forwards;
    opacity: 0;
}

/* Multi-speed parallax variables */
:root {
    --parallax-y-fast: 0px;
    --parallax-y-slow: 0px;
}

/* Hairline editorial decorative lines */
.editorial-hairline {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   CERTIFICATIONS SCATTER GRID
   ========================================================================== */
.certs-scatter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    padding: 3rem 0 4rem 0;
    align-items: start;
}

@media (max-width: 1100px) {
    .certs-scatter-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem 0;
    }
    .certs-scatter-grid .cert-card {
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .certs-scatter-grid {
        grid-template-columns: 1fr;
    }
}

