* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    color: #ededed;
    background-color: #081b29;
}

.header {
    position:relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    
    font-size: 30px;
    color: #fff; 
    text-decoration: none;
    font-weight: 500;
    cursor: wait;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    display: inline-block;
    padding: 10px 20px;
    background: rgb(243, 245, 246);
    border-radius: 40px;
    font-size: 13px;
    color: #0a0a0a;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: .5s ease;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 30px #0ef;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.home {
    min-height: 100vh;
    padding: 70px 10% 0;
    display: flex;
    align-items: center;
}
.profile-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px 10px #0f0f10, 
                0 0 60px 20px #0d0d0d, 
                0 0 100px 30px #1e90ff;
                border: .2rem solid var(--primary-color);
                animation: floatImage 3s ease-in-out infinite;
}

.profile-text h3{
    
    opacity: 0;
    animation:  slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.profile-text {
    font-size: 28px;
    flex: 1;
    min-width: 300px;
}
.text{
    color: #0ef;
}
.profile-text h1 {
    font-size: 60px;
    font-weight: 700;
    margin: 10px 0;
    opacity: 0;
    animation: slideBottom 2s ease forwards;
    animation-delay: 1s;
}
.profile-text p{
    font-size: 20px;
    animation: slideRight 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.home-sci {
    margin: 20px 0;
    display: flex;
    gap: 20px;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    color: #0ef;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideBottom 2s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.home-sci a:hover {
    background: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.5s;
    transition: .5s ease;
}

.btn-box:hover {
    box-shadow: 0 0 5px cyan,
                0 0 25px cyan,
                0 0 50px cyan,
                0 0 100px cyan,
                0 0 200px rgb(15, 239, 239);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        background: rgba(8, 27, 41, 0.9);
        flex-direction: column;
        align-items: center;
    }

    .navbar.active {
        display: flex;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }

    .profile-text {
        padding: 0 20px;
    }

    .profile-text h1 {
        font-size: 40px;
    }
}


@keyframes pulse {
    0%, 100% {
        transform: scale();
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}


@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideleft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}
@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}

.background-customization {
    display: flex;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(68, 16, 190, 0.8);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(232, 227, 227, 0.1);
    z-index: 1000;
}

.background-customization label {
    margin-right: 5px;
    font-size: 14px;
}

.background-customization input {
    margin-bottom: 10px;
    display: block;
}
.about {
    padding: 50px 10%;
    background-color: #081b29;
    color: #ededed;
}

.about h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #fff;
    display: inline-block;
    padding-right: 5px;
    animation: typing 7s steps(10) 1s infinite, blink 0.75s step-end infinite;
}
.about-line {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.about-line:nth-child(1) {
    animation-delay: 0.5s;
}

.about-line:nth-child(2) {
    animation-delay: 3s;
}

.about-line:nth-child(3) {
    animation-delay: 2s;
}

.about-line:nth-child(4) {
    animation-delay: 3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes typing {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink {
    0%,
    50%,
    100% {
        border-color: transparent;
    }
    25%,
    75% {
        border-color: #fff;
    }
}
.image{
    margin-top: 20px;
    display: flex;
    width: 400px;
    height: 400px;
    cursor: pointer;
    border-radius: 10%;
    flex: auto;
    object-fit: cover;
    box-shadow: 0 0 30px 10px #0f0f10, 
                0 0 60px 20px #0d0d0d, 
                0 0 100px 30px #1e90ff;
    border: 1px solid black;
    opacity: 0;
    animation: fadeInUp 7s ease forwards;
    animation-delay: 0.1s;
}
.carousel-container {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
}

.carousel {
    display: flex;
    gap: 20px;
    animation: carousel-animation 10s linear infinite;
}

.carousel-item {
    position: relative;
    flex: 0 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Effect */
.carousel-item:hover {
    transform: scale(1.1);
}

/* Tooltip Styling */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Tooltip */
.tooltip.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Carousel Animation */
@keyframes carousel-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-container {
        width: 100%;
    }

    .carousel-item {
        width: 150px;
        height: 150px;
    }

    .tooltip {
        font-size: 12px;
    }
}
/* Web App Image */
.web_app_pic {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    border: 5px solid #232423;
    box-shadow: 0 0 20px rgba(13, 14, 14, 0.7);
    transition: transform 0.3s ease-in-out;
}

.web_app_pic:hover {
    transform: scale(1.05);
}

/* Black Background for Section */

#services {
    cursor: pointer;
    padding: 60px 20px;
    background-color: none;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-heading {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-item {
    background-color: rgba(8, 8, 8, 0.189);
    border: 1px solid #0ef;
    border-radius: 10px;
    box-shadow: 0 4px 20px #0ef;
    width: 250px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 40px;
    color: #eef4ee;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 20px;
    color: #f7f2f2;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: #fbf9f9;
    line-height: 1.6;
}
#projects {
    background-color: none;
    color: white;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.projects-container h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.search-bar-container {
    margin-bottom: 20px;
}

#search-bar {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f1f1f1;
}

.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-item {
    background-color: #0e151165;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hide all projects initially */
    transition: transform 0.3s ease-in-out;
}

.project-item h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.project-item p {
    color: #ccc;
    font-size: 14px;
}

.project-item.show {
    display: block; /* Show matching projects */
}
/* Publication Section */
/* Base styles */
.publication-container {
    background-color: #fff;
    padding: 40px;
    margin: 50px auto;
    width: 80%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.publication-link .btn {
    background-color: #0056b3;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.publication-link .btn:hover {
    background-color: #004085;
    transform: translateY(-5px);
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .publication-container {
        width: 90%; /* Adjust width for smaller screens */
        padding: 20px; /* Reduce padding */
        margin: 20px auto; /* Reduce margin */
    }

    .publication-link .btn {
        padding: 10px 20px; /* Adjust button padding */
        font-size: 14px; /* Reduce font size */
    }
}

@media (max-width: 480px) {
    .publication-container {
        width: 95%; /* Further reduce width for very small screens */
        padding: 15px; /* Further reduce padding */
    }

    .publication-link .btn {
        padding: 8px 15px; /* Smaller button padding for very small screens */
        font-size: 12px; /* Smaller font size */
    }
}

/* Contact Form Section */
footer {
    background-color: none;
    color: white;
    padding: 40px 0;
    font-size: 16px;
}

footer h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    animation: fadeIn 1.5s forwards 0.5s;
}

footer .form-label {
    font-size: 14px;
    color: #ddd;
}

footer .form-control {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

footer .form-control:focus {
    border-color: #0056b3;
    outline: none;
}

footer button {
    background-color: #0056b3;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

footer button:hover {
    background-color: #004085;
    transform: translateY(-5px);
}

/* Footer Links and Contact Info */
footer .footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
}

footer .footer p {
    margin: 5px 0;
}

footer .footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer .footer a:hover {
    color: #ff6600;
}

/* Social Media & Copyright */
footer .copyright {
    margin-top: 20px;
    font-size: 12px;
    color: #bbb;
}

/* Animation Effects */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .publication-container {
        width: 90%;
    }

    footer .container {
        padding: 0 15px;
    }

    footer .form-label {
        font-size: 12px;
    }

    footer .form-control {
        font-size: 14px;
    }

    footer button {
        font-size: 14px;
    }
}