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

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

body {
  overflow-x: hidden;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lineExpand {
  from { width: 0; }
  to { width: 48px; }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-underline {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-underline span {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: #c9a84c;
  animation: lineExpand 0.6s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-body {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1s;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.2s;
}

.scroll-line {
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

/* Navbar */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu.open {
  transform: translateX(0);
}

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

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

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Process Steps */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #c9a84c;
  transition: width 0.5s ease;
}

.process-step:hover::after {
  width: 60%;
}

/* Testimonial Cards */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 72px;
  color: #c9a84c;
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

/* Form */
input:focus,
select:focus,
textarea:focus {
  border-color: #c9a84c !important;
}

select option {
  background: #0a1628;
  color: #fff;
}

/* Selection */
::selection {
  background: #c9a84c;
  color: #0a1628;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.3s ease;
}

/* Image hover effects */
img {
  transition: transform 0.7s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 3px;
}

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