/* ===== SHARED STYLES - Alpha Ry ===== */
/* Performance: GPU hints for animated elements */
:root {
  --primary: #003580;
  --primary-light: #0d47a1;
  --accent: #fdd835;
  --dark: #1a1a1a;
  --darker: #0a0a0a;
  --gray: #f5f5f5;
  --text: #333;
  --text-light: #555;
  --text-muted: #666;
  --white-85: rgba(255,255,255,0.85);
  --white-70: rgba(255,255,255,0.7);
  --white-40: rgba(255,255,255,0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.15);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; color: var(--text); }

/* SKIP NAV - Accessibility */
.skip-nav {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--accent); color: var(--dark); padding: 0.8rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* FOCUS STATES - Accessibility */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 2rem;
}
.logo img { height: 72px; width: auto; display: block; }
.logo-text { color: var(--accent); font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; display: none; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { color: #fff; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
nav ul a:hover { color: var(--accent); }

/* HAMBURGER MENU */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 101;
}
.hamburger span {
  display: block; width: 100%; height: 3px; background: #fff;
  border-radius: 2px; transition: all 0.3s;
  position: absolute; left: 0;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* MOBILE NAV */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(0,0,0,0.95); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 700;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--accent); }

/* LANG SWITCHER */
.lang-switcher { display: flex; gap: 0.5rem; }
.lang-btn {
  background: transparent; border: 1px solid var(--white-40);
  color: #fff; padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  cursor: pointer; font-size: 0.8rem; font-weight: 600; transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }

/* BACK LINK */
.back-link {
  position: fixed; top: 6.2rem; left: 1.5rem; z-index: 99;
  color: var(--white-70); text-decoration: none; font-size: 0.85rem;
  background: rgba(0,0,0,0.4); padding: 0.4rem 0.9rem; border-radius: var(--radius-full);
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--white-85); font-size: 1.2rem; max-width: 550px; margin: 0 auto 2.5rem; }
.hero-badge {
  display: inline-block; background: var(--accent); color: var(--dark);
  font-size: 0.8rem; font-weight: 700; padding: 0.3rem 1rem;
  border-radius: var(--radius-full); margin-bottom: 1.5rem; letter-spacing: 2px; text-transform: uppercase;
}

/* BUTTONS */
.btn {
  display: inline-block; padding: 0.9rem 2.5rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-yellow { background: var(--accent); color: var(--dark); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; margin-left: 1rem; }

/* STATS */
.stats { background: var(--dark); display: flex; justify-content: center; flex-wrap: wrap; }
.stat { padding: 1.5rem 3rem; text-align: center; border-right: 1px solid #333; }
.stat:last-child { border-right: none; }
.stat-num { color: var(--accent); font-size: 2rem; font-weight: 900; }
.stat-label { color: #aaa; font-size: 0.85rem; margin-top: 0.2rem; }

/* SECTIONS */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; color: var(--dark); }
.section-title h2 span { color: var(--primary); }
.section-title p { color: var(--text-muted); margin-top: 0.5rem; font-size: 1rem; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; height: 380px; object-fit: cover; object-position: top; display: block; }
.about-text h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; color: var(--dark); }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.tag {
  display: inline-block; background: #e3f2fd; color: var(--primary);
  padding: 0.3rem 0.8rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; margin: 0.2rem;
}

/* CARDS */
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
  will-change: transform;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-header { padding: 2.5rem 2rem 1.5rem; position: relative; overflow: hidden; }
.card-header.kids { background: linear-gradient(135deg, #1a2744, #003580); }
.card-header.adults { background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.card-header.elite { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.card-header::after {
  content: ''; position: absolute; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,0.06); bottom: -60px; right: -40px;
}
.card-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.card-header h3 { font-size: 1.4rem; font-weight: 900; color: #fff; }
.card-header .age {
  display: inline-block; margin-top: 0.6rem;
  background: rgba(255,255,255,0.2); color: #fff;
  padding: 0.25rem 0.8rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
}
.card-body { padding: 1.8rem; flex: 1; }
.card-body ul { list-style: none; }
.card-body ul li {
  padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0;
  color: #444; font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem;
}
.card-body ul li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.card-body ul li:last-child { border-bottom: none; }
.card-footer { padding: 1.2rem 1.8rem 1.8rem; text-align: center; margin-top: auto; }
.card-footer .btn-primary {
  display: block; width: 100%; padding: 0.85rem;
  border-radius: 12px; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: opacity 0.2s;
  color: var(--dark); border: none; cursor: pointer;
  background: var(--accent);
}
.card-footer .btn-primary:hover { opacity: 0.85; }

/* SCHEDULE TABLE */
.schedule-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule-table th { background: var(--primary); color: #fff; padding: 1rem; text-align: left; font-size: 0.9rem; }
.schedule-table td { padding: 1rem; border-bottom: 1px solid #eee; background: #fff; font-size: 0.95rem; }
.schedule-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.badge-kids { background: #e3f2fd; color: var(--primary); }
.badge-adults { background: #e8eaf6; color: #283593; }
.badge-elite { background: #fff8e1; color: #f57f17; }

/* COACHES */
.coaches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.coach-card { text-align: center; padding: 2rem; border-radius: var(--radius-md); background: var(--gray); }
.coach-avatar img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  object-position: top center; display: block; margin: 0 auto 1rem; border: 3px solid #e0e0e0;
}
.coach-avatar-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 2.5rem; color: #fff; font-weight: 700;
}
.coach-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.coach-card p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.coach-card .exp { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-top: 0.5rem; }

/* GALLERY */
.gallery-section { background: var(--dark); }
.gallery-section .section-title h2 { color: #fff; }
.gallery-section .section-title p { color: #aaa; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.g-item { overflow: hidden; border-radius: 10px; cursor: pointer; }
.g-item.wide { grid-column: span 2; }
.g-item.tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; min-height: 220px; }
.g-item:hover img { transform: scale(1.05); }

/* LIGHTBOX */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); }
#lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1;
  background: none; border: none; padding: 0.5rem;
}

/* CONTACT */
.contact-section { background: linear-gradient(135deg, #1a2744, #003580); }
.contact-section .section-title h2 { color: #fff; }
.contact-section .section-title p { color: var(--white-70); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { color: #fff; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item .icon { font-size: 1.5rem; }
.contact-item p { color: var(--white-85); line-height: 1.6; }
.contact-item a { color: var(--white-85); }
.contact-item strong { color: #fff; display: block; margin-bottom: 0.2rem; }
form { background: #fff; padding: 2rem; border-radius: var(--radius-md); }
form input, form select, form textarea {
  width: 100%; padding: 0.8rem 1rem; margin-bottom: 1rem;
  border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: inherit; outline: none; transition: border-color 0.2s;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--primary); }
form textarea { height: 100px; resize: vertical; }
form button {
  width: 100%; padding: 1rem; color: #fff; border: none; background: var(--primary);
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
}
form button:hover { opacity: 0.85; }

/* FOOTER */
footer { background: var(--dark); color: #aaa; text-align: center; padding: 2rem; font-size: 0.9rem; }
footer span { color: var(--accent); }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: #aaa; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* FLOATING BUTTON */
.float-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 998;
  background: var(--primary); color: #fff;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-full);
  font-weight: 800; font-size: 0.95rem; text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0,53,128,0.5);
  animation: pulse-btn 2.5s infinite;
  will-change: transform, box-shadow;
}
.float-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,53,128,0.6); }
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 6px 24px rgba(0,53,128,0.5); }
  50% { box-shadow: 0 6px 32px rgba(0,53,128,0.8); }
}

/* CAMP POPUP */
#camp-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.75); align-items: center; justify-content: center;
  padding: 1rem;
}
#camp-overlay.open { display: flex; }
#camp-popup {
  position: relative; max-width: 480px; width: 100%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
#camp-popup img { width: 100%; display: block; }
#camp-popup-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%; width: 32px; height: 32px;
  font-size: 1.1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
#camp-popup-footer {
  background: var(--dark); padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
#camp-popup-footer p { color: #fff; font-size: 0.9rem; font-weight: 600; }
#camp-popup-footer a {
  background: var(--accent); color: var(--dark);
  padding: 0.6rem 1.4rem; border-radius: var(--radius-full);
  font-weight: 800; font-size: 0.9rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s;
}
#camp-popup-footer a:hover { transform: scale(1.05); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul { display: none; }
  .hamburger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat { padding: 1rem 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item.wide { grid-column: span 1; }
  .g-item.tall { grid-row: span 1; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
}
