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

    :root {
        --primary: #6366f1;
        --primary-dark: #4f46e5;
        --secondary: #8b5cf6;
        --dark: #0f172a;
        --dark-light: #1e293b;
        --light: #f8fafc;
        --gray: #64748b;
        --white: #ffffff;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--dark);
        overflow-x: hidden;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }

    /* Navigation */
    .navbar {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
        color: var(--white);
    }

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

    .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .navbar.scrolled .logo {
        color: var(--white);
    }

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

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

    .navbar.scrolled .nav-link {
        color: var(--white);
    }

    .nav-link:hover {
        color: var(--primary);
    }

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

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

    .mobile-menu {
        display: none;
        flex-direction: column;
        cursor: pointer;
    }

    .mobile-menu span {
        width: 25px;
        height: 3px;
        background: var(--dark);
        margin: 3px 0;
        transition: 0.3s;
    }

    .navbar.scrolled .mobile-menu span {
        background: var(--white);
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
        animation: gridMove 20s linear infinite;
    }

    @keyframes gridMove {
        0% { transform: translate(0, 0); }
        100% { transform: translate(10px, 10px); }
    }

    .hero-content {
        text-align: center;
        color: var(--white);
        z-index: 1;
        max-width: 800px;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 700;
        margin-bottom: 1rem;
        opacity: 0;
        animation: fadeInUp 1s ease 0.5s forwards;
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        margin-bottom: 2rem;
        opacity: 0;
        animation: fadeInUp 1s ease 0.7s forwards;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0;
        animation: fadeInUp 1s ease 0.9s forwards;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        opacity: 0;
        animation: fadeInUp 1s ease 1.1s forwards;
    }

    .btn {
        padding: 1rem 2rem;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
        overflow: hidden;
    }

    .btn-primary {
        background: var(--white);
        color: var(--primary);
        border:#0b48d7 2px solid;
    }

    .btn-secondary {
        background: transparent;
        color: var(--white);
        border: 2px solid var(--white);
    }
    .btn-primary:hover{
        background: var(--primary);
        color: var(--white);
        border: 2px solid var(--white);
    }
    .btn-secondary:hover {
        background: var(--white);
        color: var(--primary);
        border:#0b48d7 3px solid;
    }
    
    /* Resume Overlay Styles */
    .resume-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 2000;
        justify-content: center;
        align-items: center;
    }

    .resume-overlay.active {
        display: flex;
    }

    .resume-modal {
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .resume-modal iframe {
        width: 70vw;
        height: 80vh;
        border: none;
        border-radius: 8px;
        background: #fff;
    }

    .close-resume {
        position: absolute;
        top: -20px;
        right: 0px;
        background: #fff;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .fullscreen-resume{
        position: absolute;
        top: -20px;
        right: 50px;
        background: #fff;
        border: none;
        font-size: 1.6rem;
        cursor: pointer;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .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: left 0.5s;
    }

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

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

    /* Floating particles */
    .particles {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }

    .particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
    .particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 1s; }
    .particle:nth-child(3) { width: 3px; height: 3px; left: 60%; animation-delay: 2s; }
    .particle:nth-child(4) { width: 5px; height: 5px; left: 80%; animation-delay: 1.5s; }
    .particle:nth-child(5) { width: 4px; height: 4px; left: 40%; animation-delay: 0.5s; }

    @keyframes float {
        0%, 100% {
            transform: translateY(100vh) rotate(0deg);
            opacity: 0;
        }
        10%, 90% {
            opacity: 1;
        }
        50% {
            transform: translateY(-10vh) rotate(180deg);
        }
    }

    /* Sections */
    .section {
        padding: 5rem 0;
        position: relative;
        background-color:rgb(210, 207, 238)
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .section-title {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 3rem;
        color: var(--dark);
        position: relative;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 2px;
    }

    /* About Section */
    .about {
        background: var(--light);
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--gray);
    }

    .about-text p {
        margin-bottom: 1.5rem;
    }

    .skills {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 2rem;
    }

    .skill-tag {
        background: var(--primary);
        color: var(--white);
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .skill-tag:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .about-image {
        position: relative;
    }

    .about-image::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 15px;
        z-index: -1;
    }

    .profile-img {
    width: 100%;
    max-width: 520px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden; 
    background: var(--gray);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    transform: scale(1.08); /* Magnify the image */
}

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

    .project-card {
        background: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        position: relative;
    }

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .project-image {
        height: 200px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 1.2rem;
        position: relative;
        overflow: hidden;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    /* Zoom in Demo1.png image specifically */
    .project-image img[src$="Demo1.png"] {
        transform: scale(1.3);
        object-position: 50% -105%;
    }

    .project-image::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: left 0.5s;
    }

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

    .project-content {
        padding: 1.5rem;
        /* background-color:blanchedalmond ; */
    }

    .project-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--dark);
    }

    .project-description {
        color: var(--gray);
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .project-tech {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .tech-tag {
        background: var(--light);
        color: var(--primary);
        padding: 0.3rem 0.8rem;
        /* border-style:groove; */
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 500;
    }

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

    .project-link {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .project-link:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

    /* Contact Section */
    .contact {
        background: var(--dark);
        color: var(--white);
    }

    .contact .section-title {
        color: var(--white);
    }

    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .contact-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--primary);
    }

    .contact-info p {
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .contact-details {
        list-style: none;
    }

    .contact-details li {
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .contact-form {
        background: var(--dark-light);
        padding: 2rem;
        border-radius: 15px;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--primary);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        color: var(--white);
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.1);
    }

    .form-group textarea {
        height: 120px;
        resize: vertical;
    }

    .submit-btn {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: var(--white);
        border: none;
        padding: 1rem 2rem;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
    }

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    }

    /* Footer */
    .footer {
        background: var(--dark-light);
        color: var(--white);
        text-align: center;
        padding: 2rem 0;
    }

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

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: var(--white);
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    .social-link img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .social-link:hover {
        background: var(--primary-dark);
        transform: translateY(-3px);
    }

    /* Scroll animations */
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

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

    /* Responsive Design */
    @media (max-width: 768px) {
        .nav-menu {
            display: none;
        }

        .mobile-menu {
            display: flex;
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .hero-buttons {
            flex-direction: column;
            align-items: center;
        }

        .about-content,
        .contact-content {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

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

        .section {
            padding: 3rem 0;
        }

        .container {
            padding: 0 1rem;
        }
    }

    @media (max-width: 480px) {
        .hero-title {
            font-size: 2rem;
        }

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

        .nav-container {
            padding: 1rem;
        }
    }
