/* Lenis smooth scroll */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Hero fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll indicator bounce */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Hero elements animation */
.hero-animate {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.hero-animate-delay-1 { animation-delay: 0.2s; }
.hero-animate-delay-2 { animation-delay: 0.4s; }
.hero-animate-delay-3 { animation-delay: 0.6s; }
.hero-animate-delay-4 { animation-delay: 0.8s; }
.hero-animate-delay-5 { animation-delay: 1.0s; }

/* Gold gradient text */
.gold-gradient-text {
  background: linear-gradient(135deg, #D4AF37, #F5D576, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Parallax image container */
.parallax-img-wrap {
  overflow: hidden;
}
.parallax-img {
  will-change: transform;
}

/* Modal animations */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navbar transition */
.navbar {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

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

::-webkit-scrollbar-track {
  background: #000;
}

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

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

/* Form input focus */
input:focus, textarea:focus {
  border-color: #D4AF37 !important;
  outline: none;
}

/* Portfolio card hover */
.portfolio-card {
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(212, 175, 55, 0.04);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-thumb {
  transform: scale(1.03);
}

.portfolio-thumb {
  transition: transform 0.4s ease;
}

/* Hide play icon during stream preview */
.parallax-img-wrap.streaming .play-icon-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Service card hover */
.service-card {
  transition: border-color 0.3s ease, background-color 0.3s ease,
              transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background-color: rgba(212, 175, 55, 0.03);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.06), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-card-img {
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.1);
}

/* Smooth scroll — overridden by Lenis when loaded */
html {
  scroll-behavior: smooth;
}

/* Mobile menu transition */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 300px;
}

/* Voice player */
.voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-play-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1.5px solid #D4AF37;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.voice-play-btn:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: scale(1.08);
}

.voice-play-btn .hidden {
  display: none;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}

.waveform-bars span {
  display: block;
  width: 3px;
  background: #D4AF37;
  border-radius: 2px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

/* Static heights for idle waveform */
.waveform-bars span:nth-child(1)  { height: 6px; }
.waveform-bars span:nth-child(2)  { height: 10px; }
.waveform-bars span:nth-child(3)  { height: 14px; }
.waveform-bars span:nth-child(4)  { height: 8px; }
.waveform-bars span:nth-child(5)  { height: 18px; }
.waveform-bars span:nth-child(6)  { height: 12px; }
.waveform-bars span:nth-child(7)  { height: 20px; }
.waveform-bars span:nth-child(8)  { height: 10px; }
.waveform-bars span:nth-child(9)  { height: 16px; }
.waveform-bars span:nth-child(10) { height: 8px; }
.waveform-bars span:nth-child(11) { height: 22px; }
.waveform-bars span:nth-child(12) { height: 14px; }
.waveform-bars span:nth-child(13) { height: 10px; }
.waveform-bars span:nth-child(14) { height: 18px; }
.waveform-bars span:nth-child(15) { height: 6px; }
.waveform-bars span:nth-child(16) { height: 14px; }
.waveform-bars span:nth-child(17) { height: 20px; }
.waveform-bars span:nth-child(18) { height: 8px; }
.waveform-bars span:nth-child(19) { height: 12px; }
.waveform-bars span:nth-child(20) { height: 16px; }

/* Playing state — bars animate */
.waveform-bars.playing span {
  opacity: 0.9;
  animation: waveBar 0.8s ease-in-out infinite alternate;
}

.waveform-bars.playing span:nth-child(1)  { animation-delay: 0.00s; }
.waveform-bars.playing span:nth-child(2)  { animation-delay: 0.05s; }
.waveform-bars.playing span:nth-child(3)  { animation-delay: 0.10s; }
.waveform-bars.playing span:nth-child(4)  { animation-delay: 0.15s; }
.waveform-bars.playing span:nth-child(5)  { animation-delay: 0.20s; }
.waveform-bars.playing span:nth-child(6)  { animation-delay: 0.25s; }
.waveform-bars.playing span:nth-child(7)  { animation-delay: 0.30s; }
.waveform-bars.playing span:nth-child(8)  { animation-delay: 0.35s; }
.waveform-bars.playing span:nth-child(9)  { animation-delay: 0.40s; }
.waveform-bars.playing span:nth-child(10) { animation-delay: 0.45s; }
.waveform-bars.playing span:nth-child(11) { animation-delay: 0.50s; }
.waveform-bars.playing span:nth-child(12) { animation-delay: 0.55s; }
.waveform-bars.playing span:nth-child(13) { animation-delay: 0.60s; }
.waveform-bars.playing span:nth-child(14) { animation-delay: 0.65s; }
.waveform-bars.playing span:nth-child(15) { animation-delay: 0.70s; }
.waveform-bars.playing span:nth-child(16) { animation-delay: 0.75s; }
.waveform-bars.playing span:nth-child(17) { animation-delay: 0.80s; }
.waveform-bars.playing span:nth-child(18) { animation-delay: 0.85s; }
.waveform-bars.playing span:nth-child(19) { animation-delay: 0.90s; }
.waveform-bars.playing span:nth-child(20) { animation-delay: 0.95s; }

@keyframes waveBar {
  0%   { transform: scaleY(0.4); }
  50%  { transform: scaleY(1.2); }
  100% { transform: scaleY(0.6); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-animate { animation: none; opacity: 1; }
  .service-card:hover, .portfolio-card:hover { transform: none; }
  .scroll-indicator { animation: none; }
  .waveform-bars.playing span { animation: none; }
}
