/*
Theme Name: Convexify
Theme URI: https://example.com/convexify
Author: Jaime
Author URI: https://example.com
Description: A High-Tech, Space-Themed AI Agency Theme.
Version: 1.0.0
Text Domain: convexify
*/

:root {
  /* Visual Identity Colors */
  --color-bg: #050505; /* Deep Void Black */
  --color-surface: #0a0a0a; /* Slightly lighter for cards */
  --color-text-main: #e0e0e0; /* Off-white for readability */
  --color-text-muted: #a0a0a0;

    --color-primary: #00FFC2;     /* Green-Turquoise */
    --color-primary-glow: rgba(0, 255, 194, 0.6);

  --color-secondary: #7b2cbf; /* Nebula Purple */
  --color-secondary-glow: rgba(123, 44, 191, 0.6);

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 10px;
}

/* Reset & Basics */
html {
    /* Only zoom on desktop to prevent mobile viewport issues */
    @media (min-width: 992px) {
        zoom: 0.85;
    }
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: white;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: white;
  text-shadow: 0 0 8px var(--color-primary-glow);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.btn:hover {
  background: white;
  color: black;
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-width: 2px;
}

/* =========================================
   5. CTA Section
   ========================================= */
.cta-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(to top, rgba(0, 255, 194, 0.05), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-content {
    text-align: left; /* Left align as requested */
    max-width: 800px;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-desc {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    margin-left: 0; /* Align left */
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* Allow wrapping */
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        align-items: flex-start; /* Align left */
        gap: 1rem;
    }
}

.cta-divider {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.cta-email-link {
    color: var(--color-primary);
    font-size: 1.2rem; /* Larger email text */
    font-family: 'JetBrains Mono', monospace; /* Tech feel */
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all; /* Ensure long email doesn't overflow on mobile */
}

.cta-email-link:hover {
    color: white;
    text-shadow: 0 0 10px var(--color-primary-glow);
}

/* Header */
.site-header {
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
}

.site-title span {
  color: var(--color-primary);
}

.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

/* Mobile Toggle (Hidden by default) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* larger touch target */
}
.menu-toggle:focus {
    outline: none;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation when Active */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
}

.main-navigation a:hover {
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--color-primary-glow);
}

/* Tech Borders for Menu Items */
.main-navigation a::before,
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
    opacity: 0;
}

.main-navigation a::before {
    top: 0;
    left: 0;
    border-top: 1px solid var(--color-primary);
    border-left: 1px solid var(--color-primary);
}

.main-navigation a::after {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid var(--color-primary);
    border-right: 1px solid var(--color-primary);
}

.main-navigation a:hover::before,
.main-navigation a:hover::after {
    opacity: 1;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 10px rgba(0, 255, 194, 0.1);
}

/* =========================================
   1. Hero Section (Deep Space / Eclipse)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background is handled globally by .bg-starfield via header.php */
    z-index: 1;
    background: rgba(0, 0, 0, 0.4); /* Darken overlap on starfield for readability */
    padding-bottom: 2rem; /* Reduced bottom padding to bring Orbit closer */
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Global Starfield Background (Moved from Hero) */
.bg-starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Layer Particles ON TOP of Stars, but BEHIND content */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above stars/twinkling, inside .bg-starfield */
    background-color: transparent !important; /* Force transparency */
}
.stars {
    background: #000 url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: -2;
}
.twinkling {
    background: transparent url('http://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.5;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

/* Eclipse Visual */
.eclipse-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: -1;
    opacity: 0.8;
}

.eclipse-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: black;
    border-radius: 50%;
    box-shadow: 0 0 60px 10px rgba(0, 255, 194, 0.1); /* Subtle inner glow */
}

.eclipse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 302px; /* Just barely larger */
    height: 302px;
    border-radius: 50%;
    box-shadow: 
        0 0 20px 2px var(--color-primary), /* Solid inner ring */
        0 0 100px 20px rgba(0, 255, 194, 0.4), /* Outer Haze */
        0 0 200px 50px rgba(123, 44, 191, 0.2); /* Purple/Nebula distant glow */
    animation: pulse-eclipse 8s ease-in-out infinite;
}

@keyframes pulse-eclipse {
    0%, 100% { 
        box-shadow: 
        0 0 20px 2px var(--color-primary),
        0 0 100px 20px rgba(0, 255, 194, 0.4);
    }
    50% { 
        box-shadow: 
        0 0 25px 4px var(--color-primary),
        0 0 150px 40px rgba(0, 255, 194, 0.6);
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 50px; /* Slight offset to push button below eclipse center if needed */
}

.hero-title {
    font-size: 3.5rem; /* Reduced from 4.5rem */
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    margin-top: 8rem; /* Increased from 4rem to 8rem to clear eclipse */
    position: relative;
    z-index: 20; /* Ensure clickable over eclipse */
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Responsive Overrides for Hero */
@media (max-width: 768px) {
    .eclipse-container {
        width: 100%;
        height: 100%;
    }
    .eclipse-core, .eclipse-ring {
        width: 200px;
        height: 200px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* =========================================
   2. Orbit Section (Social Proof)
   ========================================= */
.orbit-section {
    padding: 1rem 0 4rem 0; /* Significantly reduced top padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important; /* Force global starfield visibility */
    position: relative;
    z-index: 10;
}

.orbit-label {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem; /* Increased from 0.8rem */
    text-transform: uppercase;
    letter-spacing: 3px; /* Increased spacing */
    margin-bottom: 3rem;
    opacity: 0.9;
}

.orbit-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.orbit-logo {
    opacity: 0.8;
    height: 60px; /* Reduced from 80px */
    width: auto;
    max-width: 200px; /* Reduced from 300px */
    /* Invert colors to make black logos white, and boost brightness */
    filter: invert(1) grayscale(1) brightness(1.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-logo:hover {
    opacity: 1;
    /* Keep white/inverted but maybe add a subtle glow */
    filter: invert(1) grayscale(0) brightness(1.5) drop-shadow(0 0 5px rgba(255,255,255,0.2));
    transform: scale(1.05);
}

.orbit-logo svg,
.orbit-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================
   3. Core Quadrant (Services Grid)
   ========================================= */
.core-quadrant-section {
    padding: 6rem 0;
    position: relative;
    /* Subtle texture background */
    background: radial-gradient(circle at 20% 20%, rgba(30, 30, 40, 0.5) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 50, 40, 0.2) 0%, transparent 50%);
}

.section-title {
    font-size: 4rem; /* Increased from 3rem */
    margin-bottom: 1rem; /* Reduced bottom margin to bring subtitle closer */
    background: linear-gradient(90deg, #fff, var(--color-text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.5rem; /* Larger font for subtitle */
    color: var(--color-primary);
    max-width: 800px;
    margin: 0 auto 5rem; /* Large bottom margin to separate from grid */
    font-family: var(--font-body);
    font-weight: 300;
}

.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.quadrant-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

/* Responsive Grid */
@media (max-width: 991px) {
    .quadrant-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quadrant-grid,
    .quadrant-grid.three-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.lens-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 3rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.lens-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 194, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 255, 194, 0.05);
}

/* Card Visuals (SVGs) */
.card-visual {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.card-visual svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(0, 255, 194, 0.6));
    transition: all 0.3s ease;
}

/* Specific Icon Animations */
.lens-card:hover .icon-orbit {
    animation: spin 4s linear infinite;
}
.lens-card:hover .icon-synthesis circle {
    animation: pulse-node 1.5s infinite alternate;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes pulse-node {
    from { r: 4; opacity: 0.6; }
    to { r: 5; opacity: 1; filter: drop-shadow(0 0 5px var(--color-primary)); }
}

/* Typography Inside Cards */
.lens-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.lens-card .subtitle {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lens-card .desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Grid */
@media (max-width: 768px) {
    .quadrant-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Cards (Glassmorphism + Tech Borders) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  position: relative; /* For Pseudo-elements */
  backdrop-filter: blur(var(--glass-blur));
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden; /* Keep tech borders inside if needed, or remove if they hang out */
}

/* Tech Borders - The "HUD" Effect */
.glass-card::before,
.glass-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* Top-Left and Bottom-Right Corners */
.glass-card::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--color-primary);
    border-left: 2px solid var(--color-primary);
    border-top-left-radius: 12px; /* Match card radius */
}

.glass-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    border-bottom-right-radius: 12px; /* Match card radius */
}

/* Hover Effect for Tech Borders - They expand */
.glass-card:hover::before,
.glass-card:hover::after {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 194, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* =========================================
   4. Data-Horizon (Mission Control)
   ========================================= */
.data-horizon-section {
   padding: 8rem 0;
   background: #001A15; /* Deep nebular background */
   background-image: 
       radial-gradient(circle at 50% 50%, rgba(0, 255, 194, 0.03) 0%, transparent 60%),
       radial-gradient(circle at 80% 20%, rgba(0, 50, 40, 0.2) 0%, transparent 40%);
   position: relative;
   overflow: hidden;
}

.mission-control-board {
   display: grid;
   grid-template-columns: 250px 1fr 250px;
   grid-template-rows: auto auto;
   gap: 1.5rem;
   margin: 4rem auto;
   max-width: 1100px;
   padding: 2rem;
   background: rgba(255, 255, 255, 0.01);
   border: 1px solid rgba(0, 255, 194, 0.1);
   border-radius: 16px;
   backdrop-filter: blur(10px);
   box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@media (max-width: 991px) {
    .data-horizon-section {
        padding: 4rem 0; /* Tighten up section padding */
    }

    .mission-control-board {
        grid-template-columns: 1fr; /* Stack vertically */
        grid-template-rows: auto;
        gap: 2rem;
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
        word-break: break-word;
    }

    /* Reset Grid Placement to allow natural HTML order (Log -> Engine -> KPIs) */
    .module-terminal {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 1; /* Force Log First */
    }
    .module-core {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 2; /* Force Prism Second */
    }
    .module-kpi, .module-lumina {
        grid-column: auto !important;
        grid-row: auto !important;
        order: 3; /* Force Cards Last */
    }

    /* Reduce Prism Size */
    .module-core {
        min-height: 250px; /* Reduced from 400px */
    }
    .prism-system {
        max-height: 250px;
    }
}

/* Common Module Styles */
.control-module {
   background: rgba(0, 26, 21, 0.6);
   border: 1px solid rgba(0, 255, 194, 0.15); /* Wire-thin lines */
   border-radius: 8px;
   padding: 1.5rem;
   position: relative;
   overflow: hidden;
   transition: border-color 0.3s ease;
}

.control-module:hover {
   border-color: rgba(0, 255, 194, 0.4);
   box-shadow: 0 0 15px rgba(0, 255, 194, 0.05);
}

.module-header {
   font-family: 'Orbitron', sans-serif;
   font-size: 0.8rem;
   color: var(--color-primary);
   text-transform: uppercase;
   letter-spacing: 1px;
   margin-bottom: 1rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

/* 1. Terminal Feed */
.module-terminal {
   grid-column: 1 / 2;
   grid-row: 1 / 3;
   font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.status-dot {
   width: 8px;
   height: 8px;
   background: var(--color-primary);
   border-radius: 50%;
   box-shadow: 0 0 5px var(--color-primary);
   animation: pulse-node 2s infinite;
}

.terminal-feed {
   list-style: none;
   padding: 0;
   margin: 0;
   font-size: 0.85rem;
   color: #88c0b5;
   line-height: 1.6;
}

.terminal-feed li {
   margin-bottom: 0.5rem;
   opacity: 0.8;
   border-left: 2px solid transparent;
   padding-left: 0.5rem;
}
.terminal-feed li:first-child {
   color: var(--color-primary);
   opacity: 1;
   border-left-color: var(--color-primary);
}

/* 2. The Refraction of Logic (Prism) */
.module-core {
   grid-column: 2 / 3;
   grid-row: 1 / 3;
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 400px;
   background: radial-gradient(circle at center, rgba(0, 10, 10, 0.8) 0%, transparent 80%); /* Darker for contrast */
   padding: 0;
   overflow: visible; /* Let beam output connect visually */
}

.prism-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prism-label {
    position: absolute;
    top: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.prism-system {
    width: 100%;
    height: auto;
    max-height: 400px;
}

/* Chaos Filaments Animation */
.filament {
    stroke-dasharray: 5, 5;
    animation: flowFilament 20s linear infinite;
}
.drift-1 { animation-duration: 25s; }
.drift-2 { animation-duration: 30s; animation-direction: reverse; }
.drift-3 { animation-duration: 22s; }

@keyframes flowFilament {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 100; }
}

/* Prism Animation */
.prism-shape {
    transition: all 0.5s ease;
}
.module-core:hover .prism-shape {
    stroke: rgba(0, 255, 194, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 255, 194, 0.3));
}

/* Beam Animation */
.beam-core {
    filter: drop-shadow(0 0 8px #00FFC2);
}

/* 3. Operational Velocity (Card A) */
.module-kpi {
   grid-column: 3 / 4;
   grid-row: 1 / 2;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.kpi-metric-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.2rem;
}

.kpi-value-mono {
    font-family: 'JetBrains Mono', monospace; /* Monospaced as requested */
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.kpi-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-left: 0.5rem;
}

.kpi-label-mono {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.kpi-sparkline {
    width: 100%;
    height: 60px;
    margin-top: auto;
}

/* 4. Human Capital Shift (Card B) */
.module-lumina {
   grid-column: 3 / 4;
   grid-row: 2 / 3;
   display: flex;
   flex-direction: column;
   padding-bottom: 1.5rem;
}

.shift-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-top: 1rem;
}

.shift-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.shift-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shift-stat:last-child {
    align-items: flex-end;
}

.shift-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.shift-value.text-primary { color: var(--color-primary); text-shadow: 0 0 10px rgba(0, 255, 194, 0.4); }
.shift-value.text-muted { color: var(--color-text-muted); font-size: 1.5rem; }

.shift-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: white;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

.shift-divider {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.shift-bar-container {
    display: flex;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
}

.shift-bar-strategic {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 255, 194, 0.6);
}

.shift-bar-admin {
    background: #444;
}

.shift-caption {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
}

/* Storytelling Caption */
.horizon-caption {
   color: var(--color-text-muted);
   font-size: 1.5rem; /* Increased from 1.1rem */
   max-width: 900px;
   margin: 4rem auto 0;
   line-height: 1.6;
}

/* Animations */
@keyframes floatGlobe {
   0%, 100% { transform: translateY(0); }
   50% { transform: translateY(-10px); }
}
@keyframes rotateGlobe {
   from { transform: rotate(0deg); }
   to { transform: rotate(360deg); }
}
@keyframes spinReverse {
   from { transform: rotate(360deg); }
   to { transform: rotate(0deg); }
}

/* Responsive Dashboard */
@media (max-width: 991px) {
   .mission-control-board {
       grid-template-columns: 1fr;
       grid-template-rows: auto;
   }
   .module-terminal, .module-core, .module-kpi, .module-lumina {
       grid-column: 1 / -1;
       grid-row: auto;
   }
   .module-core {
       min-height: 300px;
       order: -1; /* Globe first on mobile */
   }
}

/* =========================================
   Responsive Styles
   ========================================= */

@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Header & Nav */
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        border-bottom: 1px solid var(--glass-border);
        z-index: -1; /* Behind header initially */
    }

    .main-navigation.toggled {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1rem;
    }

    /* Cards */
    .card-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
}
