:root { 
    --color-primary: #D400FF;
    --color-secondary: #00FF85;
    --color-accent: #FF00FF;
    --color-gradient: linear-gradient(45deg, #a100c1, #00ff84, #a700a7); 

    --color-dark: #0A001A;
    --color-darker: #05000F;

    --font-small: 0.875rem;
    --font-medium: 1rem;
    --font-large: 1.25rem;
    --font-title: 2rem;

    --font-family-base: 'Orbitron', sans-serif;
    --font-family-title: 'Exo', sans-serif;

    --border-radius: 10px;
    --transition-speed: 0.5s;

    --box-shadow-glow: 0 0 10px rgba(212, 0, 255, 0.8), 
                       0 0 20px rgba(0, 255, 133, 0.7), 
                       0 0 30px rgba(255, 0, 255, 0.6);

    --text-glow: 0 0 5px rgba(212, 0, 255, 0.8), 
                 0 0 10px rgba(0, 255, 133, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-base);
}

body { 
    min-height: 100vh;
    background: var(--color-darker);
    color: white;
    overflow-y: scroll;
    position: relative;
}

/* Global Section Animation */
section {
    min-height: 80vh;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}


section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20; 
    border-bottom: none;
    transition: transform 0.3s ease-in-out;
}

/* Hidden state */
.header.hide {
    transform: translateY(-100%);
}


.logo {
    font-family: Impact, fantasy;
    font-size: calc(var(--font-title) * 1.5);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: bolder;
    letter-spacing: 2px;
    transition: transform var(--transition-speed);
}

.logo a {
    text-decoration:none;
    color: var(--color-primary);
}

.logo:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0 1rem;
}

.nav a {
    color: white;
    font-size: var(--font-large);
    text-decoration: none;
    transition: color var(--transition-speed);
    position: relative;
}

.nav a:hover {
    color: var(--color-primary);
    transform: scale(1.5);
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-speed);
    bottom: -4px;
    left: 0;
}

.nav a:hover::after {
    width: 100%;
}

/* Button */
.btn {
    margin-top: 2rem;
    background: var(--color-gradient);
    color: var(--color-dark);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: var(--font-large);
}

.btn:hover {
    transform: scale(1.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px var(--color-primary); }
    50% { box-shadow: 0 0 20px var(--color-accent); }
    100% { box-shadow: 0 0 10px var(--color-primary); }
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--color-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items:center;
    text-align:center;
    overflow: hidden;
    background: var(--color-dark);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-content h1 {
    font-size: var(--font-title);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: var(--font-large);
    margin-bottom: 1.5rem;
}

/* News Grid Section */
.news-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* News Cards */
.news-card {
    background: var(--color-dark);
    border: 2px solid #333;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
}

.news-card:hover {
    border-color: var(--color-accent);
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.news-card img {
    width: 100%;
    display: block;
    height: 400px;
    object-fit: cover;
}

.news-card .card-content {
    padding: 1rem;
    color: white;
}

.news-card .card-content h3 {
    margin-bottom: 0.5rem;
    font-size: var(--font-large);
}

.news-card .card-content p {
    font-size: var(--font-small);
    margin-bottom: 0.5rem;
}

.news-card .card-content .news-date {
    font-size: var(--font-small);
    font-style: italic;
    color: var(--color-secondary);
}

/* Store Section */
.store-section {
    padding: 2rem;
    background: var(--color-darker);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 0.5fr));
    gap: 1.5rem;
}

.store-card {
    background: var(--color-dark);
    border: 2px solid #333;
    border-radius: var(--border-radius);
    overflow: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
    border-color: var(--color-primary);
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.store-card img {
    width: 100%;
    display: block;
}

.store-card .card-content {
    padding: 1rem;
    color: white;
}

.store-card .card-content h3 {
    margin-bottom: 0.5rem;
    font-size: var(--font-large);
}

.store-card .card-content p {
    font-size: var(--font-small);
    margin-bottom: 0.5rem;
}

.store-card .card-content .price {
    font-weight: bold;
    color: var(--color-primary);
}

section:last-of-type {
    padding-bottom: 80px;
    margin-bottom: 30px;
}

/* Footer */
footer {
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.show-footer {
    opacity: 0.8;
    transform: translateY(0);
    pointer-events: auto; 
}

footer .footer-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

footer a {
    text-decoration: none;
    color: var(--color-secondary)
}

footer a:hover {
    color: var(--color-primary)
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@media screen and (max-width: 750px) {
    :root {
    /* Reduce base font size slightly */
        font-size: 0.9rem;
    }

    /* Header: stack logo and nav vertically */
    .header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo {
        width: 100%;
        text-align: center;
        font-size: calc(var(--font-title) * 0.8);
    }

    .nav {
        margin-top: 2rem;
        align-items: center;
    }

    .nav li {
        margin: 0 0.5rem;
    }

    .nav a {
        font-size: var(--font-large);
    }

    .hero-content h1 {
        font-size: calc(var(--font-title) * 0.8);
    }

    .hero-content p {
        font-size: calc(var(--font-large) * 0.8);
    }

    .news-grid,
    .store-section {
        padding: 2rem;
        background: var(--color-darker);
        display:grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .news-card img {
        width: 100%;
        display: block;
        height: 300px;
        object-fit: cover;
    }
}
