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

        html {
            overflow-x: hidden;
        }

        body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }

        :root {
            --bg-primary: #000000;
            --bg-secondary: #111111;
            --bg-card: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --text-muted: #666666;
            --border: #333333;
            --hover-bg: #222222;
        }

        /* Light mode colors */
        body.light-mode {
            --bg-primary: #ffffff;
            --bg-secondary: #f5f5f5;
            --bg-card: #fafafa;
            --text-primary: #000000;
            --text-secondary: #4a4a4a;
            --text-muted: #888888;
            --border: #e0e0e0;
            --hover-bg: #f0f0f0;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            position: relative;
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }

        /* Particles Canvas */
        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* Preloader */
        #preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-primary);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        #preloader.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        .loader {
            width: 60px;
            height: 60px;
            border: 3px solid var(--border);
            border-top-color: var(--text-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .loader-text {
            position: absolute;
            margin-top: 100px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            letter-spacing: 2px;
        }

        /* Background Pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 0;
            pointer-events: none;
            transition: transform 0.1s ease-out, opacity 0.3s ease;
        }

        body.light-mode::before {
            background-image: 
                linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
            z-index: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        body.light-mode::after {
            background: 
                radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
        }

        /* Theme Toggle Button */
        #themeToggle {
            position: fixed;
            top: 90px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: 50%;
            cursor: pointer;
            z-index: 99;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        #themeToggle:hover {
            transform: rotate(180deg) scale(1.1);
            border-color: var(--text-primary);
        }

        #themeToggle:active {
            transform: rotate(180deg) scale(0.95);
        }

        /* Mobile: Move theme toggle to better position */
        @media (max-width: 768px) {
            #themeToggle {
                top: auto;
                bottom: 90px;
                right: 20px;
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }
        }

        /* All content above background */
        nav, section, footer {
            position: relative;
            z-index: 1;
        }

        /* Navigation */
        nav {
            background: rgba(17, 17, 17, 0.8);
            padding: 1.5rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--border);
            backdrop-filter: blur(10px);
            transform: translateY(-100%);
            animation: slideDown 0.5s ease forwards 0.5s;
        }

        @keyframes slideDown {
            to { transform: translateY(0); }
        }

        nav .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        nav .logo {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--text-primary);
            letter-spacing: 1px;
            z-index: 2;
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 2;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--text-primary);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

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

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

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

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

        nav a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s;
            font-weight: 500;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--text-primary);
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
        }

        nav a:hover {
            color: var(--text-primary);
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        section {
            padding: 5rem 0;
            width: 100%;
            overflow-x: hidden;
        }

        /* Fade in animation */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

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

        /* Hero Section */
        .hero {
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            width: 100%;
            overflow-x: hidden;
        }

        .hero .container {
            width: 100%;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
            font-weight: 700;
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards 0.8s;
            word-wrap: break-word;
            max-width: 100%;
        }

        .hero h2 {
            font-size: 1.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-weight: 400;
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards 1s;
        }

        .hero .specialist {
            font-size: 1.2rem;
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            font-style: italic;
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards 1.2s;
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 700px;
            margin: 0 auto 2rem;
            line-height: 1.8;
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards 1.4s;
            word-wrap: break-word;
            padding: 0 1rem;
        }

        .hero .typing-text {
            display: inline-block;
            border-right: 3px solid var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            animation: typing 3s steps(40) 1.6s forwards, blink 0.7s step-end infinite;
        }

        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }

        @keyframes blink {
            50% { border-color: transparent; }
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero h1, .hero h2, .hero .specialist, .hero p {
            transform: translateY(30px);
        }

        .cta-button {
            display: inline-block;
            padding: 1rem 2.5rem;
            background: var(--text-primary);
            color: var(--bg-primary);
            text-decoration: none;
            border-radius: 4px;
            font-weight: 600;
            transition: all 0.3s;
            border: 2px solid var(--text-primary);
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards 1.6s;
            transform: translateY(30px);
            position: relative;
            overflow: hidden;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: var(--bg-primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }

        .cta-button:hover::before {
            width: 300px;
            height: 300px;
        }

        .cta-button span {
            position: relative;
            z-index: 1;
        }

        .cta-button:hover {
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        /* Section Title */
        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        /* Skills Section */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            width: 100%;
        }

        .skill-card {
            background: var(--bg-card);
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            width: 100%;
            min-width: 0;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s;
        }

        .skill-card:hover::before {
            left: 100%;
        }

        .skill-card.specialist {
            border-color: var(--text-secondary);
            background: var(--hover-bg);
        }

        .skill-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: var(--text-secondary);
            background: var(--hover-bg);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .skill-card h3 {
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
            font-weight: 600;
        }

        .skill-card .badge {
            display: inline-block;
            background: var(--text-primary);
            color: var(--bg-primary);
            padding: 0.2rem 0.8rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 1rem;
            letter-spacing: 0.5px;
        }

        .skill-card ul {
            list-style: none;
        }

        .skill-card li {
            padding: 0.5rem 0;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--border);
            transition: all 0.3s;
        }

        .skill-card li:hover {
            padding-left: 10px;
            color: var(--text-primary);
        }

        .skill-card li:last-child {
            border-bottom: none;
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            width: 100%;
        }

        .project-card {
            background: var(--bg-card);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            width: 100%;
            min-width: 0;
        }

        .project-card:hover {
            transform: translateY(-10px) rotateX(2deg);
            border-color: var(--text-secondary);
            box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
        }

        .project-header {
            background: var(--bg-secondary);
            padding: 2rem;
            text-align: center;
            border-bottom: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .project-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: var(--text-primary);
            transition: left 0.5s;
        }

        .project-card:hover .project-header::before {
            left: 100%;
        }

        .project-header h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .project-type {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .project-body {
            padding: 2rem;
        }

        .project-body p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.7;
        }

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .tech-tag {
            background: var(--bg-secondary);
            padding: 0.4rem 1rem;
            border-radius: 4px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            border: 1px solid var(--border);
            transition: all 0.3s;
            white-space: nowrap;
        }

        .tech-tag:hover {
            transform: translateY(-3px);
            border-color: var(--text-primary);
        }

        .tech-tag.primary {
            background: var(--text-primary);
            color: var(--bg-primary);
            font-weight: 600;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }

        .project-link {
            flex: 1;
            text-align: center;
            padding: 0.8rem;
            background: var(--bg-secondary);
            color: var(--text-primary);
            text-decoration: none;
            border-radius: 4px;
            border: 1px solid var(--border);
            transition: all 0.3s;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

        .project-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--text-primary);
            transition: left 0.3s;
            z-index: 0;
        }

        .project-link:hover::before {
            left: 0;
        }

        .project-link span {
            position: relative;
            z-index: 1;
        }

        .project-link:hover {
            color: var(--bg-primary);
            border-color: var(--text-primary);
        }

        .project-link.demo {
            background: var(--text-primary);
            color: var(--bg-primary);
            border-color: var(--text-primary);
        }

        .project-link.demo::before {
            background: var(--bg-primary);
        }

        .project-link.demo:hover {
            color: var(--text-primary);
        }

        /* Contact Section */
        .contact-info {
            text-align: center;
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-info p {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .social-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: var(--bg-card);
            color: var(--text-primary);
            text-decoration: none;
            border-radius: 4px;
            border: 1px solid var(--border);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

        .social-link::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: var(--text-primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.5s, height 0.5s;
        }

        .social-link:hover::before {
            width: 300px;
            height: 300px;
        }

        .social-link span {
            position: relative;
            z-index: 1;
        }

        .social-link:hover {
            color: var(--bg-primary);
            border-color: var(--text-primary);
            transform: translateY(-5px);
        }

        /* Footer */
        footer {
            background: var(--bg-secondary);
            text-align: center;
            padding: 2rem 0;
            border-top: 1px solid var(--border);
            color: var(--text-secondary);
        }

        /* Scroll to top button */
        #scrollTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--text-primary);
            color: var(--bg-primary);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            opacity: 0;
            transition: all 0.3s;
            z-index: 98;
            font-size: 1.5rem;
        }

        #scrollTop.visible {
            opacity: 1;
        }

        #scrollTop:hover {
            transform: translateY(-5px);
        }

        /* Cursor Trail */
        .cursor-trail {
            position: fixed;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            pointer-events: none;
            z-index: 9998;
            mix-blend-mode: difference;
            background: white;
            transition: transform 0.2s ease;
        }

        /* Loading Progress Bar */
        #loadingProgress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
            z-index: 10000;
            transition: width 0.3s ease;
        }

        #loadingPercentage {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3rem;
            color: var(--text-primary);
            font-weight: bold;
            z-index: 10001;
        }

        /* Confetti */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            pointer-events: none;
            z-index: 9999;
            animation: confettiFall 3s linear forwards;
        }

        @keyframes confettiFall {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(720deg);
                opacity: 0;
            }
        }

        /* Easter Egg Notification */
        #easterEggNotif {
            position: fixed;
            top: 100px;
            right: -300px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            padding: 1rem 1.5rem;
            border-radius: 8px;
            z-index: 9999;
            transition: right 0.5s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        #easterEggNotif.show {
            right: 20px;
        }

        #easterEggNotif .title {
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        #easterEggNotif .message {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            /* Prevent horizontal scroll */
            body, html {
                max-width: 100vw;
                overflow-x: hidden;
            }

            /* Navigation Mobile */
            .mobile-menu-toggle {
                display: flex;
            }

            nav .container {
                padding: 0 1rem;
            }

            nav .logo {
                font-size: 1.2rem;
            }

            nav ul {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                max-width: 300px;
                height: 100vh;
                background: var(--bg-secondary);
                flex-direction: column;
                padding: 5rem 2rem 2rem 2rem;
                gap: 2rem;
                transition: right 0.3s ease;
                border-left: 1px solid var(--border);
                z-index: 1;
                overflow-y: auto;
            }

            nav ul.active {
                right: 0;
            }

            nav a {
                font-size: 1.1rem;
            }

            nav a::after {
                display: none;
            }

            /* Hero Section Mobile */
            .hero {
                min-height: 70vh;
                padding: 2rem 0;
            }

            .hero h1 {
                font-size: 1.8rem;
                line-height: 1.2;
                padding: 0 1rem;
            }

            .hero h2 {
                font-size: 1.1rem;
                padding: 0 1rem;
            }

            .hero .specialist {
                font-size: 0.95rem;
                padding: 0 1rem;
            }

            .hero p {
                font-size: 0.95rem;
                padding: 0 1rem;
                max-width: 100%;
            }

            .cta-button {
                padding: 0.8rem 1.8rem;
                font-size: 0.9rem;
            }

            /* Section Titles Mobile */
            .section-title {
                font-size: 1.6rem;
                padding: 0 1rem;
            }

            section {
                padding: 3rem 0;
            }

            .container {
                padding: 0 1rem;
                max-width: 100%;
            }

            /* Projects Grid Mobile */
            .projects-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                min-width: 0;
            }

            .project-card {
                margin: 0;
                width: 100%;
                max-width: 100%;
            }

            .project-body {
                padding: 1.5rem;
            }

            .project-header {
                padding: 1.5rem;
            }

            .project-header h3 {
                font-size: 1.2rem;
                word-wrap: break-word;
            }

            /* Skills Grid Mobile */
            .skills-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                min-width: 0;
            }

            .skill-card {
                width: 100%;
                max-width: 100%;
                padding: 1.5rem;
            }

            .skill-card h3 {
                font-size: 1.2rem;
            }

            .skill-card li {
                font-size: 0.9rem;
            }

            /* Tech Stack Mobile */
            .tech-stack {
                gap: 0.4rem;
            }

            .tech-tag {
                font-size: 0.75rem;
                padding: 0.3rem 0.8rem;
            }

            /* Social Links Mobile */
            .social-links {
                flex-direction: column;
                gap: 1rem;
                width: 100%;
            }

            .social-link {
                width: 100%;
                max-width: 100%;
                padding: 1rem;
                justify-content: center;
            }

            .contact-info {
                width: 100%;
                padding: 0 1rem;
            }

            .contact-info p {
                font-size: 1rem;
            }

            /* Scroll to Top Button Mobile */
            #scrollTop {
                width: 45px;
                height: 45px;
                bottom: 20px;
                right: 20px;
                font-size: 1.3rem;
            }

            /* Easter Egg Notification Mobile */
            #easterEggNotif {
                right: auto;
                left: -100%;
                width: calc(100% - 40px);
                max-width: calc(100vw - 40px);
                margin: 0 20px;
            }

            #easterEggNotif.show {
                left: 0;
                right: auto;
            }

            /* Cursor Trail - Hide on Mobile */
            .cursor-trail {
                display: none;
            }

            /* Reduce particle count on mobile */
            #particles-canvas {
                opacity: 0.5;
            }

            /* Footer Mobile */
            footer {
                padding: 1.5rem 0;
            }

            footer p {
                font-size: 0.85rem;
                padding: 0 1rem;
            }

            /* Prevent overflow */
            .fade-in {
                max-width: 100%;
            }
        }

        /* Extra Small Devices */
        @media (max-width: 480px) {
            nav .logo {
                font-size: 1rem;
            }

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

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

            .hero .specialist {
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.4rem;
            }

            .project-header h3 {
                font-size: 1.1rem;
            }

            .skill-card h3 {
                font-size: 1.1rem;
            }

            nav ul {
                width: 80%;
                max-width: 280px;
            }

            .container {
                padding: 0 0.8rem;
            }

            .cta-button {
                padding: 0.7rem 1.5rem;
                font-size: 0.85rem;
            }
        }

        /* Landscape Mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .hero {
                min-height: 100vh;
                padding: 1rem 0;
            }

            nav ul {
                padding-top: 3rem;
                gap: 1rem;
            }

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

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