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

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #0f0f0f;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Asegurar que el contenido principal empuje el footer hacia abajo */
main, .main-content {
    flex: 1 0 auto;
    width: 100%;
    position: relative;
    padding-top: 70px; /* Space for the fixed header */
    margin-bottom: 0;
}

:root {
    --primary-color: #FFD700;  /* Amarillo dorado */
    --secondary-color: #000000;  /* Negro */
    --accent-color: #FFA500;  /* Naranja para acentos */
    --text-color: #FFFFFF;
    --dark-bg: #111111;
    --light-bg: #1A1A1A;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header y Navegación */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    overflow: visible !important; /* Ensure dropdown is not cut off */
}

header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 75px;
    width: 100%;
    border: none;
    background: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    flex-wrap: nowrap;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.logo h1 span {
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
    margin: 0;
    padding: 0 1rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex-shrink: 0;
    position: static; /* Ensure this is not creating a new stacking context */
}

.nav-links > li > a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
    margin: 0 0.1rem !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-links a:hover::after {
    width: 80%;
    height: 3px;
}

/* Highlight link */
.highlight-link {
    background: #FFD700;
    color: #000000 !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 25px;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.8rem !important;
    display: inline-block;
    line-height: 1.3;
    white-space: nowrap;
}

.highlight-link:hover {
    background: #FFC700;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Scrolled header styles */
.logo-link:hover .logo-img {
    transform: rotate(10deg);
}

.logo-link:hover h1 {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(255, 215, 0, 0.1)), 
                url('assets/img/equipomonta.png') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    line-height: 1.1;
}

.hero-title .highlight-gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: #FFD700;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-align: center;
    width: fit-content;
}

.scroll-indicator span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.mouse-scroll {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 215, 0, 0.7);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.mouse-scroll::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 8px;
    background: #FFD700;
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-down 1.5s infinite;
}

/* Navigation specific styles */
.nav-links > li > a,
.nav-links > li > .btn,
.nav-links > li > .highlight-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem !important;
    margin: 0 0.25rem !important;
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.8rem 2rem !important;
    font-size: 0.9rem !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    border-radius: 50px;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000 !important;
    border: 2px solid #FFD700;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #FFC700, #FF9400);
    color: #000 !important;
}

.btn-secondary {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFA500;
    border-color: #FFA500;
}

.btn-large {
    padding: 1.2rem 3rem !important;
    font-size: 1.1rem !important;
}

/* Highlight Classes */
.highlight-primary {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.highlight-gold {
    color: #FFD700;
}

/* Sección Equipo */
.team {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
}

.team h2, .matches h2, .news h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.team h2::after, .matches h2::after, .news h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 25%;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.player-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.player-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-color: #333;
    border: 3px solid var(--primary-color);
    overflow: hidden;
}

.player-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.player-card p {
    color: #aaa;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Sección Partidos */
.matches {
    padding: 6rem 2rem;
    background-color: var(--dark-bg);
}

.match-cards {
    max-width: 800px;
    margin: 0 auto;
}

.match-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.match-card:hover {
    transform: translateX(10px);
}

.teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.match-info {
    display: flex;
    justify-content: space-between;
    color: #aaa;
}

.league {
    color: var(--primary-color);
}

/* Sección Noticias */
.news {
    padding: 6rem 2rem;
    background-color: var(--light-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Footer */
.site-footer {
    background: #0f0f0f;
    padding: 0;
    border: none;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    box-shadow: none;
    display: flex;
    justify-content: center;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 30px;
    text-align: center;
    border: none;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.footer-logo h2 {
    color: #ffd700;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    margin: 10px 0;
}

.footer-logo span {
    color: #fff;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.2em;
    margin: 0 10px;
    transition: color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: #ffd700;
}

.copyright {
    color: #888;
    font-size: 0.9em;
    margin-top: 20px;
}

footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p {
    margin-bottom: 1rem;
}

.sponsors {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    background: #0a0a0a;
    padding: 60px 0 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Main Content */
.main-content {
    flex: 1 0 auto;
    padding: 120px 0 60px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        background-color: var(--secondary-color);
        height: calc(100vh - 80px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        clip-path: circle(0% at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-links li:nth-child(1) {
        transition: all 0.5s ease 0.2s;
    }

    .nav-links li:nth-child(2) {
        transition: all 0.5s ease 0.3s;
    }

    .nav-links li:nth-child(3) {
        transition: all 0.5s ease 0.4s;
    }

    .nav-links li:nth-child(4) {
        transition: all 0.5s ease 0.5s;
    }

    .nav-links.active li {
        opacity: 1;
    }

    .burger {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Page Layout */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* About Page Styles */
.about-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.about-section::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    z-index: -1;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.99);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    height: 80px;
    overflow: hidden;
}

.about-text {
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 15px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text h2 {
    color: #ffd700;
    margin: 0 0 30px 0;
    font-size: 3.5em;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    position: relative;
    display: inline-block;
    font-weight: 800;
    line-height: 1.2;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffd700;
}

.about-text h3 {
    color: #ffd700;
    margin: 40px 0 20px;
    font-size: 2em;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 1.15em;
    color: #e0e0e0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.about-text ul {
    list-style-type: none;
    padding-left: 0;
    margin: 25px 0;
}

.about-text ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 1.1em;
}

.about-text ul li::before {
    content: '→';
    color: #ffd700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    padding: 14px 35px;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.back-button::before {
    content: '←';
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.back-button:hover::before {
    transform: translateX(-5px);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #ffea00, #ff9500);
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Features Section */
.features-section {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin: 20px auto 0;
}

.title-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    margin: 15px auto;
}

.section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(255, 215, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #FFD700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Games Section Enhanced */
.games-section {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.game-card {
    height: 450px;
    cursor: pointer;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 15px;
    overflow: hidden;
    transition: opacity 0.4s ease;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 215, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.game-title {
    font-size: 1.8rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-back {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .card-front {
    opacity: 0;
}

.game-card:hover .card-back {
    opacity: 1;
}

.card-back h3 {
    font-size: 2.2rem;
    color: #FFD700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 100;
}

.card-back p {
    display: none;
}

.card-stats {
    display: none;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    color: #FFD700;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-btn {
    display: inline-block;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000 !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    text-align: center;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFC700, #FF9400);
}

/* CTA Section */
.cta-section {
    padding: 120px 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-section p {
    font-size: 1.3rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-section .btn-large {
    background: #000;
    color: #FFD700 !important;
    border-color: #000;
}

.cta-section .btn-large:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #FFA500 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
    
    .features-section {
        padding: 60px 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title h2::after {
        width: 80px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .games-section {
        padding: 60px 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .game-card {
        height: 400px;
    }
    
    .cta-section {
        padding: 80px 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .features-section {
        padding: 40px 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .games-section {
        padding: 40px 1rem;
    }
    
    .game-card {
        height: 350px;
    }
    
    .card-back {
        padding: 20px;
    }
    
    .card-back h3 {
        font-size: 1.3rem;
    }
    
    .card-back p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .card-stats {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .game-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 60px 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .btn-large {
        padding: 0.9rem 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 992px) {
    .about-section {
        padding: 80px 20px;
    }
    
    .about-text {
        padding: 35px;
    }
    
    .about-text h2 {
        font-size: 2.5em;
    }
    
    .about-text h3 {
        font-size: 1.6em;
    }
    
    .about-text p, 
    .about-text ul li {
        font-size: 1.05em;
        line-height: 1.7;
    }
    
    .back-button {
        padding: 12px 25px;
        font-size: 0.85em;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 60px 15px;
    }
    
    .about-text {
        padding: 25px 20px;
    }
    
    .about-text h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .about-text h3 {
        font-size: 1.4em;
        margin: 30px 0 15px;
    }
    
    .about-text p,
    .about-text ul li {
        font-size: 1em;
        line-height: 1.6;
    }
}

/* Mobile Menu Styles */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
}

.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0 1rem !important;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1a1a1a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active,
    .nav-links.nav-active {
        right: 0;
    }

    .nav-item {
        margin: 0;
        padding: 0;
    }
    
    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-links > li > a,
    .nav-links > li > .btn,
    .nav-links > li > .highlight-link {
        padding: 1rem 0 !important;
        font-size: 1.1rem !important;
        display: block;
        color: #ffffff;
        text-decoration: none;
    }

    .highlight-link {
        margin: 1rem 2rem;
        display: inline-block;
    }
}

/* ============================
   DROPDOWN MENU STYLES
   ============================ */

.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001; /* Higher than header's z-index */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding-left: 25px;
}

/* User profile dropdown styles */
.user-profile-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.5rem;
    font-size: 0.95rem !important;
}

.username-text {
    text-transform: capitalize;
    font-weight: 500;
}

.logout-item {
    color: #ff6b6b !important;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
}

/* Dropdown show state for mobile */
.dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Responsive dropdown */
@media (max-width: 768px) {
    .user-profile-link {
        padding: 0.5rem 1rem !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .nav-links {
        position: static;
    }
    
    .dropdown-menu {
        position: static !important;
        min-width: 100%;
        margin-top: 0;
        margin-bottom: 10px;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-left: 3px solid var(--primary-color);
        background: rgba(255, 255, 255, 0.05);
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .nav-item.dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .username-text {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .username-text {
        display: none;
    }
    
    .user-profile-link {
        padding: 0.5rem 0.75rem !important;
    }
}

/* Login button styling */
.btn-login {
    padding: 0.6rem 1.2rem !important;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

/* Fix dropdown positioning and interaction */
.nav-item.dropdown {
    position: relative !important;
}

.nav-item.dropdown > a {
    cursor: pointer !important;
}

/* Ensure dropdown is visible on hover and when active */
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown > .dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}