/* ===== Base & Typography ===== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0a1628;
}

.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-inter {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #c8a44e44;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8a44e88;
}

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

#navbar.scrolled {
  background-color: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .nav-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===== Hero ===== */
#hero {
  position: relative;
}

.hero-badge {
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

#hero h1 {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

#hero p {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.9s;
}

#hero .flex-col {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 1.2s;
}

.scroll-indicator {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 1.5s;
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Service Cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a44e, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== Why Cards ===== */
.why-card {
  position: relative;
}

.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse at top left, rgba(200, 164, 78, 0.05), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.why-card:hover::after {
  opacity: 1;
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  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);
}

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

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

/* Staggered delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* ===== Mobile Menu ===== */
#mobileMenu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#mobileMenu.active {
  opacity: 1;
  pointer-events: all;
}

#mobileMenu.active .mobile-link {
  animation: fadeInUp 0.5s ease forwards;
}

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

/* Mobile hamburger animation */
#menuToggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menuToggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuToggle.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Input Focus ===== */
input:focus, textarea:focus {
  background-color: rgba(255, 255, 255, 0.07);
}

/* ===== Gold Accent Gradient Text ===== */
.text-gold-gradient {
  background: linear-gradient(135deg, #c8a44e, #e8d088, #c8a44e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .font-playfair {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}
