:root {
            --neon-blue: #00f5ff;
            --neon-pink: #ff2d75;
            --matrix-green: #00ff41;
            --cyber-purple: #bd00ff;
            --dark-bg: #0a0a0a;
            --darker-bg: #050505;
            --text-primary: #f0f0f0;
            --text-secondary: #b0b0b0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--dark-bg);
            color: var(--text-primary);
            overflow-x: hidden;
            position: relative;
        }

        /* Matrix Rain Background */
        .matrix-rain {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.1;
            pointer-events: none;
        }

        /* Glitch Effect */
        .glitch {
            position: relative;
        }

        .glitch::before, .glitch::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--dark-bg);
        }

        .glitch::before {
            left: 2px;
            text-shadow: -2px 0 var(--neon-blue);
            clip: rect(44px, 450px, 56px, 0);
            animation: glitch-anim-1 2s infinite linear alternate-reverse;
        }

        .glitch::after {
            left: -2px;
            text-shadow: -2px 0 var(--neon-pink);
            clip: rect(44px, 450px, 56px, 0);
            animation: glitch-anim-2 2s infinite linear alternate-reverse;
        }

        @keyframes glitch-anim-1 {
            0% { clip: rect(61px, 9999px, 52px, 0); }
            20% { clip: rect(33px, 9999px, 14px, 0); }
            40% { clip: rect(43px, 9999px, 37px, 0); }
            60% { clip: rect(12px, 9999px, 74px, 0); }
            80% { clip: rect(74px, 9999px, 53px, 0); }
            100% { clip: rect(6px, 9999px, 27px, 0); }
        }

        @keyframes glitch-anim-2 {
            0% { clip: rect(66px, 9999px, 99px, 0); }
            20% { clip: rect(79px, 9999px, 34px, 0); }
            40% { clip: rect(66px, 9999px, 82px, 0); }
            60% { clip: rect(10px, 9999px, 2px, 0); }
            80% { clip: rect(98px, 9999px, 70px, 0); }
            100% { clip: rect(63px, 9999px, 13px, 0); }
        }

        /* Navigation */
         nav {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 1.5rem 5%;
        display: flex;
        justify-content: space-between; /* This ensures logo stays left and nav-links go right */
        align-items: center;
        z-index: 1000;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 45, 117, 0.2);
    }

    .nav-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--neon-blue);
        text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
        letter-spacing: 1px;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        margin-left: auto; /* This pushes the nav links to the right */
    }

    .nav-links a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        position: relative;
        transition: all 0.3s ease;
    }

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

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

    .nav-links a:hover::after {
        width: 100%;
    }

    .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        margin-left: 1rem; /* Ensures space between nav links and button */
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .nav-links {
            display: none;
            position: absolute;
            top: 80px;
            right: 5%; /* Aligns the mobile menu to the right */
            width: auto;
            background: rgba(10, 10, 10, 0.95);
            flex-direction: column;
            align-items: flex-end; /* Right-aligns the mobile menu items */
            padding: 1rem;
            border-radius: 0 0 10px 10px;
            border-bottom: 1px solid var(--neon-pink);
        }

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

        .mobile-menu-btn {
            display: block;
        }
    }
        /* .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
        } */

        /* Header/Hero Section */
        header {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 10% 5%;
            position: relative;
            overflow: hidden;
        }

        .cyber-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: -1;
        }

        .hero-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 5rem;
        }

        .hero-content {
            flex: 1;
            max-width: 600px;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            line-height: 1.2;
        }

        .typewriter {
            font-size: 1.5rem;
            color: var(--neon-blue);
            margin-bottom: 1.5rem;
            border-right: 3px solid var(--neon-blue);
            white-space: nowrap;
            overflow: hidden;
            animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
        }

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

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--neon-blue) }
        }

        .hero-content p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            color: var(--text-secondary);
        }

        .btn-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            background: linear-gradient(45deg, var(--neon-blue), var(--cyber-purple));
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

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

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 25px rgba(0, 245, 255, 0.5);
        }

        .hero-image {
            flex: 1;
            display: flex;
            justify-content: center;
            position: relative;
        }

        .hero-image img {
            width: 400px;
            height: 550px;
            border-radius: 20px;
            object-fit: cover;
            border: 5px solid rgba(0, 245, 255, 0.3);
            box-shadow: 0 0 50px rgba(0, 245, 255, 0.2);
            transition: all 0.5s ease;
            position: relative;
            z-index: 1;
        }

        .hero-image::before {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
            filter: blur(50px);
            opacity: 0.3;
            z-index: 0;
            animation: pulse 6s infinite alternate;
        }

        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 0.3; }
            50% { transform: scale(1.05); opacity: 0.5; }
            100% { transform: scale(0.95); opacity: 0.3; }
        }

        /* Sections */
        section {
            padding: 6rem 5%;
            position: relative;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 3rem;
            text-align: center;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
            color: var(--neon-blue)
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--neon-blue), var(--cyber-purple));
            border-radius: 3px;
            color: plum;
        }

        /* Projects Section */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .project-card {
            background: rgba(26, 29, 36, 0.7);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
            position: relative;
            height: 400px;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
            border: 1px solid var(--neon-blue);
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(0, 245, 255, 0.1), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .project-content {
            padding: 1.5rem;
        }

        .project-title {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--neon-blue);
        }

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

        .tech-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .tech-item {
            background: rgba(0, 245, 255, 0.1);
            color: var(--neon-blue);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            border: 1px solid var(--neon-blue);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 2000;
            overflow-y: auto;
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: var(--darker-bg);
            margin: 5% auto;
            padding: 2rem;
            border-radius: 15px;
            max-width: 900px;
            width: 90%;
            border: 1px solid var(--neon-blue);
            box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 1rem;
            right: 1.5rem;
            font-size: 2rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-modal:hover {
            color: var(--neon-pink);
        }

        .modal h2 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--neon-blue);
            text-align: center;
        }

        .modal-tabs {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .tab-btn {
            padding: 0.5rem 1.5rem;
            background: transparent;
            border: 1px solid var(--neon-blue);
            color: var(--neon-blue);
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn:hover {
            background: rgba(0, 245, 255, 0.1);
        }

        .tab-btn.active {
            background: var(--neon-blue);
            color: var(--dark-bg);
            font-weight: 600;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .demo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .demo-img {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: transform 0.3s ease;
        }

        .demo-img:hover {
            transform: scale(1.02);
        }

        pre {
            background: rgba(0, 0, 0, 0.3);
            padding: 1rem;
            border-radius: 10px;
            overflow-x: auto;
            margin-bottom: 1.5rem;
            border-left: 3px solid var(--neon-blue);
        }

        code {
            font-family: 'Courier New', Courier, monospace;
            color: var(--neon-blue);
        }

        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .skill-category {
            padding: 1.5rem;
            border-radius: 15px;
        }

        .skill-category h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--cyber-purple);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .skill-item {
            margin-bottom: 1.5rem;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .skill-name span:first-child {
            color: var(--text-primary);
        }

        .skill-name span:last-child {
            color: var(--neon-blue);
        }

        .skill-bar {
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .skill-progress {
            height: 100%;
            border-radius: 10px;
            position: relative;
            transition: width 1.5s ease;
        }

        .skill-progress::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shine 2s infinite;
        }

        @keyframes shine {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

       .timeline-item:nth-child(1) div {
            border-color: rgba(255,45,117,0.2);
        }
        .timeline-item:nth-child(2) div {
            border-color: rgba(0,245,255,0.2);
        }
        .timeline-item:nth-child(3) div {
            border-color: rgba(0,255,65,0.2);
        }
        .timeline-item:nth-child(4) div {
            border-color: rgba(189,0,255,0.2);
        }
        

        /* Footer */
        footer {
            background: rgba(10, 10, 10, 0.8);
            padding: 3rem 5%;
            text-align: center;
            border-top: 1px solid rgba(255, 45, 117, 0.2);
        }

        footer h3 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

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

        .social-link {
            color: var(--text-primary);
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            color: var(--neon-blue);
            transform: translateY(-5px);
        }

        footer p {
            color: var(--text-secondary);
            margin-top: 1rem;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-container {
                flex-direction: column;
                text-align: center;
            }

            .hero-content {
                max-width: 100%;
            }

            .btn-group {
                justify-content: center;
            }

            .timeline-item div,
            .timeline-item:nth-child(even) div {
                width: calc(100% - 40px);
                left: 40px;
            }

            .timeline::before {
                left: 20px;
            }

            .timeline-item::before {
                left: 20px;
            }
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 80px;
                left: 0;
                width: 100%;
                background: rgba(10, 10, 10, 0.95);
                flex-direction: column;
                align-items: center;
                padding: 1rem 0;
                border-bottom: 1px solid var(--neon-pink);
            }

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

            .mobile-menu-btn {
                display: block;
            }

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

            .typewriter {
                font-size: 1.2rem;
            }

            .project-grid {
                grid-template-columns: 1fr;
            }

            .modal-content {
                padding: 1.5rem;
            }
        }

        /* Particle Background */
        .particles-js-canvas-el {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.3;
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: var(--neon-blue);
            font-size: 1.5rem;
            animation: bounce 2s infinite;
            cursor: pointer;
            z-index: 100;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
            40% { transform: translateY(-20px) translateX(-50%); }
            60% { transform: translateY(-10px) translateX(-50%); }
        }

        /* Floating Elements */
        .floating-element {
            position: absolute;
            border-radius: 50%;
            filter: blur(40px);
            opacity: 0.2;
            z-index: -1;
        }

        .floating-element:nth-child(1) {
            width: 300px;
            height: 300px;
            background: var(--neon-blue);
            top: 10%;
            left: 5%;
            animation: float 15s infinite ease-in-out;
        }

        .floating-element:nth-child(2) {
            width: 400px;
            height: 400px;
            background: var(--neon-pink);
            bottom: 10%;
            right: 5%;
            animation: float 18s infinite ease-in-out;
        }

        .floating-element:nth-child(3) {
            width: 200px;
            height: 200px;
            background: var(--matrix-green);
            top: 50%;
            right: 15%;
            animation: float 12s infinite ease-in-out;
        }

        @keyframes float {
            0% { transform: translate(0, 0); }
            50% { transform: translate(50px, 50px); }
            100% { transform: translate(0, 0); }
        }

        /* Terminal Effect */
        .terminal-effect {
            position: relative;
            padding: 1rem;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 5px;
            border: 1px solid var(--neon-blue);
            font-family: 'Courier New', Courier, monospace;
            overflow: hidden;
        }

        .terminal-effect::before {
            content: '>';
            position: absolute;
            left: 10px;
            color: var(--neon-blue);
        }

        .terminal-effect::after {
            content: '';
            position: absolute;
            right: 10px;
            top: 10px;
            width: 10px;
            height: 10px;
            background: var(--neon-pink);
            border-radius: 50%;
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }