/* ============================================
   GamesDevelop.fun - Main Stylesheet
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(0,255,136,0.3); }

body {
    background: #0a0a0f;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* --- Colors --- */
.text-green { color: #00ff88; }
.label-green {
    font-size: 12px; font-family: 'Space Mono', monospace;
    color: #00ff88; letter-spacing: 3px; text-transform: uppercase;
}

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
    font-size: clamp(28px, 4vw, 48px); font-weight: 800;
    margin-top: 12px; letter-spacing: -1px;
}
.section-desc { color: #64748b; margin-top: 12px; font-size: 16px; }

.badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(0,255,136,0.1); border: 1px solid rgba(0,255,136,0.2);
    color: #00ff88; font-size: 12px; font-family: 'Space Mono', monospace;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 24px; transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,255,136,0.1);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
}
.logo-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; color: #0a0a0f;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    color: #94a3b8; font-size: 14px; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: #00ff88; }

/* Mobile Toggle */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2px; background: #e2e8f0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10,10,15,0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 20px 24px; gap: 0;
        border-bottom: 1px solid rgba(0,255,136,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        display: block; padding: 12px 0; font-size: 16px;
        border-bottom: 1px solid #1e293b;
    }
    .mobile-toggle { display: flex; }
}

/* ============================================
   GAMES LIST - Top Section
   ============================================ */
.games-section { padding-top: 100px; }

.games-list { display: flex; flex-direction: column; gap: 12px; }

.game-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px; border-radius: 12px;
    background: rgba(30,41,59,0.4); border: 1px solid #1e293b;
    transition: border-color 0.2s; flex-wrap: wrap; gap: 12px;
}
.game-row:hover { border-color: rgba(0,255,136,0.3); }

.game-info { flex: 1; min-width: 200px; }
.game-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.game-title { font-size: 16px; font-weight: 700; }
.game-category {
    font-size: 10px; padding: 2px 8px; border-radius: 4px;
    background: rgba(0,204,255,0.1); color: #00ccff;
    font-weight: 600; letter-spacing: 0.5px;
}
.game-featured { font-size: 10px; color: #fbbf24; font-weight: 600; }
.game-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0; }

.demo-link {
    color: #00ff88; font-weight: 700; font-size: 14px;
    white-space: nowrap; transition: all 0.2s;
}
.demo-link:hover { text-decoration: underline; }

/* ============================================
   HERO
   ============================================ */
.hero-section {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding: 60px 24px;
}
.hero-glow {
    position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero-glow-1 {
    top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
}
.hero-glow-2 {
    bottom: -10%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,204,255,0.06) 0%, transparent 70%);
}
.hero-content {
    max-width: 900px; text-align: center; position: relative; z-index: 1;
}
.hero-title {
    font-size: clamp(36px, 7vw, 80px); font-weight: 900;
    line-height: 1.05; letter-spacing: -2px; margin: 0 0 24px;
}
.hero-desc {
    font-size: 18px; color: #64748b; line-height: 1.7;
    max-width: 600px; margin: 0 auto 40px; font-weight: 300;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 48px; justify-content: center;
    margin-top: 60px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
    font-size: 28px; font-weight: 800; color: #00ff88;
    font-family: 'Space Mono', monospace;
}
.stat-label {
    font-size: 12px; color: #64748b; margin-top: 4px;
    letter-spacing: 1px; text-transform: uppercase;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block; padding: 14px 36px; border-radius: 8px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #0a0a0f; font-size: 15px; font-weight: 700;
    letter-spacing: 0.5px; border: none; cursor: pointer;
    box-shadow: 0 0 30px rgba(0,255,136,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,255,136,0.35); }
.btn-full { width: 100%; }
.btn-outline {
    display: inline-block; padding: 14px 36px; border-radius: 8px;
    border: 1px solid #334155; color: #e2e8f0;
    font-size: 15px; font-weight: 600; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: #00ff88; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
    padding: 32px; border-radius: 16px;
    background: linear-gradient(145deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border: 1px solid #1e293b; transition: transform 0.3s, border-color 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(0,255,136,0.3); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: #64748b; line-height: 1.7; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-box {
    padding: 40px; border-radius: 20px;
    background: linear-gradient(145deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border: 1px solid #1e293b;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; color: #94a3b8;
    margin-bottom: 8px; font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 12px 16px; border-radius: 8px; font-size: 14px;
    background: #0f172a; border: 1px solid #334155; color: #e2e8f0;
    outline: none; font-family: 'Outfit', sans-serif; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #00ff88; }

/* ============================================
   AD SLOTS - Google Ads Friendly
   ============================================ */
.ad-container { display: flex; justify-content: center; margin: 20px auto; padding: 0 24px; }
.ad-slot {
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed #334155; border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    max-width: 100%;
}
.ad-leaderboard { width: 728px; height: 90px; }
.ad-rectangle { width: 300px; height: 250px; }
.ad-banner { width: 468px; height: 60px; }
.ad-placeholder {
    color: #475569; font-size: 12px;
    font-family: 'Space Mono', monospace; letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid #1e293b; padding: 40px 0; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-size: 18px; font-weight: 800; }
.footer-desc { color: #475569; font-size: 13px; margin-top: 6px; }
.footer-copy { color: #475569; font-size: 12px; font-family: 'Space Mono', monospace; }

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease; transform: translateX(0);
}
.toast-success { background: #00cc6a; color: #0a0a0f; }
.toast-error { background: #dc2626; color: #fff; }

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .hero-stats { gap: 24px; }
    .game-row { padding: 14px 16px; }
    .ad-leaderboard { width: 320px; height: 100px; }
    .ad-banner { width: 320px; height: 50px; }
}
