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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #7dd3c0;
  color: #0a2540;
}

/* ===== HEADER ===== */
#header {
  background: rgba(254, 252, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

#header.scrolled {
  box-shadow: 0 1px 20px rgba(10, 37, 64, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #7dd3c0;
  transition: width 0.25s ease;
}

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

/* ===== MOBILE MENU ===== */
.mobile-link {
  position: relative;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: #2d9d7f;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu:not(.open) {
  display: none;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
}

/* ===== 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, #7dd3c0, #4fb89f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  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; }

/* ===== FORM ===== */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

/* ===== MAP ===== */
iframe.grayscale {
  filter: grayscale(0.3);
  opacity: 0.9;
}

iframe.grayscale:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== FLOATING ELEMENTS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.floating-card {
  animation: float-slow 6s ease-in-out infinite;
}

/* ===== CURSOR GLOW (subtle) ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 192, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #7dd3c0;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .font-serif {
    font-size: 2rem;
    line-height: 1.2;
  }
}
