/* Modern Clean Tech Styles for EZ Internet */
:root {
  --bg-dark: #020617;
  --bg-card: #0f172a;
  --accent-primary: #00e1ff; /* Cyber Neon Blue */
  --accent-secondary: #3b82f6; /* Deep Electric Blue */
  --text-main: #e2e8f0;
  --text-muted: #64748b;
  --success: #00ff9d;
  --radius: 12px;
  --container: 1200px;
  --font-main: 'Poppins', sans-serif;
  --nav-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(to right, #00e1ff 0%, #3b82f6 100%); /* Cyber Neon Gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 225, 255, 0.3);
}

/* Animated Shine Effect for Headline */
@keyframes shine-wave {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.headline-animate {
  /* Base gradient is white/slate with a shining band passing through */
  background: linear-gradient(
    to right, 
    #e2e8f0 20%, 
    #fff 40%, 
    #00e1ff 50%, 
    #fff 60%, 
    #e2e8f0 80%
  );
  background-size: 200% auto;
  color: #000; /* Fallback */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-wave 3s linear infinite;
  text-shadow: 0 0 30px rgba(0, 225, 255, 0.2);
}

/* Specific overwrite for the S to be Red but still partake in clip if possible, 
   or just distinct color. Since background-clip covers text fill, we can't easily 
   mix solid colors with the gradient unless the gradient INCLUDES the red. 
   
   Better approach for mixed colors + shine: Use a mask or distinct spans 
   with their own shines synchronized, or a complex gradient.
   
   Simplest effective solution matching user request:
   Make 'S' red-ish in the gradient structure or span.
   
   If I want 'S' to be red, I can make a span for S that has a RED based shine,
   and the rest has a BLUE/WHITE based shine. */

.s-red {
  background: linear-gradient(
    to right, 
    #ef4444 20%, 
    #ffadad 50%, 
    #ef4444 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-wave 3s linear infinite;
  display: inline-block;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.z-blue {
  background: linear-gradient(
    to right, 
    #3b82f6 20%, 
    #93c5fd 50%, 
    #3b82f6 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-wave 3s linear infinite;
  display: inline-block;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.85); /* Darker cyber glass */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 225, 255, 0.1); /* Subtle neon border */
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 225, 255, 0.15); /* Blue glow on scroll */
}

.topbar {
  background: rgba(0, 5, 20, 0.6);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  gap: 1rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  gap: 0.5rem;
}

.social {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.social svg {
  fill: currentColor;
  transition: transform 0.2s;
}

.header-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav a:hover, .nav a.active {
  color: var(--text-main);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

.nav .cta {
  background: var(--accent-primary);
  color: var(--bg-dark); /* Dark text for contrast */
  padding: 0.6rem 1.25rem;
  border-radius: 99px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.4); /* Neon glow */
}

.nav .cta:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.nav .cta::after { 
  display: none; /* No underline for button */
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Background & Pulse Animations */
@keyframes bg-pulse {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

@keyframes float-tech {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
  /* Tech Grid Background */
  background: 
    linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9)),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: cover, 40px 40px, 40px 40px;
  animation: bg-pulse 20s infinite alternate;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.headline {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: var(--accent-primary);
  color: var(--bg-dark); /* Dark text on bright button */
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.4);
  font-weight: 700;
}

.btn.primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(0, 225, 255, 0.2); /* Subtle neon border */
}

.btn.ghost:hover {
  background: rgba(0, 225, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.2);
}

.stats {
  display: flex;
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stats li strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-secondary);
}

.stats li span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Device Illustration */
.hero-media {
  display: flex;
  justify-content: center;
}

.device-card {
  position: relative;
  border-radius: 20px;
  max-width: 480px; /* Constrain for mobile */
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 225, 255, 0.15); /* Stronger neon glow */
  background: var(--bg-card);
  border: 1px solid rgba(0, 225, 255, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
  animation: float-tech 6s ease-in-out infinite;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cyber Illustration Component */
.cyber-illustration {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

.cyber-globe {
  position: relative;
  width: 200px;
  height: 200px;
  perspective: 800px;
  transform-style: preserve-3d;
}

.c-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px var(--accent-primary);
  opacity: 0.8;
  animation: core-pulse 2s infinite alternate;
}

@keyframes core-pulse {
  0% { box-shadow: 0 0 10px var(--accent-primary); opacity: 0.6; }
  100% { box-shadow: 0 0 40px var(--accent-primary); opacity: 1; }
}

.c-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(0, 225, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

.r1 { animation: rotate-r1 10s linear infinite; border-width: 2px; border-style: dashed; }
.r2 { width: 140%; height: 140%; top: -20%; left: -20%; border-color: rgba(59, 130, 246, 0.4); animation: rotate-r2 15s linear infinite reverse; }
.r3 { width: 70%; height: 70%; top: 15%; left: 15%; border: 1px dotted var(--accent-primary); animation: rotate-r3 8s linear infinite; }

@keyframes rotate-r1 { 0% { transform: rotateX(60deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateZ(360deg); } }
@keyframes rotate-r2 { 0% { transform: rotateY(60deg) rotateZ(0deg); } 100% { transform: rotateY(60deg) rotateZ(360deg); } }
@keyframes rotate-r3 { 0% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(0deg); } 100% { transform: rotateX(-45deg) rotateY(45deg) rotateZ(360deg); } }

/* Scanline Effect */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-primary), transparent);
  animation: scan 3s ease-in-out infinite;
  opacity: 0.5;
  box-shadow: 0 0 10px var(--accent-primary);
}

@keyframes scan {
  0% { top: 10%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.device-card:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.device-card img {
  width: 100%;
  display: block;
  opacity: 0.9;
}

.device-card .device-terminal {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 225, 255, 0.2);
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  z-index: 10;
}

.dt-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.dt-line:last-child { margin-bottom: 0; }

.dt-key { color: var(--text-muted); }
.dt-val { color: var(--success); }

/* Common Sections */
.section {
  padding: 6rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.center { text-align: center; }

/* About */
.about-text h2 {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.image-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.image-card img {
  width: 100%;
  transition: transform 0.5s;
}

.image-card:hover img {
  transform: scale(1.05);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border-color: var(--accent-primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 225, 255, 0.1); /* Neon Cyan tint */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.15); /* Soft glow */
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tech Specs */
.tech-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.spec {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 12px;
}

.spec-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.spec-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.spec-fill {
  background: var(--accent-secondary);
  height: 100%;
  width: 0;
  transition: width 1s ease-out;
}

/* Topology */
.topology-wrap {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.topo-svg {
  width: 100%;
  height: 300px;
}

.topo-link { stroke: rgba(255,255,255,0.1); stroke-width: 2; }
.node-core { fill: var(--accent-primary); }
.node-edge { fill: var(--bg-dark); stroke: var(--accent-secondary); stroke-width: 2; }

/* Team */
.team {
  background: rgba(255, 255, 255, 0.02);
}

.team-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 1px solid rgba(0, 225, 255, 0.2);
}

.team-photo img {
  width: 100%;
  object-fit: cover;
}


.team-list li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}

.team-list span { color: var(--text-muted); text-align: right; }

@media (max-width: 480px) {
  .team-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .team-list span {
    text-align: left;
    font-size: 0.9em;
  }
}



/* Mission */
.mission {
  padding: 8rem 0;
  position: relative;
  background: var(--bg-dark); /* Fallback */
  overflow: hidden;
}

/* Remove old overlay */
.mission .overlay {
  display: none;
}

/* Add a subtle modern glow effect instead of image */
.mission::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.mission::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 225, 255, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.mission-inner {
  position: relative;
  z-index: 10;
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr; /* Give more space to details */
  gap: 6rem;
  align-items: start;
}

/* Left Column Styling */
.purpose-text {
  position: sticky;
  top: 100px; /* Sticky scroll effect for title */
}

.purpose-text h2 {
  font-size: 3.5rem; /* Larger, bolder title */
  line-height: 1.1;
  color: var(--accent-secondary); /* Electric Blue */
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: -1px;
  background: linear-gradient(to right, #3b82f6, #00e1ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purpose-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
  opacity: 0.9;
}

/* =========================================
   MODERN SECTIONS UPGRADE
   ========================================= */

/* --- SHARED UTILITIES --- */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 225, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 225, 255, 0.2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.reveal {
  /* Simple placeholder for scroll animations if JS is added later */
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .arrow, .service-link:hover .arrow {
  transform: translateX(4px);
}

/* --- ABOUT MODERN --- */
.about-modern {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
}

.grid-2-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-features {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.f-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-row strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.feature-row p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* About Visuals */
.about-visual {
  position: relative;
}

.image-wrapper-modern {
  position: relative;
  border-radius: 24px;
  overflow: visible; /* Allow floating badges */
  z-index: 2;
}

.main-img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.floating-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: float-badge 4s ease-in-out infinite;
}

.floating-badge.top-right {
  top: -20px;
  right: -20px;
  border-color: var(--accent-primary);
}

.floating-badge.bottom-left {
  bottom: -30px;
  left: -30px;
  border-color: var(--success);
  animation-delay: 2s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fb-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.fb-text {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-primary);
  filter: blur(80px);
  opacity: 0.15;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* --- SERVICES MODERN --- */
.services-modern {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-dark), #060b1f);
}

.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.service-card-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card-glass:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.04);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card-glass:hover .card-glow {
  opacity: 1;
}

.service-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card-glass:hover .service-img {
  transform: scale(1.05);
}

.service-icon-overlay {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 2;
}

.service-content {
  padding: 2rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- FOOTER MODERN --- */
.site-footer-modern {
  background: #02040a;
  position: relative;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wave {
  position: absolute;
  top: -55px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  width: 100%;
  height: 60px;
  fill: #02040a; /* Matches footer bg */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 1.5rem;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-icon:hover {
  background: var(--accent-primary);
  color: #000;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fc-icon {
  font-size: 1.1rem;
}

.footer-contact-list a {
  color: var(--text-muted);
}
.footer-contact-list a:hover {
  color: #fff;
}

.footer-newsletter-form {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.25rem;
  margin-top: 1rem;
}

.footer-newsletter-form input {
  background: none;
  border: none;
  color: #fff;
  padding: 0.75rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.footer-newsletter-form button {
  background: var(--accent-primary);
  border: none;
  color: #000;
  border-radius: 6px;
  width: 40px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.footer-newsletter-form button:hover {
  background: var(--accent-secondary);
  color: #fff;
}

.secure-badge {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom-modern {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.legal-links a:hover {
  color: #fff;
}

.sep {
  opacity: 0.3;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .grid-2-modern {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1; /* Image first on mobile */
    max-width: 500px;
    margin: 0 auto;
  }

  .floating-badge {
    padding: 0.75rem 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-modern {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* Right Column Styling */
.purpose-details h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 1rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.purpose-details h3::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-primary);
}

/* First h3 shouldn't have top margin */
.purpose-details h3:first-child {
  margin-top: 0;
}

.purpose-details p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.why-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.why-list li {
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  color: var(--text-main);
}

.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary); /* Neon cyan check */
  font-weight: bold;
  font-size: 1.2rem;
}

.why-list .muted {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}


/* Contact Section Styling */
.contact-section {
  position: relative;
  background: radial-gradient(circle at top right, rgba(0, 225, 255, 0.05), transparent 40%);
  padding: 6rem 0;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-header h2 {
  font-size: 3rem;
  margin: 1rem 0;
}

.contact-form-card {
  background: rgba(14, 18, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Floating Inputs */
.input-group {
  position: relative;
  margin-bottom: 0.5rem; /* Spacing handled by grid gap primarily, but needed for single rows */
}

.input-group.full {
  grid-column: span 2;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  appearance: none; /* Remove default arrow to style commonly */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

/* Force dark styling for select dropdowns - Correct Selector */
.input-wrapper select, 
.modern-form select {
    background-color: #0b0f19; /* Solid dark background */
    color: #fff;
    color-scheme: dark; /* Tells browser to use dark system UI */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

/* Specific styling for options to fix white-on-white issue */
.input-wrapper select option,
.modern-form select option {
    background-color: #0b0f19 !important;
    color: #ffffff !important;
}

.input-group textarea {
  resize: vertical;
  min-height: 120px;
}

.input-group label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: transparent;
  padding: 0 0.25rem;
}

/* Float label when focused or has value (using placeholder trick) */
.input-group input:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:focus,
.input-group textarea:not(:placeholder-shown),
.input-group select:focus,
.input-group select:valid {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-primary);
  outline: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label,
.input-group select ~ label {
  top: -0.7rem;
  left: 1rem;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: #0b0f19; /* Match card bg to hide line */
}

/* Location Section Styling */
.location-section {
  background: #020617; /* Darker distinct bg */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Info smaller, map bigger */
  gap: 4rem;
  align-items: start;
}

.info-column h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.ic-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ic-content label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ic-link {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.ic-link:hover {
  color: var(--accent-primary);
}

.link-small {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  margin-top: 0.25rem;
}

/* Map Frame */
.map-frame {
  position: relative;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) invert(92%) contrast(83%); /* Dark mde map fix */
  opacity: 0.8;
  transition: opacity 0.3s;
}

.map-frame:hover iframe {
  opacity: 1;
  filter: grayscale(0%) invert(0%); /* Full color on hover */
}

.map-overlay-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(14, 18, 30, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  pointer-events: none;
}

.map-overlay-badge .stat-big {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.map-overlay-badge .stat-small {
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 1px;
}

@media (max-width: 960px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .map-frame {
    height: 350px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .input-group.full {
    grid-column: 1;
  }
  
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
}


/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--accent-secondary); }

/* Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */
.hidden { display: none; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem; /* Increased gap */
    text-align: center;
  }
  
  .purpose-text {
    position: static; /* Disable sticky on mobile */
    margin-bottom: 2rem;
  }
  
  .purpose-text h2 {
    font-size: 2.5rem; /* Smaller for tablet/mobile */
    margin-bottom: 1rem;
    justify-content: center;
    background: linear-gradient(to bottom, #3b82f6, #00e1ff); /* Vertical gradient looks better centered */
    -webkit-background-clip: text;
    background-clip: text;
  }
  
  .purpose-details h3 {
    justify-content: center; /* Center align headings */
    margin-top: 2.5rem;
  }
  
  .purpose-details h3::before { display: none; } /* Remove side dash on center align */
  
  .why-list {
    text-align: left; /* Keep list left aligned for readability */
    max-width: 500px;
    margin: 1.5rem auto 0;
  }

  .headline { font-size: 2.5rem; }
  
  /* Center align content in hero for mobile */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sub { margin-left: auto; margin-right: auto; }
  
  .hero-ctas { justify-content: center; }
  
  .tech-badges { justify-content: center; }
  
  .stats { justify-content: center; }

  /* Topbar adjustments for mobile */
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .topbar-left, .topbar-right {
    justify-content: center;
  }

  .nav { display: none; } /* Mobile menu handling via JS */
  .nav-toggle { display: block; color: white; font-size: 1.5rem; }
  
  .services-grid { grid-template-columns: 1fr; }
  .tech-specs { grid-template-columns: 1fr; }
  
  /* Logo adjustment */
  .logo { font-size: 1rem; }
  .brand-logo { height: 36px; }
}

@media (max-width: 480px) {
  .topbar { display: none; } /* Hide topbar on very small screens to save space */
  
  .headline {
    font-size: 1.75rem; /* Smaller for mobile to prevent bad wraps */
    line-height: 1.2;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  .sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .hero { 
    padding-top: 5rem; 
    padding-bottom: 3rem; 
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 1rem; /* Space between buttons */
  }
  
  /* Ensure spacing works even if gap is unsupported */
  .hero-ctas .btn + .btn {
    margin-top: 0; /* Clear margin if flex gap works, or rely on gap */
  }

  .btn {
    width: 100%;
    padding: 1rem; /* Larger touch target */
    font-size: 1rem;
  }

  /* Specific fix for tech badges on mobile */
  .tech-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    display: flex; /* Ensure flex is active */
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
    width: auto; /* Let content dictate width */
    flex: 0 0 auto; /* Don't grow or shrink */
  }
  
  /* Fix terminal overflow */
  .terminal {
    font-size: 0.7rem; 
    padding: 0.75rem;
    margin: 2rem auto 0;
    width: 90%; 
    max-width: 100%;
    overflow-x: hidden; 
    text-align: left; 
    box-sizing: border-box;
    min-height: 3rem; /* Adjusted for mobile font size */
  }

  /* Compact Service Cards */
  .service-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    margin-bottom: 1.5rem;
  }
  
  /* Ensure card fits */
  .device-card {
    min-height: 320px;
    transform: none !important; /* Disable 3D tilt on mobile for clarity */
    animation: none;
    margin-top: 2rem;
  }
}

/* Progress & Toast */
.progress-wrap { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; }
.progress-bar { height: 100%; background: var(--accent-secondary); width: 0; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transform: translateY(100px);
  transition: transform 0.3s;
  z-index: 200;
}
.toast.show { transform: translateY(0); }

/* Mobile Menu & Burger */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 90;
  pointer-events: none;
}

body.nav-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
}

/* Burger Icon */
.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 101; /* Above menu */
}

.burger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  position: relative;
  transition: background 0.2s;
}

.burger::before, .burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  transition: transform 0.3s, top 0.3s;
}

.burger::before { top: -8px; }
.burger::after { top: 8px; }

/* Burger Animation State */
.nav-toggle.open .burger { background: transparent; }
.nav-toggle.open .burger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.open .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 961px) {
  .mobile-menu { display: none; }
  .nav-toggle { display: none; }
}

/* Tech Badges & Terminal */
.tech-badges {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.terminal {
  width: 100%;
}

.badge {
  background: rgba(0, 225, 255, 0.1);
  color: var(--accent-primary); /* Use primary neon */
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(0, 225, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.2);
}

.terminal {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.6); /* Slightly more opaque for contrast */
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  color: var(--success);
  border-left: 3px solid var(--accent-primary); /* Neon accent */
  font-size: 0.9rem;
  box-shadow: 0 0 15px rgba(0, 225, 255, 0.1);
  min-height: 3.8rem; /* Fixed height to prevent layout shift during typing */
  display: flex;
  align-items: center;
}



/* Compact Grid for Team/About with Image */
.grid-2-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .grid-2-compact {
    grid-template-columns: 1fr;
  }
}



/* =========================================
   ENHANCED TEAM SECTION
   ========================================= */
.team-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0f172a);
    overflow: hidden;
}

/* Background Accents */
.team-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

/* Header */
.team-section .section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.team-section .headline-animate {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.team-section .s-red {
    color: #ef4444; /* Red accent for the 'S' */
    -webkit-text-fill-color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* Team Layout */
.team-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Group Photo */
.team-group-photo {
    display: flex;
    justify-content: center;
    width: 100%;
}

.photo-frame {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 100%;
}

.photo-frame img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.photo-frame:hover img {
    transform: scale(1.02);
}

.corner-accents::before,
.corner-accents::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.corner-accents::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-accents::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Team Grid - Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.15);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.card-header {
    margin-bottom: 1.5rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.team-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0.5rem 0 0;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* =========================================
   ENHANCED CONTACT SECTION (SPLIT)
   ========================================= */
.contact-split {
    padding: 6rem 0;
    background: linear-gradient(to top, var(--bg-dark), #0f172a);
    position: relative;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact General */
.contact-header-left {
    margin-bottom: 2rem;
}

.contact-header-left h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-header-left p {
    font-size: 1.1rem;
    max-width: 500px;
}

/* Left Column: Form */
.modern-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper.full {
    margin-bottom: 1.5rem;
}

.input-wrapper label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

.form-actions button {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.form-actions .arrow {
    transition: transform 0.3s ease;
}

.form-actions button:hover .arrow {
    transform: translateX(5px);
}

/* Right Column: Info */
.info-card-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.info-card-modern h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-list {
    margin: 2.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-item .details {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.contact-item .val {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-item a.val:hover {
    color: var(--accent-primary);
}

.map-placeholder iframe {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 960px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
    }
}


/* ---------------------------------------------------- */
/* NEW ENHANCED SECTIONS (Team & Contact Split) */
/* ---------------------------------------------------- */

/* --- Enhanced Team Section --- */
.team-showcase {
    position: relative;
    padding: 2rem 0;
}

.team-hero {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.team-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Tech Team Grid Layout */
.tech-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Tech Card Design */
.tech-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 225, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.15);
    border-color: rgba(0, 225, 255, 0.4);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

/* Card Header & Roles */
.card-header-tech {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.role-chip {
    background: rgba(0, 225, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 225, 255, 0.2);
}

.tech-card h3 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    color: #fff;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Scan Line Animation Element */
.scan-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover .scan-line {
    opacity: 1;
}

/* --- Separated Contact Sections --- */

/* Section 1: Form (Get in Touch) */
.contact-form-section {
    padding: 5rem 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
}

.form-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.form-wrapper-glass {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modern-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-form .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-form label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: inherit;
    transition: all 0.2s;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 225, 255, 0.1);
    background: rgba(0, 225, 255, 0.02);
}

/* Section 2: Contact Info */
.contact-info-section {
    padding: 4rem 0 6rem;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.contact-card-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.contact-card-glass:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
}

.icon-glow {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.3));
}

.contact-card-glass h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-card-glass p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link-highlight {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.link-highlight:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: grayscale(100%) invert(92%) hue-rotate(180deg) brightness(0.8) contrast(1.2); /* Dark Map Look */
    transition: filter 0.3s;
}

.map-container:hover {
    filter: grayscale(0%) invert(0%); /* Full color on hover */
}

/* Responsive Adjustments for New Sections */
@media (max-width: 960px) {
    .modern-form .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-wrapper-glass {
        padding: 1.5rem;
    }
}


/* --- Updated Contact Layout (Left: Contacts, Right: Map) --- */

.contact-content-wrapper {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 3rem;
}

/* Desktop View: Side by Side */
@media (min-width: 992px) {
    .contact-content-wrapper {
        grid-template-columns: 1fr 1.5fr; /* Contacts take less space than map */
        align-items: stretch; /* Stretch to same height */
    }
    
    .contact-cards-grid {
        display: flex; /* Stack vertically */
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 0; /* Reset previous margin */
        height: 100%;
        justify-content: center;
    }
    
    .map-container {
        height: 100%;
        min-height: 500px;
    }
}

/* Enhanced Contact Card Style */
.contact-card-glass {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left; /* Reset center alignment */
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.6); /* Darker glass */
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 225, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-card-glass .icon-glow {
    font-size: 2rem;
    margin-bottom: 0; /* Reset margin */
    background: rgba(0, 225, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 225, 255, 0.2);
    flex-shrink: 0;
}

.contact-card-glass .card-content {
    flex: 1;
}

.contact-card-glass h4 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 1.2rem;
}

.contact-card-glass p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Map enhancement */
.map-container iframe {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(1.2); /* Custom dark map style */
}

.map-container:hover iframe {
    filter: none; /* Show real colors on hover */
    transition: filter 0.5s ease;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .contact-cards-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        display: grid; 
    }
    
    .contact-card-glass {
        flex-direction: row; /* Keep icon on left for mobile too, looks better */
        text-align: left;
    }
}


/* Contact Card Hover Effects (Matching Team Section) */
.contact-card-glass {
    position: relative; /* Ensure absolute positioning works */
    overflow: hidden;   /* Contain scan line and effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.contact-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 225, 255, 0.15);
    border-color: rgba(0, 225, 255, 0.4);
}

/* Top Gradient Line */
.contact-card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.contact-card-glass:hover::before {
    opacity: 1;
}

/* Scan Line Effect (using ::after to avoid HTML changes) */
.contact-card-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card-glass:hover::after {
    opacity: 1;
}


/* --- Modern Services Section --- */
.services-modern {
    padding: 6rem 0;
    position: relative;
    /* Subtle tech grid background behind services */
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9)),
        linear-gradient(0deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

/* Service Card Glass Style */
.service-card-glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card-glass:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 225, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 225, 255, 0.1);
}

/* Glowing background blob via pseudo-element */
.service-card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translate(0, 0); /* Center for now, could animate */
}

.service-card-glass:hover::before {
    opacity: 1;
}

/* Card Icon Box */
.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 225, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 225, 255, 0.1);
    transition: all 0.3s;
}

.service-card-glass:hover .service-icon-wrapper {
    background: rgba(0, 225, 255, 0.15);
    border-color: var(--accent-primary);
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.2);
}

.icon-inner {
    font-size: 2.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 0.8rem;
    text-decoration: underline;
}

/* --- Status Dashboard (New Tech Specs) --- */
.status-dashboard {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    /* 'Scanner' border effect top */
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.dashboard-header h4 {
    color: var(--success); /* Green for system status */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-item {
    text-align: left;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.5rem;
}

.metric-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--success));
    border-radius: 99px;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

/* Mobile Responsiveness for Services */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .status-dashboard {
        padding: 1.5rem;
    }
}


/* --- Enhanced Service Card with Images --- */

/* Reset padding on the card to allow full-bleed image */
.service-card-glass {
    padding: 0 !important; /* Override previous padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-glass:hover .service-img {
    transform: scale(1.1);
}

/* Overlay gradient on image for text readability if needed, or just cool effect */
.service-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(15, 23, 42, 0.8));
    pointer-events: none;
}

/* Floating Icon Badge */
.service-icon-overlay {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--bg-card); /* Dark background matching card */
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-glass:hover .service-icon-overlay {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    background: var(--accent-primary);
    color: #000; /* Contrast icon color on hover */
    box-shadow: 0 0 20px var(--accent-primary);
}

/* Content Padding Adjustment because Card padding is gone */
.service-content {
    padding: 2rem 2rem 2.5rem; /* Top padding accounts for the floating icon overlap if needed, but icon is absolute */
    position: relative;
    z-index: 1;
}

.service-content h3 {
    margin-top: 0.5rem; /* Space from image */
}


/* Fix for Icon Clipping/Z-Index Issue */
.service-image-container {
    overflow: visible; /* Allow icon to stick out */
}

/* Re-apply overflow hidden to a wrapper for the image zoom effect */
.service-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 20px; /* Match card radius */
    border-top-right-radius: 20px;
}

/* Ensure the icon is on top of everything */
.service-icon-overlay {
    z-index: 10;
}


/* Adjust Icon Hover Style - Reduced Opacity/Brightness */
.service-card-glass:hover .service-icon-overlay {
    background: rgba(0, 225, 255, 0.15); /* Low opacity fill instead of solid bright */
    color: var(--accent-primary); /* Keep icon effectively bright/colored but not black */
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.2); /* Softer glow */
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.1) rotate(5deg); /* Keep animation */
}



.hero-modern {
    padding: 8rem 0; /* Reduced top padding to center content better vertically like the image */
    position: relative;
    overflow: hidden;
    /* Deep, rich cyber-navy background */
    background: radial-gradient(circle at 20% 30%, #0a1128 0%, #020617 70%);
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 225, 255, 0.05);
}

/* Background Canvas */
#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Dynamic Background Grid */
/* .hero-bg-grid { ... Removed ... } */

/* Multiple Ambient Glow Blobs */
.hero-glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: pulse-blob 10s ease-in-out infinite alternate;
}

/* Blob 1: Top Right (Cyan) */
.hero-glow-blob:nth-of-type(1) {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.2), transparent 70%);
}

/* Blob 2: Bottom Left (Blue/Purple) */
.hero-glow-blob::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%; /* Offset relative to parent */
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    filter: blur(80px);
}


@keyframes pulse-blob {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 0.3; }
}

.hero-grid-modern {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal width columns like the image */
    gap: 4rem;
    align-items: center; /* Vertically center aligned */
    width: 100%;
}

/* Hero Content Styling */
.hero-content-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Explicitly left align everything */
    justify-content: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 225, 255, 0.3);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    gap: 0.75rem;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary); /* Stronger glow */
    animation: blink-fast 2s infinite;
}

@keyframes blink-fast { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.4; transform: scale(0.8); } 
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem); /* Responsive giant text */
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Deep shadow */
}

.hero-title br {
    display: block;
    margin-bottom: 0.5rem;
}

/* Force "Cable Solutions" to be the gradient blue line */
.hero-title .text-gradient {
    display: inline-block; /* Ensure proper gradient rendering */
    font-weight: 800;
    background: linear-gradient(to right, #00e1ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 225, 255, 0.4); /* Stronger glow */
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #94a3b8; /* Slate-400 */
    margin-bottom: 3rem;
    max-width: 580px;
    padding-left: 0;
    border-left: none; /* Removed border to match image */
}

/* Specific styling for the underlined part in sub */
.typewriter-text {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-primary);
    text-decoration: none;
    display: inline; /* Keep inline flow */
    border-right: none; /* Remove caret */
    animation: none; /* Remove typewriter legacy anim */
}

/* Enhanced Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%; /* Ensure full width for flex alignment */
    justify-content: flex-start; /* Explicitly left align buttons */
}

.hero-actions .btn {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    min-width: 160px;
    border-radius: 12px; /* Smooth rounded rect, not pill */
}

/* "Contact Us" Button Style */
.btn.primary {
    background: var(--accent-primary); /* Cyan */
    color: #000; /* Black text */
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 225, 255, 0.4);
    border: none;
}

.btn.primary:hover {
    background: #50eaff;
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 225, 255, 0.6);
}

.secondary.glass-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.secondary.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Trust Badges - More distinct */
.hero-trust-badges {
    display: flex;
    gap: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    width: 100%;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 22px;
    height: 22px;
    background: #059669; /* Darker green circle bg */
    border-radius: 4px; /* Rounded square usage in some modern UIs, or keep circle */
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.check-icon::before { content: '✓'; font-weight: 800;}


/* --- Hero Visual: HUD / Dashboard --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end; /* Push to right */
    perspective: 1200px;
}

.glass-dashboard-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(24px); /* Strong glass */
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Highlight top edge */
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.7), /* Deep shadow */
        0 0 0 1px rgba(0, 225, 255, 0.05) inset; /* Inner subtle glow line */
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.4s ease-out;
}

/* Hover Effect: Face the user */
/* We don't want it to face fully flat, just reduce the angle */
.hero-visual:hover .glass-dashboard-card {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
    border-color: rgba(0, 225, 255, 0.2);
    box-shadow: 
        0 60px 120px -20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 225, 255, 0.1);
}

.floating-anim {
    animation: float-hero 8s ease-in-out infinite;
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0) rotateY(-10deg) rotateX(5deg); }
    50% { transform: translateY(-30px) rotateY(-6deg) rotateX(2deg); }
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #22c55e; }

.wifi-icon {
    width: 24px;
    height: 24px;
    position: relative;
    /* Create a CSS wifi icon or use svg background */
    background: radial-gradient(circle at bottom center, transparent 30%, var(--accent-primary) 35%, transparent 40%);
    background-size: 100% 100%;
    opacity: 0.8;
}
.wifi-icon::before {
    content: '';
    position: absolute;
    bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--accent-primary); border-radius: 50%;
}
.wifi-icon::after {
    content: 'SIGNAL';
    position: absolute;
    font-size: 8px;
    bottom: -10px;
    right: 0;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

/* Speed Gauge Wrapper - Needs structure to look good */
.speed-gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
    position: relative;
}

.speed-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.1) inset;
    position: relative;
    animation: spin-load 2s ease-out forwards; /* Initial load anim */
}

@keyframes spin-load {
    0% { transform: rotate(-180deg); opacity: 0; }
    100% { transform: rotate(0deg); opacity: 1; }
}

.speed-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.speed-number small {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.25rem;
    text-transform: uppercase;
}

/* Decorative visual elements */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: var(--accent-secondary);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.2; transform: scale(0.9); }
    100% { opacity: 0.35; transform: scale(1.1); }
}

/* Tablet / Mobile Adjustments */
@media (max-width: 992px) {
    .hero-modern {
        padding: 8rem 0 4rem;
        /* Center text on tablet/mobile */
        display: block; /* Stack grid */
        text-align: center;
    }

    .hero-grid-modern {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-content-modern {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-sub {
        border-left: none;
        padding-left: 0;
    }

    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        justify-content: center;
    }
}
  

.wifi-icon { font-size: 1.2rem; }

/* Speed Gauge */
.speed-gauge-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(-45deg);
    box-shadow: 0 0 30px rgba(0, 225, 255, 0.1);
}

.speed-circle {
    transform: rotate(45deg); /* Correct text rotation */
    text-align: center;
}

.speed-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.speed-number small {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.speed-label {
    font-size: 0.8rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.dash-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
}

.d-stat { text-align: center; }
.d-stat small { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px;}
.d-stat strong { display: block; font-size: 1rem; color: #fff; }
.green-text { color: var(--success) !important; text-shadow: 0 0 10px rgba(0, 255, 157, 0.3); }

/* Decorative Circles */
.dec-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.c1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    opacity: 0.2;
    bottom: -50px;
    right: -50px;
    filter: blur(50px);
}

/* Mobile Adjustments */
@media (max-width: 960px) {
    .hero-grid-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions, .hero-trust-badges {
        justify-content: center;
    }
    
    .hero-title { font-size: 2.5rem; }
    
    .glass-dashboard-card { margin: 0 auto; max-width: 100%; }
}


/* --- Modern Topology Section --- */
.topology-modern {
    padding: 0; /* Minimal padding for compact view */
    background: transparent;
    position: relative;
    margin: 2rem 0;
      scroll-margin-top: 100px; /* Offset for sticky header navigation */
    overflow: hidden;
    position: relative;
    padding: 0 !important; /* Reset padding to handle inner layout */
}

/* Toolbar */
.topo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.topo-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 600;
}

.status-orb {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: blink 2s infinite;
}

.topo-metrics {
    display: flex;
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.m-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.m-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    font-family: 'Courier New', monospace;
}

/* Map Area */
.topo-map-wrapper {
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.8) 100%);
    min-height: 400px;
    /* Grid Pattern */
    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: 40px 40px;
}

.topo-svg-modern {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 225, 255, 0.1));
}

/* Connections */
.topo-path {
    fill: none;
    stroke: rgba(0, 225, 255, 0.1);
    stroke-width: 2px;
}

.topo-path[dashed='true'] {
    stroke-dasharray: 5, 5;
    opacity: 0.5;
}

/* Animated Packets */
.packet {
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

/* Nodes */
.topo-node-modern {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.topo-node-modern:hover {
    transform: scale(1.1) !important; /* Use important to override specific translate if needed, but translate is on parent group */
}
/* Note: transform on hover for SVG groups is tricky if they have a translate. 
   Better to scale the inner elements. */
.topo-node-modern:hover .node-bg {
    fill: rgba(0, 225, 255, 0.3);
    stroke: var(--accent-primary);
}

.node-bg {
    fill: rgba(15, 23, 42, 0.8);
    stroke: rgba(0, 225, 255, 0.2);
    stroke-width: 2px;
    transition: all 0.3s;
}

.node-inner {
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.node-icon {
    fill: #000;
    font-size: 10px;
    font-weight: bold;
    font-family: sans-serif;
    pointer-events: none;
}

.node-label {
    fill: var(--text-muted);
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.topo-node-modern:hover .node-label {
    opacity: 1;
    fill: #fff;
}

/* Legend */
.topo-legend-modern {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
}

.l-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.core { background: var(--accent-primary); box-shadow: 0 0 5px var(--accent-primary); }
.dot.dist { background: var(--success); }
.dot.access { background: #fff; opacity: 0.5; }

/* Responsive */
@media (max-width: 768px) {
    .topo-dashboard {
        margin: 0 1rem;
    }
    .topo-metrics {
        display: none; /* Hide metrics on small screens to save space */
    }
}





/* --- NEW TOPOLOGY DASHBOARD STYLES (COMPACT) --- */

/* Parent Layout */
.topology-dashboard {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.topo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.sys-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--success);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.sys-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
}

.topology-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 500px;
}

/* Sidebar Metrics */
.topo-sidebar {
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.2rem;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-bar-sm {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* Mini Bar Chart */
.chart-mini {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 40px;
    gap: 4px;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 225, 255, 0.2), var(--accent-primary));
    border-radius: 2px;
    opacity: 0.7;
    transition: height 0.3s;
}

.server-list h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.8rem;
    transition: background 0.3s;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.s-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.s-ip {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Map Area */
.topo-map-wrapper {
    position: relative;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.95) 100%);
    overflow: hidden;
}

.map-overlay-grid {
    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: 50px 50px;
    pointer-events: none;
}

.topo-svg-modern {
    width: 100%;
    height: 100%;
}

/* SVG Elements */
.conn-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
}

.conn-line.dashed {
    stroke-dasharray: 4, 4;
}

.packet {
    filter: drop-shadow(0 0 5px #fff);
}

.node-group {
    cursor: pointer;
    transition: transform 0.3s;
}

.node-group:hover {
    filter: brightness(1.2);
}

.node-bg, .node-bg-pulse {
    fill: #0f172a;
    stroke: var(--accent-primary);
    stroke-width: 2;
}

.node-bg-pulse {
    fill: rgba(0, 225, 255, 0.1);
    animation: ripple 3s infinite;
}

@keyframes ripple {
    0% { stroke-width: 2; opacity: 1; }
    50% { stroke-width: 6; opacity: 0.5; }
    100% { stroke-width: 2; opacity: 1; }
}

.node-label-svg {
    fill: var(--text-light);
    font-size: 10px;
    font-family: sans-serif;
    text-anchor: middle;
    opacity: 0.7;
    pointer-events: none;
}

.node-group:hover .node-label-svg {
    opacity: 1;
    fill: #fff;
    font-weight: bold;
}

.map-info-box {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 225, 255, 0.2);
    text-align: right;
    display: flex;
    flex-direction: column;
}

.map-info-box small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.map-info-box span {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .topology-grid {
        grid-template-columns: 1fr;
    }
    
    .topo-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: row;
        overflow-x: auto;
        padding: 1.5rem;
    }
    
    .metric-card, .server-list {
        min-width: 250px;
    }
    
    .topo-map-wrapper {
        min-height: 400px;
    }
}

/* --- LIVE DASHBOARD & TOPOLOGY (RESPONSIVE) --- */

/* Parent Wrapper */
.topology-dashboard {
  background: rgba(15, 23, 42, 0.85); /* Darker, more contrast */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
              0 0 1px 1px inset rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  max-width: 1200px; /* Allow full width */
  display: flex;
  flex-direction: column;
}

/* Header (restored) */
.topo-header {
  display: flex !important; /* Force show */
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sys-status, .sys-meta {
    display: flex !important; /* Force show */
    gap: 15px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.sys-status strong { color: #10b981; }

/* Grid Layout: Sidebar (Dashboard) + Map */
.topology-grid {
  display: grid !important; /* Force grid */
  grid-template-columns: 320px 1fr; /* Fixed sidebar width, rest for map */
  min-height: 500px;
  width: 100%;
}

/* --- LEFT SIDE: MINI LIVE DASHBOARD --- */
.topo-sidebar {
  display: flex !important; /* Force show */
  flex-direction: column;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker column */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  gap: 1.5rem;
  overflow-y: auto;
}

/* Metric Cards with "Live" look */
.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 2px; height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mono {
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

/* Bandwidth Chart Enhancements */
.chart-mini {
    display: flex;
    justify-content: space-between;
    height: 40px;
    align-items: flex-end;
    gap: 3px;
    margin-top: 10px;
}
.chart-mini .bar {
    flex: 1;
    background: var(--accent-secondary); 
    opacity: 0.7;
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
    box-shadow: 0 0 8px rgba(100, 255, 218, 0.2);
}

/* Server List */
.server-list h5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.server-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.server-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.s-name { font-size: 0.8rem; color: #fff; font-weight: 500; }
.s-ip { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}
.status-dot.online { background-color: #10b981; color: #10b981; }
.status-dot.working { background-color: #fbbf24; color: #fbbf24; animation: blink 2s infinite; }

/* --- RIGHT SIDE: MAP --- */
.topo-map-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(20, 30, 60, 0.4) 0%, rgba(2, 6, 23, 0.95) 80%);
  overflow: hidden;
  height: 100%; /* Fill available height */
  min-height: 500px; /* Ensure visibility */
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.map-overlay-grid {
    position: absolute;
    inset: 0;
    /* Hex grid or tech grid */
    background-image: 
        linear-gradient(rgba(0, 225, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 225, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Info Box */
.map-info-box {
    position: absolute;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 225, 255, 0.2);
    text-align: right;
    backdrop-filter: blur(10px);
    z-index: 10;
}

/* --- MOBILE / RESPONSIVE ADAPTATION --- */
@media screen and (max-width: 900px) {
    .topology-grid {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .topo-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        flex-direction: row; /* Horizontal scroll on tablets? */
        flex-wrap: wrap; 
        gap: 1rem;
        max-height: 300px; /* Limit height */
    }

    .metric-card, .server-list {
        flex: 1 1 200px; /* Grow to fill */
    }
    
    .topo-map-wrapper {
        min-height: 350px; /* Smaller map on mobile */
    }
}

@media screen and (max-width: 600px) {
    .topo-sidebar {
        flex-direction: column; /* Stack vertically on small phones */
        max-height: none; 
    }
    
    .metric-card {
        width: 100%;
    }
    
    .topo-svg-modern {
        min-height: 300px;
    }
    
    .topo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
