/* ═══════════════════════════════════════════════════
   GAMMINGSALE LLC — Design System
   Gaming Premium Dark Theme
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --bg-elevated: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --border: #2a2a2a;
    --border-hover: #3a3a3a;
    --accent: #00ff88;
    --accent-dim: rgba(0,255,136,0.1);
    --accent-glow: rgba(0,255,136,0.3);
    --purple: #a855f7;
    --cyan: #06b6d4;
    --red: #ff2d55;
    --ff-heading: 'Space Grotesk', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(0,255,136,0.15);
    --max-width: 1200px;
}

/* ── Base ── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--ff-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── 3D Icons ── */
.icon-3d {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: transform var(--transition), filter var(--transition);
}
.value-icon .icon-3d { margin: 0 auto; width: 64px; height: 64px; }
.catalog-card-icon .icon-3d { width: 56px; height: 56px; margin-bottom: 4px; }
.about-stat-icon .icon-3d { margin: 0 auto; width: 64px; height: 64px; }
.contact-icon .icon-3d { margin: 0 auto; width: 96px; height: 96px; }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════ */
body.loading {
    overflow: hidden;
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.preloader-logo {
    height: 60px;
    width: auto;
    animation: float-logo 3s ease-in-out infinite;
}
@keyframes float-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0,255,136,0.1);
}
.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    animation: load-progress 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes load-progress {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ── 3D WebGL Background ── */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(10,10,10,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.header-logo { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.header-nav a:hover { color: var(--text-primary); }
.header-nav a:hover::after { width: 100%; }

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-family: var(--ff-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all var(--transition);
}
.btn-whatsapp-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,255,136,0.3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,255,136,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-main-logo {
    display: block;
    height: 100px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 20px rgba(0,255,136,0.3));
    animation: float-bounce 6s infinite ease-in-out;
}
.hero-title {
    font-family: var(--ff-heading);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-heading);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,255,136,0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero Info Card */
.hero-card {
    background: var(--bg-card);
    padding: 32px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.hero-card-title {
    font-family: var(--ff-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.hero-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hero-card-row:last-child { border-bottom: none; }
.hero-card-label {
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-card-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
}
.hero-card-value.accent { color: var(--accent); font-weight: 700; }

/* ═══════════════════════════════════════════════════
   VALUE BAR
   ═══════════════════════════════════════════════════ */
.value-bar {
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.value-item {
    background: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    transition: all var(--transition);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.value-item:hover {
    transform: translateY(-4px) scale(1.02);
}
.value-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.3));
    transition: all var(--transition);
}
.value-item:hover .value-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 14px rgba(0,255,136,0.5));
}
.value-label {
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.value-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   CATALOG / SERVICES
   ═══════════════════════════════════════════════════ */
.catalog {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-tag {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.catalog-card {
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--transition);
    cursor: default;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.catalog-card:hover {
    transform: translateY(-6px) scale(1.02);
}
.catalog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-card-img {
    transform: scale(1.05);
}
.catalog-card-img-wrap {
    overflow: hidden;
    position: relative;
}
.catalog-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
}
.catalog-card-body {
    padding: 22px 24px 26px;
}
.catalog-card-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(0,255,136,0.2));
}
.catalog-card-title {
    font-family: var(--ff-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.catalog-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.about {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-tag {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.about-title {
    font-family: var(--ff-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}
.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-stat {
    background: var(--bg-card);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.about-stat:hover {
    transform: scale(1.05);
}
.about-stat-icon {
    font-size: 24px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 6px rgba(0,255,136,0.25));
}
.about-stat-value {
    font-family: var(--ff-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.about-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.contact {
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
}
.contact-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}
.contact-icon {
    font-size: 52px;
    margin-bottom: 20px;
    display: block;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(0,255,136,0.3));
}
.contact-title {
    font-family: var(--ff-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.contact-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ff-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 28px;
}
.btn-whatsapp-big {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-family: var(--ff-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}
.btn-whatsapp-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}
.contact-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 18px;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-brand {
    font-family: var(--ff-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}
.footer-brand span { color: var(--accent); }
.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}
.footer-copy a { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   FLOATING WHATSAPP
   ═══════════════════════════════════════════════════ */
.float-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all var(--transition);
    animation: float-bounce 3s ease-in-out infinite;
}
.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS (scroll reveal)
   ═══════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   FOOTER LOGO
   ═══════════════════════════════════════════════════ */
.footer-logo {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0,255,136,0.2));
}

.developer-credit {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 1px;
    text-decoration: none;
    transition: all var(--transition);
}
.developer-credit:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-card { max-width: 400px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .header-nav { display: none; }
    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10,10,10,0.98);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
    }
    .menu-toggle { display: block; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-title { font-size: 36px; letter-spacing: -1px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .contact-card { padding: 40px 24px; }
    .contact-phone { font-size: 18px; }
    .footer-inner { flex-direction: column; gap: 8px; }
}
