/* 
  ZYSS Padel - Premium Landing Page Styles V2 (Modernized)
  Theme: Deep Midnight Blue & Neon Anis | Style: Bento, Noise, Parallax
*/

:root {
    --bg-dark-start: #F6F9F2;
    /* Very Light Lime/White */
    --bg-dark-end: #EDF5E6;
    /* Soft Lime Tint */
    --accent-neon: #8CC63F;
    /* Padel Ball Green */
    --text-white: #051024;
    /* Deep Navy */
    --text-grey: #4A5568;
    /* Muted Slate */
    --glass-bg: rgba(255, 255, 255, 0.6);
    /* Frosted Glass */
    --glass-border: rgba(255, 255, 255, 0.4);
    --border-radius: 24px;
    --transition-speed: 0.5s;
    --font-main: 'Montserrat', sans-serif;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
    /* Very subtle wavy lines */
    background: url('images/wavy-lines.png') repeat;
    background-size: 300px;
    mix-blend-mode: multiply;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--bg-dark-start), var(--bg-dark-end));
    background-attachment: fixed;
    color: var(--text-grey);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) cubic-bezier(0.2, 1, 0.3, 1);
}

ul {
    list-style: none;
}

/* Modern Typography */
h1,
h2,
h3,
h4,
.logo {
    color: var(--text-white);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    /* Tighter tracking for modern look */
}

h1 {
    font-size: clamp(3.5rem, 8vw, 8rem);
    /* Massive responsive type */
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.text-gradient {
    /* Updated for Light Mode: Dark Navy to Neon Green */
    background: linear-gradient(120deg, var(--text-white), var(--accent-neon));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.accent {
    color: var(--accent-neon);
}

.section {
    padding: 120px 20px;
    position: relative;
}

.container {
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Refined */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(5, 16, 36, 0.05);
    /* Soft shadow for depth */
    border-radius: var(--border-radius);
    padding: 40px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(140, 198, 63, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(140, 198, 63, 0.1);
}

.premium-pricing-card {
    background-color: #0c1a2e;
    background-image:
        linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.15) 50%, transparent 50.2%),
        linear-gradient(transparent 65%, rgba(255, 255, 255, 0.15) 65.2%, transparent 65.4%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center top;
}

.premium-pricing-card:hover,
.glass-card.clean-list-card:hover {
    transform: none !important;
}

.premium-pricing-card::before {
    display: none !important;
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    /* Sharper corners */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.2, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #051024;
    transition: all 0.3s;
    z-index: -1;
}

.cta-btn:hover::after {
    height: 100%;
}

/* Custom Racket Button */
.cta-btn.small {
    background: var(--accent-neon);
    color: var(--text-white);
    /* Deep Navy */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    /* Head shape */
    padding: 15px 30px;
    position: relative;
    box-shadow: 0 10px 20px rgba(140, 198, 63, 0.4);
    /* Lime shadow */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Racket Handle simulation */
.cta-btn.small::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    /* Angled handle effect */
    width: 12px;
    height: 24px;
    background: #051024;
    /* Dark grip */
    transform: rotate(-45deg);
    border-radius: 4px;
    z-index: -1;
}

.cta-btn:hover {
    color: var(--bg-dark-start);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(140, 198, 63, 0.5);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
    /* Removed mix-blend-mode to avoid purple artifacts */
    color: var(--text-white);
    /* Deep Navy */
}

/* When sticky, we reset mix-blend and use background */
header.sticky {
    padding: 5px 5%;
    background: rgba(255, 255, 255, 0.9);
    /* Light Frosted */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(5, 16, 36, 0.05);
    mix-blend-mode: normal;
    color: var(--text-white);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

header nav ul {
    display: flex;
    gap: 40px;
}

header nav ul li a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    position: relative;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-neon);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: var(--text-white);
    opacity: 1;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-white);
    margin: 6px 0;
}

/* Academy Levels */
.glass-card .level-tag {
    color: var(--accent-neon);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Racket Collision Glow Effect */
.glass-hero-text.neon-glow-active p,
.glass-hero-text.neon-glow-active span {
    color: #fff !important;
    text-shadow:
        0 0 10px var(--accent-neon),
        0 0 20px var(--accent-neon),
        0 0 40px var(--accent-neon);
    transition: all 0.3s ease;
}

/* Ensure original transitions are smooth */
.glass-hero-text p,
.glass-hero-text span {
    transition: all 0.3s ease;
}

/* Footer Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Bottom alignment looks more modern */
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
    padding-left: 60px;
}

.hero-bg-overlay {
    position: fixed;
    /* Parallax Effect: Fixed background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 70% 30%, rgba(10, 30, 64, 0), var(--bg-dark-start)),
        url('https://images.unsplash.com/photo-1628779238951-be2c9f2a07f4?auto=format&fit=crop&q=80') no-repeat center center/cover;
    opacity: 0.4;
    transform: scale(1.1);
    /* Prevents edge showing on scroll */
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-animation {
    display: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(0, 198, 255, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(0, 114, 255, 0.7));
    }
}

/* Bento Matrix Grid */
.grid-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
}

.matrix-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

/* Bento Spans */
.col-span-2 {
    grid-column: span 2;
}

.row-span-2 {
    grid-row: span 2;
}

.matrix-card .matrix-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.matrix-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0.9;
    transition: 0.4s;
}

.matrix-card h3 {
    font-size: 2rem;
    color: var(--accent-neon);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.matrix-card span.arrow {
    font-size: 1.5rem;
    color: var(--accent-neon);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    display: inline-block;
    margin-left: 10px;
}

.matrix-card:hover {
    border-color: var(--accent-neon);
    z-index: 2;
}

.matrix-card:hover .matrix-img {
    transform: scale(1.1) rotate(-1deg);
}

.matrix-card:hover span.arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Academy Hero Text (Reusable as Glass Hero Text) */
.academy-hero-text,
.glass-hero-text {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(5, 16, 36, 0.05);
}

.academy-hero-text::before,
.glass-hero-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-neon), transparent);
}

.academy-hero-text .lead,
.glass-hero-text .lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.5;
    margin-bottom: 25px;
}

.academy-hero-text .separator,
.glass-hero-text .separator {
    width: 50px;
    height: 3px;
    background: var(--accent-neon);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.academy-hero-text p:last-child,
.glass-hero-text p:last-child {
    font-size: 1.1rem;
    color: #003366 !important;
    /* Visible Navy */
    font-weight: 600;
    /* Bold for visibility */
}

/* Events Hero Racket */
.events-hero-racket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    /* Adjust size as needed */
    z-index: -1;
    /* Behind siblings */
    opacity: 0.8;
    pointer-events: auto;
    /* transition removed for JS physics */
    filter: drop-shadow(0 0 30px rgba(140, 198, 63, 0.2));
}

/* Ensure content is above racket */
.section-header,
.container {
    position: relative;
    z-index: 1;
}

/* We make the hero text container transparent to clicks so we can grab the racket behind it */
.events-hero-container .section-header {
    pointer-events: none;
}

/* Academy Hero Section */
.academy-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 60px;
}

.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 16, 36, 0.7);
    /* Deep Navy Overlay */
    backdrop-filter: blur(3px);
}

.hero-content-center {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.large-title {
    font-size: 7rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1;
    letter-spacing: -2px;
}

.academy-description p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #e0e6ed;
    margin-bottom: 20px;
    font-weight: 500;
}

.text-highlight {
    color: var(--accent-neon);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(140, 198, 63, 0.4);
}

/* Academy Cards Section */
.academy-content {
    padding-bottom: 100px;
}

/* Clean up old styles if needed, these specific classes center everything */
.section-header {
    max-width: 600px;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.glass-card .icon {
    font-size: 4rem;
    margin-bottom: 30px;
    background: -webkit-linear-gradient(45deg, #fff, var(--accent-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Corporate */
.corporate {
    background: radial-gradient(circle at left center, rgba(140, 198, 63, 0.05), transparent 50%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.price-card.featured {
    border: 1px solid var(--accent-neon);
    background: rgba(140, 198, 63, 0.03);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-neon);
    color: var(--bg-dark-start);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li::before {
    content: '•';
    color: var(--accent-neon);
}

/* Advanced */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.requirements-list li,
.program-list li {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 2px solid var(--accent-neon);
    padding-left: 20px;
}

/* Partners Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 60px 0;
    position: relative;
    background: linear-gradient(to right, var(--bg-dark-start), transparent 20%, transparent 80%, var(--bg-dark-start));
}

.marquee-content {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    /* Very subtle */
    white-space: nowrap;
    transition: 0.3s;
}

.partner-logo:hover {
    color: var(--accent-neon);
    text-shadow: 0 0 20px var(--accent-neon);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
/* Footer */
/* "Padel Court" Footer Theme */
footer {
    position: relative;
    padding: 40px 0 10px;
    background-color: #0c1a2e;
    /* Deep Court Navy */
    /* CSS Padel Court Lines */
    background-image:
        /* Center Service Line (Vertical) */
        linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.15) 50%, transparent 50.2%),
        /* Service Line (Horizontal) */
        linear-gradient(transparent 65%, rgba(255, 255, 255, 0.15) 65.2%, transparent 65.4%),
        /* Subtle Grid/Mesh Pattern */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center top;
    overflow: hidden;
    border-top: 4px solid var(--accent-neon);
    /* The "Net" or top boundary */
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Remove Watermark */
.footer-watermark {
    display: none;
}

.footer-logo {
    height: 200px;
    width: auto;
    margin-bottom: 0px;
    display: flex;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* Typography - High Contrast for Dark Court */
.brand-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 300px;
}

/* Nav Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.footer-link-large {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    /* Pure White */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover: Neon "In" call */
.footer-link-large:hover {
    color: var(--accent-neon);
    transform: translateX(10px);
    text-shadow: 0 0 10px rgba(140, 198, 63, 0.6);
}

.footer-link-large:hover::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent-neon);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--accent-neon);
}

/* Social Col */
.social-col h4 {
    color: var(--accent-neon);
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-col a {
    color: #ffffff;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.social-col a:hover {
    color: var(--accent-neon);
    opacity: 1;
}

/* Magnetic Ball - Adjusted for Dark Bg */
.magnetic-ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #f4ff5f, #c2e812);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.08s linear;
    box-shadow: 0 0 25px rgba(194, 232, 18, 0.6);
    mix-blend-mode: normal;
    /* Pop out */
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    opacity: 0.5;
    font-size: 0.85rem;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
        border-left: none;
        padding-left: 0;
    }

    .footer-link-large:hover::before {
        display: none;
    }
}

.bouncing-ball::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: url('images/logo.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f4ff5f;
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(194, 232, 18, 0.4);
    /* Rotate logo slightly */
    transform: rotate(-15deg);
}

@keyframes bounceRealistic {

    0%,
    100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
    }

    50% {
        transform: translateY(-60px);
        animation-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
    }
}

/* Animation Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-matrix {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Deck Carousel Styles */
.deck-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    /* Fixed height for card container */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.deck-track {
    position: relative;
    width: 400px;
    /* Card width base */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.deck-card {
    position: absolute;
    width: 100%;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    top: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    /* Dynamic Spread Logic using --offset */
    /* Ensure default offset if JS is slow */
    --offset: 0;
    --abs-offset: max(var(--offset), calc(var(--offset) * -1));

    z-index: calc(10 - var(--abs-offset));
    opacity: calc(1 - (var(--abs-offset) * 0.1));
    filter: blur(calc(var(--abs-offset) * 2px));

    /* Spread: 40% shift per card, scaling down, pushing back */
    transform:
        translateY(-50%) translateX(calc(var(--offset) * 40%)) translateZ(calc(var(--abs-offset) * -50px)) scale(calc(1 - (var(--abs-offset) * 0.1))) rotateY(calc(var(--offset) * -5deg));

    pointer-events: none;
}

/* Active card override */
.deck-card.active {
    pointer-events: auto;
    filter: blur(0);
    opacity: 1;
    z-index: 20;
    /* Ensure on top */
}

/* Hover Effect: Shine & Glow (No Movement) */
.deck-card.active:hover {
    /* Maintain exact position to prevent "dipping" */
    transform: translateY(-50%) translateZ(0) scale(1);
    /* Shine effect */
    filter: brightness(1.1) contrast(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.deck-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 16, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-neon);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.deck-btn:hover {
    background: var(--accent-neon);
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(140, 198, 63, 0.4);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .large-title {
        font-size: 4rem;
    }

    .academy-description p {
        font-size: 1.1rem;
    }

    .academy-hero {
        height: 60vh;
    }

    header {
        padding: 20px 30px;
    }

    .hero {
        padding-left: 20px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .grid-matrix {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .col-span-2,
    .row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    header nav {
        display: none;
    }

    /* Hide nav on mobile for this demo */
}

/* ----------------------------------------------------
   HERO RACKET (3D Floating)
------------------------------------------------------- */
/* --- Floating ZYSS Balls (Logo Edition) --- */
.hero-balls-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    perspective: 1000px;
}

.css-padel-ball {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f4ff5f, #c2e812);
    box-shadow:
        inset -5px -5px 20px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(194, 232, 18, 0.3);
    /* Neon glow */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatBall 8s ease-in-out infinite alternate;
}

.ball-logo {
    width: 70%;
    height: 70%;
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    mix-blend-mode: multiply;
    /* Blends logo into the ball texture */
    transform: rotate(-15deg);
}

/* --- Ball Distribution (The "Throw" Field) --- */

/* Foreground (Closest, Big) - Moved behind text and adjusted to not be cut */
.ball-1 {
    width: 140px;
    height: 140px;
    bottom: 5%;
    left: 8%;
    filter: blur(3px);
    z-index: 1;
    animation: floatBallA 9s ease-in-out infinite alternate;
    opacity: 0.7;
}

.ball-2 {
    width: 110px;
    height: 110px;
    top: 10%;
    right: 5%;
    filter: blur(2px);
    z-index: 1;
    animation: floatBallB 8s ease-in-out infinite alternate;
}

/* Midground (Focus) - Varied Motion */
.ball-3 {
    width: 70px;
    height: 70px;
    top: 20%;
    left: 20%;
    z-index: 1;
    animation: floatBallC 7s ease-in-out infinite alternate;
}

.ball-4 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    right: 20%;
    z-index: 1;
    animation: floatBallA 8s ease-in-out infinite alternate-reverse;
}

.ball-5 {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 15%;
    z-index: 1;
    animation: floatBallB 6s ease-in-out infinite alternate;
}

.ball-6 {
    width: 55px;
    height: 55px;
    top: 15%;
    left: 50%;
    z-index: 1;
    animation: floatBallC 9s ease-in-out infinite alternate-reverse;
}

/* Background (Far, Small, Blurry) - Choatic Motion */
.ball-7 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: 40%;
    filter: blur(1px);
    opacity: 0.8;
    animation: floatBallA 10s ease-in-out infinite alternate;
}

.ball-8 {
    width: 25px;
    height: 25px;
    bottom: 20%;
    left: 35%;
    filter: blur(1px);
    opacity: 0.7;
    animation: floatBallB 12s ease-in-out infinite alternate-reverse;
}

.ball-9 {
    width: 20px;
    height: 20px;
    top: 10%;
    left: 70%;
    filter: blur(2px);
    opacity: 0.6;
    animation: floatBallC 11s ease-in-out infinite alternate;
}

.ball-10 {
    width: 15px;
    height: 15px;
    bottom: 50%;
    right: 10%;
    filter: blur(2px);
    opacity: 0.6;
    animation: floatBallA 13s ease-in-out infinite alternate;
}

.ball-11 {
    width: 18px;
    height: 18px;
    top: 5%;
    left: 30%;
    filter: blur(2px);
    opacity: 0.5;
    animation: floatBallB 14s ease-in-out infinite alternate;
}

.ball-12 {
    width: 12px;
    height: 12px;
    bottom: 10%;
    right: 60%;
    filter: blur(3px);
    opacity: 0.4;
    animation: floatBallC 15s ease-in-out infinite alternate-reverse;
}

/* Varied Floating Animations */
@keyframes floatBallA {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(20px, -40px) rotate(15deg);
    }
}

@keyframes floatBallB {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-30px, 20px) rotate(-10deg);
    }
}

@keyframes floatBallC {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(15px, 15px) rotate(5deg);
    }

    100% {
        transform: translate(-10px, -10px) rotate(20deg);
    }
}

.hero-racket-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    /* Behind text but in front of bg overlay */
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-racket {
    width: 450px;
    /* Adjust size as needed */
    /* Adjust size as needed */
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    animation: floatRacket 6s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 0;
    /* Start hidden for enter animation */
    /* animation defined below overrides this, we need to be careful. */
    position: absolute;
    /* Allow stacking */
}

/* Original Racket */
#heroRacket {
    left: 60%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeRacketIn 1s ease-out forwards, floatRacket 6s ease-in-out infinite 1s;
}

/* Mirrored Racket */
#heroRacket2 {
    left: 70%;
    transform: translateX(-50%) scaleX(-1);
    /* Mirror it */
    z-index: 1;
    opacity: 0;
    /* Slightly different animation timing for depth */
    animation: fadeRacketInMirrored 1s ease-out forwards 0.2s, floatRacketMirrored 7s ease-in-out infinite 1.2s;
}

@keyframes fadeRacketIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotateX(0deg);
    }
}

@keyframes fadeRacketInMirrored {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleX(-1) translateY(100px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scaleX(-1) translateY(0) rotateX(0deg);
    }
}

@keyframes floatRacket {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) translateY(-20px) rotate(2deg);
    }
}

@keyframes floatRacketMirrored {

    0%,
    100% {
        transform: translateX(-50%) scaleX(-1) translateY(0) rotate(0deg);
    }

    50% {
        transform: translateX(-50%) scaleX(-1) translateY(-25px) rotate(-2deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-racket {
        width: 300px;
        opacity: 0.3;
    }

    #heroRacket {
        left: 50%;
    }

    #heroRacket2 {
        left: 70%;
    }
}

/* ----------------------------------------------------
   PARTICLE EFFECT (For Stage Page)
------------------------------------------------------- */
#particle-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#particle-canvas .particle {
    display: none;
    /* Cleanup for old JS if cached */
}

/* ----------------------------------------------------
   VISUAL POLISH
------------------------------------------------------- */

/* 1. Custom Glow Cursor */
/* 1. Custom Glow Cursor */
.custom-cursor {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-neon);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* Always centered on coordinates */
    box-shadow: 0 0 15px 2px rgba(140, 198, 63, 0.8), 0 0 30px 10px rgba(140, 198, 63, 0.4);
    filter: blur(0px);
    /* Sharp core, glowing edges via shadow */
    opacity: 0;
    will-change: left, top, transform;
    transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(2.5);
    background: transparent;
    border: 2px solid var(--accent-neon);
    box-shadow: 0 0 20px 5px rgba(140, 198, 63, 0.5);
}

/* 3. Floating Scroll Ball */
/* 2. Dynamic Text Reveal (Removed) */

/* 2. Dynamic Text Reveal (Removed) */

/* --- Corporate Scenery (Cinematic) --- */
.corporate-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/corporate_cinematic_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.corporate-bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 16, 36, 0.7);
    /* Dark overlay for text readability */
    backdrop-filter: blur(5px);
    /* Soft focus background */
}

.corporate-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 50px;
}

/* --- Corporate Hologram --- */
.hologram-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Behind monoliths */
    pointer-events: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hologram-asset {
    width: 80%;
    /* Adjust size */
    max-width: 1200px;
    opacity: 0.6;
    mix-blend-mode: screen;
    /* Removes black, keeps neon */
    transition: transform 0.1s linear;
    /* For JS parallax */
    will-change: transform;
    animation: holo-pulse 4s ease-in-out infinite alternate;
}

@keyframes holo-pulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.2)) brightness(1);
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6)) brightness(1.2);
    }
}

/* --- Corporate Monoliths (Enhanced) --- */
.monolith-container {
    display: flex;
    width: 100%;
    height: 80vh;
    /* High impact */
    gap: 15px;
    align-items: stretch;
}

.monolith-panel {
    flex: 1;
    position: relative;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    /* Ultra smooth 'Expo' ease */
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Background Images (Updated to Light/Neon Vibe) */
#panel-teambuilding {
    background-image: url('images/monolith_teambuilding_2.png');
}

#panel-tournament {
    background-image: url('images/monolith_tournament_2.png');
}

#panel-custom {
    background-image: url('images/monolith_vip.png');
}

#panel-seminar {
    background-image: url('images/monolith_seminar.png');
}

#panel-networking {
    background-image: url('images/monolith_networking.png');
}

/* Dark Gradient Overlay for Readability */
.panel-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient for lighter images */
    background: linear-gradient(to top, rgba(5, 16, 36, 0.98) 15%, rgba(5, 16, 36, 0.6) 50%, rgba(5, 16, 36, 0.2) 100%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.monolith-panel:hover .panel-overlay-gradient {
    background: linear-gradient(to top, rgba(5, 16, 36, 1) 25%, rgba(5, 16, 36, 0.7) 65%, rgba(5, 16, 36, 0.3) 100%);
}

/* Content Positioning */
.panel-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hover Expansion */
.monolith-panel:hover {
    flex: 3.5;
    /* Dominant expansion */
    box-shadow: 0 0 50px rgba(140, 198, 63, 0.3);
    border-color: rgba(140, 198, 63, 0.8);
}

/* Typography & Icons */
.panel-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(140, 198, 63, 0.6));
    transition: transform 0.5s ease;
}

.neon-icon-img {
    width: 100px;
    /* Adjust size */
    height: auto;
    margin-bottom: 20px;
    mix-blend-mode: screen;
    /* Removes black background */
    filter: drop-shadow(0 0 10px rgba(140, 198, 63, 0.8));
    /* Neon Glow */
    transition: transform 0.5s ease;
}

.monolith-panel:hover .neon-icon-img {
    transform: scale(1.1);
}

.monolith-panel h3 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0;
    color: #ffffff;
    /* Pure white as requested */
    opacity: 1;
    transition: all 0.5s ease;
    /* Black drop shadow + Subtle white glow + Faint neon hint */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.3), 0 0 30px rgba(140, 198, 63, 0.2);
}

.monolith-panel:hover h3 {
    color: var(--accent-neon);
    transform: scale(1.1);
    margin-bottom: 25px;
}

/* Reveal Details */
.panel-details {
    opacity: 0;
    max-height: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.monolith-panel:hover .panel-details {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
}

.panel-details p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 500px;
}

/* Mobile */
@media (max-width: 768px) {
    .monolith-container {
        flex-direction: column;
        height: auto;
    }

    .monolith-panel {
        height: 400px;
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .monolith-panel:hover {
        flex: none;
        /* No expansion on mobile, simple stack */
    }

    .panel-details {
        opacity: 1;
        max-height: none;
        transform: none;
        margin-top: 20px;
    }
}

/* =========================================
   Advanced Page: Visual Engine & Split Layout (Luxury Redesign)
   ========================================= */

/* Use Deep Court Navy Background for contrast */
.section.advanced {
    position: relative;
    background-color: #0c1a2e;
    min-height: 100vh;
}

.advanced-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    min-height: 600px;
}

/* Left Column: Info Cards */
.track-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.track-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    opacity: 0.5;
    /* Dimmed by default */
    transform: translateX(-20px);
}

.track-card.active {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--accent-neon);
    box-shadow: 0 0 30px rgba(140, 198, 63, 0.1);
    background: linear-gradient(90deg, rgba(140, 198, 63, 0.05), transparent);
}

.track-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.node-indicator {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-neon);
    border: 1px solid var(--accent-neon);
    padding: 2px 8px;
    border-radius: 4px;
}

.track-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.track-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Right Column: Visual Engine */
.visual-engine-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Segmented Ring Styling */
.circular-unlock-system.segmented-style {
    position: relative;
    width: 400px;
    height: 400px;
}

/* Scanner Overlay (The "Infinite Boucle") */
.circular-unlock-system.segmented-style::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 280deg,
            rgba(140, 198, 63, 0.1) 320deg,
            rgba(140, 198, 63, 0.0) 360deg);
    border-radius: 50%;
    animation: scannerRotate 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Center Display */
.center-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.center-display .trophy-icon {
    margin-bottom: 5px;
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(140, 198, 63, 0.8));
    transform: scale(1.2);
    font-size: 3rem;
    /* Ensure icon size */
}

.center-display .level-label {
    font-size: 0.9rem;
    font-weight: 800;
    /* Extra Bold */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin-bottom: 0px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.center-display .level-number {
    font-size: 8rem;
    /* Massive */
    font-weight: 900;
    /* Ultra Bold */
    line-height: 0.9;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-shadow: 0 0 50px rgba(140, 198, 63, 0.4);
}

/* SVG Ring */
.progress-ring {
    transform: rotate(0deg);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.ring-track {
    fill: rgba(0, 0, 0, 0.2);
    stroke: rgba(255, 255, 255, 0.05);
    /* Subtle dark track */
    stroke-width: 40;
    /* Thick & Bold */
}

.segment-path {
    fill: none;
    stroke: var(--accent-neon);
    stroke-width: 40;
    /* Thick & Bold */
    stroke-linecap: butt;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.15;
}

.segment-path.active {
    opacity: 1;
    stroke: var(--accent-neon);
    filter: url(#glow);
    animation: breatheSegment 4s ease-in-out infinite;
}

/* Ring Labels - Updated Positions (Top Quadrants) */
.ring-label {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 900;
    /* Ultra Bold */
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* Performance (Top Left) */
.label-performance {
    top: 15%;
    left: -5%;
    transform: rotate(-15deg);
    text-align: right;
}

/* Elite (Top Right) */
.label-elite {
    top: 15%;
    right: -5%;
    transform: rotate(15deg);
    text-align: left;
}

@keyframes scannerRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes breatheSegment {

    0%,
    100% {
        stroke-opacity: 1;
    }

    50% {
        stroke-opacity: 0.8;
    }
}

@keyframes lockShake {
    0% {
        transform: scale(1.2) rotate(0deg);
    }

    25% {
        transform: scale(1.2) rotate(-10deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    75% {
        transform: scale(1.2) rotate(-10deg);
    }

    100% {
        transform: scale(1.2) rotate(0deg);
    }
}

@keyframes lockOpen {
    0% {
        transform: scale(1.2);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
        filter: drop-shadow(0 0 30px #fff);
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .advanced-split-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .circular-unlock-system.segmented-style {
        width: 300px;
        height: 300px;
        margin: 40px auto;
    }

    .center-display .level-number {
        font-size: 5rem;
    }
}

/* ----------------------------------------------------
   PARTNERS SCROLLING BANNER
------------------------------------------------------- */
.partners-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
    margin-top: 40px;
    background: transparent;
    display: flex;
}

.partners-marquee {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    width: max-content;
}

.partners-marquee:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 70px;
    margin: 0 50px;
    object-fit: contain;
    /* Filter approximates #051024 (Navy Blue) */
    filter: brightness(0) saturate(100%) invert(8%) sepia(35%) saturate(3065%) hue-rotate(204deg) brightness(88%) contrast(97%);
    transition: filter 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: none;
    transform: scale(1.1);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }

    /* shifted 1/3 since there are 3 sets */
}
/* =========================================
   Universal Responsive Overrides (Light & Dark Mode)
   ========================================= */
@media (max-width: 900px) {
    /* 1. Disable Sticky Layouts on Mobile/Tablets */
    div[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 40px !important;
    }

    /* 2. Force Pricing Grid Stacking */
    .pricing-board {
        grid-template-columns: 1fr !important;
    }

    /* 3. Reduce Section Paddings */
    .section {
        padding: 80px 15px !important;
    }

    /* 4. Downsize Massive Hero H1 text globally for safety */
    h1.large-title {
        font-size: clamp(3.5rem, 12vw, 5rem) !important;
    }
    
    .glass-card {
        padding: 30px 20px !important;
    }

    /* 5. Flex to Column for Asymmetrical Layouts */
    div[style*="display: flex; flex-wrap: wrap"] {
        flex-direction: column !important;
        gap: 30px !important;
    }
}

@media (max-width: 450px) {
    /* Even smaller sizing for iPhone SE/Mini */
    h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    }
    h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }
    .cta-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 20px !important;
    }
}
/* =========================================
   Universal Responsive Overrides (Light & Dark Mode)
   ========================================= */
@media (max-width: 900px) {

    /* 1. Disable Sticky Layouts on Mobile/Tablets */
    div[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 40px !important;
    }

    /* 2. Force Pricing Grid Stacking */
    .pricing-board {
        grid-template-columns: 1fr !important;
    }

    /* 3. Reduce Section Paddings */
    .section {
        padding: 80px 15px !important;
    }

    /* 4. Downsize Massive Hero H1 text globally for safety */
    h1 {
        font-size: clamp(3.5rem, 12vw, 5rem) !important;
    }

    .glass-card {
        padding: 30px 20px !important;
    }

    /* 5. Flex to Column for Asymmetrical Layouts */
    div[style*="display: flex; flex-wrap: wrap"] {
        flex-direction: column !important;
        gap: 30px !important;
    }
}

@media (max-width: 450px) {

    /* Even smaller sizing for iPhone SE/Mini */
    h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1 !important;
    }

    h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    }

    .cta-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 16px 20px !important;
    }
}

