/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #060f1d;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
}

::selection {
  background: rgba(94, 234, 212, 0.3);
  color: #ffffff;
}

/* ========== NAV ========== */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#nav.scrolled {
  background: rgba(6, 15, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
  padding-top: 0;
  padding-bottom: 0;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5eead4;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== HERO SHAPES ========== */
.hero-shape-1,
.hero-shape-2,
.hero-shape-3,
.hero-shape-4,
.hero-shape-5 {
  animation: float 6s ease-in-out infinite;
}

.hero-shape-2 {
  animation-delay: -2s;
  animation-duration: 8s;
}

.hero-shape-3 {
  animation-delay: -1s;
  animation-duration: 4s;
}

.hero-shape-4 {
  animation-delay: -3s;
  animation-duration: 5s;
}

.hero-shape-5 {
  animation-delay: -0.5s;
  animation-duration: 3.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5eead4, #10b981);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(94,234,212,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

/* ========== WHY CARDS ========== */
.why-card {
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(94,234,212,0.03), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* ========== FORM ========== */
select option {
  background: #0a1628;
  color: #ffffff;
}

/* ========== SCROLL ANIMATIONS ========== */
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .font-display {
    letter-spacing: -0.02em;
  }
}

/* ========== FOCUS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060f1d;
}

::-webkit-scrollbar-thumb {
  background: rgba(94, 234, 212, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(94, 234, 212, 0.5);
}
