:root {
    /* Premium Navy & Gold Palette */
    --clr-navy-dark: #060b19;
    --clr-navy-main: #0a1128;
    --clr-navy-light: #162447;
    --clr-navy-glass: rgba(22, 36, 71, 0.65);
    
    --clr-gold-main: #d4af37;
    --clr-gold-light: #f9d77e;
    --clr-gold-glass: rgba(212, 175, 55, 0.3);
    
    --clr-text-white: #ffffff;
    --clr-text-muted: #b0b8c4;
    
    --clr-status-live: #2ecc71;
    --clr-status-completed: #e74c3c;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-navy-dark);
    color: var(--clr-text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold { color: var(--clr-gold-main); }
.relative-z { position: relative; z-index: 10; }

/* =========================================
   GLASSMORPHISM UTILITY
   ========================================= */
.glass-card {
    background: var(--clr-navy-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* =========================================
   TYPOGRAPHY & HEADERS
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--clr-gold-main);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-gold-main);
    color: var(--clr-navy-dark);
}

.btn-primary:hover {
    background-color: var(--clr-gold-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--clr-gold-main);
    color: var(--clr-gold-main);
}

.btn-secondary:hover {
    background-color: var(--clr-gold-glass);
    color: var(--clr-text-white);
    transform: translateY(-2px);
}

.btn.outline {
    background: transparent;
    border-color: var(--clr-text-muted);
    color: var(--clr-text-muted);
}

.btn.outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--clr-text-white);
    color: var(--clr-text-white);
    transform: translateY(-2px);
}

/* =========================================
   HEADER NAVIGATION
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-gold-main);
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-gold-main);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-gold-main);
    border-radius: 2px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/soccer-world-cup-stadium-hero-shot.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 11, 25, 0.4) 0%, var(--clr-navy-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.tournament-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--clr-navy-glass);
    border: 1px solid var(--clr-gold-main);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--clr-gold-light);
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--clr-text-white);
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* =========================================
   MATCHES SECTION
   ========================================= */
.matches-section {
    padding: 6rem 0;
    background-image: radial-gradient(circle at top right, var(--clr-navy-main), var(--clr-navy-dark));
}

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

.match-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-gold-main);
}

.match-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

.status-completed { color: var(--clr-status-completed); }
.status-live { 
    color: var(--clr-status-live); 
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 30%;
}

.team-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.match-score {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-divider {
    color: var(--clr-text-muted);
    font-size: 1.5rem;
}

.match-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* =========================================
   GROUPS SECTION
   ========================================= */
.groups-section {
    padding: 6rem 0;
    background: url('images/soccer-grass-pitch-with-ball.jpg') center/cover fixed;
    position: relative;
}

.groups-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 25, 0.9);
}

.groups-section .container {
    position: relative;
    z-index: 10;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.group-card {
    padding: 1.5rem;
}

.group-title {
    color: var(--clr-gold-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.group-table th {
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    padding-bottom: 0.8rem;
}

.group-table td {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.group-table tr:last-child td {
    border-bottom: none;
}

.team-flex {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mini-flag {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.qualified td:first-child {
    border-left: 3px solid var(--clr-status-live);
    padding-left: 0.5rem;
}

/* =========================================
   STANDINGS SECTION
   ========================================= */
.standings-section {
    padding: 6rem 0;
    background-color: var(--clr-navy-dark);
}

.table-wrapper {
    overflow-x: auto;
    padding: 0;
}

.full-standings-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.full-standings-table th, 
.full-standings-table td {
    padding: 1.2rem;
    text-align: center;
}

.full-standings-table th {
    background: rgba(0,0,0,0.2);
    color: var(--clr-gold-main);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-standings-table .team-cell {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.full-standings-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.full-standings-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.group-header-row td {
    background: var(--clr-navy-main);
    color: var(--clr-gold-light);
    font-family: var(--font-heading);
    text-align: left;
    padding: 0.8rem 1.2rem;
}

.points-col {
    font-weight: 700;
    color: var(--clr-gold-main);
    font-size: 1.1rem;
}

/* =========================================
   TEAMS SECTION
   ========================================= */
.teams-section {
    padding: 6rem 0;
    background-image: linear-gradient(to bottom, var(--clr-navy-dark), var(--clr-navy-main));
}

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

.team-profile-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.team-photo {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.team-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--clr-navy-light), transparent);
}

.team-info {
    padding: 1.5rem;
    background: var(--clr-navy-light);
    flex-grow: 1;
}

.team-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
}

.profile-flag {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    border: 2px solid var(--clr-gold-main);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.team-header-info h3 {
    font-size: 1.8rem;
    margin: 0;
}

.team-stats-list {
    margin-top: 1rem;
}

.team-stats-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.team-stats-list li strong {
    color: var(--clr-text-white);
    margin-right: 0.5rem;
}

/* =========================================
   HOSTS SECTION
   ========================================= */
.hosts-section {
    padding: 6rem 0;
    background-color: var(--clr-navy-main);
}

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

.host-card {
    padding: 0;
    overflow: hidden;
}

.venue-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.host-card:hover .venue-img {
    transform: scale(1.05);
}

.host-info {
    padding: 1.5rem;
    background: linear-gradient(to bottom, transparent, var(--clr-navy-dark));
}

.host-info h3 {
    font-size: 1.5rem;
    color: var(--clr-gold-main);
    margin-bottom: 0.2rem;
}

.host-location {
    color: var(--clr-text-white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.venue-capacity {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

/* =========================================
   HIGHLIGHTS SECTION
   ========================================= */
.highlights-section {
    padding: 5rem 0 7rem;
    background-color: var(--clr-navy-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-box {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--clr-text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    padding: 6rem 0;
    background-color: var(--clr-navy-main);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-card {
    padding: 2rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.faq-card:hover {
    border-left-color: var(--clr-gold-main);
    transform: translateX(5px);
}

.faq-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-gold-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    padding: 6rem 0;
    background-color: var(--clr-navy-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info, .contact-form-card {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--clr-gold-main);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.contact-info strong {
    color: var(--clr-text-white);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: var(--clr-text-white);
    border-radius: 4px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-gold-main);
    background: rgba(0,0,0,0.4);
}

/* =========================================
   MODALS
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(6, 11, 25, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--clr-navy-main);
    margin: 5% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 800px;
    position: relative;
    border: 1px solid var(--clr-gold-main);
    border-radius: 12px;
}

.close-modal {
    color: var(--clr-text-muted);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--clr-gold-main);
    text-decoration: none;
}

.modal-content h2 {
    color: var(--clr-gold-main);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 1rem;
    font-size: 2rem;
}

.modal-body {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-body h3 {
    color: var(--clr-text-white);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--clr-gold-glass);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--clr-gold-main);
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1500;
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    max-width: 1240px;
    margin: 0 auto;
    background: var(--clr-navy-glass);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cookie-content {
        margin-bottom: 0;
        margin-right: 2rem;
    }
}

.cookie-content h4 {
    color: var(--clr-gold-main);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    position: relative;
    padding: 5rem 0 2rem;
    background-image: url('images/soccer-fans-stadium-celebration.jpg');
    background-size: cover;
    background-position: center;
    border-top: 4px solid var(--clr-gold-main);
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 25, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--clr-gold-main);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-address {
    margin-top: 1.5rem;
}

.footer-address h4 {
    color: var(--clr-text-white);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-address p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--clr-text-white);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    cursor: pointer;
}

.footer-links a:hover {
    color: var(--clr-gold-main);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    
    .hero-title { font-size: 3rem; }
    .hero-actions { flex-direction: column; }
    
    .match-teams { flex-direction: column; gap: 1rem; }
    .team { width: 100%; flex-direction: row; justify-content: center; }
    
    .contact-grid { grid-template-columns: 1fr; }
    
    .cookie-actions { justify-content: center; width: 100%; }
    .cookie-actions .btn { flex: 1; text-align: center; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: 1; }
}