:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --border-color: #404040;
    --hover-color: #4f46e5;
    --light-text: #cccccc;
}

.dark-theme {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --accent-color: #f472b6;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #818cf8;
    --gradient-end: #a78bfa;
    --border-color: #404040;
    --hover-color: #6366f1;
    --light-text: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}

.logo h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-color);
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after {
    width: 80%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    background: var(--hover-color);
}

footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--shadow-color);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 20px 0;
    background: var(--background-color);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#chessboard {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    border: 4px solid #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: transform 0.3s;
    background: #2c3e50;
    padding: 2px;
}

#chessboard:hover {
    transform: scale(1.01);
}

.game-controls {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.control-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--shadow-color);
}

.control-btn:active {
    transform: translateY(0);
}

.game-info {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.game-info h2 {
    color: var(--text-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 600;
}

.game-info p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.game-info .difficulty-selector select {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.game-info .difficulty-selector select:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.game-info .difficulty-selector select option {
    background: var(--primary-color);
    color: white;
}

.move-history {
    margin-top: 25px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.move-history::-webkit-scrollbar {
    width: 8px;
}

.move-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.move-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#moveList {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-top: 15px;
}

.move-entry {
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.move-entry:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-status {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

#statusText {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.leaderboard {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.leaderboard h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 12px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
    color: var(--text-color);
}

.leaderboard-entry:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

.rank {
    font-weight: bold;
    color: var(--accent-color);
}

.score {
    font-weight: bold;
    color: #2ecc71;
}

/* Chess Board Styling */
.square {
    position: relative;
    width: 12.5%;
    height: 12.5%;
    float: left;
    transition: background-color 0.3s;
}

.square-white {
    background-color: #f0d9b5;
}

.square-black {
    background-color: #b58863;
}

.piece {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.8rem;
    position: relative;
    z-index: 2;
}

.piece:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.piece-white {
    color: #ffffff;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 2px 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        -2px 0 0 #000;
}

.piece-black {
    color: #000000;
    text-shadow: 
        2px 2px 0 #fff,
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        0 2px 0 #fff,
        2px 0 0 #fff,
        0 -2px 0 #fff,
        -2px 0 0 #fff;
}

.square.selected {
    background-color: rgba(255, 255, 0, 0.4) !important;
    box-shadow: inset 0 0 15px rgba(255, 255, 0, 0.8);
}

.square.valid-move {
    position: relative;
}

.square.valid-move::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35%;
    height: 35%;
    background-color: rgba(46, 204, 113, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.8);
    animation: pulse 1.5s infinite;
    z-index: 1;
}

/* Update the board colors for better contrast */
#chessboard {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    border: 4px solid #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: transform 0.3s;
    background: #2c3e50;
    padding: 2px;
}

/* Add board coordinates */
.square::before {
    content: attr(data-square);
    position: absolute;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    bottom: 2px;
    right: 2px;
    z-index: 1;
}

/* Improve piece movement animation */
@keyframes movePiece {
    0% {
        transform: translate(0, 0) scale(1);
        z-index: 10;
    }
    50% {
        transform: translate(var(--x), var(--y)) scale(1.2);
        z-index: 10;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(1);
        z-index: 2;
    }
}

.moving {
    animation: movePiece 0.4s ease-in-out;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-info {
        order: -1;
    }

    #chessboard {
        max-width: 100%;
    }

    .piece {
        font-size: 2rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    text-align: center;
    min-height: 100px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-color);
    overflow: hidden;
}

.top-ad {
    margin-top: 0;
}

.sidebar-ad {
    position: sticky;
    top: 20px;
    min-height: 600px;
}

.bottom-ad {
    margin-bottom: 0;
}

/* Responsive Ad Styles */
@media (max-width: 768px) {
    .sidebar-ad {
        position: static;
        min-height: 250px;
    }
    
    .ad-container {
        margin: 10px 0;
    }
}

/* Ensure ads don't interfere with game elements */
.ad-container ins {
    display: block !important;
    margin: 0 auto;
}

/* Prevent ad container from affecting layout */
.ad-container {
    position: relative;
    z-index: 1;
}

/* Ensure game elements stay above ads */
#chessboard, .game-controls, .game-info {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    margin-bottom: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
    animation: pulse 3s infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.hero p {
    font-size: 1.4em;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out;
}

.stat-label {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
    animation: slideIn 1s ease-out;
}

/* Games Grid */
.games-grid {
    padding: 60px 20px;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: scaleIn 0.5s ease-out;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.game-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    animation: pulse 2s infinite;
}

.game-icon i {
    font-size: 3em;
}

.game-content {
    padding: 30px;
}

.game-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

.game-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1em;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.game-features span {
    background: var(--card-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.game-features span:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.game-features i {
    color: var(--text-color);
}

.play-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    border: none;
    position: relative;
    overflow: hidden;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.play-btn:hover::after {
    width: 300px;
    height: 300px;
}

.play-btn:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.5s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: pulse 2s infinite;
}

.feature-icon i {
    font-size: 2em;
    color: white;
}

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

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1em;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleIn 0.5s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}

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

.testimonial-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
}

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

.testimonial-author i {
    font-size: 2em;
    color: var(--primary-color);
}

.testimonial-author span {
    font-weight: 600;
    color: var(--text-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
    margin-top: 60px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.1;
    animation: pulse 3s infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Update scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

/* Add loading animation for images */
img {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.loaded {
    opacity: 1;
}

/* Add hover effect for cards */
.game-card::before, .feature-card::before, .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.game-card:hover::before, .feature-card:hover::before, .blog-card:hover::before {
    opacity: 0.05;
}

/* Add animation for stats */
.stat-number {
    animation: fadeInUp 1s ease-out;
}

.stat-label {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Update footer */
.footer-content {
    animation: fadeInUp 1s ease-out;
}

.footer-section {
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Add animation for theme toggle */
.theme-toggle {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 2em;
    }

    .games-container,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .game-card,
    .feature-card,
    .testimonial-card {
        padding: 20px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .game-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card {
    background: var(--card-bg);
}

[data-theme="dark"] .features-section {
    background: var(--bg-color);
}

[data-theme="dark"] .game-features span {
    background: var(--bg-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .game-content h2,
[data-theme="dark"] .feature-card h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .game-content p,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .game-features span {
    color: var(--text-color);
}

[data-theme="dark"] .play-btn {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .play-btn:hover {
    background: var(--hover-color);
}

/* Blog Preview Section */
.blog-preview {
    padding: 60px 20px;
    background: var(--bg-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.4em;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    border: none;
}

.read-more:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Responsive Adjustments for Blog Section */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-preview {
        padding: 40px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .blog-content {
        padding: 0;
    }

    .blog-content h3 {
        font-size: 1.2em;
    }
}

/* Dark theme adjustments for blog section */
[data-theme="dark"] .blog-card {
    background: var(--card-bg);
}

[data-theme="dark"] .blog-content h3 {
    color: var(--primary-color);
}

[data-theme="dark"] .blog-content p {
    color: var(--text-color);
}

/* Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--shadow-color);
    color: var(--text-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .sidebar-ad {
        position: static;
        min-height: 250px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .blog-card,
[data-theme="dark"] .ad-container {
    background: var(--card-bg);
}

[data-theme="dark"] .social-link {
    background: var(--card-bg);
}

[data-theme="dark"] .social-link:hover {
    background: var(--primary-color);
} 