*, *::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: #1C1C24;
}
::-webkit-scrollbar-thumb {
  background: #F97066;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F4574B;
}

/* Animation keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.03); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 8s ease-in-out infinite;
  animation-delay: 1s;
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Game cards */
.game-card {
  cursor: pointer;
}

/* Event cards */
.event-card {
  cursor: pointer;
}

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

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

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

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08) !important;
}

.nav-scrolled .nav-link {
  color: #545464 !important;
}

.nav-scrolled .nav-link:hover {
  color: #F97066 !important;
}

.nav-scrolled .font-display {
  color: #1C1C24 !important;
}

.nav-scrolled .font-display span {
  color: #F97066 !important;
}

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

.mobile-link {
  position: relative;
  padding-left: 0;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #F97066;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #F97066;
  transition: width 0.3s ease;
}

.mobile-link:hover::before {
  width: 16px;
}

/* Input focus styles */
input:focus, textarea:focus {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  #hero h1 {
    font-size: 2.5rem !important;
  }

  .game-card {
    padding: 1.5rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #hero h1 {
    font-size: 3.5rem !important;
  }
}

/* Print styles */
@media print {
  nav, #contact, .event-card { display: none; }
  body { color: #000; background: #fff; }
}
