:root {
  --neon-blue: #00d4ff;
  --neon-red: #ff3366;
  --dark-bg: #0a0a0a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: #e5e5e5;
  overflow-x: hidden;
}

/* Prevent horizontal scroll on all devices */
html, body {
  max-width: 100vw;
}

/* Glassmorphism Navbar */
.navbar-glass {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.1);
}

/* Hero Section */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.5) 50%, rgba(10, 10, 10, 0.85) 100%);
}

.hero-text-reveal {
  opacity: 0;
  transform: translateY(60px);
  animation: heroReveal 1s ease-out 0.3s forwards;
}

.hero-text-reveal.delay-1 { animation-delay: 0.5s; }
.hero-text-reveal.delay-2 { animation-delay: 0.7s; }
.hero-text-reveal.delay-3 { animation-delay: 1s; }
.hero-text-reveal.delay-4 { animation-delay: 1.3s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
}

/* Plan Card Highlight */
.plan-highlight {
  border: 2px solid var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transform: scale(1.02);
}

.plan-highlight:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.plan-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.3);
}

/* Trainer Image Zoom */
.trainer-img-wrap {
  overflow: hidden;
  border-radius: 12px;
}

.trainer-img-wrap img {
  transition: transform 0.5s ease;
}

.trainer-img-wrap:hover img {
  transform: scale(1.1);
}

/* Gallery Image Zoom */
.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 212, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Button Glow */
.btn-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.btn-glow-red:hover {
  box-shadow: 0 0 25px rgba(255, 51, 102, 0.5);
}

/* Input Styling */
.input-modern {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.input-modern:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.input-modern::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Input error state (when validation fails) */
.input-modern.input-error {
  border-color: var(--neon-red);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

.field-error {
  display: block;
  color: #ff3366;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.field-error.hidden {
  display: none !important;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Section Spacing */
section {
  padding: 5rem 1.5rem;
}

@media (min-width: 768px) {
  section {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 7rem 3rem;
  }
}

/* Form notification toast */
.form-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  z-index: 9999;
  animation: slideUp 0.4s ease;
  max-width: 90%;
}

.form-notification.hidden {
  display: none !important;
}

.form-notification.success {
  background: rgba(0, 212, 255, 0.2);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
}

.form-notification.error {
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid rgba(255, 51, 102, 0.5);
  color: #ff3366;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ========== SUCCESS MODAL ========== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn 0.4s ease;
}

.success-modal.hidden {
  display: none !important;
}

.success-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.success-modal-content {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  animation: modalSlideUp 0.4s ease;
}

.success-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
}

.success-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.success-modal-text {
  color: #94a3b8;
  font-size: 1rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* Mobile: slightly smaller, ensure it doesn't overlap content */
@media (max-width: 640px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* Staggered scroll reveal (applied to grid children) */
.grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.grid .reveal:nth-child(5) { transition-delay: 0.15s; }
.grid .reveal:nth-child(6) { transition-delay: 0.2s; }
