/* ─── CUSTOM PROPERTIES ─── */
:root {
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --gold: #fbbf24;
  --gold-light: #fcd34d;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
}

/* ─── SCROLLBEHAVIOR ─── */
html {
  scroll-behavior: smooth;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f1f5f9;
}

/* ─── HERO GRADIENT ─── */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(13, 148, 136, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(15, 23, 42, 0.9) 0%, transparent 60%),
    linear-gradient(160deg, #020617 0%, #0f172a 30%, #134e4a 60%, #0f172a 80%, #020617 100%);
}

.hero-img {
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-img.loaded {
  opacity: 0.4;
}

/* ─── HERO ANIMATIONS ─── */
.hero-badge {
  animation: fadeDown 0.8s ease both;
}
.hero-headline {
  animation: fadeUp 1s ease 0.2s both;
}
.hero-headline span {
  animation: goldShimmer 4s ease-in-out infinite;
}
#hero p {
  animation: fadeUp 1s ease 0.5s both;
}
#hero .flex-col {
  animation: fadeUp 1s ease 0.7s both;
}
.hero-scroll-indicator {
  animation: fadeUp 1s ease 1.2s both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes goldShimmer {
  0%, 100% { color: #14b8a6; }
  50% { color: #2dd4bf; }
}

/* ─── NAV SCROLL STATE ─── */
#nav.scrolled {
  background: rgba(2, 6, 23, 0.92);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ─── SERVICE CARDS ─── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.service-card:hover::before {
  opacity: 1;
}

/* ─── WHY US CARDS ─── */
.why-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  transition: all 0.4s ease;
}
.why-card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(20, 184, 166, 0.15);
}

/* ─── CTA GRADIENT ─── */
.cta-gradient {
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(13, 148, 136, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 50%, rgba(251, 191, 36, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f172a 100%);
}

/* ─── REVEAL ANIMATIONS (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Fallback: ensure reveals are visible without JS */
.no-js .reveal,
.js .reveal:not(.revealed) {
  opacity: 1;
  transform: none;
}

/* ─── MOBILE MENU ─── */
.mobile-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
.mobile-link:last-child {
  border-bottom: none;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--slate-950);
}
::-webkit-scrollbar-thumb {
  background: var(--slate-800);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-dark);
}

/* ─── FOCUS VISIBLE ─── */
*:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ─── MOBILE MENU ANIMATION ─── */
.menu-line {
  transition: all 0.3s ease;
}
#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
  width: 6rem;
  transform: rotate(-45deg) translate(5px, -5px);
}
