/* ========================================
   CYBNIX INFOTECH SOLUTIONS — DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors - Premium dark theme */
  --clr-bg: #04060d;
  --clr-bg-2: #090e1a;
  --clr-bg-3: #111827;
  --clr-surface: rgba(255, 255, 255, 0.03);
  --clr-surface-2: rgba(255, 255, 255, 0.06);
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-2: rgba(0, 212, 255, 0.2);

  --clr-cyan: #00e0ff;
  --clr-cyan-glow: rgba(0, 224, 255, 0.15);
  --clr-violet: #8b5cf6;
  --clr-violet-soft: #a78bfa;
  --clr-pink: #f472b6;
  --clr-green: #10b981;

  --clr-text: #f8fafc;
  --clr-text-muted: #94a3b8;
  --clr-text-dim: #475569;
  --clr-white: #ffffff;

  /* Gradients */
  --grad-hero: radial-gradient(circle at top right, #090e1a 0%, #04060d 70%);
  --grad-cyan: linear-gradient(135deg, #00ffcc, #0088ff);
  --grad-violet: linear-gradient(135deg, #a855f7, #d946ef);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-accent: linear-gradient(90deg, var(--clr-cyan), var(--clr-violet));

  /* Typography */
  --ff-display: 'Poppins', sans-serif;
  --ff-body: 'Poppins', sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
  --fs-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 80px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-violet: 0 0 30px rgba(124, 58, 237, 0.3);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --marquee-speed: 35s;
  /* Harmonized speed */
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--clr-bg);
  color-scheme: dark;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Adds premium crispness to text */
  cursor: none;
  /* Hide default cursor to use custom cursor */
}

/* ── Custom Cursor ── */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--clr-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 224, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.1s ease-out;
}

.custom-cursor-dot.hover {
  width: 12px;
  height: 12px;
  background: var(--clr-violet-soft);
}

.custom-cursor-outline.hover {
  width: 60px;
  height: 60px;
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.05);
}

/* Fallback for devices without fine pointer */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .custom-cursor-dot,
  .custom-cursor-outline {
    display: none !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-violet);
  border-radius: 3px;
}

/* ── Cyber Scroll Progress Bar ── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--clr-cyan);
  box-shadow: 0 0 10px var(--clr-cyan), 0 0 20px var(--clr-cyan);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ── Layout Utilities ── */
/* Image container inside about section */

.image-container {
  width: 105%;
  height: 550px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

/* Slider image */

#slider {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out, transform 6s ease;
}

/* Subtle zoom animation */

.image-container:hover #slider {
  transform: scale(1.05);
}

/* Badge positioning */

.about__badge-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  padding: 12px 18px;
  border-radius: 10px;
  color: #fff;
}


.partners-marquee {
  background: #0a0a0a;
  padding: 80px 0;
  overflow: hidden;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* Space between marquee rows */
}

/* Marquee wrapper */

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Track */

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee var(--marquee-speed) linear infinite;
  will-change: transform;
}

/* Pause animation on hover */

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* Logo group */

.marquee-group {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  /* gap between last and first logo */
}

/* Partner block */

.partner {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 170px;
  height: 110px;

  text-align: center;
  gap: 10px;

  transition: transform 0.4s ease;
}

/* Logo container */

.logo-box {
  width: 170px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image */

.logo-box img {
  max-width: 160px;
  max-height: 60px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Partner name */

.partner-name {
  color: var(--clr-text-dim);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  white-space: nowrap;
  text-align: center;
}

/* Hover effects */

.partner:hover {
  transform: translateY(-8px) scale(1.05);
}

.partner:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(0, 224, 255, 0.4));
}

.partner:hover .partner-name {
  opacity: 1;
  color: var(--clr-cyan);
}

/* Smooth infinite animation */

@keyframes scrollMarquee {

  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

}

@keyframes scrollMarqueeReverse {

  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }

}

.marquee--reverse .marquee-track {
  animation: scrollMarqueeReverse var(--marquee-speed) linear infinite;
}

/* Mobile */

@media (max-width:768px) {

  .image-container {
    height: 320px;
  }

}

/* ── ANIMATED HERO GRAPHIC ── */
.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .hero__content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4);
    padding-bottom: var(--space-8);
  }
}

.hero__text-col {
  z-index: 5;
}

.hero__graphic {
  position: absolute;
  top: -1%;
  right: -3%;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: auto;
  /* Allow interactions */
}

#exotic-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section--alt {
  background: var(--clr-bg-2);
}

.section--reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.21, 0.85, 0.45, 1), transform 0.8s cubic-bezier(0.21, 0.85, 0.45, 1);
}

.section--reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Animation Utilities ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Floating animation for subtle premium feel */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: floating 4s ease-in-out infinite;
}

/* ── Typography ── */
.display-1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, var(--fs-7xl));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-1 {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, var(--fs-4xl));
  font-weight: 600;
  line-height: 1.25;
}

.heading-2 {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.5vw, var(--fs-3xl));
  font-weight: 600;
  line-height: 1.3;
}

.heading-3 {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vw, var(--fs-2xl));
  font-weight: 600;
  line-height: 1.35;
}

.text-gradient {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shineGradient 4s linear infinite;
}

@keyframes shineGradient {
  to {
    background-position: 200% center;
  }
}

.text-cyan {
  color: var(--clr-cyan);
}

.text-violet {
  color: var(--clr-violet-soft);
}

.text-muted {
  color: var(--clr-text-muted);
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-cyan);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 1px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header p {
  color: var(--clr-text-muted);
  font-size: var(--fs-lg);
  margin-top: var(--space-4);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--grad-cyan);
  color: var(--clr-bg);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
  animation: pulsePrimary 2.5s infinite alternate;
}



@keyframes pulsePrimary {
  0% {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  }

  100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7), 0 0 10px rgba(0, 212, 255, 0.5) inset;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-2);
}

.btn-outline:hover {
  border-color: var(--clr-cyan);
  color: var(--clr-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-violet {
  background: var(--grad-violet);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.btn-violet:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-lg);
}

/* ── Glass Card w/ Spotlight ── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.21, 0.85, 0.45, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  /* For spotlight pseudo-element */
}

/* Base glowing border pseudo-element */
.card::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from var(--angle), transparent 20%, var(--clr-cyan), var(--clr-violet), transparent 80%);
  z-index: -2;
  opacity: 0;
  border-radius: calc(var(--radius-lg) + 2px);
  transition: opacity 0.5s ease;
  animation: spinBorder 4s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorder {
  to {
    --angle: 360deg;
  }
}

/* Inner masking layer to hollow out the glowing border */
.card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--clr-bg-2);
  /* Solid dark interior */
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  /* Keep it transparent by default so grad-card shows */
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: transparent;
  /* Let the ::after pseudo element act as border */
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 212, 255, 0.1);
}

.card:hover::after,
.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--clr-cyan);
  stroke-width: 1.5px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease;
}

.card:hover .card-icon {
  background: rgba(0, 224, 255, 0.1);
  border-color: var(--clr-cyan);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.2);
}

.card:hover .card-icon svg {
  transform: scale(1.15) rotate(-5deg);
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-cyan {
  background: rgba(0, 212, 255, 0.12);
  color: var(--clr-cyan);
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.badge-violet {
  background: rgba(124, 58, 237, 0.12);
  color: var(--clr-violet-soft);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-green {
  background: rgba(16, 217, 160, 0.12);
  color: var(--clr-green);
  border: 1px solid rgba(16, 217, 160, 0.25);
}

.badge-pink {
  background: rgba(240, 171, 252, 0.12);
  color: var(--clr-pink);
  border: 1px solid rgba(240, 171, 252, 0.25);
}

/* ── Grid Layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--clr-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  white-space: nowrap;
}

.nav__logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.nav__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__logo span {
  display: inline;
}

.nav__logo .brand-main {
  color: var(--clr-white);
}

.nav__logo .brand-accent {
  color: var(--clr-cyan);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 1px;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-4);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 1px;
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  /* Cover the whole screen if needed */
  background: rgba(5, 8, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-6);
  border-bottom: 1px solid var(--clr-border);
  flex-direction: column;
  gap: var(--space-4);
  z-index: 1100;
  /* Higher than nav to ensure it overlays everything */
  overflow-y: auto;
  /* Handle many links */
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile .nav__link {
  font-size: var(--fs-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--clr-border);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__bg-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 212, 255, 0.08);
  top: -100px;
  right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero__bg-orb--2 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.1);
  bottom: -100px;
  left: -50px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero__bg-orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(16, 217, 160, 0.06);
  top: 40%;
  left: 40%;
  animation: orbFloat 12s ease-in-out infinite 2s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(20px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  /* Reduced padding to shrink gap below nav/company name */
  padding-top: calc(var(--nav-h) + var(--space-1));
  padding-bottom: var(--space-20);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-cyan);
  /* Reduced margin to shrink gap below eyebrow */
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.8s ease both;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.15;
  animation: fadeInUp 0.8s ease 0.15s both;
  margin-bottom: var(--space-6);
  text-align: left;
}

.hero__subtitle {
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
  color: var(--clr-text-muted);
  max-width: 600px;
  line-height: 1.75;
  animation: fadeInUp 0.8s ease 0.3s both;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  animation: fadeInUp 0.8s ease 0.45s both;
  margin-bottom: var(--space-16);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.hero__trust-item span:first-child {
  color: var(--clr-green);
  font-size: 1rem;
}

.hero__visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  pointer-events: none;
  z-index: 1;
  animation: fadeInRight 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate(40px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}



/* ── Floating Stats Card ── */
.hero__stats-card {
  position: absolute;
  bottom: var(--space-12);
  right: var(--space-12);
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-8);
  z-index: 3;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--clr-cyan);
  line-height: 1;
  display: block;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
  display: block;
}

/* ── Canvas for particles ── */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__badge-float {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--clr-border-2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 5;
}

.about__badge-icon {
  font-size: 1.5rem;
}

.about__badge-text strong {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--clr-cyan);
}

.about__badge-text span {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

@keyframes slowFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--clr-border-2);
  transform: translateZ(0);
  /* Hardware accel */
  animation: slowFloat 8s ease-in-out infinite;
}

.about__image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 40px rgba(0, 224, 255, 0.15);
  pointer-events: none;
  z-index: 2;
}

.about__image-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about__visual:hover .about__image-wrap img {
  transform: scale(1.05);
  /* Extra eye-catching scale on hover */
}


.about__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.about__pillar {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.about__pillar:hover {
  border-color: var(--clr-border-2);
  background: var(--clr-surface-2);
}

.about__pillar-icon {
  margin-bottom: var(--space-2);
}

.about__pillar-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--clr-cyan);
  stroke-width: 1.5px;
  transition: transform 0.4s ease, stroke 0.4s ease;
}

.about__pillar:hover .about__pillar-icon svg {
  transform: translateY(-4px) scale(1.1);
  stroke: var(--clr-violet-soft);
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.about__pillar h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-1);
}

.about__pillar p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ── SERVICES ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.service-card {
  padding: var(--space-8);
}

.service-card__tag {
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-3);
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.service-card p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  word-break: break-word;
  overflow-wrap: break-word;
}

.service-card__list {
  margin-bottom: var(--space-6);
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--clr-border);
}

.service-card__list li:last-child {
  border-bottom: none;
}

.service-card__list li::before {
  content: '→';
  color: var(--clr-cyan);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-cyan);
  transition: var(--transition);
}

.service-card__link:hover {
  gap: var(--space-3);
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.why-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
}

.why-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.why-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--clr-violet-soft);
  stroke-width: 1.5px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease;
}

.why-card:hover .why-card__icon {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.why-card:hover .why-card__icon svg {
  transform: scale(1.2) rotate(5deg);
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.why-card__text h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-2);
}

.why-card__text p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── STATS ── */
.stats-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(124, 58, 237, 0.06) 100%);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-16) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-top: var(--space-2);
  display: block;
}

/* ── TRAINING COURSES ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.course-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.course-card p{
  flex-grow:1;
}
.course-card__header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.course-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.course-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--clr-cyan);
  stroke-width: 1.5px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease;
}

.course-card:hover .course-card__icon {
  background: rgba(0, 224, 255, 0.15);
  border-color: rgba(0, 224, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.3);
}

.course-card:hover .course-card__icon svg {
  transform: scale(1.2) rotate(-5deg);
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.course-card h3{
  display:block !important;
  position:relative;
  width:100%;
  text-align:left;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.course-card p{
    flex-grow:1;
}

.course-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.course-card__meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox__close:hover {
  background: var(--clr-primary);
  transform: scale(1.1) rotate(90deg);
}



/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  padding: 0;
}

.blog-card__img {
  height: 200px;
  background: var(--clr-surface);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--clr-border);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}

.blog-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5));
}

.blog-card__content {
  padding: var(--space-6);
}

/* ── TEAM ── */
.team-card {
  height: 100%;
}

.team-card__info {
  padding: var(--space-6);
  text-align: center;
}

.team-card__info h3 {
  margin-bottom: var(--space-1);
}

.team-card__info span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.team-card__desc {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.blog-card__date {
  font-size: var(--fs-xs);
  color: var(--clr-text-dim);
}

.blog-card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.blog-card p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-cyan);
  transition: var(--transition);
}

.blog-card__link:hover {
  gap: var(--space-3);
}

/* ── CTA BANNER ── */
.cta-section {
  padding: var(--space-24) 0;
  text-align: center;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(124, 58, 237, 0.12) 100%);
  border: 1px solid var(--clr-border-2);
  border-radius: var(--radius-xl);
  padding: var(--space-20) var(--space-12);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  margin-bottom: var(--space-5);
}

.cta-inner p {
  color: var(--clr-text-muted);
  font-size: var(--fs-lg);
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand p {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
}

.footer__social {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--clr-text-muted);
}

.footer__social:hover {
  background: var(--clr-cyan-glow);
  border-color: var(--clr-cyan);
  color: var(--clr-cyan);
  transform: translateY(-2px);
}

.footer__col h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col li a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: var(--transition);
}

.footer__col li a:hover {
  color: var(--clr-cyan);
}

.footer__bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-links a {
  font-size: var(--fs-sm);
  color: var(--clr-text-dim);
  transition: var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--clr-cyan);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + var(--space-20)) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: var(--clr-text-muted);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: var(--space-4) auto 0;
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--clr-border-2);
}

.contact-info-item__icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--clr-cyan-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-1);
}

.contact-info-item p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.form-card {
  padding: var(--space-8);
}

/* Disable disruptive animations for the contact form to ensure stable typing */
.form-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.form-card::after {
  animation: none !important;
  opacity: 0 !important;
}

.form-card::before {
  opacity: 0 !important;
}

.form-card {
  transition: none !important;
}


.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  color: var(--clr-text);
  font-size: var(--fs-sm);
  transition: var(--transition);
  outline: none;
}

/* Custom dropdown styling for dark theme */
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns="http://www.w3.org/2000/svg"%20width="24"%20height="24"%20viewBox="0%200%2024%2024"%20fill="none"%20stroke="gray"%20stroke-width="2"%20stroke-linecap="round"%20stroke-linejoin="round"><polyline%20points="6%209%2012%2015%2018%209"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.2rem;
  padding-right: 3.5rem;
}

.form-group select option {
  background-color: var(--clr-bg-2);
  color: var(--clr-text);
  padding: var(--space-2);
}

.form-group select option:disabled {
  color: var(--clr-text-dim);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--clr-cyan);
  background: var(--clr-bg-3);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--clr-text-dim);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__visual {
    display: block;
    order: -1;
    /* Show image above text on mobile */
    margin-bottom: var(--space-8);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 70px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .services__grid,
  .courses-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats-card {
    display: none;
  }

  .about__pillars {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .hero__visual {
    display: none;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .cta-inner {
    padding: var(--space-12) var(--space-6);
  }

  .hero__trust {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Animated Border Effect ── */
.glow-border {
  position: relative;
}

.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-accent);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-border:hover::after {
  opacity: 0.5;
}

/* ── Shimmer Loading ── */
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ── Page-specific hero colors ── */
.page-hero--cyber {
  background: linear-gradient(135deg, #05080f 0%, #0d1a2a 100%);
}

.page-hero--dev {
  background: linear-gradient(135deg, #05080f 0%, #100a2a 100%);
}

.page-hero--train {
  background: linear-gradient(135deg, #05080f 0%, #0a1a1a 100%);
}

/* ── Process Steps ── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: steps;
}

.process-step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  transition: var(--transition);
  counter-increment: steps;
}

.process-step:hover {
  border-color: var(--clr-border-2);
}

.process-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
}

.process-step h4 {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-1);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-grid-about {
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  padding: 0;
  overflow: hidden;
}

.team-card__avatar {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--clr-bg-3), var(--clr-bg-2));
  border-bottom: 1px solid var(--clr-border);
}

.team-card__info {
  padding: var(--space-5);
  text-align: center;
}

.team-card__info h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-1);
}

.team-card__info span {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ── Scroll to top button ── */
#scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
  z-index: 900;
  cursor: pointer;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

#scroll-top:hover {
  transform: translateY(-4px);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================

   Breakpoint Scale:
   ≤ 1280px  — Large tablet / small laptop
   ≤ 1024px  — iPad landscape / tablet
   ≤  768px  — iPad portrait / large mobile
   ≤  480px  — Mobile
   ≤  360px  — Small mobile (SE, Galaxy A etc.)
   ============================================================ */

/* ── ≤ 1280px : Small desktop / large tablet ── */
@media (max-width: 1280px) {
  :root {
    --max-w: 1080px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero__stats-card {
    right: var(--space-6);
    bottom: var(--space-8);
    gap: var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }

  /* Nav links tighter spacing on small laptops */
  .nav__links {
    gap: var(--space-5);
  }

  .nav__link {
    font-size: var(--fs-xs);
  }

  /* Contact grid: go single column on small laptops */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services__grid,
  .courses-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Collapse the inline-style VAPT feature card to single column */
  #vapt {
    grid-template-columns: 1fr !important;
  }

  /* Collapse the inline-style blog featured card to single column */
  #blog-featured-card {
    grid-template-columns: 1fr !important;
  }

  /* Hide the blog image column height issues when stacked */
  #blog-featured-card>div:first-child {
    height: 280px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--clr-border);
  }

  /* Service card headings — prevent mid-word breaks */
  .service-card h3,
  .heading-1,
  .heading-2,
  .heading-3,
  .display-1,
  .display-2 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Reduce padding on service cards so text has room */
  .service-card {
    padding: var(--space-6);
  }

  /* VAPT card stacked: reduce its gap and padding */
  #vapt {
    gap: var(--space-6) !important;
    padding: var(--space-8) !important;
  }

 

  /* Ensure paragraph text never creates overflow */
  p,
  li {
    overflow-wrap: break-word;
  }
}

/* ── ≤ 1024px : iPad landscape / tablet ── */
@media (max-width: 1024px) {
  :root {
    --nav-h: 72px;
  }

  /* Nav */
  .nav__links {
    gap: var(--space-5);
  }

  .nav__link {
    font-size: var(--fs-xs);
  }

  /* Grids */
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  /* Services page VAPT featured card */
  .vapt-feature-grid {
    grid-template-columns: 1fr !important;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  /* Image resizes gracefully on tablet/mobile */
  .about__image-wrap img {
    height: 350px;
  }

  /* Hero stats card - hide on tablet too */
  .hero__stats-card {
    display: none;
  }

  /* Why grid */
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* Services grid */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Courses */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* CTA */
  .cta-inner {
    padding: var(--space-14) var(--space-8);
  }

  /* Section spacing */
  .section {
    padding: var(--space-20) 0;
  }

  .section-header {
    margin-bottom: var(--space-12);
  }
}

/* ── ≤ 768px : iPad portrait / large mobile ── */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  /* ── Nav ── */
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* ── Hero ── */
  .hero {
    min-height: 100svh;
  }

  .hero__visual {
    display: none;
  }

  /* Reset global justify for mobile to avoid awkward spacing */
  body,
  p,
  li,
  .about__content p,
  .service-card p {
    text-align: left !important;
  }

  /* Keep centered elements centered */
  .hero__content p,
  .section-header p,
  .footer__bottom p {
    text-align: center !important;
  }

  .hero__content {
    text-align: center;
    padding-top: calc(var(--nav-h) + var(--space-16));
  }

  .hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero__trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .hero__stats-card {
    display: none;
  }

  /* ── Grids ── */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── About ── */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about__image-wrap img {
    height: 280px;
  }

  .about__badge-float {
    bottom: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-3);
  }

  .about__badge-text strong {
    font-size: var(--fs-lg);
  }

  .about__pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Contact ── */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* ── Footer ── */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .footer__bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* ── Sections ── */
  .section {
    padding: var(--space-16) 0;
  }

  /* inherit */
  .section-header {
    margin-bottom: var(--space-10);
  }

  .section-header p {
    font-size: var(--fs-base);
  }

  /* ── CTA ── */
  .cta-inner {
    padding: var(--space-12) var(--space-5);
    border-radius: var(--radius-lg);
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* ── Page hero ── */
  .page-hero {
    padding: calc(var(--nav-h) + var(--space-16)) 0 var(--space-16);
  }

  .page-hero p {
    font-size: var(--fs-base);
  }

  /* ── Services page: VAPT big card ── */
  .vapt-split {
    grid-template-columns: 1fr !important;
  }

  /* ── Blog featured card ── */
  .blog-featured-split {
    grid-template-columns: 1fr !important;
  }

  /* ── Service card ── */
  .service-card {
    padding: var(--space-6);
  }

  /* ── Why card ── */
  .why-card {
    flex-direction: row;
  }

  /* ── Stats section ── */
  .stats-section {
    padding: var(--space-12) 0;
  }

  /* ── Process steps ── */
  .process-step {
    padding: var(--space-4);
  }

  /* ── Scroll top ── */
  #scroll-top {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ── ≤ 480px : Mobile ── */
@media (max-width: 480px) {
  :root {
    --nav-h: 60px;
  }

  /* Container padding */
  .container {
    padding: 0 var(--space-4);
  }

  /* Nav logo text size */
  .nav__logo {
    font-size: var(--fs-base);
  }

  .nav__logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Hero */
  .hero__eyebrow {
    font-size: var(--fs-xs);
    padding: var(--space-2) var(--space-4);
    margin-top: var(--space-4);
    white-space: normal;
  }

  .hero__actions .btn {
    max-width: 100%;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .stat-number {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer__brand p {
    max-width: 100%;
  }

  /* About pillars */
  .about__pillars {
    grid-template-columns: 1fr;
  }

  /* Team - single column */
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Blog filter buttons - wrap nicely */
  .blog-filter-bar {
    gap: var(--space-2);
  }

  .blog-filter-bar .btn {
    font-size: var(--fs-xs);
    padding: 0.5rem 1rem;
  }

  /* Service card reduce padding */
  .service-card {
    padding: var(--space-5);
  }

  /* Process step */
  .process-step {
    padding: var(--space-4) var(--space-3);
  }

  /* Section spacing */
  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  /* CTA */
  .cta-inner {
    padding: var(--space-10) var(--space-4);
  }

  /* Page hero */
  .page-hero {
    padding: calc(var(--nav-h) + var(--space-12)) 0 var(--space-12);
  }

  /* form */
  .form-card {
    padding: var(--space-5);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Buttons full-width on tiny screens */
  .hero__actions .btn,
  .cta-actions .btn {
    max-width: 100%;
    width: 100%;
  }

  /* Section header sub-text */
  .section-header p {
    font-size: var(--fs-sm);
  }

  /* Card hover - disable lift on touch */
  .card:hover {
    transform: none;
  }

  /* Why card - stack icon on top */
  .why-card {
    flex-direction: column;
  }

  .why-card__icon {
    margin-bottom: var(--space-2);
  }

  /* Footer socials */
  .footer__socials {
    gap: var(--space-2);
  }
}

/* ── ≤ 360px : Very small mobile (Galaxy A, iPhone SE) ── */
@media (max-width: 360px) {
  :root {
    --nav-h: 56px;
  }

  .container {
    padding: 0 var(--space-3);
  }

  /* Nav logo — hide text, show only icon */
  .nav__logo span {
    display: none;
  }

  .nav__logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Hero */
  .hero__eyebrow {
    display: none;
  }

  .hero__actions .btn {
    font-size: var(--fs-sm);
    padding: 0.75rem 1.25rem;
  }

  /* Stats 1 col */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Section */
  .section {
    padding: var(--space-10) 0;
  }

  .section-header {
    margin-bottom: var(--space-6);
  }

  /* Card */
  .service-card {
    padding: var(--space-4);
  }

  .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .cta-inner {
    border-radius: var(--radius-md);
  }
}

/* ── Inline-style grid overrides (services.html, blog.html etc.) ── */
/* These override heavy inline style grids for inner pages */

/* Services VAPT 2-col feature card */
@media (max-width: 900px) {

  /* The VAPT grid uses an inline style="display:grid; grid-template-columns:1fr 1fr..." */
  /* We forcibly collapse it via a generic override */
  #vapt.card {
    display: flex !important;
    flex-direction: column !important;
  }

  .blog-featured-card {
    flex-direction: column !important;
  }
}

/* Blog featured card split */
@media (max-width: 768px) {

  /* Force any 2-col inline grid inside .card to collapse */
  .card[style*="grid-template-columns:1.2fr 1fr"],
  .card[style*="grid-template-columns: 1.2fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Career/internship section 2-col inline grid */
  .grid-2[style*="align-items:center"],
  .grid-2[style*="align-items: center"] {
    grid-template-columns: 1fr !important;
  }

  /* Training internship RHS card stacking */
  div[style*="flex-direction:column"][style*="gap:var(--space-5)"] {
    width: 100%;
  }
}

/* Mobile-specific touch improvements */
@media (hover: none) {

  /* Remove hover lift on touch devices */
  .card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--clr-border);
  }

  .btn:hover {
    transform: none;
  }

  .footer__social:hover {
    transform: none;
  }

  /* Keep active states for feedback */
  .card:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.97);
  }
}

/* Print - basic safety */
@media print {

  .nav,
  #scroll-top,
  .hero__bg-orb,
  #particles-canvas {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* ── Blog Read More Toggle ── */
.blog-content-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  opacity: 0;
}

.blog-content-full.expanded {
  max-height: 1515px;
  /* Enough for the content */
  margin-top: var(--space-4);
  opacity: 1;
}

/* ── Personnel Data Stream Marquee ── */
.personnel-stream-container {
  padding: var(--space-12) 0;
  overflow: hidden;
  position: relative;
}

.stream-label {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--clr-cyan);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-8);
  opacity: 0.7;
}

.personnel-stream-row {
  display: flex;
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.personnel-stream-track {
  display: flex;
  gap: var(--space-8);
  width: max-content;
  animation: scrollPersonnelStream 40s linear infinite;
}

.personnel-stream-row--reverse .personnel-stream-track {
  animation: scrollPersonnelStreamReverse 40s linear infinite;
}

.personnel-stream-row:hover .personnel-stream-track {
  animation-play-state: paused;
}

@keyframes scrollPersonnelStream {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollPersonnelStreamReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.personnel-stream-node {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-8);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
}

.node-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.node-name {
  font-weight: 600;
  color: var(--clr-white);
  font-size: var(--fs-base);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.node-id {
  font-family: monospace;
  font-size: var(--fs-xs);
  color: var(--clr-cyan);
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.4s ease;
}

.node-full {
  display: flex;
  gap: var(--space-6);
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.personnel-stream-node:hover {
  background: var(--clr-bg-2);
  border-color: var(--clr-cyan);
  box-shadow: 0 0 30px rgba(0, 224, 255, 0.15);
  transform: scale(1.05);
  z-index: 10;
  min-width: 320px;
}

.personnel-stream-node:hover .node-id {
  opacity: 0.5;
  max-width: 400px;
  margin-left: var(--space-4);
}

.personnel-stream-node:hover .node-compact {
  opacity: 1;
}

.personnel-stream-node:hover .node-full {
  height: 100px;
  opacity: 1;
  margin-top: var(--space-2);
}

.node-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0, 224, 255, 0.2);
  flex-shrink: 0;
}

.node-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.node-designation {
  font-size: var(--fs-sm);
  color: var(--clr-cyan);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.node-info p {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* Scanning line animation */
.personnel-stream-node::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-cyan), transparent);
  box-shadow: 0 0 10px var(--clr-cyan);
  opacity: 0;
  pointer-events: none;
}

.personnel-stream-node:hover::after {
  animation: nodeScan 2s linear infinite;
  opacity: 1;
}

@keyframes nodeScan {
  0% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

@media (max-width: 768px) {
  .personnel-stream-node:hover {
    min-width: 300px;
    transform: scale(1.02);
  }

  /* Specific mobile overrides for header and hero text */
  .hero__title.display-1 {
    font-size: clamp(1.8rem, 5vw, 2rem) !important;
  }

  #main-nav .nav__logo span {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hero__title.display-1 {
    font-size: clamp(1.2rem, 7vw, 1.6rem) !important;
  }
}