/* =========================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --accent: #47c596; 
    --stealth-gray: rgba(255, 255, 255, 0.05);
    --bg-dark: #08090a;
    --text-main: #f0f2f5;
    --text-muted: #94a3b8;
    
    /* TWEAK: Changed from cyan (#00f0ff) to Fiberlynk Green */
    --accent-cyan: #47c596; 
    
    /* TWEAK: Changed the RGB values to match the green (71, 197, 150) */
    --border-glow: rgba(71, 197, 150, 0.2); 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. BRAND & HEADER COMPONENTS
   ========================================= */
.brand-logo {
    height: 64px;
    width: auto;
    transition: all 0.5s ease;
}

.brand-logo:hover {
    filter: grayscale(0) brightness(1);
}

.eyebrow { 
    letter-spacing: 0.5em; 
    text-transform: uppercase; 
    font-size: 10px; 
    font-weight: 700; 
    color: var(--accent); 
}

/* Page Banner / Header */
.page-header {
    padding: 160px 24px 60px; 
    text-align: center;
    background: linear-gradient(180deg, #040506 0%, #08090a 100%);
}

.page-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    display: block;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================================
   3. TECH PERFORMANCE BLOCKS
   ========================================= */
.tech-block {
    position: relative;
    height: 85vh; 
    min-height: 650px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
    margin-bottom: 4px; 
    border-bottom: 2px solid rgba(0, 240, 255, 0.15);
}
/* FIX: Forces the very first section down so it never hides behind the fixed navbar */
.tech-block:first-of-type {
    padding-top: 60px !important;
}

.tech-block:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}

/* Background Media Layers */
.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* THE PARALLAX MAGIC */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    
    opacity: 0.75; 
    filter: grayscale(60%) contrast(110%);
    z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Effect */
.tech-block:hover .tech-bg {
    opacity: 0.85; 
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(8, 9, 10, 0.3) 0%, rgba(8, 9, 10, 0.95) 100%);
    z-index: 2;
}

/* Content Container */
.tech-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
    
    /* The Starting State (Invisible and pushed down 60px) */
    opacity: 0;
    transform: translateY(60px); 
    
    /* The smooth, high-end curve */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Animations (The Final Pop-Up State) */
.tech-block.visible .tech-content {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE BACKGROUND FIXES
   ========================================= */
@media (max-width: 768px) {
    .tech-bg {
        /* Disables the parallax on mobile to prevent the massive zoom bug */
        background-attachment: scroll; 
        
        /* Bumps up the base opacity so the image is more present */
        opacity: 0.9; 
    }
    
    .tech-overlay {
        /* Lightens the dark edges on small screens so they don't choke the image */
        background: radial-gradient(circle at center, rgba(8, 9, 10, 0.2) 0%, rgba(8, 9, 10, 0.85) 100%);
    }
}

/* =========================================
   4. TYPOGRAPHY & ICONOGRAPHY
   ========================================= */
.icon-badge {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid var(--border-glow);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    transition: all 0.4s ease;
}

.icon-badge i {
    font-size: 42px;
    color: var(--accent-cyan);
}

.tech-block:hover .icon-badge {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.block-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    display: block;
}

.block-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.block-subtitle {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.block-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 36px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Sub-Feature Indicators */
.sub-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sub-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.tech-block:hover .sub-icon {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
}

.sub-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

/* =========================================
   5. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .tech-block {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
    }
    .sub-features {
        gap: 20px;
    }
}

/* =========================================
   MOBILE BACKGROUND FIX (iOS Safari Bug)
   ========================================= */
@media (max-width: 768px) {
    .tech-bg {
        background-attachment: scroll !important; 
        
        /* TWEAK: Shifts the focal point higher up the image so heads don't get cut off */
        background-position: center 25% !important; 
        
        filter: brightness(0.4) !important; 
    }
} 