        body {
            margin: 0;
            padding: 0;
        }
        /* Add the landing page specific styles */
        :root {
            --primary: #4f8cff;
            --secondary: #23243a;
            --accent: #23243a;
            --bg: #181926ff;
            --text: #f2e9e4;
            --card: #23243a23;
            --card-accent: #23243a;
            --skill-bg: #23243a;
            --skill-text: #4f8cff;
            --input-bg: #23243a;
            --input-border: #353657;
            --input-text: #f2e9e4;
        }

        .portfolio-body {
            font-family: 'Montserrat', Arial, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .portfolio-body::-webkit-scrollbar {
            display: none;
        }

        /* Header Styles */
        .portfolio-header {
            background: var(--secondary);
            color: #fff;
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 16px rgba(79, 140, 255, 0.08);
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo-container img {
            height: 40px;
            width: 40px;
            border-radius: 50%;
        }

        .logo-container span {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
        }

        /* Desktop Navigation */
        .desktop-nav {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .desktop-nav a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
            position: relative;
        }

        .desktop-nav a::after {
            content: '';
            display: block;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s;
            position: absolute;
            bottom: -5px;
            left: 0;
        }

        .desktop-nav a:hover {
            color: #fff;
        }

        .desktop-nav a:hover::after {
            width: 100%;
        }

        /* Mobile Navigation */
        .mobile-nav-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: background-color 0.3s;
            z-index: 1002;
        }

        .mobile-nav-toggle:hover {
            background: rgba(79, 140, 255, 0.1);
        }

        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(35, 36, 58, 0.98);
            backdrop-filter: blur(10px);
            padding: 5rem 1rem 1rem;
            z-index: 1001;
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
            overflow-y: auto;
        }

        .mobile-nav.active {
            transform: translateX(0);
        }

        .mobile-nav a {
            display: block;
            color: var(--primary);
            text-decoration: none;
            padding: 1.2rem;
            font-weight: 600;
            font-size: 1.1rem;
            border-bottom: 1px solid rgba(79, 140, 255, 0.2);
            transition: all 0.3s;
            text-align: center;
        }

        .mobile-nav a:hover {
            background: rgba(79, 140, 255, 0.15);
            color: #fff;
            transform: translateX(10px);
        }

        .mobile-nav a:last-child {
            border-bottom: none;
        }

        /* Close button for mobile nav */
        .mobile-nav-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--primary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1002;
        }

        /* Overlay for mobile nav */
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
        }

        .mobile-nav-overlay.active {
            display: block;
        }

        /* Hero Section */
        .hero {
            margin-top: 100px;
            text-align: center;
            padding: 1rem 1rem;
            background: linear-gradient(135deg, #090e2732 0%, #04317e53 100%);
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: white;
        }

        .hero p {
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Portfolio Sections */
        .portfolio-section {
            margin-bottom: 3rem;
            background: var(--card);
            border-radius: 14px;
            box-shadow: 0 2px 16px rgba(79, 140, 255, 0.07);
            padding: 2.2rem;
            border: 1px solid #23243a;
        }

        .about-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .portfolio-section h2 {
            color: var(--primary);
            margin-bottom: 1.2rem;
            font-size: 1.7rem;
            font-weight: 700;
            letter-spacing: 1px;
        }

        .about {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2.5rem;
        }

        .about img {
            width: 400px;
            height: 400px;
            padding: 0.5rem;
            border-radius: 10%;
            object-fit: cover;
            border: 4px solid var(--primary);
            box-shadow: 0 4px 24px rgba(79, 140, 255, 0.15);
            background: #23243a76;
        }

        .about-text {
            flex: 1;
        }

        .about-text h2 {
            margin-bottom: 0.7rem;
        }

        .about-text p {
            color: #c9c9e3;
            font-size: 1.08rem;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .skill {
            background: var(--skill-bg);
            color: var(--skill-text);
            padding: 0.55rem 1.2rem;
            border-radius: 20px;
            font-size: 1rem;
            font-weight: 600;
            border: 1.5px solid var(--primary);
            box-shadow: 0 1px 6px rgba(79, 140, 255, 0.08);
            transition: background 0.2s, color 0.2s;
        }

        .skill:hover {
            background: var(--primary);
            color: #fff;
        }

        .portfolio-projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .portfolio-project-card {
            background: var(--card-accent);
            border-radius: 12px;
            max-width: 400px;
            box-shadow: 0 2px 12px rgba(79, 140, 255, 0.09);
            padding: 1.7rem;
            display: flex;
            flex-direction: column;
            border: 1px solid #23243a;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .portfolio-project-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 6px 24px rgba(79, 140, 255, 0.18);
        }

        .portfolio-project-card h3 {
            margin-bottom: 0.5rem;
            color: var(--primary);
            font-size: 1.2rem;
        }

        .portfolio-project-card p {
            flex: 1;
            color: #c9c9e3;
            margin-bottom: 1rem;
        }

        .portfolio-project-card a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.2s;
        }

        .portfolio-project-card a:hover {
            color: #fff;
            text-decoration: underline;
        }

        .portfolio-project-card img {
            width: 100%;
            max-width: 400px;
            height: 200px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 1rem;
        }

        .contact-container {
            display: flex;
            gap: 2rem;
            align-items: flex-start;
        }

        .contact-form {
            display: flex;
            flex-direction: column;
            background-color: #0c122a;
            border-radius: 20px;
            padding: 2rem;
            gap: 1.1rem;
            flex: 1;
        }

        .contact-form h2 {
            margin-top: 0;
            color: #585761;
        }

        .contact-form input,
        .contact-form textarea {
            padding: 0.9rem;
            border: 1.5px solid var(--input-border);
            border-radius: 7px;
            font-size: 1rem;
            font-family: inherit;
            background: #152026;
            color: var(--input-text);
            resize: vertical;
            transition: border 0.2s;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            border: 1.5px solid var(--primary);
            outline: none;
        }

        .contact-form button {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 0.9rem;
            border-radius: 7px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
            letter-spacing: 1px;
        }

        .contact-form button:hover {
            background: #23243a;
            color: var(--primary);
            border: 1.5px solid var(--primary);
        }

        .contact-info {
            background: #0c122a;
            border-radius: 10px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            flex: 1;
        }

        .contact-info h2 {
            margin-top: 0;
            font-size: 1.3em;
            color: #585761;
        }

        .contact-info p {
            margin: 10px 0;
            color:#585761;
            font-size: 1em;
        }

        .contact-info a {
            color: #0077cc;
            text-decoration: none;
            transition: color 0.2s;
        }

        .contact-info a:hover {
            color: #005fa3;
            text-decoration: underline;
        }

        .contact-info i.fa,
        .contact-info i.fab {
            margin-right: 8px;
            color: #555;
        }

        .social-links {
            margin-top: 10px;
        }

        .social-link {
            display: inline-block;
            margin-right: 12px;
            font-size: 1.5em;
            color: #555;
            transition: color 0.2s, transform 0.2s;
        }

        .social-link.github:hover { color: #333; transform: scale(1.15);}
        .social-link.linkedin:hover { color: #0077b5; transform: scale(1.15);}

        .portfolio-footer {
            text-align: center;
            padding: 1.5rem 0;
            background: var(--secondary);
            color: #b6b6d6;
            font-size: 1rem;
            margin-top: 2rem;
            border-top: 1px solid #23243a;
            letter-spacing: 1px;
        }

        /* Mobile Styles */
        @media (max-width: 768px) {
            .desktop-nav {
                display: none;
            }

            .mobile-nav-toggle {
                display: block;
            }

            .mobile-nav {
                display: block;
            }

            .hero {
                margin-top: 70px;
                padding: 2rem 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .portfolio-container {
                padding: 0 0.5rem;
            }

            .portfolio-section {
                padding: 1.5rem;
                margin-bottom: 2rem;
            }

            .about {
                flex-direction: column;
                text-align: center;
            }

            .about img {
                width: 250px;
                height: 250px;
            }

            .contact-container {
                flex-direction: column;
                gap: 1rem;
            }

            .portfolio-projects-grid {
                grid-template-columns: 1fr;
            }

            .skills-list {
                justify-content: center;
            }

            .skill {
                font-size: 0.9rem;
                padding: 0.4rem 1rem;
            }

            /* Prevent body scroll when mobile nav is open */
            body.mobile-nav-open {
                overflow: hidden;
            }
            .contact-form{
                width: 94%;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .about img {
                width: 200px;
                height: 200px;
            }

            .contact-form,
            .contact-info {
                padding: 1rem;
            }

            .logo-container span {
                font-size: 1rem;
            }

            .mobile-nav a {
                padding: 1rem;
                font-size: 1rem;
            }
        }

        /* Canvas Background Animation */
        .background-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -10;
            background: var(--bg);
        }

        /* Make sure content stays above canvas */
        .portfolio-body {
            position: relative;
            z-index: 10;
        }

        
        .hero,
        .container{
            position: relative;
            margin: 40px auto;
            z-index: 11;
        }
        /* Contact Form Styles */
        .form-error-message,
        .form-success-message {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-weight: 600;
            display: none;
        }

        .form-error-message {
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid rgba(231, 76, 60, 0.3);
            color: #e74c3c;
        }

        .form-success-message {
            background: rgba(46, 204, 113, 0.1);
            border: 1px solid rgba(46, 204, 113, 0.3);
            color: #27ae60;
        }

        .contact-form input:invalid,
        .contact-form textarea:invalid {
            border-color: #e74c3c;
        }

        .contact-form input:valid,
        .contact-form textarea:valid {
            border-color: #27ae60;
        }

        .char-counter {
            transition: color 0.3s ease;
        }

        /* Loading animation */
        .fa-spin {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Button hover effects */
        .contact-form button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .contact-form button:not(:disabled):hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
        }