/* === ROOT VARIABLES & GLOBAL RESETS === */
:root {
    --bg-dark: #0D0D1A; /* Deep, dark blue for a professional feel */
    --bg-light: #1A1A2E; /* Slightly lighter shade for contrast */
    --primary-pink: #FF4081; /* Vibrant pink for accents */
    --accent-cyan: #00E5FF; /* Bright cyan for highlights and glows */
    --text-light: #F5F5F5; /* Off-white for better readability */
    --text-dark: #B0B0B0; /* Muted gray for secondary text */
    --border-radius: 12px;
    --shadow-color: rgba(0, 229, 255, 0.5); /* Cyan for glow effects */
    --shadow-intense: rgba(255, 64, 129, 0.6); /* Pink for more intense glows */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, var(--bg-dark), var(--bg-light), #536976, #292E49);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light);
    padding-top: 70px; /* Prevent content from being hidden behind the fixed header */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

ul {
    list-style: none;
}

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

a:hover {
    color: var(--primary-pink);
}

/* === MODERN BUTTON STYLE === */
.modern-button {
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-cyan));
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-intense);
}

/* === HEADER & NAVIGATION (MOBILE-FIRST) === */
.modern-header-dark {
    background: rgba(13, 13, 26, 0.8); /* Darker, more translucent background */
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-nav-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.nav-logo a {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
    display: block; /* Show hamburger on mobile */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
}

.nav-toggle .fa-times {
    display: none;
}

.modern-header-dark.nav-open .nav-toggle .fa-bars {
    display: none;
}

.modern-header-dark.nav-open .nav-toggle .fa-times {
    display: block;
}

/* --- Mobile Nav Menu --- */
.nav-right {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px; /* Position below header */
    left: 0;
    width: 100%;
    background: rgba(13, 13, 26, 0.95);
    padding: 40px 0;
}

.modern-header-dark.nav-open .nav-right {
    display: flex; /* Show menu when header has .nav-open */
}

.nav-menu-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
}

.nav-menu-modern a {
    font-size: 20px;
    font-weight: 500;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: rgba(13, 13, 26, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === DESKTOP STYLES (BASE) === */
@media (min-width: 992px) {
    .modern-nav-dark {
        padding: 0 50px;
    }

    .nav-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-right {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        width: auto;
        align-items: center;
        gap: 40px;
    }

    .nav-menu-modern {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        flex-direction: row;
        margin-bottom: 0;
        gap: 40px;
    }
    
    .nav-actions {
        flex-direction: row;
        gap: 25px;
    }
}

/* Download page specific styles */
.download-section {
    text-align: center;
    padding: 80px 20px;
}

.download-section h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-pink);
}

.platform-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    min-width: 300px;
    background-color: rgba(22, 33, 62, 0.7);
    border: 1px solid var(--primary-pink);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.platform-btn i {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .platform-links {
        flex-direction: row; /* Side-by-side on larger screens */
        justify-content: center;
    }
}

/* === MAIN CONTENT (INDEX PAGE) === */

/* --- Hero Section --- */
.hero-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 60px); /* Full height minus header */
    overflow: hidden; /* Hide overflowing animations */
    position: relative; /* For pseudo-elements */
}

/* Add a subtle animated background */
.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(29, 39, 57, 0.8) 0%, rgba(13, 17, 23, 1) 70%);
    z-index: -1;
    animation: pulse-background 10s infinite alternate;
}

@keyframes pulse-background {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--primary-pink), 0 0 25px var(--primary-pink);
    animation: fade-in-down 1s ease-out;
}

.hero-content h2 {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    animation: fade-in-up 1s ease-out;
}

.download-btn-dark {
    background: var(--primary-pink);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounce-in 1.2s ease-out;
}

.download-btn-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.8);
}

/* --- Features Section --- */
.features-dark {
    padding: 80px 20px;
    text-align: center;
}

.features-dark h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    animation: fade-in 1s ease-out;
}

.feature-cards {
    display: flex;
    flex-direction: column; /* Stack cards on mobile */
    gap: 40px;
    align-items: center;
}

.card-dark {
    background-color: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoom-in 0.8s ease-out;
}

.card-dark:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    animation: spin-icon 5s linear infinite;
}

.card-dark h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-dark p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* === DESKTOP-SPECIFIC OVERRIDES FOR INDEX PAGE === */
@media (min-width: 992px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

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

    .feature-cards {
        flex-direction: row; /* Layout cards side-by-side */
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Login page specific styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px); /* Adjust for header height */
    padding: 40px;
}

.login-form {
    background-color: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-pink);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-pink);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(233, 69, 96, 0.4);
}

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

.form-footer a {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* Shop page specific styles */
.shop-header {
    text-align: center;
    padding: 40px 20px;
}

.shop-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
}

.player-info-section {
    padding: 30px 20px;
    text-align: center;
    background-color: rgba(13, 13, 26, 0.5);
    max-width: 700px;
    margin: 0 auto 40px auto;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-info-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-pink);
}

.player-inputs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.player-inputs input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 1rem;
    min-width: 220px;
    transition: all 0.3s ease;
}

.player-inputs input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--shadow-color);
}


.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 40px 40px 40px;
    align-items: stretch; /* Make cards equal height */
}

.shop-item {
    background-color: rgba(22, 33, 62, 0.5); /* Use dark theme color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: var(--text-light); /* Use light text color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px var(--shadow-color);
}


.shop-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 0 8px var(--primary-pink);
}

.item-bundle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sub-item {
    background-color: transparent;
    border-radius: 12px;
    width: 70px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 5px 0 5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 26, 0.4); /* Darker background */
    border-radius: 12px;
    z-index: -1;
}

.sub-item-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dark); /* Use light gray text */
    margin-bottom: 5px;
    height: 28px;
    text-align: center;
    line-height: 1.2;
}

.sub-item-image {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-item-image img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.sub-item-quantity {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Darker background for quantity */
    padding: 4px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light); /* Light text */
    text-align: center;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.shop-item-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
}

.bonus-points span {
    background-color: var(--primary-pink);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 0 10px var(--shadow-intense);
}


.price-button-wrapper {
    flex-shrink: 0;
}

.buy-btn {
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-cyan));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-intense);
}

.buy-btn i {
    font-size: 1.2rem;
}

.modal {
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex; /* Use flexbox for centering */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-light);
    border: 1px solid var(--primary-pink);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 0 30px var(--shadow-intense);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.is-visible .modal-content {
    transform: scale(1);
}


.modal-content h2 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}


/* Video page specific styles */
.video-header {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-header h1 {
    font-size: 3rem;
    color: var(--primary-pink);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px;
}

.video-item {
    background-color: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px black;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-thumbnail:hover .play-button {
    opacity: 1;
}

.video-title {
    padding: 15px;
    font-weight: bold;
}
