
        /* --- Variables and Global Styles --- */
       :root {
    --primary: #6c5ce7;
    --secondary: #040404;
    --dark: #2d3436;
    --light: #f5f6fa;
    --accent: #fd79a8;
    --card-bg: rgba(45, 52, 54, 0.7);
    --card-border: rgba(108, 92, 231, 0.3);
}
.logo-image {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}
/* Add nav-logo styling */
.nav-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* Mobile menu active state */
.nav-links.active {
    right: 0;
}

/* Menu button transition */
.menu-btn {
    transition: transform 0.3s ease;
}

.menu-btn.active {
    transform: rotate(90deg);
}
.logo-image img {
    height: 100%;
    width: auto;
}

nav {
    display: flex;
    align-items: right;
    /* Rest of your nav styles */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
  .thankyou-message {
    display: none;
    color: #27ae60;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
    animation: tuck 0.7s ease;
  }
  @keyframes tuck {
    0% { transform: scale(0.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.1) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
  }
        body {
            background-color: var(--dark);
            color: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
            /* Prevent horizontal scroll caused by animations */
            position: relative;
            /* Needed for absolute positioned 3D canvas */
        }

        html {
            scroll-behavior: smooth;
            /* Smooth scrolling for navigation links */
        }

        /* --- Navigation Bar --- */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 1.5rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            /* Make sure nav is above other content */
            background-color: rgba(45, 52, 54, 0.9);
            /* Semi-transparent background */
            backdrop-filter: blur(8px);
            /* Blur effect */
            transition: background-color 0.3s ease;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--light);
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .logo span {
            color: var(--primary);
        }

        .nav-links {
            display: flex;
            gap: 2.5rem;
            list-style: none;
        }

        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 500;
            position: relative;
            transition: all 0.3s ease;
            padding-bottom: 5px;
            /* Space for underline */
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .menu-btn {
            display: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--light);
            z-index: 101;
            /* Above mobile menu */
        }

        /* --- Mobile Menu --- */
        .nav-links.active {
            right: 0;
        }

        /* --- Hero Section --- */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            padding: 0 5%;
            position: relative;
            overflow: hidden;
            /* Hide anything outside the hero area */
            padding-top: 80px;
            /* Space for fixed nav */
        }

        #hero-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            /* Below the content */
        }

        .hero-content {
            position: relative;
            z-index: 10;
            /* Above the canvas */
            width: 50%;
            /* Take up half the width */
            max-width: 600px;
            /* Limit max width */
            margin-right: auto;
            /* Push to the left */
        }

        .hero-content h1 {
            font-size: 4rem;
            font-style: italic;
            margin-bottom: 1rem;
            line-height: 1.1;
            font-weight: 700;
        }

        .hero-content h1 span {
            color: var(--primary);
        }

        .hero-content p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            color: rgba(255, 255, 255, 0.8);
        }

        .hero-buttons .btn {
            margin-right: 1rem;
            /* Space between buttons */
        }

        /* --- Buttons --- */
        .btn {
            display: inline-block;
            padding: 0.9rem 2.5rem;
            background-color: var(--primary);
            color: var(--light);
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:hover {
            background-color: var(--secondary);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .btn-outline {
            background-color: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            box-shadow: none;
        }

        .btn-outline:hover {
            background-color: var(--primary);
            color: var(--light);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }


        /* --- Social Icons --- */
        .social-icons {
            margin-top: 3rem;
            display: flex;
            gap: 1.5rem;
        }

        .social-icons a {
            color: var(--light);
            font-size: 1.8rem;
            transition: all 0.3s ease;
        }

        .social-icons a:hover {
            color: var(--primary);
            transform: translateY(-8px) scale(1.1);
        }

        /* --- Sections (General) --- */
        .section {
            padding: 8rem 5%;
            /* Padding top/bottom, left/right */
            position: relative;
            z-index: 2;
            /* Ensure sections are above canvas if it extends */
        }

        .section-title {
            font-size: 3rem;
            margin-bottom: 4rem;
            text-align: center;
            font-weight: 700;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--primary);
            border-radius: 2px;
        }

        .section-title span {
            color: var(--primary);
        }

        /* --- About Section --- */
        .about-content {
            display: flex;
            gap: 4rem;
            align-items: center;
            flex-wrap: wrap;
            /* Allow wrapping on smaller screens */
        }

        .about-img {
            flex: 1 1 350px;
            /* Flex properties for responsiveness */
            max-width: 400px;
            /* Max width for image container */
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            border: 3px solid var(--card-border);
            /* Add a border */
            transition: transform 0.5s ease;
        }

        .about-img:hover {
            transform: scale(1.02);
        }

        .about-img img {
            display: block;
            width: 100%;
            height: auto;
        }

        .about-text {
            flex: 2 1 400px;
            /* Flex properties for responsiveness */
        }

        .about-text h3 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 2rem;
        }

        .skill {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            color: var(--light);
            padding: 0.7rem 1.5rem;
            border-radius: 25px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .skill:hover {
            background-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        }


        /* --- Projects Section --- */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            /* Responsive Grid */
            gap: 2.5rem;
            margin-top: 3rem;
        }

        .project-card {
            background-color: var(--card-bg);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--card-border);
            display: flex;
            /* Use flex for image and info layout */
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        }

        .project-img {
            width: 100%;
            height: 220px;
            /* Fixed height for images */
            overflow: hidden;
        }

        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Crop image to fit */
            transition: transform 0.5s ease;
            display: block;
        }

        .project-card:hover .project-img img {
            transform: scale(1.1);
        }

        .project-info {
            padding: 1.8rem;
            flex-grow: 1;
            /* Allow info area to take remaining space */
            display: flex;
            flex-direction: column;
        }

        .project-info h3 {
            font-size: 1.5rem;
            margin-bottom: 0.8rem;
            color: var(--primary);
        }

        .project-info p {
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1.5rem;
            font-size: 1rem;
            flex-grow: 1;
            /* Push links to the bottom */
        }

        .project-links {
            display: flex;
            gap: 1.5rem;
            margin-top: 1rem;
            /* Space above links */
        }

        .project-links a {
            color: var(--secondary);
            font-size: 1rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .project-links a i {
            font-size: 1.2rem;
        }

        .project-links a:hover {
            color: var(--accent);
            transform: translateX(5px);
        }

        /* --- Contact Section --- */
        .contact-container {
            display: flex;
            gap: 4rem;
            flex-wrap: wrap;
            justify-content: center;
            /* Center content when wrapped */
        }

        .contact-form {
            flex: 1 1 400px;
            /* Flex properties */
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            padding: 3rem;
            border-radius: 15px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        .contact-form h3 {
            font-size: 2rem;
            margin-bottom: 2rem;
            color: var(--primary);
            text-align: center;
        }

        .form-group {
            margin-bottom: 1.8rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.8rem;
            font-weight: 500;
            color: var(--light);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: var(--light);
            font-size: 1rem;
            transition: border-color 0.3s ease;
            resize: vertical;
            /* Allow vertical resize for textarea */
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .contact-info {
            flex: 1 1 300px;
            /* Flex properties */
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            padding: 3rem 0;
            /* Add vertical padding to align with form */
        }

        .contact-info-item {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            color: rgba(255, 255, 255, 0.9);
        }

        .contact-info-item i {
            font-size: 1.8rem;
            color: var(--primary);
        }

        .contact-info-item p {
            font-size: 1.1rem;
        }

        .contact-info-item a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-info-item a:hover {
            color: var(--primary);
        }


        /* --- Footer --- */
footer {
    position: relative;
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 4rem 5% 2rem;
    font-size: 0.9rem;
    border-top: none;
    overflow: hidden;
    margin-top: 4rem;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-quote {
    font-style: italic;
    margin: 1rem 0 2rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

footer .social-icons {
    justify-content: center;
    margin: 1.5rem 0;
    gap: 2rem;
}

footer .social-icons a {
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

footer .social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 5% 1.5rem;
    }
    
    .footer-quote {
        font-size: 1rem;
    }
    
    footer .social-icons {
        gap: 1.5rem;
    }
    
    footer .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}
        /* --- Responsive Design --- */
        @media (max-width: 1024px) {
            .hero-content {
                width: 60%;
            }

            .hero-content h1 {
                font-size: 3.5rem;
            }

            .about-content {
                flex-direction: column;
                align-items: center;
            }

            .about-img,
            .about-text {
                width: 100%;
                max-width: 600px;
                /* Limit width on smaller screens too */
                flex: none;
                /* Remove flex shrink/grow */
            }

            .about-img {
                margin-bottom: 2rem;
            }

            .contact-container {
                flex-direction: column;
                align-items: center;
            }

            .contact-form,
            .contact-info {
                width: 100%;
                max-width: 600px;
                /* Limit width */
                flex: none;
            }

            .contact-info {
                padding-top: 0;
            }
        }


        @media (max-width: 768px) {
            nav {
                padding: 1rem 5%;
            }

            .nav-links {
                position: fixed;
                right: -100%;
                /* Hide menu off-screen */
                top: 0;
                width: 60%;
                height: 100vh;
                background-color: var(--dark);
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 3rem;
                transition: right 0.5s ease;
                z-index: 100;
                /* Below menu button */
                box-shadow: -10px 0 20px rgba(0, 0, 0, 0.3);
            }

            .nav-links a {
                font-size: 1.5rem;
            }

            .menu-btn {
                display: block;
                /* Show menu button */
            }

            .hero {
                flex-direction: column-reverse;
                /* Move canvas above text on mobile */
                padding: 80px 5% 0 5%;
                /* Adjust padding */
                height: auto;
                /* Allow height to adjust */
            }

            #hero-canvas {
                position: relative;
                /* Change positioning */
                width: 100%;
                height: 50vh;
                /* Give it a fixed height */
                margin-bottom: 2rem;
            }

            .hero-content {
                width: 100%;
                text-align: center;
                margin-right: 0;
                padding-bottom: 4rem;
            }

            .hero-content h1 {
                font-size: 3rem;
            }

            .hero-content p {
                font-size: 1rem;
            }

            .hero-buttons {
                display: flex;
                justify-content: center;
                gap: 1rem;
                /* Adjust button gap */
            }

            .hero-buttons .btn {
                margin-right: 0;
            }

            .social-icons {
                justify-content: center;
            }

            .section {
                padding: 6rem 5%;
            }

            .section-title {
                font-size: 2.5rem;
                margin-bottom: 3rem;
            }

            .project-img {
                height: 180px;
                /* Smaller image height on mobile */
            }

            .contact-form {
                padding: 2rem;
            }

            .contact-form h3 {
                font-size: 1.8rem;
            }

        }

        @media (max-width: 480px) {
            .logo {
                font-size: 1.5rem;
            }

            .hero-content h1 {
                font-size: 2.5rem;
            }

            .hero-content p {
                font-size: 0.9rem;
            }

            .hero-buttons {
                flex-direction: column;
                /* Stack buttons */
                align-items: center;
                gap: 0.8rem;
            }

            .btn {
                width: 80%;
                /* Make buttons wider */
                text-align: center;
            }

            .section-title {
                font-size: 2rem;
            }

            .about-text h3 {
                font-size: 1.5rem;
            }

            .skill {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }

            .project-info h3 {
                font-size: 1.3rem;
            }

            .project-info p {
                font-size: 0.9rem;
            }

            .project-links a {
                font-size: 0.9rem;
            }

            .contact-info-item {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            .contact-info-item i {
                font-size: 1.5rem;
            }

            .contact-info-item p,
            .contact-info-item a {
                font-size: 1rem;
            }
        }