@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


header {
    background-color: #3a6cf4;
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
}

.logo {
    text-decoration: none;
    color: aliceblue;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
    display: flex;
    align-items: center; /* Aligns the logo and text vertically */
}

    .logo img {
        height: 1.8em; /* Adjust this value to control the size of the logo */
        margin-right: 15px; /* Adds some space between the logo and the text */
    }

.navigation a {
    color: aliceblue;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

    .navigation a:hover {
        color: #601cfc;
    }

section {
    padding: 100px 200px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(figures/Untitled.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    .main h2 {
        color: #3a6cf4;
        font-size: 1.4em;
        font-weight: 500;
    }

        .main h2 span {
            display: inline-block;
            margin-top: 10px;
            color: #4e9eff;
            font-size: 3em;
            font-weight: 600;
        }

    .main h3 {
        color: black;
        font-size: 1.7em;
        font-weight: 700;
        letter-spacing: 1px;
        margin-top: 5px;
        margin-bottom: 5px;
    }


    .main h4 {
        color: #3a6cf4;
        font-size: 1.5em;
        font-weight: 700;
        letter-spacing: 1px;
        margin-top: 5px;
        margin-bottom: 30px;
    }

    .main p {
        color: #52595D;
        font-size: 1.2em;
        font-weight: 500;
        letter-spacing: 1px;
        margin-top: 5px;
        margin-bottom: 30px;
        max-width: 65%; /* Adjust this percentage based on your layout needs */
        text-align: justify;
    }

    .main h5 {
        color: #357EC7;
        font-size: 1.8em;
        font-weight: 700;
        letter-spacing: 1px;
        margin-top: 5px;
        margin-bottom: 30px;
        font-family: 'Palatino Linotype', Palatino, serif; /* Set the font family */
        font-style: italic; /* Apply italic style */
    }

    .main h6 {
        color: #52595D;
        font-size: 1.3em;
        font-weight: 500;
        letter-spacing: 1px;
        margin-top: 5px;
        margin-bottom: 30px;
        max-width: 60%; /* Adjust this percentage based on your layout needs */
        text-align: justify;
        font-style: italic;
    }

.main-btn {
    color: #fff;
    background-color: #3a6cf4;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
}

    .main-btn:hover {
        background-color: #0a49f6;
        transform: scale(1.1);
    }

.social-icons a {
    color: #3a6cf4;
    font-size: 1.7em;
    padding-right: 30px;
}

.title {
    display: flex;
    justify-content: center;
    color: #3a6cf4;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
}

    .card:hover {
        transform: scale(1.1);
    }

    .card .icon {
        color: #3a6cf4;
        font-size: 8em;
        text-align: center;
    }

.info {
    text-align: center;
}

.cards a {
    text-decoration: none;
}

/* Your existing styles */
.info h3 {
    color: #3a6cf4;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
    text-decoration: none; /* Ensure no underline for h3 text */
}

.info p {
    color: #040720;
    font-size: 1.0em;
    font-weight: 500;
    margin: 10px;
    text-decoration: none; /* Ensure no underline */
}

.projects {
    background-color: #000016;
}

    .projects .content {
        margin-top: 30px;
    }

.project-card {
    background-color: #fff;
    border: 1px solid #fff;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

    .project-card:hover {
        transform: scale(1.1);
    }

        .project-card:hover .project-image {
            opacity: 0.9;
        }

.project-image img {
    width: 100%
}

.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: #000;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details {
    text-decoration: none;
    color: #3a6cf4;
}

    .more-details:hover {
        color: #601cfc;
    }

.contact .icon {
    font-size: 4.5em;
}

.contact .info h3 {
    color: #000;
}

.contact .info p {
    font-size: 1.em;
}


/* Container for the entire section, including logos and cards */
.cards-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0; /* Space around the entire section */
}

/* Logo before the cards (on the left) */
.logo-before {
    flex: 0 0 auto; /* Ensure the logo stays at its defined width */
}

/* Logo after the cards (on the right) */
.logo-after {
    flex: 0 0 auto; /* Ensure the logo stays at its defined width */
}

/* Styling the logo before the cards (on the left) */
.logo-before img {
    width: 350px; /* Set the width of the left logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between the logo and the cards */
}

/* Styling the logo after the cards (on the right) */
.logo-after img {
    width: 200px; /* Set the width of the right logo */
    height: auto; /* Maintain aspect ratio */
    margin-left: 20px; /* Space between the logo and the cards */
}


/* Logo before the cards (on the left) */
.logo-before2 {
    flex: 0 0 auto; /* Ensure the logo stays at its defined width */
}

/* Logo after the cards (on the right) */
.logo-after2 {
    flex: 0 0 auto; /* Ensure the logo stays at its defined width */
}

/* Styling the logo before the cards (on the left) */
.logo-before2 img {
    width: 350px; /* Set the width of the left logo */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between the logo and the cards */
}

/* Styling the logo after the cards (on the right) */
.logo-after2 img {
    width: 200px; /* Set the width of the right logo */
    height: auto; /* Maintain aspect ratio */
    margin-left: 20px; /* Space between the logo and the cards */
}

/* Cards content */
.cards {
    flex: 1; /* Allow the cards to take up the remaining space */
    margin: 0 20px; /* Space between the logos and the cards */
}

/* General styles for the image gallery section */
.image-gallery2 {
    padding: 20px;
    text-align: center;
}

    .image-gallery2 .title {
        font-size: 35px;
        margin-bottom: 20px;
    }




.gallery-container {
    display: flex;
    justify-content: center; /* Center align images */
    align-items: center;
    overflow-x: auto; /* Allows horizontal scrolling if necessary */
}

    /* Style for individual images with margin */
    .gallery-container img {
        height: auto; /* Maintain aspect ratio */
        margin-right: 20px; /* Adjust space to the right of each image */
    }

        /* Remove margin for the last image to avoid extra space on the right */
        .gallery-container img:last-child {
            margin-right: 0;
        }

/* Adjust sizes of images from 10% to 100% of container width */
.img1 {
    width: 15%; /* Adjust width as needed */
}

.img2 {
    width: 15%; /* Adjust width as needed */
}

.img3 {
    width: 10%; /* Adjust width as needed */
}

.img4 {
    width: 10.6%; /* Adjust width as needed */
}

.img5 {
    width: 10%; /* Adjust width as needed */
}

.img6 {
    width: 12%; /* Adjust width as needed */
}

.img7 {
    width: 15%; /* Adjust width as needed */
}

.img8 {
    width: 9.3%; /* Adjust width as needed */
}


.footer {
    background-color: #000016;
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

    .footer-title span {
        color: #3a6cf4;
    }

.footer .social-icons a {
    font-size: 1.3em;
    padding: 0 12px 0 0;
}




#Academic\ profile {
    background-color: #f0f8ff; /* Light blue for Academic profile */
    padding: 20px;
}

#Engineering\ profile {
    background-color: #ffe4e1; /* Light coral for Engineering profile */
    padding: 20px;
}

.image-gallery2 {
    background-color: #f0f8ff; /* Beige for Social Gallery */
    padding: 40px;
}

/* Media Queries */
@media (max-width: 1030px) {
    header {
        padding: 10px 50px; /* Adjust padding for medium screens */
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-before img,
    .logo-after img {
        margin: 10px auto; /* Center the logos */
        display: block;
    }
}

@media (max-width: 300px) {
    body {
        font-size: 10px;
    }

    header {
        padding: 10px 10px; /* Reduce padding for very small screens */
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .logo-before img,
    .logo-after img {
        margin: 10px auto; /* Center the logos */
        display: block;
    }
}

@media (max-width: 641px) {
    body {
        font-size: 12px;
    }

    .main-content h2 {
        font-size: 0.8em;
    }

    .main-content h3 {
        font-size: 1.4em;
    }

    header {
        padding: 10px 20px; /* Adjust padding for smaller screens */
    }

    .logo {
        font-size: 1.2em;
    }

    .navigation a {
        font-size: 0.9em;
    }
}