/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --black-card: #1a1a1a;
    --red: #e51a2b;
    --red-dark: #b0101f;
    --red-glow: rgba(229, 26, 43, 0.3);
    --white: #ffffff;
    --white-off: #f0f0f0;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    --border-radius: 12px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FIX: prevent horizontal scroll on all devices ===== */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overscroll-behavior-x: none;        /* stops swipe-to-scroll on modern browsers */
    -webkit-overflow-scrolling: touch;  /* keeps vertical scrolling smooth on iOS */
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white-off);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

h1 span,
h2 span,
h3 span,
.section-title span {
    color: var(--red);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(229, 26, 43, 0.15);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
    border: 1px solid rgba(229, 26, 43, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--gray-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 0 24px var(--red-glow);
}
.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--red-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--black);
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--red);
}

.logo-accent {
    color: var(--red);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--gray-light);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    box-shadow: 0 0 12px var(--red-glow);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 520px;
    max-height: 800px;
    overflow: hidden;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    inset: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 80%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
}

.slide-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    background: rgba(229, 26, 43, 0.2);
    padding: 6px 20px;
    border-radius: 50px;
    border: 1px solid rgba(229, 26, 43, 0.3);
    margin-bottom: 20px;
}

.slide-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 16px;
	text-shadow: 2px 2px 3px black;
}

.slide-title span {
    color: var(--red);
	text-shadow: 2px 2px 3px black;
}

.slide-desc {
    font-size: 1.15rem;
    color: var(--white);
    max-width: 520px;
    margin-bottom: 32px;
	text-shadow: 2px 2px 3px black;
}

.slide-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
	text-shadow: 2px 2px 3px black;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 5;
}

.slider-arrow {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--red);
    border-color: var(--red);
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
    width: 32px;
    border-radius: 20px;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--black-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--black-card);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow: 0 0 40px rgba(229, 26, 43, 0.08);
}

.feature-icon {
    font-size: 2.4rem;
    color: var(--red);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.feature-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ============================================
   GAME PREVIEW
   ============================================ */
.game-preview {
    padding: 80px 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.preview-card {
    background: var(--black-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.preview-card:hover {
    transform: scale(1.02);
    border-color: var(--red);
}

.preview-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 50px;
    color: var(--white);
}

.preview-card h4 {
    padding: 16px 20px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--white);
}

.preview-cta {
    text-align: center;
}

/* ============================================
   STATS
   ============================================ */
.stats {
    padding: 60px 0;
    background: var(--black-card);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--red);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-light);
    font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
}

.cta-box {
	background-image: url("../images/ready-to-win-big.jpg");
	background-size: 100%;
    padding: 60px 48px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 0 60px var(--red-glow);
}

.cta-box h2 {
    font-size: 2.6rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 28px;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    padding: 60px 0 40px;
    background: var(--black-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.page-header-content {
    text-align: center;
}

.page-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    background: rgba(229, 26, 43, 0.12);
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-light);
    font-size: 1.1rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
    padding: 80px 0;
}

.about-section.alt-bg {
    background: var(--black-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}
.about-grid.reverse .about-text {
    direction: ltr;
}
.about-grid.reverse .about-image {
    direction: ltr;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 340px;
}

.about-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--red);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--red);
    display: block;
}

.badge-text {
    font-size: 0.85rem;
    color: var(--white);
}

.about-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--white);
}

.about-feature-item i {
    color: var(--red);
    font-size: 1.1rem;
}

/* About CTA */
.about-cta {
    padding: 60px 0;
    background: var(--black-card);
}

.about-cta-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    background: var(--black-light);
    padding: 48px 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-cta-item {
    text-align: center;
}

.about-cta-icon {
    font-size: 2.8rem;
    color: var(--red);
    margin-bottom: 12px;
}

.about-cta-item h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.about-cta-item p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.about-cta-divider {
    width: 2px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
}

.about-why {
    padding: 80px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--black-card);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.why-icon {
    font-size: 2.2rem;
    color: var(--red);
    margin-bottom: 12px;
}

.why-card h4 {
    color: var(--white);
    margin-bottom: 8px;
}

.why-card p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ============================================
   LIVE CASINO PAGE (games grid)
   ============================================ */
.games-grid-section {
    padding: 60px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.game-card {
    background: var(--black-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    text-align: center;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(229, 26, 43, 0.1);
}

.game-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.game-card h4 {
    padding: 14px 12px;
    font-size: 0.95rem;
    color: var(--white);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-section {
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--black-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-content {
    padding: 24px 20px;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.blog-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--white);
}

.blog-content p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 48px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.contact-btn i {
    font-size: 2rem;
}

.contact-btn.whatsapp {
    background: #e1008a;
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.3);
}
.contact-btn.whatsapp:hover {
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(37, 211, 102, 0.5);
}

.contact-btn.telegram {
    background: #0088cc;
    box-shadow: 0 0 40px rgba(0, 136, 204, 0.3);
}
.contact-btn.telegram:hover {
    transform: scale(1.04);
    box-shadow: 0 0 60px rgba(0, 136, 204, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black-light);
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray-light);
    margin: 16px 0 20px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-light);
    transition: var(--transition);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--red);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--gray-light);
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-links ul li a:hover {
    color: var(--red);
}

.footer-newsletter p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-family: var(--font-body);
    outline: none;
}
.newsletter-form input::placeholder {
    color: var(--gray);
}

.newsletter-form button {
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-form button:hover {
    background: var(--red-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gray);
    font-size: 0.85rem;
}

/* ============================================
   FIXED BUTTONS (bottom left & right)
   ============================================ */
.fixed-buttons-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixed-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.fixed-btn .btn-tooltip {
    position: absolute;
    left: 68px;
    background: var(--black-card);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fixed-btn:hover .btn-tooltip {
    opacity: 1;
}

.register-btn {
}
.register-btn:hover {
    transform: scale(1.08);
}

.whatsapp-btn {
    background: #25d366;
}
.whatsapp-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.4);
}

.telegram-btn {
    background: #0088cc;
}
.telegram-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(0, 136, 204, 0.4);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(229, 26, 43, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-4px);
}

.back-to-top .btn-tooltip {
    position: absolute;
    right: 68px;
    background: var(--black-card);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.back-to-top:hover .btn-tooltip {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
	.about-grid2 {
        grid-template-columns: 4fr;
        gap: 40px;
    }
    .about-grid.reverse {
        direction: ltr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* ===== FIX: mobile nav – hide completely until opened ===== */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--black-light);
        padding: 80px 32px 32px;
        transition: right 0.35s ease, visibility 0.35s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        visibility: hidden;           /* hide off‑screen menu */
    }

    .nav.open {
        right: 0;
        visibility: visible;          /* show only when opened */
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .slide-title {
        font-size: 2.6rem;
    }
    .hero-slider {
        height: 70vh;
        min-height: 440px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-cta-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 32px 20px;
    }
    .about-cta-divider {
        width: 80%;
        height: 2px;
        margin: 0 auto;
    }
    .about-features-list {
        grid-template-columns: 1fr;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .preview-grid {
        grid-template-columns: 1fr;
    }
    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .slide-btns {
        flex-direction: column;
        width: 100%;
    }
    .slide-btns .btn {
        text-align: center;
    }
    .fixed-buttons-left {
        left: 16px;
        bottom: 16px;
    }
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .fixed-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}