/* ── 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;
}

::selection {
  background: rgba(240, 90, 40, 0.3);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #141414;
}
::-webkit-scrollbar-thumb {
  background: #2d2d2d;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f05a28;
}

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

#navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

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

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

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

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.5) 0%,
    rgba(10, 10, 10, 0.4) 50%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

/* ── Hero Animations ── */
.hero-subtitle {
  animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-desc {
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-cta {
  animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
  animation: fadeUp 1s ease 1.2s forwards;
}

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

/* ── Service Cards ── */
.service-card {
  transition: background-color 0.5s ease, transform 0.3s ease;
}

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

/* ── Reveal Animations (progressive enhancement) ── */
.reveal-section {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hidden by default for JS-enhanced reveal */
.reveal-section[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

/* ── Gallery ── */
.gallery-grid img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Form ── */
select option {
  background: #1f1f1f;
  color: #a3a3a3;
}

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

#mobile-menu .mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s 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; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal-section[data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-title {
    font-size: 3rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 4.5rem !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-title {
    font-size: 6rem !important;
  }
}
