/* ============================================
   FC Bosna - Visual Enhancements
   Parallax, Animations, Modern Design Patterns
   ============================================ */

/* ---------- Enhanced CSS Variables ---------- */
:root {
  --glow-green: rgba(45, 90, 39, 0.15);
  --glow-yellow: rgba(232, 185, 49, 0.2);
  --gradient-hero: linear-gradient(135deg, #e8f5e2 0%, #d4e8cd 30%, #88b77b 70%, #2d5a27 100%);
  --gradient-dark: linear-gradient(135deg, #1a2e1a 0%, #2d5a27 50%, #1e2d1e 100%);
  --gradient-accent: linear-gradient(135deg, #e8b931 0%, #d4a520 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
}

/* ---------- Smooth Page Load ---------- */
body {
  animation: pageLoad 0.6s ease-out;
}
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Enhanced Hero Section ---------- */
.hero {
  background: var(--gradient-hero);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-pattern.svg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-light), transparent);
  z-index: 1;
}
.hero-bg {
  z-index: 0;
}

/* Floating particles effect */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

/* Soccer ball emoji particles */
.hero-particle.soccer-ball-particle {
  font-size: 18px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  animation-name: soccerBallFloat;
}
.hero-particle.soccer-ball-particle:nth-child(1) { left: 5%; top: 15%; animation-delay: 0s; animation-duration: 9s; font-size: 22px; }
.hero-particle.soccer-ball-particle:nth-child(2) { left: 20%; top: 65%; animation-delay: 2s; animation-duration: 11s; font-size: 14px; }
.hero-particle.soccer-ball-particle:nth-child(4) { left: 55%; top: 20%; animation-delay: 1.5s; animation-duration: 8s; font-size: 16px; }
.hero-particle.soccer-ball-particle:nth-child(6) { left: 80%; top: 55%; animation-delay: 3s; animation-duration: 10s; font-size: 20px; }
.hero-particle.soccer-ball-particle:nth-child(9) { left: 92%; top: 25%; animation-delay: 4.5s; animation-duration: 12s; font-size: 12px; }

/* Glowing dot particles */
.hero-particle.glow-particle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
  box-shadow: 0 0 12px 3px rgba(218, 165, 32, 0.3);
  animation-name: glowFloat;
}
.hero-particle.glow-particle:nth-child(3) { left: 38%; top: 30%; animation-delay: 0.8s; animation-duration: 7s; width: 10px; height: 10px; }
.hero-particle.glow-particle:nth-child(5) { left: 65%; top: 75%; animation-delay: 2.5s; animation-duration: 9s; width: 6px; height: 6px; }
.hero-particle.glow-particle:nth-child(7) { left: 45%; top: 85%; animation-delay: 1s; animation-duration: 6s; width: 5px; height: 5px; }
.hero-particle.glow-particle:nth-child(8) { left: 15%; top: 45%; animation-delay: 3.5s; animation-duration: 8s; width: 12px; height: 12px; }
.hero-particle.glow-particle:nth-child(10) { left: 75%; top: 10%; animation-delay: 5s; animation-duration: 10s; width: 7px; height: 7px; }

@keyframes soccerBallFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0; }
  10%  { opacity: 0.5; }
  25%  { transform: translate(25px, -40px) rotate(90deg) scale(1.1); opacity: 0.6; }
  50%  { transform: translate(-15px, -70px) rotate(200deg) scale(0.9); opacity: 0.35; }
  75%  { transform: translate(35px, -30px) rotate(300deg) scale(1.05); opacity: 0.55; }
  90%  { opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); opacity: 0; }
}
@keyframes glowFloat {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  15%  { opacity: 0.4; }
  30%  { transform: translate(15px, -25px) scale(1.5); opacity: 0.6; box-shadow: 0 0 18px 5px rgba(218, 165, 32, 0.4); }
  50%  { transform: translate(-10px, -50px) scale(0.8); opacity: 0.25; }
  70%  { transform: translate(20px, -35px) scale(1.3); opacity: 0.5; box-shadow: 0 0 20px 6px rgba(218, 165, 32, 0.35); }
  100% { transform: translate(0, 0) scale(1); opacity: 0; }
}
@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.5; }
  50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.2; }
  75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.4; }
}

/* Hero player image */
.hero-player-img {
  max-width: 540px;
  border-radius: 13%;
  border: 3px solid var(--primary-green);
  width: 200%;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.25));
  animation: heroPlayerEntrance 1s ease-out 0.3s both;
  transition: transform 0.4s ease;
}
.hero-player-img:hover {
  transform: scale(1.03) translateY(-4px);
}
@keyframes heroPlayerEntrance {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 768px) {
  .hero-player-img {
    max-width: 280px;
  }
}

/* Enhanced hero text */
.hero-text h1 {
  position: relative;
}
.hero-text h1 span:first-child {
  background: linear-gradient(135deg, var(--text-dark), #2a3f2a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text h1 span:last-child {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero value tags glow */
.hero-value-tag {
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.hero-value-tag:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(232, 185, 49, 0.3);
}

/* ---------- Enhanced Page Headers ---------- */
.page-header {
  background: var(--gradient-dark);
  position: relative;
  padding: 160px 0 80px;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
  opacity: 1;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-light), transparent);
}
.page-header h1 {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-header p {
  position: relative;
  z-index: 2;
}

/* Animated underline for page headers */
.page-header h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-yellow);
  margin: 16px auto 0;
  border-radius: 2px;
  animation: expandWidth 0.8s ease-out 0.3s both;
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to { width: 80px; opacity: 1; }
}

/* ---------- Parallax Sections ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

/* ---------- Stats / Counter Section ---------- */
.stats-section {
  padding: 80px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 2;
}
.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  transition: all 0.4s ease;
}
.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(232, 185, 49, 0.3);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  padding: 100px 0;
  background: white;
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 5%;
  font-size: 20rem;
  font-family: Georgia, serif;
  color: var(--primary-green);
  opacity: 0.03;
  line-height: 1;
  pointer-events: none;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}
.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-card {
  min-width: 100%;
  padding: 50px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  position: relative;
  text-align: center;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent-yellow);
  line-height: 1;
  opacity: 0.5;
}
.testimonial-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
}
.testimonial-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.testimonial-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--primary-green);
  transform: scale(1.2);
}
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}
.testimonial-nav:hover {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}
.testimonial-prev { left: -22px; }
.testimonial-next { right: -22px; }

/* ---------- Timeline Section ---------- */
.timeline-section {
  padding: 100px 0;
  background: var(--bg-light);
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-green), var(--accent-yellow));
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--accent-yellow);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-green);
  z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-dot { right: -9px; }
.timeline-item:nth-child(even) .timeline-dot { left: -9px; }
.timeline-content {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-yellow);
  margin-bottom: 6px;
}
.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Philosophy Cards ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.philosophy-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
}
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.philosophy-card:hover::before {
  transform: scaleX(1);
}
.philosophy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}
.philosophy-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(45, 90, 39, 0.25);
  transition: all 0.4s ease;
}
.philosophy-card:hover .philosophy-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(45, 90, 39, 0.35);
}
.philosophy-card h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.philosophy-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- Progress Bars ---------- */
.progress-section {
  padding: 80px 0;
  background: white;
}
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.progress-item {
  margin-bottom: 24px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.progress-label span:first-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.progress-label span:last-child {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-green);
}
.progress-bar {
  height: 10px;
  background: var(--bg-light);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-fill.animated {
  width: var(--progress-width);
}

/* ---------- Achievement Badges ---------- */
.achievements-section {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.achievement-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.achievement-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(232, 185, 49, 0.05));
  pointer-events: none;
}
.achievement-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.achievement-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-yellow), #f0c84d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(232, 185, 49, 0.3);
  transition: all 0.4s ease;
}
.achievement-card:hover .achievement-badge {
  transform: scale(1.15) rotate(10deg);
}
.achievement-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.achievement-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- CTA Banner Section ---------- */
.cta-banner {
  padding: 100px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/400px repeat;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(232,185,49,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-banner .container {
  position: relative;
  z-index: 2;
}
.cta-banner h2 {
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ---------- Image Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,26,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: white;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay h5 {
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Training Schedule Cards ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.schedule-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.schedule-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.schedule-card-header {
  background: var(--primary-green);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.schedule-card-header h5 {
  font-size: 0.9rem;
  margin: 0;
  letter-spacing: 0.05em;
}
.schedule-card-header .day-badge {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.schedule-card-body {
  padding: 20px 24px;
}
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.schedule-item:last-child {
  border-bottom: none;
}
.schedule-item-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.schedule-item-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Enhanced Ambition / Parallax CTA ---------- */
.ambition-section {
  background-attachment: fixed;
}
.ambition-bg img {
  transition: transform 0.3s ease;
}
.ambition-content h2 {
  letter-spacing: 0.15em;
}
.ambition-content .tag {
  animation: float 3s ease-in-out infinite;
}

/* ---------- Scroll-triggered animations ---------- */
.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.fade-rotate {
  opacity: 0;
  transform: rotate(-3deg) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-rotate.visible {
  opacity: 1;
  transform: rotate(0) translateY(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ---------- Enhanced Section Labels ---------- */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent-yellow);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Glassmorphism Cards ---------- */
.glass-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ---------- Gradient text utility ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, var(--accent-yellow), #d4a520);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Enhanced Donations Section ---------- */
.donations-grid {
  position: relative;
}
.donations-left {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
  position: relative;
  overflow: hidden;
}
.donations-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/300px repeat;
  opacity: 0.5;
}
.donations-left > * { position: relative; z-index: 1; }

/* ---------- Enhanced Tryouts CTA ---------- */
.tryouts-cta {
  position: relative;
  overflow: hidden;
}
.tryouts-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.tryouts-cta > .container { position: relative; z-index: 1; }

/* ---------- Enhanced Footer ---------- */
.footer-banner {
  position: relative;
  height: 240px;
}
.footer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/field-pattern.svg') center/300px repeat;
  opacity: 0.3;
}
.footer-banner p {
  position: relative;
  z-index: 1;
}

/* ---------- Pulse animation for CTAs ---------- */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 185, 49, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(232, 185, 49, 0); }
}

/* ---------- Typed cursor effect ---------- */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-yellow);
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ---------- Tooltip ---------- */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--primary-dark);
  color: white;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Enhanced Responsive ---------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .progress-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 60px; padding-right: 0; text-align: left !important; }
  .timeline-item .timeline-dot { left: 11px !important; right: auto !important; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-card { padding: 24px 16px; }
  .stat-number { font-size: 2.2rem; }
  .testimonial-card { padding: 30px 20px; }
  .testimonial-prev, .testimonial-next { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .parallax-bg { background-attachment: scroll; }
  .ambition-section { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}


/* ============================================
   GALLERY SLIDESHOW
   ============================================ */
.gallery-slideshow-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a1628;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-track .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
}

.slideshow-track .slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-track .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Navigation Arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.slide-arrow:hover {
  background: rgba(30, 136, 56, 0.8);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.slide-prev {
  left: 20px;
}

.slide-next {
  right: 20px;
}

/* Dot Indicators */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slide-dots .dot.active {
  background: #1e8838;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(30, 136, 56, 0.6);
}

.slide-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Slide Counter */
.slide-counter {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .slideshow-container {
    aspect-ratio: 4 / 3;
  }

  .slide-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }

  .slide-dots {
    bottom: 12px;
    gap: 5px;
    padding: 6px 10px;
  }

  .slide-dots .dot {
    width: 8px;
    height: 8px;
  }

  .slide-counter {
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .slideshow-container {
    aspect-ratio: 3 / 4;
  }
}
