:root {
    --primary-blue: #0A3D91; /* Deep sports blue */
    --accent-orange: #FF5722; /* Vibrant orange */
    --bg-white: #FFFFFF;
    --text-dark: #333333;
    --light-gray: #F5F5F5;
}

[data-theme="dark"] {
    --bg-white: #121212;
    --text-dark: #EAEAEA;
    --light-gray: #1E1E1E;
    --primary-blue: #4B7DD6; /* Lighter blue for dark mode contrast */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/stadium_bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -2;
}

/* Header & Navigation */
header {
    padding-top: 0;
    z-index: 1000;
}

.top-stripe {
    background-color: var(--primary-blue);
    height: 25px;
    width: 100%;
}

.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.nav-links {
    gap: 1rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-blue) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links li a:hover, .nav-links li a.active {
    background-color: var(--light-gray);
    box-shadow: 4px 4px 0px var(--accent-orange), -2px -2px 5px rgba(10, 61, 145, 0.1);
    color: var(--primary-blue) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    min-height: 70vh;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 0px rgba(10, 61, 145, 0.1);
}

.hero-content h1 span {
    color: var(--accent-orange);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 5px 5px 0px var(--accent-orange);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0px var(--accent-orange);
    color: var(--bg-white);
}

/* Hero Images */
.hero-images {
    position: relative;
    gap: 1rem;
}

.player-img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .player-img {
    /* No blend mode here, handled by #playerCarousel */
}

.player-img:hover {
    transform: scale(1.05);
}

.soccer-img {
    transform: translateY(30px);
}

.football-img {
    transform: translateY(-30px);
}

@media (max-width: 768px) {
    .soccer-img, .football-img {
        transform: translateY(0);
        margin-bottom: 1rem;
    }
    .hero-images {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .logo img {
        height: 100px !important; /* Scale down logo on mobile */
    }
}

/* Generic Page Content */
.page-content {
    padding: 4rem 15px;
    text-align: center;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px rgba(255, 87, 34, 0.2);
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.simple-module-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    width: 250px;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.simple-module-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.simple-module-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    border: 2px solid var(--light-gray);
    box-shadow: 6px 6px 0px var(--primary-blue);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 0px var(--accent-orange);
}

.feature-card h3 {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--bg-white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 5px solid var(--accent-orange);
}

/* Image Blend Modes to remove backgrounds automatically (applied to container to avoid stacking context issues) */
#playerCarousel {
    mix-blend-mode: darken;
    pointer-events: none;
    filter: contrast(1.02) brightness(1.02); /* Fixes faint off-white patch borders */
}

[data-theme="dark"] #playerCarousel {
    mix-blend-mode: lighten;
    filter: contrast(1.02) brightness(1.05); /* Fixes faint off-black patch borders */
}

.player-img {
    width: 100%;
}

/* Modality Strips (Survivals) */
.strips-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.modality-strip {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.modality-strip:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #fff;
    transform: translateX(10px);
}

.strip-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    line-height: 1;
}

.strip-title {
    flex-grow: 1;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
    color: inherit;
}

.strip-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.modality-strip:hover .strip-action {
    color: #fff;
}

.arrow-icon {
    font-style: normal;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.modality-strip:hover .arrow-icon {
    transform: translateX(5px);
}
