/* ============================================
   King Supthin Hookah Lounge — Custom Styles
   ============================================ */

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

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

body {
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #061a2e;
}
::-webkit-scrollbar-thumb {
  background: #0f3460;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #144278;
}

/* Navigation */
.nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(6, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

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

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

.nav-link:hover {
  color: #7ee8d4 !important;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #34d4b4, #2bb59a);
  color: #0a2540;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(52, 212, 180, 0.3);
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(52, 212, 180, 0.4);
  background: linear-gradient(135deg, #7ee8d4, #34d4b4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(52, 212, 180, 0.4);
  transform: translateY(-2px);
}

/* Hero card */
.card-main {
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* Floating cards */
.floating-card {
  animation: float 6s ease-in-out infinite;
}

.card-float-1 {
  animation-delay: 0s;
}

.card-float-2 {
  animation-delay: 2s;
}

.card-float-3 {
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Menu cards */
.menu-card {
  opacity: 1;
}

/* Feature cards */
.feature-card {
  opacity: 1;
}

/* Review cards */
.review-card {
  opacity: 1;
}

/* Reveal animations (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);
  }
}

/* Staggered reveal delays */
.reveal[style*="transition-delay"] {
  transition-delay: inherit;
}

/* Section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Image hover effects */
img {
  max-width: 100%;
  height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #34d4b4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(52, 212, 180, 0.3);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }

  .card-main {
    margin-top: 2rem;
  }

  .card-main img {
    height: 350px;
  }

  #hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 640px) {
  .nav .hidden {
    display: none;
  }

  #hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .grid-cols-2 > div:first-child {
    grid-row: span 2;
  }
}

/* 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 {
    opacity: 1;
    transform: none;
  }
}
