/* ============ DESIGN TOKENS (from original Tailwind theme) ============ */
:root {
  --background: 220 20% 4%;
  --foreground: 210 20% 92%;

  --card: 220 18% 8%;
  --card-foreground: 210 20% 92%;

  --primary: 207 90% 54%;
  --primary-foreground: 220 20% 4%;

  --secondary: 220 16% 14%;
  --secondary-foreground: 210 20% 85%;

  --muted-foreground: 215 15% 55%;

  --border: 220 16% 16%;

  --radius: 0.75rem;
  --glow: 207 90% 54%;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background-image: linear-gradient(135deg, hsl(207 90% 54%), hsl(190 80% 60%), hsl(207 90% 54%));
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.eyebrow {
  color: hsl(var(--primary));
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  position: relative;
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.btn--primary:hover {
  box-shadow: 0 10px 34px -6px hsl(var(--primary) / 0.7);
  transform: translateY(-3px) scale(1.03);
}
.btn--primary:active { transform: translateY(-1px) scale(0.98); }

.btn--primary svg {
  transition: transform 0.3s ease;
}
.btn--primary:hover svg { transform: translateX(4px); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.35); }
  50% { box-shadow: 0 0 0 10px hsl(var(--primary) / 0); }
}

.btn--outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}
.btn--outline:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-3px);
}

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn--sm:hover { transform: translateY(-2px) scale(1.03); }

/* ============ SCROLL PROGRESS ============ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, hsl(207 90% 54%), hsl(190 80% 60%));
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px hsl(var(--primary) / 0.6);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.is-scrolled {
  background: hsl(var(--background) / 0.95);
  box-shadow: 0 4px 24px -8px hsl(0 0% 0% / 0.4);
}

.navbar__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s ease;
}
.navbar.is-scrolled .navbar__inner { height: 3.5rem; }

.navbar__logo img {
  height: 3.5rem;
  width: auto;
  transition: height 0.3s ease, transform 0.3s ease;
}
.navbar.is-scrolled .navbar__logo img { height: 2.75rem; }
.navbar__logo:hover img { transform: scale(1.05); }

.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width 0.25s ease;
}
.nav-link:hover { color: hsl(var(--primary)); }
.nav-link:hover::after { width: 100%; }

.navbar__toggle {
  display: inline-flex;
  color: hsl(var(--foreground));
}

.icon-menu, .icon-close {
  width: 24px; height: 24px;
  display: inline-block;
  position: relative;
}
.icon-menu::before, .icon-menu::after, .icon-menu span,
.icon-close::before, .icon-close::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
}
.icon-menu::before { top: 5px; }
.icon-menu::after { top: 17px; }
.icon-menu { border-top: 2px solid currentColor; }
.icon-menu { top: -1px; }
.icon-close::before { top: 11px; transform: rotate(45deg); }
.icon-close::after { top: 11px; transform: rotate(-45deg); }

.navbar__mobile {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(20px);
}
.navbar__mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile { display: none !important; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%; height: 116%;
  object-fit: cover;
  opacity: 0.4;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    hsl(var(--background) / 0.6),
    hsl(var(--background) / 0.4),
    hsl(var(--background)));
}

/* Floating glow orbs */
.orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.orb--1 {
  width: 22rem; height: 22rem;
  top: -4rem; left: -4rem;
  background: hsl(207 90% 54%);
  animation: float-a 12s ease-in-out infinite;
}
.orb--2 {
  width: 18rem; height: 18rem;
  bottom: -2rem; right: -2rem;
  background: hsl(190 80% 60%);
  animation: float-b 14s ease-in-out infinite;
}
.orb--3 {
  width: 14rem; height: 14rem;
  top: 40%; left: 55%;
  background: hsl(220 90% 60%);
  animation: float-c 16s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3rem, 2rem) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2.5rem, -2rem) scale(1.15); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2rem, 3rem) scale(0.9); }
}

.hero__inner {
  position: relative;
  z-index: 10;
  padding-top: 5rem;
}

.hero__content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero__content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__cta { flex-direction: row; }
}

@media (min-width: 640px) {
  .hero__content h1 { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
  .hero__content h1 { font-size: 4.5rem; }
}

/* ============ SECTIONS ============ */
.section { padding: 6rem 0; }
.section--border { border-top: 1px solid hsl(var(--border) / 0.5); }

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}
.section__head h2 { font-size: 2rem; margin-bottom: 1rem; }
.section__lead { color: hsl(var(--muted-foreground)); }

@media (min-width: 1024px) {
  .section { padding: 8rem 0; }
  .section__head h2 { font-size: 3rem; }
}

/* ============ CARDS / SERVICES ============ */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--services { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px -5px hsl(var(--glow) / 0.3), inset 0 0 20px -10px hsl(var(--glow) / 0.1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), hsl(var(--primary) / 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px hsl(var(--glow) / 0.5), inset 0 0 20px -10px hsl(var(--glow) / 0.15);
}
.card:hover::before { opacity: 1; }

.card__icon {
  display: inline-flex;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.card:hover .card__icon {
  transform: scale(1.12) rotate(-6deg);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card p, .contact__value { color: hsl(var(--muted-foreground)); font-size: 0.9rem; line-height: 1.6; }

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; }
}

.about__grid h2 { font-size: 2rem; margin-bottom: 1.5rem; }
@media (min-width: 1024px) {
  .about__grid h2 { font-size: 3rem; }
}

.about__text {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about__points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about__point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s ease;
}
.about__point:hover { transform: translateX(6px); }
.about__point svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.about__point:hover svg { transform: scale(1.2); }

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stat {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 20px -5px hsl(var(--glow) / 0.3), inset 0 0 20px -10px hsl(var(--glow) / 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px hsl(var(--glow) / 0.5), inset 0 0 20px -10px hsl(var(--glow) / 0.15);
}
.stat__number { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.stat__label { font-size: 0.9rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 1024px) {
  .stat__number { font-size: 2.5rem; }
}

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .contact__grid { grid-template-columns: repeat(3, 1fr); }
}

.contact__card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px -5px hsl(var(--glow) / 0.3), inset 0 0 20px -10px hsl(var(--glow) / 0.1);
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), hsl(var(--primary) / 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.contact__card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px hsl(var(--glow) / 0.5), inset 0 0 20px -10px hsl(var(--glow) / 0.15);
}
.contact__card:hover::before { opacity: 1; }
.contact__card:hover .card__icon {
  transform: scale(1.12) rotate(-6deg);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.contact__label { font-size: 0.9rem; font-weight: 500; }
.contact__value { font-size: 0.8rem; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__logo { height: 3rem; width: auto; transition: transform 0.3s ease; }
.footer__logo:hover { transform: scale(1.05) rotate(-2deg); }
.footer__copy { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}

/* ============ SCROLL REVEAL ANIMATION ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .text-gradient,
  .btn--primary,
  .orb {
    animation: none !important;
  }
  .card, .contact__card, .stat, .about__point,
  .navbar__logo img, .footer__logo, .btn {
    transition: none !important;
  }
}

/* Smaller / fewer orbs on mobile for performance */
@media (max-width: 640px) {
  .orb--3 { display: none; }
}
