/* Reusing global styles from index.html */
        :root {
            --cube-white: #f5f5f5;
            --cube-yellow: #ffd500;
            --cube-red: #ff4444;
            --cube-orange: #ff8800;
            --cube-blue: #0066cc;
            --cube-green: #00aa44;
            --dark-bg: #0a0a0f;
            --card-bg: #12121a;
            --text-primary: #e8e8ec;
            --text-secondary: #888899;
            --accent: #00d4ff;
            --gradient-1: #ff006e;
            --gradient-2: #8338ec;
            --gradient-3: #3a86ff;
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
        }

        /* Animated Background */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.4;
        }

        .cube-particle {
            position: absolute;
            width: 30px;
            height: 30px;
            background: linear-gradient(45deg, var(--cube-red), var(--cube-blue));
            animation: float 20s infinite linear;
            opacity: 0.1;
        }

        @keyframes float {
            0% { transform: translateY(100vh) rotate(0deg); }
            100% { transform: translateY(-100px) rotate(720deg); }
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 1.5rem 3rem;
            background: rgba(10, 10, 15, 0.9);
            backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .nav-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--cube-white), var(--cube-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .cube-icon {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, var(--cube-red), var(--cube-blue), var(--cube-yellow));
            border-radius: 4px;
            animation: rotate 4s infinite linear;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .nav-links a:hover {
            color: var(--accent);
        }

        /* Hero Section (reused) */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8rem 3rem 4rem;
            position: relative;
        }

        .hero-content {
            max-width: 1000px;
            text-align: center;
        }

        .hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            line-height: 1;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--cube-white) 0%, var(--accent) 50%, var(--cube-yellow) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradient-shift 8s ease infinite;
        }

        @keyframes gradient-shift {
            0%, 100% { filter: hue-rotate(0deg); }
            50% { filter: hue-rotate(30deg); }
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-weight: 300;
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2.5rem;
            background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(255, 0, 110, 0.4);
        }

        /* Section Styling (reused) */
        section {
            padding: 6rem 3rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-header h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--text-primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .section-number {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin: 0 auto 1rem;
            font-family: 'Space Grotesk', sans-serif;
        }

        .section-subtitle {
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Mobile Navigation */
        .nav-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
        }

        .nav-toggle span {
            display: block;
            width: 25px;
            height: 2px;
            background: var(--text-primary);
            transition: transform 0.3s, opacity 0.3s;
        }

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

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

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

        /* Footer */
        footer {
            text-align: center;
            padding: 4rem 3rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            margin-top: 4rem;
        }

        .footer-quote {
            font-size: 1.5rem;
            font-style: italic;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        .footer-attribution {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-toggle { display: flex; }
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(10, 10, 15, 0.95);
                backdrop-filter: blur(20px);
                flex-direction: column;
                padding: 1.5rem 3rem;
                gap: 1rem;
                border-bottom: 1px solid rgba(255,255,255,0.1);
            }
            .nav-links.open { display: flex; }
        }

        /* Scroll Animations (reused) */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s, transform 0.6s;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* --- SOLVER SPECIFIC STYLES --- */
        /* You will add more styles here as you implement the cube visualization and controls */
        .solver-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            margin-top: 3rem;
        }

        .cube-controls {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: var(--accent);
        }

        .current-move {
            background: var(--accent);
            color: var(--dark-bg);
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-weight: bold;
        }

        .cube-display {
            width: 300px; /* Overall size of the cube display area */
            height: 300px;
            perspective: 1000px; /* Perspective for 3D effect */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative; /* Needed for absolute positioning of cube container */
            border: none; /* Remove placeholder border */
            background-color: transparent; /* Remove placeholder background */
        }

        .cube-container {
            width: 200px; /* Size of the actual cube */
            height: 200px;
            position: relative;
            transform-style: preserve-3d;
            transform: rotateX(-30deg) rotateY(45deg); /* Initial viewing angle */
            transition: transform 0.2s; /* Smooth rotation */
        }

        .cube-face {
            position: absolute;
            width: 200px; /* Face width */
            height: 200px; /* Face height */
            background: rgba(0, 0, 0, 0.6); /* Slightly transparent background for face */
            border: 1px solid rgba(255, 255, 255, 0.2); /* Edge border */
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 2px; /* Gap between stickers */
            overflow: hidden; /* Ensure stickers don't bleed outside face */
        }

        .sticker {
            width: 100%;
            height: 100%;
            background-color: #333; /* Default sticker color */
            border: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem; /* For debugging sticker indices */
            color: rgba(255, 255, 255, 0.3);
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        /* Face positioning */
        .cube-face.front  { transform: rotateY(0deg) translateZ(100px); }
        .cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
        .cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
        .cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
        .cube-face.up     { transform: rotateX(90deg) translateZ(100px); }
        .cube-face.down   { transform: rotateX(-90deg) translateZ(100px); }

        /* Basic colors for stickers (will be applied via JS) */
        .sticker.color-0 { background-color: var(--cube-white); border-color: var(--cube-white); } /* White */
        .sticker.color-1 { background-color: var(--cube-yellow); border-color: var(--cube-yellow); } /* Yellow */
        .sticker.color-2 { background-color: var(--cube-red); border-color: var(--cube-red); }    /* Red */
        .sticker.color-3 { background-color: var(--cube-orange); border-color: var(--cube-orange); } /* Orange */
        .sticker.color-4 { background-color: var(--cube-green); border-color: var(--cube-green); }  /* Green */
        .sticker.color-5 { background-color: var(--cube-blue); border-color: var(--cube-blue); }   /* Blue */