@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #dc2626; /* Professional Red */
    --primary-light: #ef4444;
    --primary-dark: #991b1b;
    --gaming-neon: #ff4d4d;
    --secondary: #fbbf24;
    --bg-main: #05070a;
    --bg-card: #0d1117;
    --bg-accent: #161b22;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --container-max: 1280px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.07) 1px, transparent 1px);
    background-size: 30px 30px; /* Smaller, denser grid */
    background-position: center center;
    pointer-events: none;
    z-index: -1;
    animation: gridAnimation 15s linear infinite; /* Slightly faster loop for smaller size */
}

@keyframes gridAnimation {
    from { background-position: 0 0; }
    to { background-position: 30px 30px; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding { padding: 5rem 0; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.85rem;
    gap: 0.4rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-accent);
    border-color: var(--text-muted);
}

.glass-card {
    background: #111111; /* Solid dark background to prevent haze */
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

img {
    display: block;
    max-width: 100%;
    /* Max sharpness for gaming assets */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(220, 38, 38, 0.1);
}

/* Card Hover Overlay */
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.glass-card:hover .card-overlay {
    opacity: 1;
}

/* Gallery & Video */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--primary);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.875rem; font-weight: 500; }
.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Badge */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-sale { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

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

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

@keyframes dropIn {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.drop-word {
    display: inline-block;
    opacity: 0;
    animation: dropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes trainMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.marquee-container {
    width: fit-content;
    min-width: 160px;
    max-width: 90%;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: rgba(13, 17, 23, 0.75); /* Exact navbar background */
    backdrop-filter: blur(12px); /* Exact navbar blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border); /* Neutral border like navbar */
    color: var(--primary);
    padding: 0.4rem 1.5rem;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 1001;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7); /* Exact navbar shadow */
}

@keyframes trainMove {
    0% { transform: translateX(200px); }
    100% { transform: translateX(-100%); }
}

.marquee-text {
    display: inline-block;
    padding-left: 10px;
    animation: trainMove 12s linear infinite; /* Slightly faster for smaller card */
}

/* Navbar Extension */
.navbar {
    height: 52px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 1rem;
    z-index: 1000;
    width: 95%;
    max-width: 900px;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.navbar-container {
    width: 100%;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-logo-icon {
    background: var(--primary);
    padding: 4px;
    border-radius: 4px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-accent);
    color: var(--text-main);
    border-color: var(--text-muted);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

/* Footer Extension */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
}

.footer-column h4 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }
