/* ===== CSS Custom Properties ===== */
:root {
  --color-charcoal-800: #1C1C1E;
  --color-charcoal-900: #141416;
  --color-charcoal-950: #0D0D0F;
  --color-coral-400: #FF7F6E;
  --color-coral-500: #E86A5A;
  --color-coral-600: #D4574A;
  --color-gold-300: #F0D9A8;
  --color-gold-400: #D4A574;
  --color-gold-500: #C4945A;
}

/* ===== Base & Resets ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(212, 165, 116, 0.3);
  color: #fff;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-charcoal-950);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.5);
}

/* ===== Navigation ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold-400);
  transition: width 0.3s ease;
}

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

/* ===== Hero ===== */
.hero-bg {
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards 0.3s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero-badge {
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.1s;
}

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

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

/* ===== Scroll Line ===== */
.scroll-line {
  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); }
}

/* ===== CTA Buttons ===== */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-secondary:hover {
  background: rgba(212, 165, 116, 0.05);
}

/* ===== 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, var(--color-coral-500), var(--color-gold-400));
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* ===== Approach Items ===== */
.approach-item {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s ease;
}

.approach-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
  position: relative;
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.revealed.reveal-up,
.revealed.reveal-left,
.revealed.reveal-right {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== Mobile Menu ===== */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: all 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; }

/* ===== Navbar scrolled state ===== */
.navbar-scrolled {
  background: rgba(13, 13, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 165, 116, 0.1);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* ===== Input Focus States ===== */
input:focus,
select:focus,
textarea:focus {
  background: rgba(20, 20, 22, 0.8);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-title br {
    display: none;
  }

  .hero-title::after {
    content: '.';
  }
}

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

/* ===== 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-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}
