/* IT TechFusion Solutions - Master Design System
   Corporate Redesign: Deep Charcoal / Pure White / Brand Red
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Brand Core Colors */
  --primary: #D62828;              /* Brand Red */
  --primary-hover: #B91C1C;        /* Deep Red */
  --primary-glow: rgba(214, 40, 40, 0.35);
  --primary-subtle: rgba(214, 40, 40, 0.08);
  --accent-red: #D62828;
  --hover-red: #B91C1C;
  --accent-amber: #F59E0B;
  --accent-emerald: #10B981;
  --accent-cyan: #D62828;          /* Normalized to Brand Red accent */

  /* Midnight Navy Tones (Logo-matched #0D111C) */
  --dark-primary: #0D111C;         /* Exact Logo Midnight Navy */
  --dark-secondary: #141A29;       /* Complementary Elevated Navy */
  --dark-card: #141A29;            /* Complementary Navy Card Surface */
  --dark-border: #222D42;          /* Complementary Navy Border */
  --navy-950: #0D111C;
  --navy-900: #101524;
  --navy-850: #141A29;
  --navy-800: #1C2438;
  --navy-700: #26324D;
  --navy-border: #222D42;

  /* Surfaces & Backgrounds */
  --bg-main: #FFFFFF;              /* Pure White */
  --bg-subtle: #F7F7F8;            /* Soft White / Light Background */
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;         /* Light Grey Border */

  /* Typography Colors */
  --text-main: #343A40;            /* Dark Grey Body Text */
  --text-heading: #0D111C;         /* Logo-matched Midnight Navy Headings */
  --text-muted: #737780;           /* Muted Grey */
  --text-light: #FFFFFF;           /* Pure White on Dark */
  --text-dim: #D1D5DB;             /* Light Grey on Dark */

  /* Fonts & Elevations */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(13, 17, 28, 0.05);
  --shadow-md: 0 4px 18px rgba(13, 17, 28, 0.07);
  --shadow-lg: 0 12px 36px rgba(13, 17, 28, 0.12);
  --shadow-glow: 0 0 25px var(--primary-glow);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --header-height: 72px;
  --container-max: 1240px;
}

[data-theme="dark"] {
  --bg-main: var(--dark-primary);
  --bg-subtle: var(--dark-secondary);
  --bg-card: var(--dark-secondary);
  --border-color: var(--dark-border);
  --text-main: #F3F4F6;
  --text-heading: #FFFFFF;
  --text-muted: #9CA3AF;
  --primary-subtle: rgba(214, 40, 40, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
}

.hero-title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.section-title {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 40%, #E5E7EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout & Alternating Section Architecture */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.section-alt {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.section-dark {
  background-color: var(--dark-primary);
  background-image: radial-gradient(circle at 80% 20%, rgba(20, 26, 41, 0.8) 0%, var(--dark-primary) 70%);
  color: var(--text-light);
  border-bottom: 1px solid var(--dark-border);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark .section-title {
  color: #FFFFFF;
}

.section-dark .section-subtitle {
  color: var(--text-dim);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  background-color: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(214, 40, 40, 0.22);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-dark,
.section-dark .badge {
  background: rgba(214, 40, 40, 0.16);
  color: #F87171;
  border-color: rgba(214, 40, 40, 0.38);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(214, 40, 40, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--dark-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--dark-primary);
  border-color: var(--dark-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.section-dark .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.section-dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-outline {
  background: transparent;
  color: var(--dark-primary);
  border: 1.5px solid var(--dark-primary);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.section-dark .btn-outline {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.section-dark .btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.45rem 1.05rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   HEADER & NAVIGATION (LIGHT-COLORED DESIGN)
   Pure white surface, dark charcoal links, brand red accents & CTA
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(13, 17, 28, 0.04);
  color: var(--dark-primary);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Premium dark capsule for logo on light header */
.header .logo {
  background: var(--dark-primary);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--dark-secondary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header .logo:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(13, 17, 28, 0.18);
}

.site-logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.site-logo-emblem {
  height: 36px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.35);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--dark-primary);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header .nav-actions .btn-secondary {
  background: var(--bg-subtle);
  color: var(--dark-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.header .nav-actions .btn-secondary:hover {
  background: var(--dark-primary);
  color: #FFFFFF;
  border-color: var(--dark-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--dark-primary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

/* Mobile Nav Drawer */
@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    display: none;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(13, 17, 28, 0.12);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
    padding: 0.5rem 0;
    color: var(--dark-primary);
    border-bottom: 1px solid var(--bg-subtle);
  }

  .nav-link:hover, .nav-link.active {
    color: var(--primary);
  }
  
  .nav-actions .btn-primary {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION & QUANTUM CYBER-PHYSICAL FUSION ENGINE
   Deep Charcoal / Midnight Navy Foundation with Brand Red Accents
   ========================================================================== */
.hero-slider {
  position: relative;
  background: var(--dark-primary);
  color: #FFFFFF;
  overflow: hidden;
  min-height: 640px;
  border-bottom: 1px solid var(--dark-border);
}

/* Atmospheric Ambient Glow (Subtle Brand Red & Midnight Navy Depth) */
.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 74% 48%, rgba(214, 40, 40, 0.14) 0%, rgba(20, 26, 41, 0.5) 40%, transparent 70%),
    radial-gradient(circle at 18% 60%, rgba(20, 26, 41, 0.6) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 17, 28, 0.4) 0%, rgba(13, 17, 28, 0.95) 100%),
    var(--dark-primary);
  pointer-events: none;
  z-index: 0;
}

.hero-slides-wrapper {
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: none;
  position: relative;
  padding: 4.5rem 0 5rem;
  min-height: 640px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
  opacity: 1;
}

/* 2-Column Responsive Hero Grid */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Content Typography */
.hero-content {
  max-width: 660px;
}

.badge-hero-inspo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 1rem;
  border-radius: 9999px;
  background: rgba(20, 26, 41, 0.85);
  border: 1px solid rgba(214, 40, 40, 0.4);
  color: #F3F4F6;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary), 0 0 18px rgba(214, 40, 40, 0.85);
  display: inline-block;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 40%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-specialization {
  font-size: 1.22rem;
  font-weight: 700;
  color: #E2E8F0;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.highlight-cyan {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(214, 40, 40, 0.55);
  font-weight: 800;
}

.hero-lead {
  font-size: 1.08rem;
  color: #D1D5DB;
  margin: 0 0 2.2rem;
  line-height: 1.7;
  max-width: 580px;
}

/* Hero Buttons */
.hero-ctas {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 2.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(214, 40, 40, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(214, 40, 40, 0.65);
  color: #FFFFFF;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 2.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFFFFF;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* ==========================================================================
   HERO KINETIC MOTION DESIGN: QUANTUM CYBER-PHYSICAL FUSION ENGINE
   Bespoke, Original 3D Isometric Telemetry Console with Laser Conduits & HUD
   ========================================================================== */
.hero-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-slider-container {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 5rem;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-grid {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content-slider {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
}

.fusion-engine {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.engine-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 40, 40, 0.18) 0%, rgba(20, 26, 41, 0.55) 45%, transparent 72%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: engine-aura 6s ease-in-out infinite alternate;
}

@keyframes engine-aura {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.95; }
}

.engine-stage {
  position: relative;
  width: 540px;
  height: 420px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
  z-index: 2;
}

/* Background HUD Coordinate Grid */
.engine-hud-grid {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 26, 41, 0.4) 0%, rgba(13, 17, 28, 0.7) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  overflow: hidden;
}

.hud-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center center;
  opacity: 0.8;
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(214, 40, 40, 0.7);
  border-style: solid;
  pointer-events: none;
}
.hud-corner-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.hud-corner-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.hud-corner-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Laser Conduits SVG */
.engine-conduits-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conduit-path {
  stroke-dasharray: 6 5;
  animation: conduit-stream 1.6s linear infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

@keyframes conduit-stream {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}

/* Central Quantum Fusion Core */
.fusion-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 136px;
  height: 136px;
  border-radius: 30px;
  background: radial-gradient(circle at 35% 30%, #1C2438 0%, #141A29 45%, #0D111C 95%);
  border: 1.5px solid rgba(214, 40, 40, 0.5);
  box-shadow: 
    0 0 35px rgba(214, 40, 40, 0.4),
    0 12px 35px rgba(0, 0, 0, 0.85),
    inset 0 0 24px rgba(214, 40, 40, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: core-levitate 4.5s ease-in-out infinite alternate;
}

.fusion-core:hover {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: #EF4444;
  box-shadow: 
    0 0 50px rgba(214, 40, 40, 0.75),
    0 16px 45px rgba(0, 0, 0, 0.9),
    inset 0 0 30px rgba(214, 40, 40, 0.4);
}

.fusion-core.pulse-burst {
  animation: core-burst 0.75s ease-out;
}

@keyframes core-burst {
  0% { box-shadow: 0 0 35px rgba(214, 40, 40, 0.4); }
  50% { box-shadow: 0 0 70px rgba(214, 40, 40, 0.9), inset 0 0 35px rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 35px rgba(214, 40, 40, 0.4); }
}

/* Holographic Radar Scanner Beam */
.radar-scan-sweep {
  position: absolute;
  inset: 4px;
  border-radius: 26px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(214, 40, 40, 0.04) 300deg, rgba(214, 40, 40, 0.45) 360deg);
  pointer-events: none;
  animation: radar-rotation 3.4s linear infinite;
}

@keyframes radar-rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hex-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 34px;
  border: 1px dashed rgba(214, 40, 40, 0.3);
  pointer-events: none;
  animation: hex-pulse 3s ease-in-out infinite alternate;
}

@keyframes hex-pulse {
  0% { transform: scale(0.97); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

/* Emblem inside Core */
.core-emblem-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-emblem-img {
  width: 58px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 16px rgba(214, 40, 40, 0.6));
  transition: transform 0.3s ease;
}

.core-badge-tag {
  position: absolute;
  bottom: -22px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* 4 Telemetry Modules */
.hud-module {
  position: absolute;
  width: 172px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(20, 26, 41, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  z-index: 8;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.hud-module:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(214, 40, 40, 0.45), 0 12px 28px rgba(0, 0, 0, 0.7);
  z-index: 20;
}

.hud-module.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 24px rgba(214, 40, 40, 0.5), inset 0 0 12px rgba(214, 40, 40, 0.15);
  z-index: 15;
}

/* Module Layout Coordinates */
.mod-cyber {
  top: 18px;
  left: 18px;
  animation: float-hud-1 4.8s ease-in-out infinite alternate;
}

.mod-ai {
  top: 18px;
  right: 18px;
  animation: float-hud-2 5.2s ease-in-out infinite alternate;
}

.mod-devops {
  bottom: 18px;
  left: 18px;
  animation: float-hud-3 5s ease-in-out infinite alternate;
}

.mod-fullstack {
  bottom: 18px;
  right: 18px;
  animation: float-hud-4 4.6s ease-in-out infinite alternate;
}

@keyframes float-hud-1 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}
@keyframes float-hud-2 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-9px); }
}
@keyframes float-hud-3 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}
@keyframes float-hud-4 {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes core-levitate {
  0% { transform: translate(-50%, -50%) translateY(0); }
  100% { transform: translate(-50%, -50%) translateY(-6px); }
}

/* Module Internal UI */
.module-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.mod-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mod-icon-red {
  background: rgba(214, 40, 40, 0.18);
  color: #EF4444;
}

.mod-icon-cyan {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
}

.mod-icon-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #F59E0B;
}

.mod-icon-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
}

.mod-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mod-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #9CA3AF;
}

.mod-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mod-status-indicator {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.indicator-shield {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.indicator-ai {
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
}

.indicator-devops {
  background: #F59E0B;
  box-shadow: 0 0 6px #F59E0B;
}

.indicator-fs {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.t-label {
  color: #9CA3AF;
}

.t-val {
  font-weight: 700;
  color: #E5E7EB;
}

.t-secure { color: #10B981; }
.t-ai { color: #38BDF8; }
.t-uptime { color: #F59E0B; }
.t-latency { color: #10B981; }

.telemetry-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.telemetry-bar-fill {
  height: 100%;
  border-radius: 9999px;
}

.bar-cyber {
  width: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
}

.bar-fullstack {
  width: 94%;
  background: linear-gradient(90deg, #D62828, #EF4444);
}

/* Synapse Wave Equalizer */
.synapse-wave-wrap {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
  margin-bottom: 0.3rem;
}

.wave-bar {
  flex: 1;
  background: #38BDF8;
  border-radius: 2px;
  animation: wave-bounce 1.2s ease-in-out infinite alternate;
}
.w-1 { height: 40%; animation-delay: 0.1s; }
.w-2 { height: 85%; animation-delay: 0.3s; }
.w-3 { height: 60%; animation-delay: 0.2s; }
.w-4 { height: 100%; animation-delay: 0.4s; }
.w-5 { height: 50%; animation-delay: 0.15s; }

@keyframes wave-bounce {
  0% { transform: scaleY(0.4); opacity: 0.6; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Pipeline Progress */
.pipeline-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 12px;
  margin-bottom: 0.3rem;
}

.pipe-node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
}

.pipe-node.pulsing {
  animation: pipe-pulse 1s infinite alternate;
}

@keyframes pipe-pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 6px #F59E0B; }
}

.pipe-connector {
  flex: 1;
  height: 2px;
  background: rgba(245, 158, 11, 0.4);
}

.telemetry-sub {
  font-size: 0.62rem;
  color: #737780;
  letter-spacing: 0.02em;
}

/* Engine Command Ticker Bar */
.engine-hud-ticker {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.15rem;
  border-radius: 9999px;
  background: rgba(13, 17, 28, 0.9);
  border: 1px solid rgba(214, 40, 40, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #E5E7EB;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 5;
  max-width: 95%;
}

.ticker-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: beacon-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes beacon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.4; }
}

.ticker-label {
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.ticker-msg {
  color: #D1D5DB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Controls & Indicators */
.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  width: 36px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 26, 41, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.slider-nav-prev { left: 1.5rem; }
.slider-nav-next { right: 1.5rem; }

@media (max-width: 991px) {
  .hero-slider { min-height: auto; }
  .hero-slider-container { padding: 3.5rem 0 4rem; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero-content-slider {
    min-height: auto;
    margin: 0 auto;
    max-width: 600px;
  }
  .hero-slide {
    position: relative;
    inset: auto;
    display: none;
    transform: none;
    align-items: center;
  }
  .hero-slide.active {
    display: flex;
    align-items: center;
    transform: none;
  }
  .hero-title { font-size: clamp(2rem, 5.5vw, 2.75rem); }
  .hero-lead { margin-left: auto; margin-right: auto; max-width: 580px; }
  .hero-ctas { justify-content: center; }
  .hero-visual {
    margin-top: 1rem;
    width: 100%;
    min-height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }
  .fusion-engine { height: 420px; max-width: 500px; }
  .engine-stage { transform: scale(0.85); transform-origin: center center; }
  .slider-nav-btn { display: none; }
}

@media (max-width: 640px) {
  .hero-slider-container { padding: 2.5rem 0 3rem; }
  .hero-grid { gap: 1.5rem; }
  .hero-title { font-size: clamp(1.85rem, 7vw, 2.3rem); }
  .hero-specialization { font-size: 1rem; }
  .hero-lead { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.5rem; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .btn-hero-primary, .btn-hero-secondary {
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
  .hero-visual { margin-top: 0.5rem; }
  .fusion-engine { height: 350px; max-width: 100%; }
  .engine-stage { transform: scale(0.66); transform-origin: center center; }
  .engine-hud-ticker { font-size: 0.65rem; padding: 0.35rem 0.85rem; max-width: 96%; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-scan-sweep,
  .conduit-path,
  .hex-pulse-ring,
  .fusion-core,
  .hud-module,
  .wave-bar,
  .pipe-node.pulsing,
  .ticker-beacon,
  .engine-ambient-glow {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   CARDS & SERVICE SECTIONS (LIGHT & DARK MODES)
   ========================================================================== */

/* Light Section Cards (Default) */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(13, 17, 28, 0.08);
}

.card-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 16/9;
  background: var(--dark-secondary);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  color: var(--dark-primary);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Dark Section Cards (Graphite Surface, White Text, Red Accents) */
.section-dark .card {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  color: #FFFFFF;
}

.section-dark .card-title {
  color: #FFFFFF;
}

.section-dark .card-desc {
  color: #D1D5DB;
}

.section-dark .card-icon {
  background: rgba(214, 40, 40, 0.16);
  color: #F87171;
}

.section-dark .card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 40, 40, 0.22);
}

.section-dark .card .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.section-dark .card .btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2 { grid-template-columns: 1fr; }
}

/* Category Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--dark-primary);
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(214, 40, 40, 0.28);
}

/* Course Card */
.course-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 17, 28, 0.08);
  border-color: var(--primary);
}

.course-thumbnail {
  aspect-ratio: 16/9;
  position: relative;
  background: var(--dark-secondary);
}

.course-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(13, 17, 28, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.course-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--dark-primary);
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-actions {
  display: flex;
  gap: 0.75rem;
}

/* Leadership Profile (CEO Card) */
.ceo-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.ceo-avatar-wrap {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-primary) 100%);
  border: 2.5px solid var(--primary);
  box-shadow: 0 10px 30px rgba(214, 40, 40, 0.22);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.avatar-monogram {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #FFFFFF 0%, #E5E7EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ceo-info h3 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
  color: var(--dark-primary);
}

.ceo-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.ceo-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.85rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .ceo-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
  }
  .ceo-avatar-wrap {
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }
  .social-links {
    justify-content: center;
  }
}

/* Why Choose Us Points */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.why-check {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
}

/* Project Portfolio */
.project-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 17, 28, 0.08);
  border-color: var(--primary);
}

.project-thumb {
  aspect-ratio: 16/10;
  background: var(--dark-secondary);
  overflow: hidden;
  position: relative;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-body {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-size: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Dark Section Projects */
.section-dark .project-card {
  background: var(--dark-secondary);
  border-color: var(--dark-border);
  color: #FFFFFF;
}

.section-dark .project-card h3 {
  color: #FFFFFF;
}

.section-dark .project-card p {
  color: #D1D5DB;
}

.section-dark .project-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #D1D5DB;
}

.section-dark .project-card:hover {
  border-color: var(--primary);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(214, 40, 40, 0.22);
}

/* Testimonials */
.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.testimonial-stars {
  color: var(--accent-amber);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Contact & CTA Form */
.cta-box {
  background: var(--dark-secondary);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 4rem;
  border: 1px solid var(--dark-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(214, 40, 40, 0.16);
  color: #F87171;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Form Styling */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #E2E8F0;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  background-color: var(--dark-primary);
  color: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.28);
}

.form-control::placeholder {
  color: #64748B;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: none;
  font-size: 0.95rem;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

.form-feedback.error {
  display: block;
  background: rgba(214, 40, 40, 0.15);
  border: 1px solid rgba(214, 40, 40, 0.4);
  color: #FCA5A5;
}

@media (max-width: 991px) {
  .cta-box { padding: 2.5rem 1.5rem; }
  .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   FOOTER (MIDNIGHT NAVY #0D111C)
   White headings, light grey text, red accents
   ========================================================================== */
.footer {
  background: var(--dark-primary);
  color: #9CA3AF;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--dark-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 28, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: grid;
}

.modal-dialog {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 2.5rem;
  color: var(--text-main);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
