        /* Variabel CSS */
        :root {
            --primary: #ffffff;
            --secondary: #cccccc;
            --accent: #000000;
            --dark: #f5f5f5;
            --light: #333333;
            --success: #000000;
            --warning: #333333;
            --danger: #cc0000;
            --card-bg: rgba(255, 255, 255, 0.9);
            --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            --border-radius: 16px;
            --transition: all 0.3s ease;
        }

        /* Reset & Global Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: #ffffff;
            color: var(--light);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
            /* Mencegah efek putih saat scroll */
            background-attachment: fixed;
        }

        /* Loading Animation */
        #loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out, visibility 0.5s;
        }

        #loading.hide {
            opacity: 0;
            visibility: hidden;
        }

        .loader {
            width: 64px;
            height: 64px;
            position: relative;
        }

        .loader:before {
            content: '';
            width: 64px;
            height: 64px;
            border-radius: 50%;
            border: 6px solid var(--accent);
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            position: absolute;
            top: 0;
            left: 0;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* Container */
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

/* Header & Navigation */
header {
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

        .logo {
            font-size: 2rem;
            font-weight: 700;
            color: var(--light);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo i {
            color: var(--accent);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            padding: 8px 16px;
            border-radius: 50px;
        }

        .nav-links a:hover {
            background: rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }

        .nav-links a.active {
            background: var(--accent);
            color: white;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

        /* Hero Section */
        .hero {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 80px 0;
            position: relative;
        }

        /* Slider Section */
        .slider-container {
            width: 100%;
            max-width: 400px;
            height: 300px;
            margin: 0 auto 30px;
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .slider {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
        }

        .slide {
            min-width: 100%;
            height: 100%;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: var(--light);
            text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin-bottom: 40px;
            color: var(--light);
        }

        /* Game Cards */
        .games-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            margin: 50px 0;
        }

        .game-card {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: var(--transition);
            transform-style: preserve-3d;
            box-shadow: var(--card-shadow);
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .game-card:hover {
            transform: translateY(-10px) rotateX(5deg);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        .game-img {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .game-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

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

        .game-content {
            padding: 20px;
        }

        .game-content h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--light);
        }

        .game-content p {
            color: var(--light);
            margin-bottom: 20px;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 28px;
            background: var(--accent);
            color: white;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            transform-style: preserve-3d;
            transform: translateZ(0);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:hover {
            background: #333333;
            transform: translateY(-5px) translateZ(20px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .btn i {
            font-size: 1.2rem;
        }

        .btn-play {
            background: var(--accent);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-play:hover {
            background: #333333;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        /* Features Section */
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin: 80px 0;
        }

        .feature-card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: var(--border-radius);
            text-align: center;
            transition: var(--transition);
            transform-style: preserve-3d;
            box-shadow: var(--card-shadow);
        }

        .feature-card:hover {
            transform: translateY(-10px) rotateY(5deg);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--accent);
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--light);
        }

        .feature-card p {
            color: var(--light);
        }

        /* Footer */
        footer {
            background: rgba(0, 0, 0, 0.05);
            padding: 40px 0;
            margin-top: 80px;
            color: var(--light);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
        }

        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--accent);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--light);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent);
            padding-left: 5px;
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent);
            color: white;
            transition: var(--transition);
            text-decoration: none; /* 🔥 ini penting biar ga ada garis bawah */
        }

        .social-icons a:hover {
            transform: translateY(-5px) rotate(10deg);
            background: #333333;
        }

        .copyright {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            color: var(--light);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 80px;
                left: 0;
                right: 0;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                padding: 20px;
                flex-direction: column;
                gap: 15px;
                z-index: 99;
            }

            .nav-links.active {
                display: flex;
            }

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

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

            .games-container {
                grid-template-columns: 1fr;
            }
            
            .slider-container {
                max-width: 300px;
                height: 225px;
            }
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 6px;
            cursor: pointer;
            background: transparent;
            border: none;
            z-index: 100;
        }

        .hamburger span {
            width: 30px;
            height: 3px;
            background: var(--light);
            border-radius: 2px;
            transition: var(--transition);
        }

        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }

            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
            }
        }

        /* Animations */
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-10px);
            }
        }

        .floating {
            animation: float 5s ease-in-out infinite;
        }

        /* Game Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: var(--border-radius);
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        }

        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            color: var(--light);
            background: none;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .close-modal:hover {
            color: var(--accent);
            transform: rotate(90deg);
        }

        .game-container {
            margin-top: 20px;
            text-align: center;
        }

        /* Game Specific Styles */
        #gameCanvas {
            background: #0a0a1a;
            border-radius: 8px;
            margin: 0 auto;
            display: block;
            max-width: 100%;
        }

        .game-controls {
            margin: 20px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .controls-row {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .score-display {
            font-size: 1.5rem;
            margin: 15px 0;
            color: var(--accent);
            font-weight: bold;
        }

        /* Memory Game */
        .memory-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin: 20px auto;
            max-width: 500px;
        }

        .memory-card {
            height: 100px;
            background: var(--accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            cursor: pointer;
            transition: transform 0.3s;
            transform-style: preserve-3d;
            position: relative;
        }

        .memory-card.flipped {
            transform: rotateY(180deg);
        }

        .memory-card .front,
        .memory-card .back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
        }

        .memory-card .front {
            background: white;
            color: black;
            transform: rotateY(180deg);
        }

        .memory-card .back {
            background: var(--accent);
            color: white;
        }

        /* Quiz Game */
        .quiz-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .quiz-question {
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-align: center;
            color: var(--light);
        }

        .quiz-options {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .quiz-option {
            padding: 15px;
            background: var(--card-bg);
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
            color: var(--light);
        }

        .quiz-option:hover {
            background: var(--accent);
            color: white;
        }

        .quiz-option.correct {
            background: #00cc00;
            color: white;
        }

        .quiz-option.incorrect {
            background: var(--danger);
            color: white;
        }

        .quiz-nav {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .btn-small {
            padding: 6px 12px;
            font-size: 14px;
        }

        .arrow-controls {
            display: inline-flex;
            gap: 6px;
            margin-top: 10px;
            justify-content: center;
        }

.arrow-btn {
    min-width: 60px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    box-sizing: border-box;
}

        /* Space Game Assets */
        .rocket {
            position: absolute;
            width: 30px;
            height: 50px;
            background: #6c5ce7;
            clip-path: polygon(50% 0%, 100% 100%, 50% 70%, 0% 100%);
        }

        .alien {
            position: absolute;
            width: 30px;
            height: 30px;
            background: #fd79a8;
            border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
        }

        .alien::before, .alien::after {
            content: '';
            position: absolute;
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            top: 8px;
        }

        .alien::before {
            left: 6px;
        }

        .alien::after {
            right: 6px;
        }
