/* Custom styles for The Hangout */

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

body {
  overflow-x: hidden;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

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

/* Mobile menu */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Menu tabs */
.menu-tab {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.menu-tab:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(200,150,12,0.3);
}

.menu-tab.active {
  background: rgba(200,150,12,0.15);
  color: #C8960C;
  border-color: rgba(200,150,12,0.4);
}

/* Menu content */
.menu-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.floating-card-2 {
  animation: float2 7s ease-in-out infinite;
}

.floating-card-3 {
  animation: float3 5s ease-in-out infinite;
}

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

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

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

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card,
  .floating-card-2,
  .floating-card-3 {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #060f21;
}

::-webkit-scrollbar-thumb {
  background: rgba(200,150,12,0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(200,150,12,0.5);
}

/* Nav links */
.nav-link {
  position: relative;
}

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

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

/* Image hover zoom */
.rounded-2xl.overflow-hidden {
  will-change: transform;
}

/* Select styling */
select option {
  background: #0a1835;
  color: #fff;
}

/* Mobile menu button animation */
.menu-line {
  display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
  width: 5px;
}
