/* ============================================================
   CSS Custom Properties — Color Theme & Design Tokens
   ============================================================ */
:root {
  /* Color Theme */
  --color-bg: #0a0f2c;
  --color-bg2: #0d1b4b;
  --color-accent: #1a6bff;
  --color-accent2: #00c6ff;

  /* Derived / utility colors */
  --color-text: #e8eaf6;
  --color-text-muted: #8892b0;
  --color-surface: #111a3e;
  --color-border: rgba(26, 107, 255, 0.25);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
  --gradient-bg: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg2) 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 5rem 1.5rem;
  --container-max: 1200px;

  /* Transitions */
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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-family: inherit;
}

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

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================================================
   Shared Section Header Styles (.section-header)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Decorative underline accent beneath section headings */
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 107, 255, 0.4);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================================
   Scroll-entrance animation (added via IntersectionObserver)
   ============================================================ */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Fixed Navigation Bar (#navbar)
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

/* Scrolled state — semi-transparent dark + blur */
#navbar.scrolled {
  background-color: rgba(10, 15, 44, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(26, 107, 255, 0.15);
}

/* ── Nav Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-accent2);
  background-color: rgba(26, 107, 255, 0.1);
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.hamburger:hover {
  background-color: rgba(26, 107, 255, 0.1);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation when nav-open */
#navbar.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#navbar.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}
#navbar.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Responsive — Mobile-first breakpoints
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }

  /* Hide desktop nav links, show hamburger */
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: rgba(10, 15, 44, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    /* Slide-down animation */
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  #navbar.nav-open .nav-links {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem 1rem;
  }
}

/* ============================================================
   Hero Section (#hero)
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  padding-top: 68px; /* offset for fixed navbar */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0a0f2c 0%, #0d1b4b 50%, #0a1628 100%);
  overflow: hidden;
  /* Override the section entrance animation defaults so hero is always visible */
  opacity: 1;
  transform: none;
}

/* Canvas particle layer */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Content container sits above canvas */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 800px;
  width: 100%;
}

/* Logo block */
.hero-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-logo svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 18px rgba(26, 107, 255, 0.5));
}

.hero-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

/* Tagline */
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 0 40px rgba(26, 107, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

/* Sub-tagline */
#hero p {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* CTA button group */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-accent2);
  font-size: 1.4rem;
  animation: hero-bounce 1.8s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Hero responsive ── */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ============================================================
   About Section (#about)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── Icon grid (2×2) ── */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.about-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Gradient border glow via pseudo-element */
.about-icon-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.about-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 107, 255, 0.3);
}

.about-icon-card:hover::before {
  opacity: 1;
}

.about-icon-card i {
  font-size: 2rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(26, 107, 255, 0.5));
}

.about-icon-card span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ── Mission text ── */
.about-mission {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── Stat tiles ── */
.about-stats {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-tile {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.stat-tile:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26, 107, 255, 0.2);
}

.stat-tile i {
  font-size: 1.25rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Team name cards ── */
.about-team-names {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.team-name-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.team-name-card:hover {
  border-color: var(--color-accent);
  transform: translateX(4px);
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-name-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.team-name-card span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* ── About responsive ── */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    gap: 0.75rem;
  }
}

/* ============================================================
   Services Section (#services)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(26, 107, 255, 0.35);
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon > i {
  font-size: 2.25rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.platform-badges {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.platform-badges i {
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.service-card:hover .platform-badges i {
  color: var(--color-accent2);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   AI Calling Agent Section (#ai-agent)
   ============================================================ */
#ai-agent {
  background: var(--color-bg2);
}

.ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ── AI Badge ── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 107, 255, 0.15);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  color: var(--color-accent2);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── AI Info text ── */
.ai-info h3 {
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.ai-info > p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ── Feature list ── */
.ai-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ai-features li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-features li i {
  font-size: 1.1rem;
  color: var(--color-accent2);
  flex-shrink: 0;
  width: 20px;
}

.ai-features li span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.ai-cta {
  margin-top: 0.5rem;
}

/* ============================================================
   Dashboard Preview (.ai-dashboard)
   ============================================================ */
.ai-dashboard {
  background: #0d1b4b;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-base);
}

.ai-dashboard:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* ── Title bar ── */
.dash-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #111a3e;
  border-bottom: 1px solid var(--color-border);
}

.dash-title {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-controls {
  display: flex;
  gap: 0.4rem;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot--red    { background: #ff5f57; }
.dash-dot--yellow { background: #febc2e; }
.dash-dot--green  { background: #28c840; }

/* ── Body layout ── */
.dash-body {
  display: flex;
  height: 280px;
}

/* ── Sidebar ── */
.dash-sidebar {
  width: 100px;
  background: #0a0f2c;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--color-border);
}

.dash-nav-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
}

.dash-nav-item--active {
  background: rgba(26, 107, 255, 0.2);
  color: var(--color-accent2);
}

/* ── Main panel ── */
.dash-main {
  flex: 1;
  padding: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Stats row ── */
.dash-stats {
  display: flex;
  gap: 0.5rem;
}

.dash-stat-card {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-stat--confirmed { background: rgba(40, 200, 64, 0.15);  border: 1px solid rgba(40, 200, 64, 0.3); }
.dash-stat--pending   { background: rgba(254, 188, 46, 0.15); border: 1px solid rgba(254, 188, 46, 0.3); }
.dash-stat--failed    { background: rgba(255, 95, 87, 0.15);  border: 1px solid rgba(255, 95, 87, 0.3); }

.dash-stat-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
}

.dash-stat-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* ── Orders list ── */
.dash-orders {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-order-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: #111a3e;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
}

.dash-order-id {
  color: var(--color-text-muted);
  flex: 1;
  font-family: monospace;
}

.dash-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.6rem;
  font-weight: 600;
}

.dash-badge--confirmed { background: rgba(40, 200, 64, 0.2);  color: #28c840; }
.dash-badge--pending   { background: rgba(254, 188, 46, 0.2); color: #febc2e; }

.dash-action-btn {
  padding: 0.2rem 0.5rem;
  background: rgba(26, 107, 255, 0.2);
  border: 1px solid rgba(26, 107, 255, 0.4);
  border-radius: var(--radius-sm);
  color: var(--color-accent2);
  font-size: 0.65rem;
  cursor: pointer;
}

/* ── Conversation log ── */
.dash-log {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dash-log-entry {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.dash-log-time {
  color: var(--color-accent2);
  flex-shrink: 0;
  font-family: monospace;
}

.dash-log-msg {
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── AI Agent responsive ── */
@media (max-width: 768px) {
  .ai-split {
    grid-template-columns: 1fr;
  }

  .ai-dashboard {
    transform: none;
  }
}

/* ============================================================
   Team Section (#team)
   ============================================================ */
.team-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.team-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.group-header i {
  font-size: 1.25rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.group-header h3 {
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0;
}

.group-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-accent2);
  background: rgba(26, 107, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(26, 107, 255, 0.3);
}

.team-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg2);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.member-card:hover {
  transform: translateX(4px);
  border-color: var(--color-accent);
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.member-info strong {
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-heading);
}

.member-role {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.member-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 198, 255, 0.1);
  color: var(--color-accent2);
  border-radius: 20px;
  border: 1px solid rgba(0, 198, 255, 0.25);
  width: fit-content;
}

/* ── Team responsive ── */
@media (max-width: 768px) {
  .team-groups {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Client Marquee (.marquee-section)
   ============================================================ */
.marquee-section {
  padding: 3rem 0;
  background: var(--color-bg2);
  overflow: hidden;
}

.marquee-heading {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.marquee-track-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  width: 160px;
  height: 70px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.marquee-color-1 { background: linear-gradient(135deg, rgba(26,107,255,0.15), rgba(26,107,255,0.05)); color: #7aabff; }
.marquee-color-2 { background: linear-gradient(135deg, rgba(0,198,255,0.15), rgba(0,198,255,0.05)); color: #5dd8ff; }
.marquee-color-3 { background: linear-gradient(135deg, rgba(40,200,64,0.15), rgba(40,200,64,0.05)); color: #5de87a; }
.marquee-color-4 { background: linear-gradient(135deg, rgba(254,188,46,0.15), rgba(254,188,46,0.05)); color: #ffd06e; }
.marquee-color-5 { background: linear-gradient(135deg, rgba(255,95,87,0.15), rgba(255,95,87,0.05)); color: #ff8f8a; }
.marquee-color-6 { background: linear-gradient(135deg, rgba(160,100,255,0.15), rgba(160,100,255,0.05)); color: #c08aff; }

/* ============================================================
   Contact Section (#contact)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
  color: var(--color-text);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.25rem;
  color: var(--color-accent2);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-value {
  display: block;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-base);
}

a.contact-value:hover {
  color: var(--color-accent2);
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.social-icon:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.contact-form-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.15);
}

.form-error {
  display: block;
  color: #ff5f57;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  border-radius: var(--radius-sm);
  color: #28c840;
  margin-top: 1rem;
}

.form-success.visible {
  display: flex;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--color-bg2);
  border-top: 1px solid var(--color-border);
  padding: 4rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4,
.footer-social-col h4 {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent2);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.footer-contact-mini {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 2;
}

.footer-contact-mini i {
  color: var(--color-accent2);
  margin-right: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Task 13.2 — Responsive polish additions
   ============================================================ */

/* Hide nav brand text on very small screens to prevent overflow */
@media (max-width: 400px) {
  .nav-brand-text {
    display: none;
  }
}

/* Placeholder color fix for dark backgrounds */
input[type="email"]::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Better UX for textarea resize */
textarea {
  resize: vertical;
}

/* ============================================================
   Task 13.3 — Color theme and font consistency polish
   ============================================================ */

/* Branded text selection */
::selection {
  background: rgba(26, 107, 255, 0.3);
  color: #fff;
}

/* Firefox custom scrollbar */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-bg);
}

/* Chrome/Safari custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

/* Ensure hero is never hidden by scroll animation */
#hero {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   Typography & Visual Enhancements
   ============================================================ */

/* Hero highlighted words */
.highlight-word {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(26, 107, 255, 0.8), 0 0 60px rgba(0, 198, 255, 0.4);
}

.highlight-gradient {
  background: linear-gradient(90deg, #1a6bff, #00c6ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(26, 107, 255, 0.6));
}

/* Hero sub text brighter */
.hero-sub {
  color: #c8d4f0 !important;
  font-size: clamp(1.05rem, 2vw, 1.2rem) !important;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto 2.25rem !important;
  line-height: 1.8 !important;
}

/* Hero logo sizing */
.hero-logo svg {
  width: auto !important;
  height: auto !important;
  max-width: 280px;
  filter: drop-shadow(0 0 24px rgba(26, 107, 255, 0.6));
}

/* Nav brand logo sizing */
.nav-brand svg {
  height: 44px;
  width: auto;
}

/* Section headers — brighter, more impactful */
.section-header h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(26, 107, 255, 0.3);
}

.section-header p {
  color: #b8c8e8;
  font-size: 1.1rem;
}

/* Service card feature list */
.service-features {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 107, 255, 0.15);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #b8c8e8;
}

.service-features li i {
  color: #00c6ff;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Service card h3 brighter */
.service-card h3 {
  color: #ffffff !important;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* Service card p brighter */
.service-card p {
  color: #b0bdd8 !important;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* About section text brighter */
.about-mission {
  color: #d0daf0 !important;
  font-size: 1.1rem;
}

/* AI section text brighter */
.ai-info h3 {
  color: #ffffff !important;
}

.ai-info > p {
  color: #b8c8e8 !important;
  font-size: 1rem;
  line-height: 1.75;
}

.ai-features li span {
  color: #c0d0ec !important;
  font-size: 0.97rem;
}

/* Team section text */
.member-info strong {
  color: #ffffff !important;
}

/* Contact section text */
.contact-value {
  color: #e0eaff !important;
  font-size: 1rem !important;
}

/* Footer text brighter */
.footer-tagline {
  color: #9aaac8 !important;
}

/* Buttons — more punch */
.btn-primary {
  background: linear-gradient(135deg, #1a6bff 0%, #0ea5e9 50%, #00c6ff 100%);
  color: #fff;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(26, 107, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(26, 107, 255, 0.6) !important;
  transform: translateY(-3px) !important;
}

.btn-outline {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  letter-spacing: 0.02em;
}

/* Section header underline wider */
.section-header h2::after {
  width: 80px;
  height: 5px;
}

/* ============================================================
   NAVBAR LOGO — proper alignment matching brand image
   ============================================================ */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(26, 107, 255, 0.5));
}

.nav-logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo-twi {
  color: #ffffff;
}

.nav-logo-va {
  background: linear-gradient(135deg, #1a6bff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: #7a8ab0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO LOGO — large centered, matching brand image
   ============================================================ */
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-logo-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(13, 27, 75, 0.6);
  border: 1px solid rgba(26, 107, 255, 0.3);
  border-radius: 20px;
  padding: 18px 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(26, 107, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-logo-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(26, 107, 255, 0.7));
}

.hero-logo-text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-twi {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255,255,255,0.2);
}

.hero-va {
  background: linear-gradient(135deg, #1a6bff 0%, #00c6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(26, 107, 255, 0.6));
}

.hero-logo-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #8892b0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO SERVICES TICKER STRIP
   ============================================================ */
.hero-services-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(26, 107, 255, 0.08);
  border: 1px solid rgba(26, 107, 255, 0.2);
  border-radius: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.strip-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00c6ff;
  white-space: nowrap;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(26, 107, 255, 0.3);
}

.strip-items {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.strip-items span {
  font-size: 0.8rem;
  color: #c8d8f0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.strip-items span i {
  color: #1a6bff;
  font-size: 0.75rem;
}

.strip-dot {
  color: rgba(26, 107, 255, 0.4) !important;
  font-size: 0.6rem !important;
}

/* ============================================================
   HERO DEEP-DIVE SERVICES STRIP (below animation)
   ============================================================ */
.hero-deep-strip {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,15,44,0) 0%, rgba(10,15,44,0.95) 30%, #0a0f2c 100%);
  padding: 3rem 0 4rem;
  margin-top: -2px;
}

.deep-strip-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #00c6ff;
  margin-bottom: 2rem;
}

.deep-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.deep-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(17, 26, 62, 0.7);
  border: 1px solid rgba(26, 107, 255, 0.15);
  border-radius: 14px;
  transition: border-color 0.3s, transform 0.3s;
}

.deep-item:hover {
  border-color: rgba(26, 107, 255, 0.5);
  transform: translateY(-3px);
}

.deep-item > i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #1a6bff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  margin-top: 2px;
}

.deep-item div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.deep-item strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #e8f0ff;
  display: block;
}

.deep-item span {
  font-size: 0.82rem;
  color: #8a9cc0;
  line-height: 1.6;
}

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

@media (max-width: 600px) {
  .deep-strip-grid {
    grid-template-columns: 1fr;
  }
  .hero-logo-inner {
    padding: 14px 20px;
    gap: 12px;
  }
  .hero-logo-icon {
    width: 52px;
    height: 52px;
  }
  .hero-logo-name {
    font-size: 1.9rem;
  }
  .hero-services-strip {
    padding: 0.6rem 1rem;
  }
}

/* ============================================================
   PREMIUM TEXT COLORS — rich, vibrant, high contrast
   ============================================================ */

/* All section h2 headings — bright white with glow */
#about .section-header h2,
#services .section-header h2,
#ai-agent .section-header h2,
#team .section-header h2,
#contact .section-header h2 {
  color: #ffffff;
  text-shadow: 0 0 30px rgba(26, 107, 255, 0.4);
}

/* Section sub-headings — bright readable */
#about .section-header p,
#services .section-header p,
#ai-agent .section-header p,
#team .section-header p,
#contact .section-header p {
  color: #a8bce0;
  font-size: 1.1rem;
}

/* About mission text */
.about-mission {
  color: #d8e8ff !important;
  font-size: 1.1rem !important;
  line-height: 1.8 !important;
}

/* Stat values — bright gradient */
.stat-value {
  font-size: 1rem !important;
  color: #00c6ff;
}

/* About icon card labels */
.about-icon-card span {
  color: #c0d0f0 !important;
  font-size: 0.95rem !important;
}

/* Service card titles */
.service-card h3 {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  margin-bottom: 0.6rem;
}

/* Service card body text */
.service-card p {
  color: #a8bcd8 !important;
  font-size: 0.93rem !important;
  line-height: 1.72 !important;
}

/* Service feature list items */
.service-features li {
  color: #b8cce8 !important;
  font-size: 0.87rem !important;
}

/* AI section */
.ai-info h3 {
  color: #ffffff !important;
  font-size: 1.9rem !important;
  line-height: 1.25 !important;
}

.ai-info > p {
  color: #b0c4e4 !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
}

.ai-features li span {
  color: #c0d4f0 !important;
  font-size: 0.98rem !important;
}

/* Team member names */
.member-info strong {
  color: #ffffff !important;
  font-size: 0.95rem !important;
}

.member-role {
  color: #8aabcc !important;
}

/* Contact values */
.contact-value {
  color: #e0eeff !important;
  font-size: 1rem !important;
}

.contact-info h3 {
  color: #ffffff !important;
  font-size: 1.4rem !important;
}

/* Footer */
.footer-tagline {
  color: #8a9cc0 !important;
}

.footer-links a {
  color: #8a9cc0 !important;
}

.footer-links a:hover {
  color: #00c6ff !important;
}

/* Nav links brighter on hover */
.nav-links a {
  color: #c0d0e8 !important;
}

.nav-links a:hover {
  color: #00c6ff !important;
}

/* Hero section override — ensure deep strip is inside hero */
#hero {
  height: auto !important;
  min-height: 100vh;
  padding-bottom: 0 !important;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 68px;
}

.hero-content {
  padding-top: 3rem;
  padding-bottom: 2rem;
}
