/* ===== Custom Styles for Diamond Cuttas Barbershop ===== */

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

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

body {
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(161, 20, 59, 0.4);
  color: #fff;
}

/* ===== Scroll Progress Bar ===== */
#scroll-progress {
  z-index: 200;
}

/* ===== Navbar ===== */
#navbar {
  z-index: 100;
}

#navbar.scrolled {
  background: rgba(14, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 166, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .logo-text {
  color: #fff;
}

/* ===== Hero Animations ===== */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

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

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

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

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

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

/* Scroll Indicator */
@keyframes scrollIndicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.animate-scroll-indicator {
  animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ===== Section Labels ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.js .section-title.visible,
.js .section-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Service Cards ===== */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ===== Gallery Items ===== */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

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

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s 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.2s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* ===== Mobile Menu Button ===== */
#bar1 {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#bar2 {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#bar3 {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menu-btn.active #bar1 {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn.active #bar2 {
  opacity: 0;
}
#menu-btn.active #bar3 {
  transform: translateY(-4px) rotate(-45deg);
  width: 24px;
}

/* ===== Back to Top ===== */
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:not(.visible) {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* ===== Gold Shimmer Effect ===== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gold-shimmer {
  background: linear-gradient(90deg, #d4a600, #ffe02e, #d4a600);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ===== Subtle Glow on Interactive Elements ===== */
.service-card:hover {
  box-shadow: 0 20px 60px rgba(161, 20, 59, 0.15), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Form Focus States ===== */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(212, 166, 0, 0.3);
}

/* ===== 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;
  }
  .hero-badge, .hero-title, .hero-subtitle, .hero-ctas, .hero-stats {
    opacity: 1;
    transform: none;
  }
  .service-card, .gallery-item, .section-title, .section-desc {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-title {
    font-size: 4rem;
  }
}
