  /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            overflow-x: hidden;
        }

        /* Header Styles */
        header {
            background: rgba(255, 255, 255, 0.95);
            padding: 1rem 2rem;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .logo h1 {
            color: #4a5568;
            font-size: 2rem;
            font-weight: 700;
        }

        .logo-icon {
            font-size: 2.5rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        /* Navigation */
        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
            flex-wrap: wrap;
        }

        nav a {
            text-decoration: none;
            color: #4a5568;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            transition: all 0.3s ease;
        }

        nav a:hover, nav a.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
        }

        /* Hero Section */
        .hero {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .hero h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero p {
            font-size: 1.2rem;
            color: #666;
            margin-bottom: 2rem;
        }

        /* Game Mode Selector */
        .game-modes {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 2rem 0;
            flex-wrap: wrap;
        }

        .mode-btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            background: white;
            color: #4a5568;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .mode-btn.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        .mode-btn:hover:not(.active) {
            background: #e2e8f0;
        }

        /* Games Grid */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .game-card {
            background: white;
            border-radius: 15px;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .game-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .game-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        /* Game Container */
        .game-container {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            margin: 2rem 0;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            display: none;
        }

        .game-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .back-btn {
            background: #e2e8f0;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .back-btn:hover {
            background: #cbd5e0;
        }

        .game-title {
            font-size: 1.5rem;
            color: #4a5568;
        }

        .game-stats {
            display: flex;
            gap: 1rem;
        }

        .stat {
            background: #edf2f7;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
        }

        /* Snake Game */
        #snake-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        #snake-canvas {
            border: 2px solid #4a5568;
            border-radius: 10px;
            background: #f7fafc;
        }

        .snake-controls {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .control-btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .control-btn:hover {
            background: #5a67d8;
        }

        /* Math Game */
        #math-game {
            text-align: center;
        }

        .math-problem {
            font-size: 2rem;
            margin: 2rem 0;
            color: #4a5568;
        }

        .math-options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            margin: 2rem 0;
        }

        .math-option {
            background: #edf2f7;
            border: none;
            padding: 1rem;
            border-radius: 10px;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .math-option:hover {
            background: #e2e8f0;
        }

        .math-option.correct {
            background: #48bb78;
            color: white;
        }

        .math-option.incorrect {
            background: #f56565;
            color: white;
        }

        /* Memory Game */
        #memory-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin: 1rem 0;
            max-width: 500px;
        }

        .memory-card {
            width: 100px;
            height: 100px;
            background: #667eea;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
        }

        .memory-card.flipped {
            background: white;
            color: #4a5568;
            transform: rotateY(180deg);
        }

        .memory-card.matched {
            background: #48bb78;
            cursor: default;
        }

        /* Puzzle Game */
        #puzzle-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .puzzle-container {
            width: 400px;
            height: 400px;
            border: 2px solid #4a5568;
            border-radius: 10px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 2px;
            background: #4a5568;
            margin: 1rem 0;
        }

        .puzzle-piece {
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .puzzle-piece.empty {
            background: #cbd5e0;
            cursor: default;
        }

        /* Tic Tac Toe Game */
        #tic-tac-toe-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .tic-tac-toe-board {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 5px;
            background: #4a5568;
            width: 300px;
            height: 300px;
            margin: 1rem 0;
        }

        .tic-tac-toe-cell {
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tic-tac-toe-cell:hover {
            background: #f7fafc;
        }

        .tic-tac-toe-cell.x {
            color: #f56565;
        }

        .tic-tac-toe-cell.o {
            color: #4299e1;
        }

        /* Chess Game */
        #chess-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .chess-board {
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-template-rows: repeat(8, 1fr);
            width: 400px;
            height: 400px;
            border: 2px solid #4a5568;
            margin: 1rem 0;
        }

        .chess-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .chess-cell.light {
            background-color: #f0d9b5;
        }

        .chess-cell.dark {
            background-color: #b58863;
        }

        .chess-cell.selected {
            background-color: #aec6cf;
        }

        .chess-cell.possible-move {
            background-color: rgba(166, 227, 161, 0.7);
        }

        .chess-cell.check {
            background-color: rgba(245, 101, 101, 0.7);
        }

        /* Color Game */
        #color-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .color-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin: 2rem 0;
        }

        .color-option {
            width: 100px;
            height: 100px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 3px solid transparent;
        }

        .color-option:hover {
            transform: scale(1.05);
        }

        .color-option.selected {
            border-color: #4a5568;
        }

        /* Music Game */
        #music-game {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .music-notes {
            display: flex;
            gap: 1rem;
            margin: 2rem 0;
            flex-wrap: wrap;
            justify-content: center;
        }

        .music-note {
            width: 80px;
            height: 80px;
            background: #667eea;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .music-note:hover {
            background: #5a67d8;
        }

        .music-note.playing {
            background: #ed8936;
            transform: scale(1.1);
        }

        .sequence-display {
            min-height: 60px;
            margin: 1rem 0;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        /* AdSense Banners */
        .adsense-banner {
            background: #f7fafc;
            border: 2px dashed #cbd5e0;
            border-radius: 10px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
            color: #718096;
        }

        .ad-label {
            font-size: 0.8rem;
            color: #a0aec0;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
        }

        /* Footer */
        footer {
            background: rgba(255, 255, 255, 0.95);
            padding: 2rem;
            margin-top: 4rem;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Audio Controls */
        .audio-controls {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: white;
            padding: 1rem;
            border-radius: 50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            display: flex;
            gap: 0.5rem;
        }

        .music-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .music-btn:hover {
            background: #e2e8f0;
        }

        .music-btn.active {
            background: #667eea;
            color: white;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }

            nav ul {
                gap: 1rem;
            }

            .hero {
                padding: 2rem 1rem;
            }

            .hero h2 {
                font-size: 2rem;
            }

            .container {
                padding: 0 1rem;
            }

            .game-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .game-stats {
                width: 100%;
                justify-content: space-between;
            }

            .memory-grid {
                grid-template-columns: repeat(4, 1fr);
            }

            .memory-card {
                width: 70px;
                height: 70px;
                font-size: 1.5rem;
            }

            .puzzle-container {
                width: 300px;
                height: 300px;
            }

            .math-options {
                grid-template-columns: 1fr;
            }

            .tic-tac-toe-board {
                width: 250px;
                height: 250px;
            }

            .chess-board {
                width: 300px;
                height: 300px;
            }

            .audio-controls {
                bottom: 1rem;
                right: 1rem;
            }
        }

        @media (max-width: 480px) {
            .logo h1 {
                font-size: 1.5rem;
            }

            .hero h2 {
                font-size: 1.75rem;
            }

            .games-grid {
                grid-template-columns: 1fr;
            }

            .mode-btn {
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
            }

            .memory-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .memory-card {
                width: 60px;
                height: 60px;
                font-size: 1.2rem;
            }

            .puzzle-container {
                width: 250px;
                height: 250px;
            }

            #snake-canvas {
                width: 300px;
                height: 300px;
            }

            .color-options {
                grid-template-columns: repeat(2, 1fr);
            }

            .chess-board {
                width: 280px;
                height: 280px;
            }
        }

        /* Animation */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }

        @keyframes celebrate {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .celebrate {
            animation: celebrate 0.5s ease-in-out;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .pulse {
            animation: pulse 1s infinite;
        }