/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;600;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #070707; 
    overflow-x: hidden;
    line-height: 1.6;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styling */
header {
    position: fixed;
    width: 100%;
    background-color: #0a0a0a;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    top: 0;
    height: 70px;
    transition: background-color 0.3s ease;
}


header.scrolled {
    background-color:#070707; /* New background color on scroll */
}
/* Animate Vector Background like it's being drawn */
.vector-background {
    z-index: 1; /* Background behind everything */
    opacity: 1; /* Keep the opacity to make it visible */
    stroke: #7bdcb5; /* Color of the vector when being drawn */
    fill: none; /* Remove fill for drawing effect */
    stroke-width: 2; /* Adjust the stroke width as needed */
    stroke-dasharray: 2000; /* Adjust based on the length of your SVG path */
    stroke-dashoffset: 2000; /* Start with the full length to hide the stroke */
    animation: draw 10s ease-in-out forwards; /* Draw animation */
}

/* Keyframes for Drawing Animation (First instance - kept for legacy) */
@keyframes draw {
    from {
        stroke-dashoffset: 2000; /* Begin with the entire path hidden */
    }
    to {
        stroke-dashoffset: 0; /* Complete the path */
    }
}


/* Hero Section Styling */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
    margin-top: 40px; /* Adjust for fixed header */
}

/* Wrapper to Keep Everything Centered */
.hero-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hero Background Images */
.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vector-background,
.ellipse-foreground {
    position: absolute;
    width: 105%; /* Adjust the size to fit the viewport */
    max-width: 1200px; /* Set a max-width to avoid oversizing */
    object-fit: contain; /* Ensure the whole image fits within its container */
}
.vector-background {
    z-index: 1; /* Background behind everything */
    opacity: 0.7; /* Optional: Adjust opacity for a subtle look */
}

.ellipse-foreground {
    z-index: 2; /* In front of vector but behind content */
    opacity: 0.2; /* Optional: Adjust opacity as needed */
    animation: fadeReveal 6s 0s linear infinite;
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 3; /* Ensure it stays above both background layers */
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Styling for Your Name */
.hero-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: calc(2.5rem + 2vw);
    color: #FFFFFF;
    margin-bottom: 20px;
}

/* Background Circle Behind the Tagline */
.name-background {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Circle Styling with Tagline */
.name-circle {
    width:100%;
    max-width: 400px; /* Ensure the circle is not too large */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
    text-align: center;
}

/* Tagline Styling Inside the Circle - UPDATED FOR CONSISTENCY */
.name-circle h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300; /* Slightly bolder */
    font-size: calc(1.3rem + 1.2vw); /* Slightly larger */
    color: #7bdcb5; /* Using primary accent color */
    text-align: center;
    line-height: 1.3;
    margin: 0;
}


/* Remove unused classes */
.hero-left,
.hero-right {
    display: none;
}
    /* Keyframes for Drawing Animation */
        @keyframes draw {
            from {
                stroke-dashoffset: 2000; /* Start with the entire path hidden */
            }
            to {
                stroke-dashoffset: 0; /* Complete the path */
            }
        }

    /* Animate the vector path like it's being drawn */
    .drawing-path {
    stroke-width: 18.355; /* Adjust the stroke width as needed */
    stroke-linecap: round; /* Line style for the path ends */
    stroke-linejoin: round; /* Line join style */
    stroke: linear-gradient(135deg, #7bdcb5 0%, #0080ff 40%, #4f4fff 70%, #006699 100%);
    fill: none; /* Remove fill for drawing effect */
    stroke-dasharray: 2000; /* Adjust based on the length of your SVG path */
    stroke-dashoffset: 2000; /* Start with the full length to hide the stroke */
    animation: draw 5s 0s linear infinite; /* Animate drawing the path */
    }

    @keyframes draw {
    from {
        stroke-dashoffset: 4000; /* Start offset */
    }
    to {
        stroke-dashoffset: 0; /* End offset for full path */
    }
    }
    /* Keyframes for the fade and reveal effect */
    @keyframes fadeReveal {
    0%, 100% { /* Start and end fully transparent */
        clip-path: inset(0 100% 0 0); /* Clip image from the right */
        opacity: 0.1;
    }
    20% { /* Start of reveal */
        clip-path: inset(0 0 0 0); /* Show entire image */
        opacity: 0.02;
    }
    60% { /* Fade back out */
        clip-path: inset(0 0 0 0); /* Keep full image */
        opacity: 0.3;
    }
    80% { /* Begin to clip image again */
        clip-path: inset(0 100% 0 0); /* Clip from the right again */
        opacity: 0;
    }
    }
/* Projects Section */
.projects {
    padding: 80px 20px;
    text-align: center;
    background-color: #111;
}

/* Projects H2 - UPDATED FOR CONSISTENCY */
.projects h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 200; /* Bold weight for main title */
    font-size: 2.8rem; /* Consistent size for section title */
    color: #f0f0f0; /* High contrast color */
    margin-bottom: 40px;
    text-align: center; 
    text-shadow: 0 0 5px rgba(123, 220, 181, 0.3); /* Subtle shadow for depth */
}

.project-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.project-card {
    width: 280px;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card-content {
    padding: 15px;
}

.project-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.project-card p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: #aaa;
}
.view-work-button {
    display: inline-block;
    padding: 10px 20px; /* similar to nav link padding */
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: transparent; /* match nav hover vibe */
    border: 2px solid rgba(67, 68, 218, 0.8); /* same as nav hover border */
    border-radius: 50px; /* consistent with nav hover */
    text-decoration: none;
    margin: 10px;
    transition: all 0.3s ease;
}

.view-work-button:hover {
    color: #fff;
    background: rgba(67, 68, 218, 0.2); /* subtle background highlight */
    transform: translateY(-2px);
    border-color: rgba(67, 68, 218, 1);
}


/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #222;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    color: #fff;
    position: relative;
    overflow-y: auto;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.project-details h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    color: #7bdcb5;
    margin-bottom: 20px;
}

.project-details h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    color: #7bdcb5;
    margin-top: 20px;
}

.project-details p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: #ccc;
    margin-top: 10px;
}
/* About Section */
.about {
    padding: 100px 20px;
    background-color: #070707; 
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #7bdcb5;
}

.about-heading {
    margin-bottom: 60px;
}

/* About H2 - UPDATED FOR CONSISTENCY (Consolidated with .projects h2) */
.about-heading h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 200; /* Bold weight for main title */
    font-size: 2.8rem; /* Consistent size for section title */
    color: #f0f0f0; /* High contrast color */
    margin-bottom: 40px;
    text-align: center; 
    text-shadow: 0 0 5px rgba(123, 220, 181, 0.3); /* Subtle shadow for depth */
}

.about-heading p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.about-card {
    background-color: #111;
    border-radius: 15px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 550px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.15);
}

.card-heading {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    color: white;
    margin-bottom: 30px;
}

.card-item {
    text-align: left;
    margin-bottom: 25px;
}

.card-item h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.card-item .institution {
    font-weight: bold;
    color: #7bdcb5;
    margin-bottom: 5px;
    display: block;
}

.card-item .date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.card-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
   
 .hero-background {
    width: 80%;
}
    .about-container {
        padding: 0 20px;
    }

    .cards-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-card {
        max-width: 100%;
    }

    .about-heading h2 {
        font-size: 2.4rem;
    }

    .about-heading p {
        font-size: 1.1rem;
    }
}
/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: #111;
    text-align: center;
}

/* Contact H2 - UPDATED FOR CONSISTENCY (Consolidated with .projects h2) */
.contact h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 200; /* Bold weight for main title */
    font-size: 2.8rem; /* Consistent size for section title */
    color: #f0f0f0; /* High contrast color */
    margin-bottom: 40px;
    text-align: center; 
    text-shadow: 0 0 5px rgba(123, 220, 181, 0.3); /* Subtle shadow for depth */
}

.contact-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-icons li a {
    color: #fff;
    font-size: 2rem;
    transition: color 0.3s;
}

.contact-icons li a:hover {
    color: #7bdcb5;
}
.hero-image img,
.content-card img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Mobile Navigation */
@media (max-width: 768px) {


.name-circle h2 {
    font-size: clamp(1rem, 4vw, 1.4rem);
    line-height: 1.4;
    padding: 0 10px;
}

     .hero-image img,
    .content-card img {
        max-width: 500px; /* Prevent huge scaling */
    }
  

    .hero-name {
        font-size: calc(2rem + 2vw);
    }

    .name-circle h2 {
        font-size: calc(1rem + 1.5vw);
    }

    .vector-background,
    .ellipse-foreground {
        width: 90%;
    }
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: rgba(17, 17, 17, 0.9);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        text-align: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .nav-links.show {
        display: flex;
    }

    /* Adjust Hero Content Width */
    .hero-content {
        width: 100%;
    }
    .gradient-background {
        width: 350px;
        height: 350px;
    }
    /* Projects Section Adjustments */
    .projects h2 {
        font-size: 2.2rem; /* Adjusted for smaller screens */
        margin-bottom: 40px;
    }

    .project-card {
        width: 90%;
    }

    /* About Section Adjustments */
    .about-container {
        padding: 0 20px;
    }

    .cards-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-card {
        max-width: 100%;
    }

    .about-heading h2 {
        font-size: 2.2rem; /* Adjusted for smaller screens */
    }

    .about-heading p {
        font-size: 1.1rem;
    }

    /* Contact Section Adjustments */
    .contact h2 {
        font-size: 2.2rem; /* Adjusted for smaller screens */
    }
}