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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Height of fixed header */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;  /* Increased from 2rem to 5rem */
    position: fixed;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    height: 80px;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #210093;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: -0.5rem;  /* Pull slightly left */
}

.brand-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

nav a {
    text-decoration: none;
    color: #210093;
    font-weight: 500;
}

nav a:hover {
    color: #000066;
}

.hero {
    min-height: 50vh;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 10px;
    padding-top: 100px;
    background: linear-gradient(135deg, #210093, #000066);
    color: white;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.primary-btn {
    background: white;
    color: #210093;
}

.primary-btn:hover {
    color: #000066;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-3px);
}

section {
    padding: 5rem 5%;
}

.projects {
    background: #eeeef5;  /* Slightly darker gray */
}

.projects h2 {
    font-size: 2.5rem;
    color: #210093;
    margin-bottom: 2.5rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

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

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

.project-card:hover h3 {
    color: #210093;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #210093;
    transition: height 0.3s ease;
}

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

.project-card h3 {
    color: #210093;
    margin-bottom: 1rem;
}

.project-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #210093;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.project-link.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.project-card:hover .project-link.disabled {
    background: #ccc;
}

.project-link:hover {
    background: #000066;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.public {
    background: rgba(33, 0, 147, 0.1);
    color: #210093;
}

.project-status.private {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

footer {
    background: linear-gradient(135deg, #210093, #000066);
    color: white;
    padding: 4rem 5% 1.5rem;
}

.footer-wrapper {
    max-width: 100%;
    margin: 0 0;
    padding: 0 2rem; /* Reduced padding for left and right */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjusted to 4 columns */
    gap: 2rem; /* Reduced gap for better spacing */
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 350px;  /* Added max-width to keep content contained */
    margin: 0 auto;    /* Center the container */
}

.footer-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    text-align: left;
    max-width: 300px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 350px;
    margin: 0 auto;
    text-align: center; /* Center align content */
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
    gap: 0.8rem;
    padding: 0;
    justify-content: center; /* Center-align the grid */
}

.footer-links ul li {
    margin-bottom: 1rem; /* Increased margin for better spacing */
    text-align: center; /* Align text to the center */
}

.footer-links ul li a {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #DDDDF0;
    opacity: 1;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 350px;
    margin: 0 auto;
}

.footer-contact .contact-btn {
    margin-top: 1.5rem;
}

.footer-contact .contact-btn i {
    margin-right: 8px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #210093;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #DDDDF0;
    transform: translateY(-3px);
}

.teams {
    background: #DDDDF0;  /* Lighter shade */
    padding: 5rem 5%;
}

.teams h2 {
    font-size: 2.5rem;
    color: #210093;
    margin-bottom: 2rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 102, 0.15);
}

.team-member:hover .member-image {
    transform: scale(1.05);
    border: 3px solid #210093;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image::before {
    content: '\f007';  /* FontAwesome user icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #210093;
    opacity: 0.7;
}

.team-member h3 {
    color: #210093;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #636e72;
}

.about {
    background: #DDDDF0;
    padding-top: calc(80px + 5%);
    padding: 6rem 5%;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    color: #210093;
    margin-bottom: 2.5rem;
    text-align: center;
}

.about-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #210093;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #eeeef5;  /* Matching the sections */
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 102, 0.05);
}

.feature:hover {
    transform: translateY(-5px);
    border: 1px solid #210093;
}

.feature h3 {
    color: #210093;
    margin-bottom: 1rem;
}

.feature p {
    color: #636e72;
}

.feature i {
    font-size: 2.5rem;
    color: #210093;
    margin-bottom: 1.5rem;
}

.feature:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.project-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #210093;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    margin-right: 0;  /* Reset margin */
}

.hamburger {
    position: relative;
    width: 32px;
    height: 24px;  /* Fixed height */
}

.hamburger div {
    width: 100%;
    height: 3px;
    background: #210093;
    margin: 5px 0;  /* Even spacing */
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger div:first-child {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger div:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger div:last-child {
    transform: rotate(-45deg);
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.tech-stack {
    margin-top: 1rem;
}

.tech-stack h4 {
    font-size: 1rem;
    color: #210093;
    margin-bottom: 0.5rem;
}

.tech-stack ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack ul li {
    background: #eeeef5;
    color: #210093;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center; /* Center the icons */
}

.social-links span {
    font-size: 1rem;
    color: white;
    font-weight: 500;
}

.social-links a {
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #DDDDF0;
    transform: scale(1.1);
}

.social-links img.social-icon {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links img.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.review-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: #210093;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    text-align: center; /* Center the button */
}

.review-btn:hover {
    background: #000066;
}

.footer-social {
    text-align: center;
    margin: 0 auto; /* Center-align content */
}

.footer-social h4 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-social p {
    font-size: 1rem;
    color: #DDDDF0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;  /* Keep horizontal layout */
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;  /* Adjusted padding for mobile */
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 100vh;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 40px 10px;
        padding-top: unset;
        background: linear-gradient(135deg, #210093, #000066);
        color: white;
        position: relative;
    }
    
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        max-width: 600px;
        opacity: 0.9;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .about h2 {
        font-size: 2rem;
    }

    .projects h2 {
        font-size: 2rem;
    }

    .teams h2 {
        font-size: 2rem;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }
    

    .team-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .about-intro {
        font-size: 1rem;
    }

    .project-intro {
        font-size: 1rem;
    }

    nav {
        padding: 1rem 5%;
    }

    .nav-toggle {
        display: block;
        position: relative;
        right: 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.nav-active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    nav a {
        font-size: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand, 
    .footer-brand p {
        text-align: center;
        align-items: center;
    }

    .footer-links ul li a:hover {
        padding-left: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        width: fit-content;
        margin: 0 auto;
    }

    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-contact p {
        text-align: center;
    }

    .footer-contact h4 {
        text-align: center;
    }
}
