* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: transparent; /* Changed so we can see the video */
    color: #fff;
}

/* NEW: Top Banner Styling */
.top-banner {
    position: absolute;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.4); /* Slightly dark backdrop */
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 20; /* Keeps it on top of everything */
    backdrop-filter: blur(5px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(5px);
}

/* Full Screen Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Keeps it behind everything */
    background-color: #000; /* Fallback color */
    overflow: hidden;
}

#bg-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Ensures the video fills the screen without stretching */
}

/* Cinematic Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay to make text readable */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

/* UPDATE: Shift navbar down to make room for the banner */
.navbar {
    position: absolute;
    top: 40px; /* Changed from 0 to 40px */
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
/* Circular Name Logo Animation */
.circular-name {
    display: flex;
    justify-content: center;
    align-items: center;
    /* This makes the SVG spin infinitely over 12 seconds */
    animation: spin 12s linear infinite; 
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Update your existing subtitle class to be slightly larger */
.subtitle {
    font-size: 1.5rem; /* Increased from 1.2rem to balance the empty space */
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: #e0e0e0;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.8); /* Added shadow so it pops against the video */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section Typography */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 2rem;
}

h1 {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0px 4px 20px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Gives that modern Framer frosted glass look */
}

.primary-btn {
    background-color: #fff;
    color: #000;
}

.primary-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Gallery Section */
.gallery-section {
    position: relative;
    z-index: 10;
    background-color: #050505; /* Deep dark background to transition from the video */
    padding: 6rem 2rem;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    color: #fff;
}

/* 3D Glassmorphism Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px; /* Crucial for the 3D effect */
}

/* The Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(15px); /* The frosted glass effect */
    -webkit-backdrop-filter: blur(15px);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.glass-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

/* The 3D Hover Interaction */
.glass-card:hover {
    /* Tilts the card slightly towards the user */
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) scale(1.02);
    box-shadow: -10px 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.glass-card:hover img {
    /* Pushes the image out slightly from the glass for extra depth */
    transform: translateZ(20px); 
}
/* Next Match Glass Card */
.next-match-card {
    position: absolute;
    bottom: 40px;
    left: 40px; /* Swapped from right to left */
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    width: 340px;
    color: white;
    z-index: 20;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.match-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50; /* Skutt Green */
    border-radius: 50%;
    box-shadow: 0 0 12px #4CAF50;
    animation: pulse 2s infinite;
}

.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: 12px;
    width: 40%;
}

.team img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.5));
}

.opponent-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
}

.team span {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vs {
    font-weight: 800;
    color: #777;
    font-size: 1rem;
}

.match-details {
    text-align: center;
    font-size: 0.95rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    font-weight: 500;
}

.match-details .location {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .next-match-card {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 350px;
    }
}
/* =========================================
   MOBILE OPTIMIZATION (iPhones & Small Screens)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Shrink the top banner text slightly */
    .top-banner {
        font-size: 0.7rem;
        padding: 8px 0;
    }

    /* 2. Tighten up the navigation margins */
    .navbar {
        padding: 1rem 1.5rem;
        top: 35px;
    }

    /* 3. Scale down Nia's circular spinning logo */
    .circular-name svg {
        width: 90px;
        height: 90px;
    }

    /* 4. Stack the buttons vertically so they are easy to tap */
    .action-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* 5. Center the Next Match card and prevent it from overflowing */
    .next-match-card {
        width: 92%;
        left: 4%; /* Centers it with a 4% margin on each side */
        bottom: 20px;
        padding: 1.2rem;
    }

    /* Shrink the team logos just a bit for the smaller card */
    .team img, .opponent-logo {
        width: 50px;
        height: 50px;
    }

    .team span {
        font-size: 0.95rem;
    }

    /* 6. Tighten up the 3D Image Gallery padding */
    .gallery-section {
        padding: 4rem 1.5rem;
    }

    .gallery-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}