/* ============================================================
   IndigoWave Tech — Global Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@1,600&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ============================================================
   CSS Custom Properties — Brand Palette & Typography
   ============================================================ */
:root {
  /* Brand Colors */
  --indigo:        #001B94;
  --indigo-mid:    #0028CC;
  --indigo-light:  #1A3FBF;
  --orange:        #F29324;
  --aws-orange:    #FF9900;
  --gcp-blue:      #4285F4;
  --azure-blue:    #0078D4;
  --grey:          #828181;
  --bg:            #03050f;
  --bg-dark:       #03050f;   /* alias kept for compatibility */
  --bg-card:       #070B1A;
  --bg-card2:      #0B0E2A;   /* indigo-tinted card surface */
  --white:         #ffffff;
  --white-80:      rgba(255,255,255,0.8);
  --white-60:      rgba(255,255,255,0.6);
  --white-30:      rgba(255,255,255,0.3);
  --white-10:      rgba(255,255,255,0.08);
  --indigo-surface: rgba(0,27,148,0.08);   /* subtle indigo wash */
  --indigo-border:  rgba(0,27,148,0.18);   /* indigo-tinted borders */
  --indigo-card:    rgba(0,27,148,0.12);   /* indigo card fill */
  --border:         rgba(0,27,148,0.12);   /* indigo-tinted border */

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;  /* alias */
  --font-mono:    'DM Mono', 'Courier New', monospace;
  --font-label:   'DM Mono', 'Courier New', monospace; /* alias */
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-keyword: 'Playfair Display', Georgia, serif;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  4rem;
  --space-2xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --radius:    4px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* 72px nav + 24px breathing room */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--indigo); border-radius: 2px; }

/* Selection */
::selection { background: var(--indigo); color: var(--white); }

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

.label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.5vw, 0.7rem);
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--indigo);
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Keyword emphasis — brand italic accent for key phrases */
.keyword {
  font-family: var(--font-keyword);
  font-style: italic;
  color: var(--orange);
  font-weight: 600;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

section {
  padding: clamp(51px, 8vh, 96px) clamp(20px, 5vw, 48px);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #0A0600;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  padding: clamp(11px, 2vh, 14px) clamp(20px, 3vw, 28px);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(242, 147, 36, 0.25);
  touch-action: manipulation;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242, 147, 36, 0.4);
  background: #FFa030;
}
.btn-primary:active {
  transform: translateY(0);
  background: #E07D10;
  box-shadow: 0 2px 12px rgba(242, 147, 36, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 400;
  font-size: clamp(0.875rem, 2vw, 0.9375rem);
  padding: clamp(11px, 2vh, 14px) clamp(20px, 3vw, 28px);
  border-radius: 8px;
  border: 1px solid var(--white-30);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  touch-action: manipulation;
}
.btn-ghost:hover {
  border-color: var(--white-60);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(0);
  border-color: var(--white-60);
  background: var(--white-10);
}

/* ============================================================
   Tag Pill
   ============================================================ */
.tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  background: var(--white-10);
  border: 1px solid var(--border);
  color: var(--white-60);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ============================================================
   Reveal Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible  { opacity: 1; transform: translateY(0); }
.reveal-delay-1  { transition-delay: 0.1s; }
.reveal-delay-2  { transition-delay: 0.2s; }
.reveal-delay-3  { transition-delay: 0.3s; }
.reveal-delay-4  { transition-delay: 0.4s; }

/* ============================================================
   Navigation
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: rgba(3, 5, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(3, 5, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-logo-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Remove background bleed on dark nav */
.nav-logo-img, .footer-logo-img {
  mix-blend-mode: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  font-size: 0.875rem;
  font-weight: 400;
}
.nav-links a { color: var(--white-60); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-links a.soon { color: var(--white-30); cursor: default; }
.nav-links a.soon::after {
  content: 'SOON';
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}

/* Legacy footer-links SOON pattern (kept for backward compat) */

.drawer-soon { color: var(--white-30) !important; cursor: default; }
.drawer-soon::after {
  content: 'SOON';
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}

.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  touch-action: manipulation;
}
.nav-cta:hover { background: var(--indigo-mid); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  touch-action: manipulation;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(280px, 85vw);
  background: var(--bg-card);
  z-index: 200;
  flex-direction: column;
  padding: 28px 36px 40px;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { font-size: 1.125rem; color: var(--white-60); touch-action: manipulation; transition: color 0.3s, padding-left 0.3s, border-color 0.3s; }
.nav-drawer a:hover { color: var(--white); }
.nav-drawer a.active { color: var(--white); border-left: 2px solid var(--indigo-mid); padding-left: 12px; }
.nav-drawer-logo-link { display: block; margin-bottom: 4px; }
.nav-drawer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.drawer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.drawer-social a {
  color: var(--white-30);
  transition: color 0.2s;
  display: flex;
  font-size: 1rem;
}
.drawer-social a:hover { color: var(--white); }

/* ── Desktop Services Dropdown ────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-chevron {
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.8125rem;
  color: var(--white-60);
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-menu a:hover {
  color: var(--white);
  background: var(--white-10);
}
.nav-dropdown-heading {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  padding: 4px 20px 6px;
}
.nav-dropdown-group {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ── Mobile Drawer Dropdown ──────────────────────────────────── */
.drawer-dropdown {
  display: flex;
  flex-direction: column;
}
.drawer-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.drawer-chevron {
  transition: transform 0.25s;
}
.drawer-dropdown-trigger.open .drawer-chevron {
  transform: rotate(180deg);
}
.drawer-submenu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.drawer-submenu.open {
  max-height: 600px;
}
.drawer-submenu-heading {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  padding: 12px 0 4px 16px;
}
.drawer-sub-link {
  font-size: 0.95rem !important;
  padding-left: 16px;
  color: var(--white-60);
}
.drawer-submenu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 16px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

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

/* Subscribe bar */
.footer-subscribe {
  border-bottom: 1px solid var(--border);
  padding: clamp(32px, 5vh, 48px) clamp(20px, 5vw, 48px);
}
.footer-subscribe-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-subscribe-heading {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-subscribe-sub {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  color: var(--white-60);
  line-height: 1.5;
}
.footer-subscribe-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.footer-subscribe-input {
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--white);
  font-size: 0.875rem;
  width: 240px;
  transition: border-color 0.2s;
}
.footer-subscribe-input::placeholder { color: var(--white-30); }
.footer-subscribe-input:focus { border-color: var(--indigo); }
.footer-subscribe-btn { white-space: nowrap; }

/* Main footer body */
.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
  padding: clamp(40px, 6vh, 60px) clamp(20px, 5vw, 48px);
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-mission {
  font-size: clamp(0.8rem, 1.8vw, 0.875rem);
  color: var(--white-60);
  line-height: 1.6;
  max-width: 300px;
}
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social a {
  color: var(--white-30);
  transition: color 0.2s;
  display: flex;
}
.footer-social a:hover { color: var(--white); }

/* 3-column link grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: clamp(0.8rem, 1.8vw, 0.875rem);
  color: var(--white-60);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-col a.footer-soon { color: var(--white-30); cursor: default; }
.footer-col a.footer-soon:hover { color: var(--white-30); }
.footer-col a.footer-soon::after {
  content: 'SOON';
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-left: 4px;
  vertical-align: super;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: clamp(0.75rem, 1.8vw, 0.8125rem); color: var(--white-30); }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: clamp(0.75rem, 1.8vw, 0.8125rem);
  color: var(--white-30);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--white-60); }

/* ============================================================
   Responsive — Shared Breakpoints
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-md);
  }

  nav {
    padding: 0 clamp(16px, 4vw, 24px);
  }

  .nav-links,
  .nav-cta        { display: none; }
  .nav-hamburger  { display: flex; }
  .nav-drawer     { display: flex; }
  .nav-overlay    { display: block; }
  .nav-dropdown-menu { display: none; }
}

@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
}

@media (max-width: 768px) {
  .footer-subscribe-inner { flex-direction: column; align-items: flex-start; }
  .footer-subscribe-form { width: 100%; }
  .footer-subscribe-input { flex: 1; width: auto; min-width: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
  .footer-col-title { font-size: 0.6rem; margin-bottom: 2px; }
  .footer-col a { font-size: 0.75rem; }
  .footer-col { gap: 7px; }
}
