/* ============================================
   THE LOUNGE ON OAK — Custom Styles
   ============================================ */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fdf2f4;
}
::-webkit-scrollbar-thumb {
  background: #a11d32;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7B2D3B;
}

/* Selection */
::selection {
  background: #f9c4cc;
  color: #5c1f29;
}

/* ============================================
   NAVIGATION
   ============================================ */
#nav {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#nav.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

#nav:not(.scrolled) .nav-logo-text {
  color: #fefdfb;
}

.nav-link {
  position: relative;
}

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

#nav.scrolled .nav-link::after {
  background: #7B2D3B;
}

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

#nav:not(.scrolled) .nav-link {
  color: #fce4e8;
}

#nav:not(.scrolled) .nav-link:hover {
  color: #fde8e0;
}

/* Hamburger */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

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

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   HERO — Geometric Shapes
   ============================================ */
.geo-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.geo-circle-1 {
  width: 500px;
  height: 500px;
  background: #f5bebe;
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: #f9c4cc;
  bottom: 15%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square {
  position: absolute;
  width: 120px;
  height: 120px;
  background: #fde8e0;
  opacity: 0.1;
  top: 20%;
  left: 8%;
  border-radius: 24px;
  transform: rotate(45deg);
  animation: spin-slow 25s linear infinite;
}

.geo-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid #f9c4cc;
  opacity: 0.1;
  bottom: 20%;
  right: 15%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-rect {
  position: absolute;
  width: 80px;
  height: 160px;
  background: #fce4e8;
  opacity: 0.08;
  bottom: 10%;
  left: 15%;
  border-radius: 16px;
  animation: spin-slow 30s linear infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-track {
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-block;
  padding: 0 4px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ============================================
   SECTION REVEAL ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   FORM STYLES
   ============================================ */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .geo-circle-1 {
    width: 300px;
    height: 300px;
  }
  .geo-square {
    width: 80px;
    height: 80px;
  }
}
