@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --navy: #0A1628;
  --navy-mid: #112240;
  --navy-light: #1A3A5C;
  --electric: #00D4FF;
  --electric-dim: rgba(0,212,255,0.15);
  --electric-glow: rgba(0,212,255,0.4);
  --gold: #FFB800;
  --gold-dim: rgba(255,184,0,0.1);
  --white: #F0F4FF;
  --white-dim: rgba(240,244,255,0.6);
  --white-faint: rgba(240,244,255,0.08);
  --text: #C8D8F0;
  --text-dim: rgba(200,216,240,0.5);
  --card-bg: rgba(17,34,64,0.7);
  --glass: rgba(10,22,40,0.85);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── BACKGROUND GRID ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(10,22,40,0.98);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--electric), var(--navy-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--navy);
  letter-spacing: -0.5px;
  box-shadow: 0 0 20px var(--electric-glow);
}

.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--electric);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--electric);
}

.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--electric), #0099CC);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all var(--transition) !important;
  box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,212,255,0.5) !important;
  color: var(--navy) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--electric);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── SECTIONS & LAYOUT ── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--electric);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--electric);
}

/* ── HEADINGS ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

.highlight { color: var(--electric); }
.highlight-gold { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--electric), #0099CC);
  color: var(--navy);
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--electric);
  border: 1.5px solid rgba(0,212,255,0.4);
}

.btn-outline:hover {
  background: var(--electric-dim);
  border-color: var(--electric);
  transform: translateY(-2px);
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(0,212,255,0.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(0,212,255,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,255,0.08);
}

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

/* ── ICON BOX ── */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--electric-dim);
  border: 1px solid rgba(0,212,255,0.2);
  flex-shrink: 0;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.badge-electric { background: var(--electric-dim); color: var(--electric); border: 1px solid rgba(0,212,255,0.2); }
.badge-gold { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(255,184,0,0.2); }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
  margin: 60px 0;
}

/* ── GLOWING ORBS ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-electric { background: rgba(0,212,255,0.12); }
.orb-gold { background: rgba(255,184,0,0.08); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--navy-mid);
  border-top: 1px solid rgba(0,212,255,0.1);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--electric);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--white-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--white-dim);
}

.footer-contact-item span:first-child {
  color: var(--electric);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(0,212,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric), transparent);
}

/* ── ANIMATE ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Nav: logo left, hamburger right — nothing else */
  nav {
    padding: 0 4%;
    height: 72px;
  }

  /* Shrink logo on mobile so it never crowds the hamburger */
  .nav-logo img {
    height: 44px;
    max-width: 160px;
  }

  /* Hide all nav items on mobile — show only via hamburger */
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(0,212,255,0.1);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  .nav-links.open { transform: translateY(0); }

  /* Make Contact Us look like a normal link in mobile menu */
  .nav-links .nav-cta {
    background: linear-gradient(135deg, var(--electric), #0099CC);
    color: var(--navy) !important;
    border-radius: 8px;
    padding: 10px 16px;
    text-align: center;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }

  /* Hamburger always visible, always on top */
  .hamburger { display: flex; z-index: 1002; }

  /* Hard-clip the nav so nothing bleeds outside it */
  nav { overflow: visible; }

  /* When nav-links is closed, make it truly invisible and unclickable */
  .nav-links:not(.open) {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }

  /* nav-cta: hide the standalone button that appears outside the menu */
  nav > .nav-cta,
  nav > a.nav-cta {
    display: none !important;
  }
}

/* ── LOGO IMAGE ── */
.nav-logo-icon { display: none !important; }
.nav-logo-text { display: none !important; }

.nav-logo img {
  height: 70px;
  width: auto;
  max-width: 240px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.35));
  transition: filter var(--transition);
}

.nav-logo:hover img {
  filter: drop-shadow(0 0 26px rgba(0,212,255,0.6));
}

.footer-logo-img {
  height: 90px;
  width: auto;
  max-width: 280px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.3));
  margin-bottom: 16px;
}
