:root {
    --bg-dark: #050505;
    --bg-secondary: #111111;
    --accent-red: #ff3333;
    --accent-red-hover: #ff4d4d;
    --accent-glow: rgba(255, 51, 51, 0.4);
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;

    /* Global Stadium Background Fallback */
    background-color: var(--bg-dark);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('stadium-bg4.jpg') center/cover no-repeat;
    z-index: -2;
    pointer-events: none;
}

/* Global Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.85) 100%),
        rgba(0, 0, 0, 0.5);
    /* extra darkening layer */
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent-red);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-red);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
}

.glow-effect {
    box-shadow: 0 0 15px var(--accent-glow);
}

.glow-effect:hover {
    box-shadow: 0 0 25px var(--accent-red);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.btn-text {
    background: transparent;
    color: var(--text-gray);
}

.btn-text:hover {
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Continuous Scrolling Structure */
.page {
    min-height: 100vh;
    height: auto;
    width: 100vw;
    padding-top: 80px;
    /* Space for navbar */
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    overflow-y: visible;
}

/* Scroll Animation Utilities */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease forwards;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: auto;
    padding: 20px;
    border: 1px solid var(--accent-red);
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
}

.close-btn {
    color: var(--text-gray);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-red);
}

/* --- Home Page (Redesigned) --- */
.hero-container.full-layout {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0;
    overflow: hidden;
}

.hero-glass-box {
    width: 90%;
    max-width: 1400px;
    height: 88vh;
    margin-top: 4rem;
    /* offset for navbar */
    position: relative;
    border-radius: 20px;
    z-index: 5;
}

/* Animated Soccer Ball */
.animated-ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    animation: bounceAround 15s linear infinite;
}

@keyframes bounceAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    12% {
        transform: translate(70vw, 60vh) rotate(360deg);
    }

    25% {
        transform: translate(10vw, 75vh) rotate(720deg);
    }

    38% {
        transform: translate(80vw, 15vh) rotate(1080deg);
    }

    50% {
        transform: translate(40vw, 40vh) rotate(1440deg);
    }

    62% {
        transform: translate(60vw, 80vh) rotate(1800deg);
    }

    75% {
        transform: translate(15vw, 20vh) rotate(2160deg);
    }

    88% {
        transform: translate(85vw, 50vh) rotate(2520deg);
    }

    100% {
        transform: translate(0, 0) rotate(2880deg);
    }
}

/* Background Massive Text */
.bg-text {
    position: absolute;
    bottom: 3rem;
    left: 2%;
    /* Move slightly right to prevent clipping the A */
    width: 100%;
    z-index: 2;
    pointer-events: none;
    animation: slideUpFade 1.2s ease-out forwards;
}

.bg-text h1 {
    font-size: 6vw;
    line-height: 0.85;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -3px;
    margin: 0;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-glow);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Foreground Subject Image */
.subject-image {
    position: absolute;
    bottom: 0;
    left: 85%;
    transform: translateX(-50%);
    z-index: 3;
    height: 95%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%);
    animation: slideInRight 1.5s ease-out forwards;
}

@keyframes slideUpCenter {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.subject-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

/* Left Stats Details */
.hero-details.left-details {
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: -5rem;
}

.stat-block h2 {
    font-size: 3.5rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.stat-block p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: capitalize;
    font-weight: 600;
}

/* Right Match Details */
.hero-details.right-details {
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 320px;
    margin-top: -3rem;
    padding-right: 1rem;
}

.match-card {
    padding: 1.2rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.match-card.highlight {
    background: var(--text-light) !important;
    border: none;
    color: var(--bg-dark);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.card-header i {
    background: rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.teams.small {
    justify-content: space-around;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.team-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.match-card:not(.highlight) .team-logo {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.vs {
    font-weight: 900;
    font-size: 1.2rem;
    opacity: 0.5;
}

.match-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
    padding-left: 0.5rem;
}

/* Bottom Right Socials */
.hero-socials {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    z-index: 4;
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    text-decoration: none;
}

.hero-socials a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* --- About Page --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.photo-card {
    height: auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 51, 51, 0.1));
}

.about-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover .about-img {
    transform: scale(1.05);
}

.bio-content h3 {
    font-size: 1.8rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.skills-container {
    margin: 2rem 0;
}

.skill {
    margin-bottom: 1.2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--glass-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
    box-shadow: 0 0 10px var(--accent-glow);
    border-radius: 4px;
}

/* --- Achievements Page --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-glow);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 1rem;
}

.achievement-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-card>* {
    position: relative;
    z-index: 1;
}

.achievement-icon {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.achievement-card h3 {
    margin-bottom: 0.5rem;
}

.achievement-card .year {
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --- Gallery Page --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-marquee {
    display: flex;
    overflow: hidden;
    gap: 2rem;
    padding: 1rem 2rem;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-shrink: 0;
    min-width: 100%;
    animation: scroll-left 45s linear infinite;
}

.gallery-marquee:hover .gallery-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

.gallery-item {
    flex: 0 0 400px;
    height: 400px;
    width: 400px;
    max-width: 400px;
    max-height: 400px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item .image-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-gray);
    transition: transform 0.5s ease;
    border-radius: 8px;
    /* Matching inner radius */
    overflow: hidden;
}

/* Disable generic glass-card hover effects for gallery items */
.gallery-item:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: none;
}

.gallery-item .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

/* Alternating Black and White effect */
.gallery-item:nth-child(even) .image-wrapper img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.gallery-item:nth-child(even):hover .image-wrapper img {
    filter: grayscale(0%);
}

/* --- Academic Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
    max-height: 60vh;
    overflow-y: auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--accent-red);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-content h3 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* --- Footer Section --- */
.footer-section {
    position: relative;
    padding: 4rem 0 2rem;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
    overflow-y: visible;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 5%;
    gap: 2rem;
}

.footer-top {
    text-align: center;
    padding-top: 4rem;
}

.footer-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.footer-email {
    font-size: 2.2rem;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.footer-email:hover {
    color: #ff6b6b;
    text-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-contact-main {
    flex: 1;
    min-width: 300px;
}

.footer-academy-block {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.academy-logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.academy-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}

.academy-quote {
    color: var(--text-light);
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
    letter-spacing: 1px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff !important;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 auto;
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-red);
}

.footer-email-small {
    color: var(--text-gray) !important;
}

.footer-email-small:hover {
    color: var(--accent-red) !important;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-quote {
    color: var(--accent-red);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1024px) {
    .hero-container.full-layout {
        padding: 6rem 2rem 2rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-details.left-details {
        margin-top: 0;
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        text-align: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-block h2 {
        font-size: 2.5rem;
    }

    .hero-details.right-details {
        display: none;
        /* Hide match schedule on tablets/mobile to preserve space */
    }

    .subject-image {
        position: relative;
        left: 50%;
        height: 65vh;
        top: auto;
        bottom: auto;
        transform: translateX(-50%);
        margin-bottom: 2rem;
        z-index: 5;
        animation: slideUpCenter 1.5s ease-out forwards;
    }

    .bg-text {
        position: relative;
        width: 100%;
        top: auto;
        bottom: auto;
        left: auto;
        text-align: center;
        z-index: 10;
        margin-bottom: 2rem;
    }

    .bg-text h1 {
        font-size: clamp(3rem, 10vw, 6rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .hero-socials {
        bottom: 1rem;
        right: 2rem;
    }

    .gallery-item {
        flex: 0 0 350px;
        height: 350px;
        width: 350px;
        max-width: 350px;
        max-height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        display: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    body::after {
        background: url('stadium-bg3.jpg') center/cover no-repeat;
    }

    /* Redesigned Hero Mobile adjustments */
    .hero-container.full-layout {
        padding: 6rem 1rem 2rem 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .hero-glass-box {
        width: 100%;
        height: auto;
        min-height: 75vh;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 1rem 5rem 1rem;
    }

    .animated-ball {
        width: 120px;
    }

    .section-container {
        padding: 0 1rem;
    }

    .hero-details.left-details {
        display: none;
        /* Hide left stats to save space on mobile if needed, or leave it */
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat-block h2 {
        font-size: 2rem;
    }

    .stat-block p {
        font-size: 0.8rem;
    }

    .footer-academy-block {
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .subject-image {
        position: relative;
        height: 58vh;
        top: auto;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 2rem;
        z-index: 5;
        animation: slideUpCenter 1.2s ease-out forwards;
    }

    .bg-text {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        text-align: center;
        z-index: 10;
        margin-bottom: 2rem;
    }

    .bg-text h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 1;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
        letter-spacing: 1px;
        margin-top: 0.5rem;
        padding: 0 1rem;
    }

    .hero-socials {
        display: none;
        /* Hide socials on strictly mobile views */
    }

    .footer-section {
        padding: 4rem 1rem 2rem 1rem;
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
    }

    .footer-container {
        gap: 2rem;
    }

    .footer-top {
        padding-top: 1rem;
    }

    .footer-heading {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .footer-email {
        font-size: 1.2rem;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }

    .gallery-item {
        flex: 0 0 300px;
        height: 300px;
        width: 300px;
        max-width: 300px;
        max-height: 300px;
    }

    .glass-card {
        padding: 1.5rem;
    }

    /* Original Page Adjustments */
    body {
        scroll-snap-type: none;
    }

    .page {
        height: auto;
        min-height: 100vh;
        overflow-y: visible;
        padding-top: 80px;
        padding-bottom: 50px;
        justify-content: flex-start;
    }

    .photo-card,
    .glass-card {
        height: auto;
        padding: 1rem;
    }

    #family .glass-card {
        padding: 1.5rem;
        margin-top: 1rem !important;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-height: none;
        overflow-y: visible;
    }

    .timeline {
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

@media screen and (max-height: 700px) {

    /* Compress UI on short screens to avoid bursting out of 100vh lock */
    .hero-container.full-layout {
        padding-top: 4rem;
    }

    .bg-text h1 {
        font-size: 11vw;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .stat-block h2 {
        font-size: 2.5rem;
    }

    .hero-details.left-details {
        margin-top: -2rem;
    }

    .hero-details.right-details {
        margin-top: -1rem;
        transform: scale(0.85);
        transform-origin: top right;
    }
}