body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
/*     color:#e8ecfc; */
    overflow-x: hidden;
}

header {
    background:#00008B;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s ease-out;
}

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

nav .logo {
    font-size: 1.8rem;
    font-weight: 800;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
nav ul li {
    margin: 0 10px;
}
nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover{
    color:#28e2ff;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}
.menu-icon span {
    position: absolute;
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 5px;
    transition: 0.4s;
}
.menu-icon span:nth-child(1) {
    top: 0;
}
.menu-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.menu-icon span:nth-child(3) {
    bottom: 0;
}
.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10%;
}
.menu-icon.active span:nth-child(2) {
    opacity: 0;
}
.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 70%;
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #ffffff;
    font-size:x-large;
    font-weight:bolder;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 9999;
  }

  .item:hover .hover-text {
    opacity: 1;
  }

.home {
    /* background: url('trace.svg') no-repeat center center/cover; */
    color: #191772;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home h1 {
    font-size:10vmin;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    animation: fadeIn 1s ease-in-out;
    margin: 20px 0px;
}

.home p {
    font-size: 1.4em;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.explore-button {
    padding: 0.8rem 2rem;
    background: #451d90;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.2s;
}
.explore-button:hover {
    background: #2a115a;
    transform: scale(1.1);
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity:60%;
}

.floating-icons div {
    position: absolute;
    width: 50px;
    height: 50px;
    background: url('abhinabaProject/ballon.png') no-repeat center;
    background-size:cover;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(-1000px,1000px);
        opacity:60%;
    }
    50% {
        transform: translate(0px, 900px);
        /* opacity:100%; */
    }
    100% {
        transform: translate(0, 1000);
        /* opacity:100%; */
    }
}

.projects {
    padding: 1rem 1rem;
    background: #f7f7f7;
    text-align: center;
}

.projects h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: slideIn 1s ease-out;
}

.projects .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects .item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
    cursor:pointer;
}

.projects .item:hover {
    transform: scale(1.05);
}

.projects .item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.projects .item:hover img {
    transform: scale(1.1);
}

.programs {
    padding: 4rem 1rem;
    background: #cce7ff;
    text-align: center;
}

.programs ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.programs ul li {
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sign-Up Form */
.signup {
    background: #fff;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.signup form {
    display: flex;
    flex-direction: column;
}

.signup form input,
.signup form button {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-width:1px;
    border-color: rgb(255, 255, 255);
    border-radius: 5px;
}

.signup form button {
    background: #221f87;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.signup form button:hover {
    background: #030523;
}

footer {
    background: #0a1462;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.projects2 .project-gallery2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.projects2 .project-item2 {
    background: #fff;
    margin: 0 0.5rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.projects2 .project-item2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.projects2 .project-item2 img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}


/* Responsive Styles */
@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color:#371674;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 999;
        box-shadow: 0 5px 10px rgba(120, 136, 255, 0.3);
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 15px 0;
    }
    nav ul li a {
        font-size: 18px;
    }
    .menu-icon {
        display: block;
    }

    #signup{
        margin: 1rem 1rem;
    }
    .home p{
        font-size:1rem;
    }
}
