/**
 * VENTORO GAMES - Main Stylesheet
 * ================================
 * A clean, organized CSS file for the Ventoro Games website.
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (THEME TOKENS)
   ========================================================================== */
:root {
    /* Colors */
    --bg-color: #001529;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --brand-orange: #ff6b00;
    --primary-hover: #e65c00;
    --accent-red: #ff3d00;
    --accent-yellow: #ffea00;

    /* Effects */
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.3);
    --radius-btn: 50px;
    --radius-card: 16px;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. BASE RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   4. 3D CANVAS
   ========================================================================== */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: all;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.nav-logo span {
    color: var(--brand-orange);
}

.nav-links {
        /* Add top padding to main content to prevent overlap with fixed nav */
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
        /* Add top padding to prevent content under nav */
        padding-top: 90px;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--brand-orange);
}

.btn-signup {
    background-color: var(--brand-orange);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-btn);
    font-weight: 700;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.btn-signup:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    pointer-events: none;
}

.hero-content > * {
    pointer-events: auto;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    font-style: italic;
}

.hero-content h1 span {
    color: var(--brand-orange);
    display: block;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--brand-orange);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.6);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pill {
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
#about {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1.1;
}

.about-text h2 span {
    color: var(--brand-orange);
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-kicker {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-orange);
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.about-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    color: var(--text-secondary);
    padding-left: 0;
}

.about-list li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.5;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), var(--accent-red));
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.18);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-card);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-animate {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.stat-animate.stat-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: statPulse 1.4s ease forwards;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-orange);
    display: block;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes statPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.45); }
    60% { box-shadow: 0 0 0 12px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ==========================================================================
   8. FEATURES SECTION
   ========================================================================== */
#features {
    padding: 8rem 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-orange), var(--accent-red));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.colorblockjam-icon {
    background: #fff;
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.15);
    padding: 4px;
}
.project-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.appstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #0070f3 60%, #00c6fb 100%);
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,112,243,0.12);
    transition: background 0.2s, box-shadow 0.2s;
}
.appstore-btn:hover {
    background: linear-gradient(90deg, #0051a8 60%, #0096c7 100%);
    box-shadow: 0 4px 16px rgba(0,112,243,0.18);
}
.appstore-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    margin-top: 0.75rem;
}

.contact-submit {
    margin-top: 0.75rem;
    width: 100%;
    max-width: 220px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-links a {
    margin: 0 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

.copyright {
    margin-top: 1rem;
    color: #666;
    font-size: 0.875rem;
}

/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   11. RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #hero {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
