/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

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

::selection {
  background: #C8962E;
  color: #0A1F38;
}

/* ── Navigation ── */
#navbar {
  transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
  background-color: rgba(10, 31, 56, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

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

.nav-logo-sub {
  transition: color 0.5s ease;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8962E;
  transition: width 0.3s ease;
}

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

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

#mobile-menu.open .mobile-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.open .mobile-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu.open .mobile-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.5rem;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hero ── */
.hero-bg {
  will-change: transform;
}

.hero-bg img {
  will-change: transform;
}

.scroll-indicator {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
  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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── Hero Reveal ── */
.hero-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-reveal:nth-child(1) { transition-delay: 0.2s; }
.hero-reveal:nth-child(2) { transition-delay: 0.4s; }
.hero-reveal:nth-child(3) { transition-delay: 0.6s; }
.hero-reveal:nth-child(4) { transition-delay: 0.8s; }

/* ── Service Cards ── */
.service-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

/* ── Process Cards ── */
.process-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-card:hover {
  transform: translateY(-4px);
}

/* ── Form ── */
select option {
  background: #0F2B4C;
  color: #fff;
}

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

::-webkit-scrollbar-track {
  background: #0A1F38;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #D4A843;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.15;
  }
}
