/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: 'Figtree', sans-serif;
  color: #e6ebff;
  background: #05070d;
  overflow-x: hidden;
}
body.loaded #loader { display: none; }

/* Loader */
#loader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #0a1430, #05070d);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.loader-web { width: 120px; animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

/* Background video */
#bg-video {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.6) contrast(1.1);
  pointer-events: none;
}

/* Navbar */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  background: rgba(5, 7, 13, 0.65);
  border-bottom: 1px solid #163067;
  z-index: 1000;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #9fb2e3; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 20px 140px; /* bottom padding so footer doesn’t overlap */
  display: flex; align-items: center; justify-content: center;
}
.container { max-width: 1120px; margin: 0 auto; text-align: center; }

/* Typography */
.h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; }
.h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.h4 { font-size: 18px; font-weight: 700; margin: 8px 0; }
.sub, .p { color: #9fb2e3; font-size: clamp(16px, 2.2vw, 20px); margin-bottom: 20px; }

/* Buttons */
.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta {
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2d9cdb, #3b7dff);
  color: #071333;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta.ghost {
  background: transparent; border: 2px solid #3b7dff; color: #e6ebff;
}

/* Services Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: linear-gradient(180deg, #0a1430, #0d1b3d, #3b7dff);
  border: 1px solid #163067;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.in {
  opacity: 1;
  transform: translateY(0);
}
.card h4 { color: #fff; margin-bottom: 10px; }
.card p { color: #c7d4ff; font-size: 15px; line-height: 1.5; }

/* Stats */
.stats { margin-top: 30px; }
.stat { font-size: 16px; color: #9fb2e3; opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.stat.in { opacity: 1; transform: translateY(0); }
.stat .num { font-size: 28px; font-weight: 800; color: #3b7dff; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.word { opacity: 0; transition: opacity 0.25s ease; }
.word.show { opacity: 1; }

/* Hero swirl */
.hero-swirl {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,125,255,0.25), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 1s ease;
  z-index: -1;
}

/* Tagline footer (gradient box) */
.tagline-footer {
  background: linear-gradient(135deg, #0a1430, #05070d);
  color: #e6ebff;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-tagline { margin-top: 12px; color: #9fb2e3; }

/* Fixed footer */
.fixed-footer {
  position: fixed; bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(180deg, #0a1430, #05070d);
  padding: 16px 20px;
  text-align: center;
  z-index: 100;
  border-top: 1px solid #163067;
}
.fixed-footer .small { font-size: 14px; color: #9fb2e3; }

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav-links { flex-wrap: wrap; margin-top: 8px; }
  .h1, .h2, .sub, .p { text-align: center; }
  .hero-actions { flex-direction: column; }
}
