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

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

body {
  overflow-x: hidden;
}

/* Hero Animations */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-image {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.2s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Cards */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section */
.about-image {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s 0.2s ease, transform 0.8s 0.2s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Why Us Cards */
#why-us > div > div:last-child > div {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#why-us > div > div:last-child > div.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 35, 66, 0.08);
}

/* Mobile Menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Selection */
::selection {
  background: rgba(74, 222, 128, 0.3);
  color: #0A2342;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0A2342;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #13315C;
}
