/* Homepage Specific Styles */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations to sections */
.hero-section {
    animation: fadeIn 0.8s ease-out;
}

.ad-banner-section {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.feature-games {
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.why-choose-us {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.statistics-section {
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.latest-news {
    animation: slideInUp 0.6s ease-out 0.6s both;
}

.section-spacing {
    padding: 100px 0;
}

.bg-secondary {
    background: linear-gradient(180deg, #F3F4F6 0%, var(--bg-main) 100%);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 120px 20px 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: #fff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 .highlight {
    display: block;
    background: linear-gradient(90deg, #fff 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1.2s ease-out;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-actions .btn-primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.hero-actions .btn-outline:hover {
    background: #fff;
    color: #667eea;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.hero-actions .btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1.4s ease-out;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat strong {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.hero-stats .stat span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    animation: scaleIn 0.6s ease-out both;
}

.hero-card.card-1 {
    grid-column: 1 / 2;
    animation-delay: 0.2s;
}

.hero-card.card-2 {
    grid-column: 2 / 3;
    animation-delay: 0.4s;
}

.hero-card.card-3 {
    grid-column: 1 / 3;
    animation-delay: 0.6s;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
}

/* Ad Banner Section */
.ad-banner-section {
    padding: 40px 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.ad-banner-section .container {
    max-width: 100%;
    padding: 0 20px;
}

.ad-banner-section img {
    max-width: 100%;
    height: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 35px;
    animation: fadeInUp 1s ease-out;
    color: var(--text-main);
    line-height: 1.8;
}

.hero-actions {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Feature Games */
.feature-games h2,
.latest-news h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--text-heading);
    font-weight: 700;
}

.feature-games h2::after,
.latest-news h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 4px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

/* Desktop: Always use grid, never swiper */
@media (min-width: 769px) {
    .game-grid.swiper,
    .news-grid.swiper,
    .features-grid.swiper,
    .faq-list.swiper,
    .testimonials-grid.swiper {
        display: grid !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .game-grid.swiper .swiper-wrapper,
    .news-grid.swiper .swiper-wrapper,
    .features-grid.swiper .swiper-wrapper,
    .faq-list.swiper .swiper-wrapper,
    .testimonials-grid.swiper .swiper-wrapper {
        display: contents !important;
    }

    .swiper-pagination,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

.game-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease-out both;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

.card-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.15);
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-heading);
    font-weight: 600;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Latest News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: slideInUp 0.5s ease-out both;
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }
.news-card:nth-child(7) { animation-delay: 0.7s; }
.news-card:nth-child(8) { animation-delay: 0.8s; }
.news-card:nth-child(9) { animation-delay: 0.9s; }

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 30px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.news-info h3 a {
    color: var(--text-heading);
}

.news-info h3 a:hover {
    color: var(--primary);
}

.news-info p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 25px;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

.read-more {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--bg-main);
}

.why-choose-us h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--text-heading);
    font-weight: 700;
}

.why-choose-us h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 4px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: scaleIn 0.5s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-heading);
    font-weight: 600;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* Statistics Section */
.statistics-section {
    background: var(--gradient-primary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    animation: slideInUp 0.6s ease-out both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
}

/* CTA Section */
.cta-section {
    background: var(--bg-main);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-main);
}

.testimonials-section h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--text-heading);
    font-weight: 700;
}

.testimonials-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 4px;
}

.how-it-works h2,
.faq-section h2 {
    font-size: 2.6rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    color: var(--text-heading);
    font-weight: 700;
}

.how-it-works h2::after,
.faq-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 4px;
}

/* Timeline Layout */
.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: slideInUp 0.6s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.3s; }
.timeline-item:nth-child(3) { animation-delay: 0.5s; }

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.timeline-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-heading);
    font-weight: 600;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.timeline-arrow {
    position: absolute;
    right: -40px;
    top: 30px;
    font-size: 3rem;
    color: var(--primary);
    z-index: 1;
    animation: slideRight 1.5s ease-in-out infinite;
}

.timeline-item:last-child .timeline-arrow {
    display: none;
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 26px;
    box-shadow: var(--shadow-sm);
    animation: slideInLeft 0.5s ease-out both;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.faq-item p {
    color: var(--text-main);
    line-height: 1.7;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: slideInUp 0.5s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--primary-light);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-spacing {
        padding: 80px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 100px 20px 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .feature-games h2,
    .latest-news h2,
    .why-choose-us h2,
    .testimonials-section h2,
    .how-it-works h2,
    .faq-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .game-grid,
    .news-grid,
    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    /* Keep grid layout on tablet/desktop - no swiper */
    .game-grid.swiper,
    .news-grid.swiper,
    .features-grid.swiper,
    .how-it-works-grid.swiper,
    .faq-list.swiper,
    .testimonials-grid.swiper {
        display: grid;
    }

    .game-grid.swiper .swiper-wrapper,
    .news-grid.swiper .swiper-wrapper,
    .features-grid.swiper .swiper-wrapper,
    .how-it-works-grid.swiper .swiper-wrapper,
    .faq-list.swiper .swiper-wrapper,
    .testimonials-grid.swiper .swiper-wrapper {
        display: contents;
    }

    .swiper-pagination,
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }

    .hero-section {
        padding: 80px 16px 60px;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-stats .stat strong {
        font-size: 1.5rem;
    }

    .hero-stats .stat span {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-card.card-1,
    .hero-card.card-2,
    .hero-card.card-3 {
        grid-column: 1 / 2;
    }

    /* Swiper styles for mobile */
    .game-grid.swiper,
    .news-grid.swiper,
    .features-grid.swiper,
    .faq-list.swiper,
    .testimonials-grid.swiper {
        overflow: hidden;
        padding-bottom: 50px;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .game-grid .swiper-wrapper,
    .news-grid .swiper-wrapper,
    .features-grid .swiper-wrapper,
    .faq-list .swiper-wrapper,
    .testimonials-grid .swiper-wrapper {
        display: flex;
    }

    .game-grid .swiper-slide,
    .news-grid .swiper-slide,
    .features-grid .swiper-slide,
    .faq-list .swiper-slide,
    .testimonials-grid .swiper-slide {
        height: auto;
        width: 100%;
    }

    .swiper-pagination {
        bottom: 10px !important;
    }

    .swiper-pagination-bullet {
        background: var(--primary);
        opacity: 0.5;
        width: 10px;
        height: 10px;
    }

    .swiper-pagination-bullet-active {
        opacity: 1;
        background: var(--primary);
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    /* Disable grid on mobile when swiper is active */
    .game-grid.swiper,
    .news-grid.swiper,
    .features-grid.swiper,
    .faq-list.swiper,
    .testimonials-grid.swiper {
        display: block;
        grid-template-columns: unset;
    }

    .feature-games h2,
    .latest-news h2,
    .why-choose-us h2,
    .testimonials-section h2,
    .how-it-works h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 1.9rem;
        margin-bottom: 30px;
    }

    .game-grid,
    .news-grid,
    .faq-list,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Timeline mobile layout */
    .timeline-container {
        flex-direction: column;
        gap: 30px;
    }

    .timeline-item {
        width: 100%;
    }

    .timeline-arrow {
        position: static;
        transform: rotate(90deg);
        margin: 15px 0;
        animation: slideDown 1.5s ease-in-out infinite;
    }

    .timeline-item:last-child .timeline-arrow {
        display: none;
    }

    @keyframes slideDown {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
            opacity: 0.6;
        }
        50% {
            transform: rotate(90deg) translateX(10px);
            opacity: 1;
        }
    }

    .timeline-content {
        min-height: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-choose-us h2,
    .testimonials-section h2 {
        font-size: 1.9rem;
    }

    .news-info {
        padding: 22px;
    }

    .news-image {
        height: 200px;
    }

    .feature-item,
    .game-card,
    .testimonial-card,
    .faq-item {
        padding: 22px;
    }

    .card-content h3,
    .feature-item h3,
    .news-info h3 {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 12px 50px;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-card {
        padding: 25px;
    }

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

    .stat-item {
        padding: 18px 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .btn-large {
        max-width: 100%;
    }

    .author-avatar {
        width: 52px;
        height: 52px;
        font-size: 2.3rem;
    }
}

@media (hover: none) {
    .game-card:hover,
    .news-card:hover,
    .feature-item:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .game-card:hover .card-image img,
    .news-card:hover .news-image img {
        transform: none;
    }
}