/* ═══════════════════════════════════════════
   Hair Maniac Beauty Lounge — Custom Styles
   Vibrant modern · Charcoal + Coral
   ═══════════════════════════════════════════ */

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

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

body {
  overflow-x: hidden;
}

/* ─── Navbar ─── */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

#navbar.scrolled {
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ─── Hero Geometric Shapes ─── */
.geo-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.geo-circle-1 {
  width: 420px;
  height: 420px;
  border: 2px solid rgba(232, 93, 74, 0.2);
  border-radius: 50%;
  top: 5%;
  right: -5%;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(232, 93, 74, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
  animation: float-medium 14s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(232, 93, 74, 0.15);
  border-radius: 50%;
  top: 30%;
  left: 10%;
  animation: float-slow 10s ease-in-out infinite;
}

.geo-square-1 {
  width: 100px;
  height: 100px;
  background: rgba(232, 93, 74, 0.08);
  border: 1px solid rgba(232, 93, 74, 0.15);
  top: 20%;
  left: 25%;
  transform: rotate(45deg);
  animation: float-medium 16s ease-in-out infinite;
}

.geo-square-2 {
  width: 60px;
  height: 60px;
  background: rgba(232, 93, 74, 0.1);
  border: 1px solid rgba(232, 93, 74, 0.2);
  bottom: 25%;
  right: 20%;
  transform: rotate(30deg);
  animation: float-slow 12s ease-in-out infinite reverse;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 45px solid transparent;
  border-right: 45px solid transparent;
  border-bottom: 78px solid rgba(232, 93, 74, 0.08);
  top: 60%;
  right: 10%;
  animation: float-medium 18s ease-in-out infinite;
}

.geo-dots {
  bottom: 12%;
  right: 30%;
  opacity: 0.3;
}

.geo-dots svg {
  animation: pulse-dots 3s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes pulse-dots {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.6; }
}

/* Square rotations for shapes that need them */
.geo-square-1 {
  animation-name: float-square-1;
}

@keyframes float-square-1 {
  0%, 100% { transform: rotate(45deg) translateY(0px); }
  50%       { transform: rotate(50deg) translateY(-20px); }
}

.geo-square-2 {
  animation-name: float-square-2;
}

@keyframes float-square-2 {
  0%, 100% { transform: rotate(30deg) translateY(0px); }
  50%       { transform: rotate(25deg) translateY(-15px); }
}

/* ─── Service Cards ─── */
.service-card {
  /* Default visible state for progressive enhancement */
}

.service-card:hover .bg-charcoal-700\/60 {
  /* Tailwind handles this via hover state */
}

/* ─── Scroll Reveal ─── */
/* Default: always visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  /* Stagger children */
  .service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

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

  /* Gallery items */
  #gallery .reveal > div {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  #gallery .reveal.revealed > div {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Mobile Menu ─── */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

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

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

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

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

/* ─── Selection ─── */
::selection {
  background: rgba(232, 93, 74, 0.3);
  color: #fff;
}

/* ─── Focus visible ─── */
:focus-visible {
  outline: 2px solid #E85D4A;
  outline-offset: 2px;
}

/* ─── 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;
  }
}
