/* ==============================
   CSS Custom Properties (Design Tokens)
   Change colors, fonts, and sizes here — they apply everywhere automatically
============================== */
:root {
  /* Backgrounds */
  --bg:       #0a0a0a;  /* Main page background */
  --bg-2:     #111111;  /* Slightly lighter sections */
  --bg-3:     #161616;  /* Cards and elevated surfaces */
  --surface:  #1c1c1c;  /* Form inputs, small surfaces */

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(108, 99, 255, 0.4);

  /* Accent color — change this to rebrand the whole site */
  --accent:       #6c63ff;
  --accent-light: #8b85ff;
  --accent-glow:  rgba(108, 99, 255, 0.18);

  /* Text */
  --text:           #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted:     #555555;

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

  /* Shapes */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Animation */
  --transition: 0.2s ease;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

em {
  font-style: italic;
}


/* ==============================
   Utility Classes
============================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Accent text color — used in headings */
.accent {
  color: var(--accent);
}

/* Small uppercase label above headings */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Centered section header (used in Services, Testimonials, Contact) */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}


/* ==============================
   Buttons
============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* Filled primary button */
.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

/* Ghost / outline button */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Full-width button (used in contact form) */
.btn-full {
  width: 100%;
}


/* ==============================
   Navigation
============================== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

/* When scrolled past hero — added by script.js */
.nav-header.scrolled {
  background: rgba(10, 10, 10, 0.96);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo wordmark */
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* CTA button in nav */
.nav-links .nav-cta {
  background-color: var(--accent);
  color: #fff;
  padding: 8px 20px;
  margin-left: 8px;
}

.nav-links .nav-cta:hover {
  background-color: var(--accent-light);
  color: #fff;
}

/* Hamburger toggle button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into X when open */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==============================
   Hero Section
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Background gradient orbs — CSS only animation */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -250px;
  right: -150px;
  animation: float 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 450px;
  height: 450px;
  background: #3b82f6;
  bottom: -150px;
  left: -150px;
  animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-40px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Small pill badge above headline */
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Stats row below the CTAs */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}


/* ==============================
   Services Section
============================== */
.services {
  padding: 110px 0;
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(108, 99, 255, 0.08);
}

/* Featured card gets a subtle purple tint */
.service-card-featured {
  border-color: rgba(108, 99, 255, 0.25);
  background: linear-gradient(145deg, #14123a 0%, var(--bg-3) 60%);
}

/* Icon wrapper */
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 22px;
}

/* "Most Popular" badge on featured card */
.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Coloured tagline under the service name */
.service-tagline {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card p:last-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}


/* ==============================
   Training Callout Section
============================== */
.training-cta {
  padding: 110px 0;
  background: var(--bg);
}

.training-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.training-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.training-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.training-content em {
  color: var(--text);
}

/* Bullet list of training features */
.training-list {
  margin-bottom: 40px;
}

.training-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.training-list li:last-child {
  border-bottom: none;
}

.training-list svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Right-side audience cards */
.training-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.training-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

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

.tc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.tc-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.tc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ==============================
   About Section
============================== */
.about {
  padding: 110px 0;
  background: var(--bg-2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Vertical stat cards with left accent border */
.about-stats-block {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.about-stat {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.about-stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}


/* ==============================
   Testimonials Section
============================== */
.testimonials {
  padding: 110px 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

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

/* Large opening quote mark */
.testimonial-card p::before {
  content: '"';
  display: block;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ==============================
   Contact Section
============================== */
.contact {
  padding: 110px 0;
  background: var(--bg-2);
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two-column row for Name + Email */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Focus ring */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Custom dropdown arrow */
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

/* Fix select option background color in dark mode */
.form-group select option {
  background: #1c1c1c;
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Status message shown after form submit */
.form-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-height: 22px;
}

.form-note.success { color: #4ade80; }
.form-note.error   { color: #f87171; }


/* ==============================
   Footer
============================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

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


/* ==============================
   Responsive — Tablet (max 900px)
============================== */
@media (max-width: 900px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ==============================
   Responsive — Mobile (max 768px)
============================== */
@media (max-width: 768px) {

  /* Show hamburger, hide desktop nav links */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 4px;
  }

  /* Show nav links when open */
  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  /* Stack service and testimonial grids */
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Stack two-col layouts */
  .training-inner,
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Stack name/email row */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Tighten hero stats */
  .hero-stats {
    gap: 28px;
  }

  .stat-divider {
    display: none;
  }
}


/* ==============================
   Responsive — Small Mobile (max 480px)
============================== */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}
