* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-dark: #000000;
            --text-primary: #ffffff;
            --text-secondary: #aaaaaa;
            --accent: #ffffff;
        }

        html {
            /* Disable default smooth scroll so we can handle it manually with GSAP/Fade */
            scroll-behavior: auto;
            overflow-x: hidden;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* 3D Canvas Background */
        #canvas-3d {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 0; /* Behind everything */
            pointer-events: none;
        }

        /* Loading Overlay */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: opacity 1s ease;
        }
        .loader-text {
            font-family: monospace;
            letter-spacing: 5px;
            margin-bottom: 20px;
            animation: pulse 1s infinite;
        }
        .loader-bar {
            width: 200px;
            height: 2px;
            background: #333;
            position: relative;
            overflow: hidden;
        }
        .loader-progress {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
            width: 0%;
            background: #fff;
            transition: width 0.5s;
        }

        /* Transition Curtain (For the fade effect) */
        #transition-curtain {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: #000;
            z-index: 9000; /* Above content, below loader */
            opacity: 0;
            pointer-events: none;
        }

        /* Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            padding: 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            mix-blend-mode: difference; /* Ensures visibility over white particles */
        }

        .nav-logo {
            font-weight: 900;
            letter-spacing: 2px;
            font-size: 1.5rem;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-size: 0.8rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            position: relative;
            opacity: 0.7;
            transition: opacity 0.3s;
            cursor: pointer;
        }
        
        .nav-links a:hover { opacity: 1; }
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0%;
            height: 1px;
            background: #fff;
            transition: width 0.3s;
        }
        .nav-links a:hover::after { width: 100%; }

        /* Main Content Container */
        .content-wrapper {
            position: relative;
            z-index: 10;
        }

        /* Sections */
        section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 4rem 10vw;
            position: relative;
            /* Allow clicks to pass through empty space to canvas if needed, 
               but we usually want to block interactions with background */
        }

        /* Hero */
        .hero h1 {
            font-size: clamp(3rem, 8vw, 8rem);
            line-height: 0.9;
            font-weight: 800;
            letter-spacing: -0.02em;
            margin-bottom: 1rem;
            mix-blend-mode: exclusion;
        }
        .hero p {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 500px;
            margin-bottom: 2rem;
        }
        .btn {
            display: inline-block;
            padding: 1rem 2rem;
            border: 1px solid rgba(255,255,255,0.3);
            background: rgba(0,0,0,0.5);
            color: #fff;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-size: 0.8rem;
            transition: all 0.3s;
            cursor: pointer;
            backdrop-filter: blur(5px);
        }
        .btn:hover {
            background: #fff;
            color: #000;
            border-color: #fff;
        }

        /* Projects Grid */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }

        .project-card {
            background: rgba(10, 10, 10, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2rem;
            transition: transform 0.3s, border-color 0.3s;
            backdrop-filter: blur(10px);
        }

        .project-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255, 255, 255, 0.5);
        }

        .project-card h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .project-card .tech {
            font-family: monospace;
            font-size: 0.8rem;
            color: #888;
            margin-bottom: 1rem;
        }

        .project-card p {
            font-size: 0.9rem;
            color: #ccc;
            line-height: 1.5;
            margin-bottom: 1.5rem;
        }

        .project-link {
            color: #fff;
            text-decoration: none;
            font-size: 0.8rem;
            border-bottom: 1px solid #333;
            padding-bottom: 2px;
        }

        /* About Section */
        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .skills {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 2rem;
        }

        .skill-tag {
            border: 1px solid #333;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.8rem;
        }

        /* Contact Section */
        #contact {
            text-align: center;
            align-items: center;
        }

        .contact-form {
            width: 100%;
            max-width: 500px;
            margin-top: 2rem;
            text-align: left;
        }

        .input-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .input-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-size: 0.8rem;
            letter-spacing: 1px;
            color: #888;
        }

        .input-group input, 
        .input-group textarea {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid #333;
            padding: 1rem;
            color: #fff;
            font-family: inherit;
            transition: border-color 0.3s;
        }

        .input-group input:focus, 
        .input-group textarea:focus {
            outline: none;
            border-color: #fff;
            background: rgba(255,255,255,0.1);
        }

        /* Notification Toast */
        .notification {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: #fff;
            color: #000;
            padding: 1rem 2rem;
            transform: translateY(150%);
            transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 200;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .notification.active {
            transform: translateY(0);
        }
        .spinner {
            width: 15px;
            height: 15px;
            border: 2px solid #000;
            border-top: 2px solid transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
        @keyframes pulse { 0% { opacity: 0.5; } 100% { opacity: 1; } }

        /* Mobile tweaks */
        @media (max-width: 768px) {
            .about-container { grid-template-columns: 1fr; }
            .hero h1 { font-size: 3.5rem; }
            .nav-links { display: none; }
        }