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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger children */
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

/* ========== NAVBAR SCROLL ========== */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== SMOOTH SECTION TRANSITIONS ========== */
section {
  position: relative;
}

/* ========== CUSTOM SELECTION ========== */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #0f172a;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ========== FORM STYLES ========== */
input, textarea {
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
