        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

        /* --- THE DYNAMIC BREATHING COLOR SYSTEM --- */
        /* This tells the browser to treat this variable as a real color so it can fade smoothly */
        @property --theme-accent {
            syntax: '<color>';
            inherits: true;
            initial-value: #f97316; /* Starts at Saffron */
        }

        :root {
            --theme-accent: #f97316;
            /* 25-second infinite loop for a very slow, calming transition */
            animation: breatheColor 25s infinite ease-in-out; 
        }

        @keyframes breatheColor {
            0%   { --theme-accent: #f97316; } /* Saffron */
            20%  { --theme-accent: #10b981; } /* Emerald Green */
            40%  { --theme-accent: #3b82f6; } /* Royal Blue */
            60%  { --theme-accent: #eab308; } /* Yellow */
            80%  { --theme-accent: #ef4444; } /* Red */
            100% { --theme-accent: #f97316; } /* Back to Saffron */
        }

        body { 
            transition: background-color 0.5s ease, color 0.5s ease; 
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
        }

        /* --- Natural Physics Swing Toggle --- */
        #theme-toggle-hanging {
            position: fixed;
            top: 0;
            right: 8%;
            z-index: 100;
            cursor: pointer;
            transform-origin: top center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .string {
            width: 2px;
            height: 80px;
            background: #cbd5e1;
            transition: background 0.5s ease;
        }
        .dark .string { background: #334155; }

        .bulb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #0f172a;
            border: 3px solid #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all 0.5s ease;
        }
        .dark .bulb {
            background: #f8fafc;
            border-color: #0f172a;
            box-shadow: 0 0 15px 2px rgba(248, 250, 252, 0.4);
        }

@keyframes naturalSwing {
            0% { transform: translateY(0) rotate(0deg); }
            15% { transform: translateY(20px) rotate(0deg); } /* The downward pull */
            25% { transform: translateY(0) rotate(35deg); }   /* Snap back up and swing right */
            45% { transform: rotate(-20deg); }                /* Swing left */
            65% { transform: rotate(10deg); }                 /* Swing right */
            85% { transform: rotate(-5deg); }                 /* Settle */
            100% { transform: rotate(0deg); }
        }
        .swinging {
            animation: naturalSwing 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
        }

        /* Subtle Grid Pattern */
        .bg-grid {
            background-size: 40px 40px;
            background-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
        }
        .dark .bg-grid {
            background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
        }
        .perspective-1000 { perspective: 1000px; }
        .transform-style-3d { transform-style: preserve-3d; }
        .transform-z-20 { transform: translateZ(20px); }
        /* Magnetic Skill Pills */
        .skill-pill {
            position: relative;
            padding: 0.5rem 1rem;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #475569; /* slate-600 */
            background: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 9999px;
            overflow: hidden;
            transition: all 0.3s ease;
            cursor: default;
        }
        .dark .skill-pill {
            color: #cbd5e1; /* slate-300 */
            background: rgba(39, 39, 42, 0.8); /* zinc-800 */
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        .skill-pill:hover {
            color: var(--theme-accent);
            border-color: var(--theme-accent);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(var(--theme-accent), 0.15);
        }

        /* The hidden glow effect */
        .skill-pill::before {
            content: '';
            position: absolute;
            top: var(--y, 50%);
            left: var(--x, 50%);
            transform: translate(-50%, -50%);
            width: 0;
            height: 0;
            background: radial-gradient(circle closest-side, rgba(var(--theme-accent), 0.2), transparent);
            transition: width 0.2s ease, height 0.2s ease;
            pointer-events: none;
            z-radius: 0;
        }
        .skill-pill:hover::before {
            width: 300%;
            height: 300%;
        }
        /* --- Spotlight Card Effect --- */
        .spotlight-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--theme-accent), transparent 40%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 0;
            mix-blend-mode: color-dodge;
        }
        .dark .spotlight-card::before {
            mix-blend-mode: screen;
            opacity: 0; /* Stays hidden until hover */
        }
        .spotlight-card:hover::before {
            opacity: 0.15; /* The glow intensity */
        }

        /* --- Skill Pills --- */
        .skill-pill {
            padding: 0.4rem 0.8rem;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #475569;
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            cursor: default;
        }
        .dark .skill-pill {
            color: #cbd5e1;
            background: rgba(39, 39, 42, 0.5);
            border-color: rgba(255, 255, 255, 0.05);
        }
        
        /* The Staggered Hover Bounce */
        .spotlight-card:hover .skill-pill {
            border-color: var(--theme-accent);
            background: transparent;
        }
        /* Creating a slight staggered effect using nth-child */
        .spotlight-card:hover .skill-pill:nth-child(1) { transform: translateY(-3px); transition-delay: 0.00s; }
        .spotlight-card:hover .skill-pill:nth-child(2) { transform: translateY(-3px); transition-delay: 0.05s; }
        .spotlight-card:hover .skill-pill:nth-child(3) { transform: translateY(-3px); transition-delay: 0.10s; }
        .spotlight-card:hover .skill-pill:nth-child(4) { transform: translateY(-3px); transition-delay: 0.15s; }
        .spotlight-card:hover .skill-pill:nth-child(5) { transform: translateY(-3px); transition-delay: 0.20s; }
        .spotlight-card:hover .skill-pill:nth-child(6) { transform: translateY(-3px); transition-delay: 0.25s; }
        /* --- 3D Floating Cinematic Mockups --- */
        .perspective-1000 {
            perspective: 1200px;
        }

        /* Float Right-facing Mockup (For PRISM) */
        .floating-mockup-right {
            transform: rotateY(-10deg) rotateX(5deg);
            animation: float-right 6s ease-in-out infinite;
        }

        /* Float Left-facing Mockup (For Hall Booking) */
        .floating-mockup-left {
            transform: rotateY(10deg) rotateX(5deg);
            animation: float-left 6s ease-in-out infinite;
            animation-delay: -3s; /* Desync the animations */
        }

        @keyframes float-right {
            0%, 100% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
            50% { transform: translateY(-15px) rotateY(-8deg) rotateX(7deg); }
        }

        @keyframes float-left {
            0%, 100% { transform: translateY(0px) rotateY(10deg) rotateX(5deg); }
            50% { transform: translateY(-15px) rotateY(8deg) rotateX(7deg); }
        }

        /* On mobile, disable 3D rotation for better readability, just keep the float */
        @media (max-width: 1024px) {
            .floating-mockup-right, .floating-mockup-left {
                transform: rotateY(0deg) rotateX(0deg);
                animation: float-mobile 6s ease-in-out infinite;
            }
            @keyframes float-mobile {
                0%, 100% { transform: translateY(0px); }
                50% { transform: translateY(-10px); }
            }
        }
        /* --- 3D Floating Cinematic Mockups --- */
        .perspective-1000 {
            perspective: 1200px;
        }

        /* Float Right-facing Mockup (For PRISM) */
        .floating-mockup-right {
            transform: rotateY(-10deg) rotateX(5deg);
            animation: float-right 6s ease-in-out infinite;
        }

        /* Float Left-facing Mockup (For Hall Booking) */
        .floating-mockup-left {
            transform: rotateY(10deg) rotateX(5deg);
            animation: float-left 6s ease-in-out infinite;
            animation-delay: -3s; /* Desync the animations */
        }

        @keyframes float-right {
            0%, 100% { transform: translateY(0px) rotateY(-10deg) rotateX(5deg); }
            50% { transform: translateY(-15px) rotateY(-8deg) rotateX(7deg); }
        }

        @keyframes float-left {
            0%, 100% { transform: translateY(0px) rotateY(10deg) rotateX(5deg); }
            50% { transform: translateY(-15px) rotateY(8deg) rotateX(7deg); }
        }
        /* --- Project Card 3D Setup --- */
        .perspective-1000 { perspective: 1000px; transform-style: preserve-3d; }