/* =========================================
   1. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Container Utility */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn-primary {
    background-color: #00e676;
    color: #000;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: #00c853; transform: translateY(-2px); }

.btn-secondary {
    background-color: transparent;
    border: 2px solid #00e676;
    color: #00e676;
    padding: 10px 23px;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}
.btn-secondary:hover { background-color: #00e676; color: #000; }

.btn-telegram {
    background-color: #0088cc;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}
.btn-telegram:hover { background-color: #0077b5; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5); }

.btn-nav {
    background: #00e676;
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
}
.btn-nav:hover { background: #00c853; }

.btn-small {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}
.btn-small:hover { background: #00e676; color: black; }

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.navbar {
    background-color: #1e1e2e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.8rem; font-weight: 800; color: white; letter-spacing: 1px; }
.logo span { color: #00e676; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: #ccc; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: #00e676; }

.menu-toggle { display: none; font-size: 1.8rem; color: #fff; cursor: pointer; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #1f2b3e, #121212);
}
.hero .container { display: flex; align-items: center; flex-wrap: wrap; gap: 40px; }

.hero-content { flex: 1; min-width: 300px; }
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: -webkit-linear-gradient(#fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 1.2rem; margin-bottom: 35px; color: #aaa; max-width: 500px; }

.hero-image { flex: 1; min-width: 300px; text-align: center; }
.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid #333;
    transform: perspective(1000px) rotateY(-5deg);
    transition: 0.5s;
}
.hero-image:hover img { transform: perspective(1000px) rotateY(0deg); }

/* =========================================
   5. FEATURED GAME SECTION (New)
   ========================================= */
.featured-section {
    padding: 80px 0;
    background-color: #161b22;
    text-align: center;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}
.section-title { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.section-subtitle { color: #888; margin-bottom: 40px; font-size: 1.1rem; }

/* Responsive Iframe Container (16:9 Aspect Ratio) */
.iframe-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
    margin: 0 auto 40px auto;
    border: 4px solid #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.1);
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Game Guide Text */
.game-details-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    background: #1e1e2e;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #00e676;
}
.game-details-text h3 { color: #00e676; margin-bottom: 15px; font-size: 1.5rem; }
.game-features { margin-top: 20px; list-style: none; }
.game-features li { margin-bottom: 8px; color: #ccc; display: flex; align-items: center; }
.game-features i { color: #00e676; margin-right: 12px; font-size: 0.9rem; }

/* =========================================
   6. FEATURES ICONS
   ========================================= */
.features { padding: 60px 0; background: #121212; }
.features .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }

.feature-box {
    flex: 1; min-width: 280px;
    background: #1e1e2e;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: 0.3s;
}
.feature-box:hover { transform: translateY(-5px); border-color: #00e676; }
.feature-box i { font-size: 3rem; color: #00e676; margin-bottom: 20px; }
.feature-box h3 { margin-bottom: 10px; color: #fff; }
.feature-box p { color: #888; font-size: 0.9rem; }

/* =========================================
   7. GAMES GRID
   ========================================= */
.games-section { padding: 80px 0; background: #121212; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.game-card {
    background: #1e1e2e;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
}
.game-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: #444; }

.card-image { position: relative; overflow: hidden; height: 180px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.game-card:hover .card-image img { transform: scale(1.1); }

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 230, 118, 0.9);
    color: #000;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.game-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.game-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.game-info .desc {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 38px; /* Fixed height for alignment */
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    margin-top: auto; /* Pushes to bottom if text is short */
    padding-top: 12px;
    border-top: 1px solid #333;
}
.game-meta i { color: #ffcc00; margin-right: 5px; }

/* =========================================
   8. SEO CONTENT & TELEGRAM
   ========================================= */
.seo-content { padding: 60px 0; background: #151515; border-top: 1px solid #222; }
.text-block {
    background: #1e1e2e;
    padding: 50px;
    border-radius: 12px;
    border-left: 5px solid #00e676;
}
.text-block h2 { color: #fff; margin-bottom: 25px; }
.text-block p, .text-block li { color: #bbb; margin-bottom: 15px; }
.text-block ul { margin-left: 20px; margin-bottom: 20px; list-style: disc; }

.telegram-section { padding: 80px 0; background: #121212; text-align: center; }
.telegram-box {
    background: linear-gradient(135deg, #1e1e2e 0%, #23233a 100%);
    padding: 60px 20px;
    border-radius: 20px;
    border: 1px solid #333;
    max-width: 800px;
    margin: 0 auto;
}
.telegram-box h2 { font-size: 2rem; margin-bottom: 15px; }

/* =========================================
   9. CONTENT PAGES (About, Privacy, Terms)
   ========================================= */
.content-page { padding: 80px 0; min-height: 60vh; }
.content-page h1 { font-size: 2.5rem; color: #00e676; margin-bottom: 40px; border-bottom: 1px solid #333; padding-bottom: 20px; }
.content-page h2 { font-size: 1.5rem; margin-top: 40px; margin-bottom: 15px; color: #fff; }
.content-page p { font-size: 1.05rem; color: #ccc; margin-bottom: 20px; }
.content-page ul { list-style: disc; margin-left: 20px; color: #ccc; margin-bottom: 20px; }
.content-page strong { color: #fff; }

/* Contact Form */
.contact-form { max-width: 600px; margin: 0 auto; background: #1e1e2e; padding: 40px; border-radius: 10px; border: 1px solid #333; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #ddd; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: #121212;
    border: 1px solid #333;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    transition: 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: #00e676; outline: none; }
.form-group textarea { height: 150px; resize: none; }

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #0d0d0d;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #222;
}
.footer-links { margin-bottom: 25px; }
.footer-links a { margin: 0 15px; color: #888; font-size: 0.95rem; display: inline-block; margin-bottom: 10px; }
.footer-links a:hover { color: #00e676; }
footer p { color: #555; font-size: 0.85rem; }

/* =========================================
   11. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .navbar .container { padding: 0 20px; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1e1e2e;
        padding: 20px 0;
        border-bottom: 1px solid #333;
        clip-path: inset(0 0 100% 0); /* Hidden by default */
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: inset(0 0 0 0); /* Visible */
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links li { width: 100%; text-align: center; padding: 10px 0; }
    .btn-nav { display: inline-block; margin-top: 10px; }
    
    .menu-toggle { display: block; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero { padding: 60px 0; }
    
    .cta-group { display: flex; flex-direction: column; gap: 15px; }
    .btn-secondary { margin-left: 0; }
    
    .iframe-container { margin-bottom: 20px; }
    .game-details-text { padding: 20px; }
    
    .text-block { padding: 25px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .games-grid { grid-template-columns: 1fr; } /* Single column on very small screens */
}