/* Pro One Goalkeeping - main stylesheet (layout, sections, light/dark mode, phone layout) */
/* Global Settings */
:root {
  --bg-dark: #000000;
  --bg-light: #eeeaea; 
  --card-bg: rgba(255, 255, 255, 0.05);
  --accent-green: #2cf7ca;
  --text-light: #f5f5f5;
  --text-dark: #111; 
  --radius: 24px;
  --transition: 0.3s ease;
  --text-l:rgba(128, 128, 128, 0.549);
  
  /* Initial Theme Variables (Dark Mode) */
  --color-primary-bg: var(--bg-dark);
  --color-secondary-bg: rgba(0, 0, 0, 0.4);
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-text: var(--text-light);
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-input-bg: rgba(255, 255, 255, 0.1);
  --color-input-focus-shadow: 0 0 0 2px var(--accent-green);
}

/* 1. MASTER FIX: Forces padding to stay INSIDE the 100vh limit */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
}

/* Light Mode Theme */
.light-mode {
  --color-primary-bg: var(--bg-light);
  --color-secondary-bg: rgba(255, 255, 255, 0.8);
  --color-card-bg: rgba(0, 0, 0, 0.05);
  --color-text: var(--text-dark);
  --color-text-secondary: rgba(0, 0, 0, 0.6);
  --color-input-bg: rgba(0, 0, 0, 0.05);
  --color-input-focus-shadow: 0 0 0 2px var(--accent-green);
}

html {
  scrollbar-width: none;
}

body {
  position: relative; 
  margin: 0;
  background: var(--color-primary-bg); 
  color: var(--color-text); 
  font-family: "SF Pro Display", "Poppins", sans-serif;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
}

.page-wrapper {
  position: relative;
}

/* ==================== NAVBAR & PILL ==================== */
.navbar {
  position: fixed;
  top: 15px; 
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center; 
  z-index: 1000;
  background: transparent !important; 
  backdrop-filter: none !important;   
  pointer-events: none; 
}

.logo {
  position: absolute;
  left: 32px;
  top: 50%; 
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  cursor: crosshair;
  pointer-events: auto;
}

.logo img {
  height: 40px;
}

.nav-icons {
  display: flex;
  gap: 35px;
  justify-content: center;
  align-items: center;
  background: var(--color-secondary-bg);
  backdrop-filter: blur(12px);
  padding: 10px 40px;
  border-radius: 50px; 
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  pointer-events: auto; 
  transition: background var(--transition);
}

.soc-icons {
    display: flex;
    gap: 20px;
    padding-top: 10px;
    animation: slide 2s;
}

@keyframes slide{
    0%{transform: translateX(20%);}
    50%{transform: translateX(-5%);}
    100%{transform: translateX(0);}
}

.icon-card, .navbar a.icon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.icon-card img {
  width: 26px;
  filter: brightness(0.8) invert(0);
  transition: var(--transition);
}
.light-mode .logo img { filter: brightness(0.6) hue-rotate(0deg); }

.icon-card span {
  position: absolute; 
  top: 40px; 
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
  white-space: nowrap; 
  pointer-events: none; 
}

.icon-card:hover span {
  opacity: 1;
  transform: translateY(0);
}

.icon-card:hover img {
  filter: brightness(1) drop-shadow(0 0 8px var(--accent-green));
  transform: translateY(-4px);
}
/* Light mode: the white icons turn dark so they show on light backgrounds; green ones get a bit darker */
.light-mode .icon-card img { filter: invert(0.85); }
.light-mode .icon-card img[src$="video.svg"],
.light-mode .icon-card img[src$="instagram.svg"] { filter: brightness(0.75); }
.light-mode .icon-card:hover img { filter: invert(0.85) drop-shadow(0 0 8px var(--accent-green)); }
.light-mode .icon-card:hover img[src$="video.svg"],
.light-mode .icon-card:hover img[src$="instagram.svg"] { filter: brightness(0.75) drop-shadow(0 0 8px var(--accent-green)); }

/* Touch screens: no hover glow/lift (on phones it sticks to the last tapped icon) and no grey tap box */
.icon-card { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .icon-card:hover img { transform: none; filter: brightness(0.8); }
  .icon-card:hover span { opacity: 0; }
  .light-mode .icon-card:hover img { filter: invert(0.85); }
  .light-mode .icon-card:hover img[src$="video.svg"],
  .light-mode .icon-card:hover img[src$="instagram.svg"] { filter: brightness(0.75); }
}

.theme-switch {
    right: 480px; 
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

.theme-switch-icon, .light-mode.theme-switch-icon {
    width: 26px;
    height: 26px;
    transition: var(--transition);
    fill: var(--text-l);
}

.icon-card:active img { animation: rotate 3s; }
@keyframes rotate{ 0%{transform: rotate(0deg);} 100%{transform: rotate(360deg);} }

/* ==================== UNIVERSAL STICKY STACKING ==================== */
.index-page .page-wrapper > section {
    position: sticky;
    top: 0;
    height: 100vh; /* every section is exactly one full screen, including behind the phone browser bars */
    width: 100vw;
    overflow: hidden;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6); 
    z-index: 1; 
}

#hero { z-index: 1; }
#videos { z-index: 2; }
#coach { z-index: 3; }
#services { z-index: 4; }
#stadiums { z-index: 5; }
#Events { z-index: 6; }
#testimonials { z-index: 7; }
#contact { z-index: 8; }

.page-wrapper > section > * {
    transition: opacity 0.1s linear, transform 0.1s linear;
}

/* ==================== GLOBAL TYPOGRAPHY / LAYOUT ==================== */
/* SIT HIGHER FIX: Added 110px top padding to clear navbar, aligned to flex-start */
.section {
    padding: 110px 10% 40px 10%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    text-align: left; 
    height: 100vh;
}

.section-title {
    font-family: "Impact", "Arial Black", sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--color-text);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: -1px;
    transform: scaleY(0.8);
    transform-origin: left bottom;
}
.light-mode .section-title { filter: brightness(0.6); }

/* ==================== HERO ==================== */
.hero-new {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: #000;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-right-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 100% 50%, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 1) 44%, hsla(167, 93%, 57%, 1) 71%, hsla(0, 0%, 0%, 1) 100%);
    z-index: 1;
    pointer-events: none; 
}

.hero-huge-text {
    position: relative;
    z-index: 2;
    font-family: "Impact", "Arial Black", sans-serif;
    font-size: 18vw; 
    line-height: 0.85;
    margin: 0 0 0 5vw;
    color: #fff;
    transform: scaleY(0.85);
    transform-origin: left center;
}
.light-mode .hero-huge-text { color: #111; }
.light-mode .hero-new { background: var(--bg-light); }
.light-mode .hero-right-bg {
    background: radial-gradient(circle at 100% 50%, var(--bg-light) 0%, var(--bg-light) 44%, hsla(167, 93%, 57%, 1) 71%, var(--bg-light) 100%);
}

/* ==================== FULLSCREEN VIDEOS ==================== */
.video-fs-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.fs-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1s ease;
}

.fs-video.active { opacity: 1; z-index: 1; }

/* Vertical (phone) videos are shown whole in the middle instead of cropped */
.fs-video--portrait { object-fit: contain; }

/* ==================== COACH ==================== */
.section-coach {
    background: #0a0a0a;
}
.light-mode .section-coach { background: var(--bg-light); }

.coach-container {
  display: flex; align-items: flex-start; justify-content: flex-start; gap: 40px; flex-wrap: wrap;
}

.coach-text {
  flex: 1; max-width: 500px; line-height: 1.6; align-self: center;
}

.card {
  background: var(--color-card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); transition: var(--transition); backdrop-filter: blur(8px);
  height: 400px; width: 300px; 
}

.card:hover { transform: translateY(-6px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8); }

.card-image {
  width: 100%; height: 70%; background-size: cover; background-position: center; transition: height var(--transition); 
}

.card-info {
  height: 30%; display: flex; flex-direction: column; align-items: center; justify-content: center; 
  background: linear-gradient(to top, var(--color-card-bg), transparent); 
  font-weight: 500; text-align: center; box-shadow: inset 0 -4px 10px rgba(44, 247, 202, 0.05); 
}

/* ==================== SERVICES ==================== */
.section-services {
    background: linear-gradient(315deg, hsla(167, 70%, 14%, 1) 0%, hsla(167, 70%, 14%, 1) 6%, hsla(166, 68%, 7%, 1) 100%);
}

.services-columns {
    display: flex; justify-content: space-between; gap: 20px; 
    margin-top: 20px; /* Reduced to sit closer to title */
}

.serv-col { flex: 1; }
.serv-col h3 { color: #999; font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px; }
.serv-col ul { list-style: none; padding: 0; margin: 0; }
.serv-col li { margin-bottom: 25px; position: relative; }
.serv-col a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; transition: color 0.3s; }
.serv-col a:hover { color: var(--accent-green); }

.hover-desc {
    font-size: 0.9rem; color: #ccc; margin-top: 8px; max-height: 0; opacity: 0;
    overflow: hidden; transform: translateY(-5px); transition: all 0.8s ease;
}

.serv-col li:hover .hover-desc { max-height: 60px; opacity: 1; transform: translateY(0); }

.light-mode .section-services {
    background: linear-gradient(315deg, hsl(167, 55%, 80%) 0%, hsl(167, 45%, 88%) 6%, var(--bg-light) 100%);
}
.light-mode .serv-col h3 { color: #555; }
.light-mode .serv-col a { color: #111; }
.light-mode .serv-col a:hover { color: hsl(167, 80%, 30%); }
.light-mode .hover-desc { color: #444; }

/* ==================== STADIUMS ==================== */
.stadiums-fs-section {
    background: #000;
}

.stadium-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease;
}

.stadium-slide.active { opacity: 1; z-index: 1; }

.stadium-gradient-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.stadium-name {
    position: absolute; bottom: 40px; left: 5vw; font-family: "Impact", "Arial Black", sans-serif;
    font-size: 6rem; line-height: 0.9; color: #fff; margin: 0; transform: scaleY(0.85);
    transform-origin: left bottom; z-index: 2;
}

.stadium-loc {
    position: absolute; bottom: 50px; right: 5vw; text-align: right; color: #fff; font-size: 1rem; z-index: 2;
}

.stadium-loc a { color: var(--accent-green); font-weight: bold; text-transform: uppercase; text-decoration: none; }
.stadium-loc a:hover { text-decoration: underline; }

.stadium-click-left, .stadium-click-right {
    position: absolute; top: 0; width: 50%; height: 100%; z-index: 10; cursor: pointer;
}
.stadium-click-right { right: 0; }

/* ==================== EVENTS ==================== */
.events-new-section {
    background: #000;
    /* SIT HIGHER FIX */
    padding: 110px 10% 40px 10%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.events-new-section .section-title { 
    margin-top: 0;
    margin-bottom: 40px; 
}

.events-carousel-wrapper { 
    display: grid; 
    width: 100%; 
}

.event-slide {
    grid-row: 1; grid-column: 1; opacity: 0; pointer-events: none; transition: opacity 1.5s ease;
    display: flex; align-items: center; justify-content: space-between; 
}

.event-slide.active { opacity: 1; pointer-events: auto; }

.ev-title {
    font-family: "Impact", "Arial Black", sans-serif; 
    font-size: clamp(4rem, 7vw, 8rem); 
    line-height: 0.85; color: #fff; margin: 0; 
    transform: scaleY(0.85); transform-origin: left center;
    flex: 1; text-transform: uppercase; position: relative; z-index: 1;
}

.ev-info {
    width: 550px; max-width: 100%; top: 75%;
    /* Same offset as before on tall screens, but never pushed past the bottom of shorter screens */
    top: clamp(0px, calc(100svh - 100% - 250px), 75%);
    margin-left: -150px; position: relative; z-index: 2;
    background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(12px); box-shadow: -15px 15px 40px rgba(0,0,0,0.6);
    padding: 40px; border-radius: 12px; border-left: none; color: #ccc; font-size: 1.1rem; line-height: 1.6;
}

@media (max-width: 1024px) {
    .event-slide { flex-direction: column; align-items: flex-start; gap: 30px; }
    .ev-info { margin-left: 0; width: 100%; top: 0; }
}

/* Short laptop screens: tighten Services so the longest column fits */
@media (max-height: 720px) and (min-width: 769px) {
    .section-services { padding-top: 95px; }
    .section-services .section-title { margin-bottom: 20px; }
    .serv-col li { margin-bottom: 14px; }
    .serv-col a { font-size: 1.3rem; }
    .ev-info { margin-left: 0; } /* the info box sits higher here, so don't let it cover the event title */
}

.light-mode .events-new-section { background: var(--bg-light); }
.light-mode .ev-title { color: #111; }
.light-mode .ev-info { background: rgba(255, 255, 255, 0.85); color: #333; box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.12); }

/* ==================== TESTIMONIALS ==================== */
.section-testimonials {
    background: #000;
}

.section-testimonials::before {
    /* Full width so the glow always fades out smoothly; the radius matches the original
       half-width layer, so wide screens look the same and tall phones get no hard edge */
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 0% 50%, hsla(167, 93%, 57%, 1) 0%, hsla(166, 70%, 29%, 1) 47%, hsla(0, 0%, 0%, 1) 84%);
    background: radial-gradient(circle hypot(50vw, 50vh) at 0% 50%, hsla(167, 93%, 57%, 1) 0%, hsla(166, 70%, 29%, 1) 47%, hsla(0, 0%, 0%, 1) 84%);
    z-index: 0; pointer-events: none;
}

.light-mode .section-testimonials { background: var(--bg-light); }
.light-mode .section-testimonials::before {
    background: radial-gradient(circle at 0% 50%, hsla(167, 93%, 57%, 1) 0%, hsla(167, 70%, 72%, 1) 40%, var(--bg-light) 84%);
    background: radial-gradient(circle hypot(50vw, 50vh) at 0% 50%, hsla(167, 93%, 57%, 1) 0%, hsla(167, 70%, 72%, 1) 40%, var(--bg-light) 84%);
}

.testimonial-carousel { position: relative; min-height: 450px; }
.testimonial-slide {
    position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity 1s ease-in-out; pointer-events: none; 
}
.testimonial-slide.active { opacity: 1; pointer-events: auto; }

/* ==================== CONTACT ==================== */
.section-contact { 
    position: relative;
    background: #000; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Sit higher fix */
    padding-top: 110px;
}

.section-contact::after {
    content: ""; position: absolute; bottom: 0; right: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, hsla(0, 0%, 0%, 1) 1%, hsla(167, 93%, 57%, 1) 15%, hsla(166, 68%, 7%, 1) 22%);
    z-index: 0; pointer-events: none; 
}

.section-contact .contact {
    position: relative; z-index: 2;
}

.section-contact .section-title {
    font-size: clamp(4rem, 13vw, 15rem); line-height: 0.85; margin-bottom: 30px; color: #fff;
}

.section-contact p {
    font-size: 1.2rem; color: #ccc; margin: 8px 0 8px 1vw; 
}

.section-contact .soc-icons {
    margin-top: 30px; margin-left: 1vw; display: flex; gap: 20px;
}

.section-contact p a {
    color: inherit; text-decoration: none;
    border-bottom: 1px solid rgba(44, 247, 202, 0.5); transition: color var(--transition);
}
.section-contact p a:hover { color: var(--accent-green); }

.light-mode .section-contact { background: var(--bg-light); }
.light-mode .section-contact::after {
    background: linear-gradient(135deg, var(--bg-light) 1%, hsla(167, 93%, 57%, 1) 15%, hsl(167, 45%, 88%) 22%);
}
.light-mode .section-contact .section-title { color: #111; }
.light-mode .section-contact p { color: #333; }
.light-mode .section-contact p a:hover { color: hsl(167, 80%, 30%); }

/* ==================== INTRO ANIMATION ==================== */
.page-wrapper { opacity: 0; pointer-events: none; transition: opacity 1s ease-in-out; }
.page-wrapper.visible { opacity: 1; pointer-events: auto; }

#intro-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--color-primary-bg); z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: hidden; transition: opacity 0.8s ease;
}

#intro-logo {
    position: absolute; top: 50%; left: 50%; height: 40px; 
    transform: translate(-50%, -50%) scale(1000); 
    transform-origin: center center; transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 0 10px rgba(44, 247, 202, 0.2)); 
}

#intro-text {
    position: absolute; top: 35%; left: 50%; transform: translateX(-50%);
    opacity: 0; font-size: 2rem; font-weight: 700; text-transform: uppercase;
    text-align: center; color: var(--color-text); transition: opacity 0.8s ease; white-space: nowrap; 
}

#intro-overlay.step-2 #intro-logo { transform: translate(-50%, -50%) scale(2.5); }
#intro-overlay.step-3 #intro-logo { top: 30%; transform: translate(-50%, -50%) scale(2.5); }
#intro-overlay.step-4 #intro-text { opacity: 1; }
#intro-overlay.step-5 #intro-logo { top: 45px; left: 32px; transform: translate(0, -50%) scale(1); }
#intro-overlay.step-5 #intro-text { opacity: 0; }

/* ==================== BOOKING MODAL (STATIC & CLEANED) ==================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); display: none; 
    justify-content: center; align-items: center; z-index: 10000;
}

.modal-content {
    width: 95vw; max-width: 1400px; height: 90vh; max-height: 900px;
    background: #000; border-radius: 40px; position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden; /* Fully static, no scrolling */
}

.close-modal {
    position: absolute; top: 30px; right: 30px; background: none; border: none; 
    color: white; font-size: 2rem; cursor: pointer; z-index: 10;
}

.modal-split { display: flex; height: 100%; }

/* Left Side (Black) */
.modal-left-black {
    flex: 1; padding: 60px 80px; background: #000;
    display: flex; flex-direction: column; justify-content: flex-start; /* Sit higher fix */
}

.modal-huge-text {
    font-family: "Impact", sans-serif; font-size: clamp(4rem, 8vw, 10rem); 
    line-height: 0.8; color: white; transform: scaleY(0.85); text-transform: uppercase;
    margin-top: 0;
}
.accent-dot { color: var(--accent-green); }

/* Right Side (Green Gradient - Static Form) */
.modal-right-gradient {
    flex: 1.2; padding: 60px 80px; 
    display: flex; flex-direction: column; justify-content: flex-start; /* Sit higher fix */
    
background: hsla(0, 0%, 0%, 1);

background: linear-gradient(360deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 1) 0%, hsla(167, 69%, 17%, 1) 16%, hsla(167, 70%, 33%, 1) 51%, hsla(167, 93%, 57%, 1) 100%);

background: -moz-linear-gradient(360deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 1) 0%, hsla(167, 69%, 17%, 1) 16%, hsla(167, 70%, 33%, 1) 51%, hsla(167, 93%, 57%, 1) 100%);

background: -webkit-linear-gradient(360deg, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 1) 0%, hsla(167, 69%, 17%, 1) 16%, hsla(167, 70%, 33%, 1) 51%, hsla(167, 93%, 57%, 1) 100%);

filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#000000", endColorstr="#000000", GradientType=1 );
    /* Scrolls only if the window is too short to fit the form (scrollbar stays hidden) */
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal-right-gradient::-webkit-scrollbar { display: none; }

/* Glass Form Refinements */
.glass-form {
    width: 100%; max-width: 500px; margin-top: 20px;
}

.glass-form .form-group {
    margin-bottom: 15px;
}

.glass-form label {
    display: block; margin-bottom: 5px; font-size: 0.85rem; font-weight: 600;
    color: var(--accent-green); text-transform: uppercase; letter-spacing: 1px;
}

.glass-form input, .glass-form select, .glass-form textarea {
    width: 100%; padding: 15px; margin-bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark glass for contrast against green */
    border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; 
    color: #ffffff; /* White text for legibility */
    font-family: inherit; transition: var(--transition);
}

.glass-form input:focus, .glass-form select:focus, .glass-form textarea:focus {
    outline: none; border-color: var(--accent-green); background: rgba(0, 0, 0, 0.5);
}

.glass-form select option {
    background: #000; color: #fff;
}

.submit-button {
    width: 100%; padding: 20px; margin-top: 15px;
    background: var(--accent-green); color: #000; border: none;
    border-radius: 12px; font-weight: 900; cursor: pointer; text-transform: uppercase;
}

/* ==================== SUCCESS ANIMATION ==================== */
.success-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); display: none; justify-content: center; align-items: center; z-index: 11000;
}

.success-svg {
    width: 200px; height: 200px; stroke: var(--accent-green); stroke-width: 4;
    stroke-linecap: round; stroke-linejoin: round;
    animation: tick-main-anim 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.success-tick {
    stroke-dasharray: 48; stroke-dashoffset: 48;
    animation: draw-tick 0.6s 0.8s ease-out forwards;
}

@keyframes tick-main-anim {
    0% { transform: rotate(-270deg) scale(0); opacity: 0; }
    50% { transform: rotate(20deg) scale(1.2); opacity: 1; }
    70% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes draw-tick { to { stroke-dashoffset: 0; } }

.success-overlay.closing .success-svg {
    animation: tick-expand 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes tick-expand {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(15); opacity: 0; } 
}

.success-overlay.closing {
    animation: fade-overlay 0.8s ease-in-out forwards;
}

@keyframes fade-overlay {
    to { background: transparent; backdrop-filter: blur(0px); }
}

/* ==================== SMOOTH SCROLLING ON PHONES ====================
   Phones struggle to repaint big blurred shadows and live background blur while
   scrolling, so on touch screens these are swapped for cheaper look-alikes. */
@media (hover: none), (max-width: 768px) {
    .index-page .page-wrapper > section { box-shadow: none; }
    .nav-icons, .card, .ev-info { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-icons { background: rgba(20, 20, 20, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); }
    .light-mode .nav-icons { background: rgba(255, 255, 255, 0.95); }
    .ev-info { background: rgba(15, 15, 15, 0.96); box-shadow: none; }
    .light-mode .ev-info { background: rgba(255, 255, 255, 0.96); box-shadow: none; }
    .card { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
}

/* ==================== PHONES ==================== */
@media (max-width: 768px) {
    /* Navbar: logo on the left, icon pill fills the rest of the row */
    .navbar { justify-content: flex-end; padding: 0 10px; }
    .logo { left: 14px; }
    .nav-icons {
        width: calc(100% - 58px); gap: 0; justify-content: space-between;
        padding: 9px 12px;
    }
    .icon-card img, .theme-switch-icon { width: 20px; height: 20px; }
    .nav-icons .icon-card span { display: none; } /* hover labels don't work on touch */
    #intro-overlay.step-5 #intro-logo { left: 14px; }
    #intro-text { font-size: 1.3rem; }

    /* Hero: bigger "PRO ONE." on phones */
    .hero-huge-text { font-size: 32vw; }

    /* Sections */
    .section, .events-new-section { padding: 95px 6% 30px; }
    .section-title { font-size: 2.8rem; margin-bottom: 20px; }

    /* Coach + testimonial cards */
    .coach-container { gap: 20px; }
    .card { width: 220px; height: 290px; }
    .coach-text { flex-basis: 100%; align-self: flex-start; }
    .testimonial-carousel { min-height: 480px; }

    /* Services: 2 x 2 grid */
    .services-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 0; }
    .serv-col h3 { font-size: 0.8rem; margin: 0 0 10px; }
    .serv-col li { margin-bottom: 12px; }
    .serv-col a { font-size: 1rem; }
    .hover-desc { display: none; }

    /* Stadiums */
    /* (100vh - 100svh) = height of the browser's bottom bar, so the text stays above it */
    .stadium-name { font-size: 3.2rem; bottom: 110px; bottom: calc(110px + 100vh - 100svh); left: 6vw; }
    .stadium-loc { left: 6vw; right: auto; bottom: 40px; bottom: calc(40px + 100vh - 100svh); text-align: left; font-size: 0.9rem; }

    /* Events */
    .ev-title { font-size: 3rem; }
    .ev-info { padding: 24px; font-size: 0.95rem; }

    /* Contact */
    .section-contact .section-title { font-size: 3.2rem; }
    .section-contact p { font-size: 1rem; }

    /* Booking popup: full screen, heading on top, form below, scrolls if needed */
    .modal-content {
        width: 100%; height: 100%; max-height: none;
        border-radius: 0; border: none; overflow-y: auto;
    }
    .modal-split { flex-direction: column; height: auto; min-height: 100%; }
    .modal-left-black { flex: none; padding: 70px 24px 10px; }
    .modal-huge-text { font-size: 2.6rem; margin-bottom: 0; }
    .modal-right-gradient { flex: 1 0 auto; padding: 24px 24px 40px; overflow: visible !important; }
    .glass-form { margin-top: 0; max-width: none; }
    .close-modal { position: fixed; top: 14px; right: 16px; }
}