/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(244, 250, 248, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 22, 41, 0.06);
}

.nav-logo-text {
  transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
  color: #0f1629;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
}

#navbar.scrolled .nav-link {
  color: #1e284e;
}

.nav-link:hover {
  color: #8ecdba;
}

#navbar.scrolled .nav-link:hover {
  color: #3fa37f;
}

.nav-menu-btn {
  border-color: rgba(255, 255, 255, 0.2);
}

#navbar.scrolled .nav-menu-btn {
  border-color: rgba(15, 22, 41, 0.15);
}

.nav-bar-top,
.nav-bar-mid,
.nav-bar-bot {
  background: #ffffff;
}

#navbar.scrolled .nav-bar-top,
#navbar.scrolled .nav-bar-mid,
#navbar.scrolled .nav-bar-bot {
  background: #0f1629;
}

/* Mobile menu */
.mobile-menu-link {
  transition: color 0.2s ease;
}

.mobile-menu-link:hover {
  color: #3fa37f;
}

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(15, 22, 41, 0.15);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

/* ===== Selection ===== */
::selection {
  background: #8ecdba;
  color: #0f1629;
}

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

::-webkit-scrollbar-track {
  background: #f4faf8;
}

::-webkit-scrollbar-thumb {
  background: #c5e6d8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8ecdba;
}
