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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.btn-secondary {
  background: white;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #f0fdfa;
  color: #0d9488;
}

/* Input fields */
.input-field {
  transition: all 0.3s ease;
}
.input-field:focus {
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* Navigation */
#header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  transition: all 0.3s ease;
}
#mobileMenu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}
#mobileMenu.closed {
  opacity: 0 !important;
  pointer-events: none !important;
}

.menu-line.active:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.menu-line.active:nth-child(2) {
  opacity: 0;
}
.menu-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.fade-in-up-delay {
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero decorative sparkles */
@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}
