@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: #3bbdc2; 
    color: #2C5F2D;
}

#header {
    width: 100%;
    background: #3bbdc2;
}

/* Ensure the header takes full height only on the home page */
body.home #header {
    height: 100vh;
    padding-top: 80px; /* Add padding to account for the fixed navbar */
}

/* For non-home pages, set a smaller height for the header */
body:not(.home) #header {
    height: auto; /* Let the content determine the height */
    padding-top: 80px; /* Add padding to account for the fixed navbar */
}

/* Fix the navbar at the top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #3bbdc2;
    z-index: 1000;
    padding: 10px 5%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.container {
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Remove default underline for all links */
a {
    text-decoration: none; /* Prevent browser default underline on hover */
}

.logo {
    font-size: 3rem;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    text-decoration: none;
    color: #fff;
    transform: scale(1.1);
}

.logo span {
    color: #2C5F2D;
}

.logo span:hover {
    color: #2C5F2D;
}

.header-text span {
    color: #2C5F2D;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default, shown on smaller screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #2C5F2D;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.nav-menu li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

.nav-menu li a {
    color: #fff;
    font-size: 18px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a.active {
    color: #2C5F2D;
    font-weight: 600;
}

.nav-menu li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #2C5F2D;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover {
    text-decoration: none;
    color: #2C5F2D;
}

/* Hero Section: Side-by-side layout by default (for larger screens) */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10%;
    gap: 40px; /* Increased gap for better spacing */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.header-text {
    flex-basis: 50%;
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-text h1 {
    color: white;
    font-size: 50px;
    margin-top: 20px;
    margin-bottom: 1rem;
}

.header-text p {
    color: #2C5F2D;
    margin-bottom: 15px;
    align-self: flex-start;
}

.header-text .resume-btn {
    margin-top: 15px;
    align-self: flex-start;
}

.home-img {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    border: 5px solid #FF6E40;
    box-shadow: 0 0 25px rgba(255,110, 64, 0.7);
    cursor: pointer;
    transition: box-shadow 0.3s ease-in-out;
    object-fit: cover;
}

.home-img img:hover {
    box-shadow: 0 0 25px rgba(255,110, 64, 0.7),
                0 0 50px rgba(255,110, 64, 0.7),
                0 0 100px rgba(255,110, 64, 0.7);
}

/* Hero Quote Styles */
.hero-quote {
    text-align: center;
    width: 100%;
    margin-top: -10px; /* Shifted upwards from 20px to 10px */
}

.hero-quote p {
    font-size: 18px;
    font-style: italic;
    color: #fff; /* White text to contrast with the background */
    line-height: 1.5;
    max-width: 700px; /* Limit the width for readability */
    margin: 0 auto; /* Center the quote */
}

/* Logo Slider Styles */
.logo-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 10rem; /* Increased to separate from contact section */
    height: 120px; /* Fixed height to prevent overlap */
}

.logo-slide-track {
    display: flex;
    width: calc(150px * 8); /* Width based on number of slides (4 logos + 4 duplicates) */
    animation: slide 20s linear infinite;
}

.logo-slide {
    flex: 0 0 150px; /* Fixed width for each logo */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,110,64,0.5));
}

/* Animation for right-to-left slide */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 4)); /* Move by the width of original logos */
    }
}

/* About Section Styles */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    color: #2C5F2D;
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    color: #2C5F2D;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: #2C5F2D;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #2C5F2D;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 100%;
}

.tab-contents ul li {
    color: #2C5F2D;
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #2C5F2D;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    color: #ff004f;
    display: block;
}

#research {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.research-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.research-paragraphs {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(255,110, 64, 0.2);
    transition: box-shadow 0.3s ease;
    max-width: 1000px;
    width: 100%;
}

.research-paragraphs:hover {
    box-shadow: 0 0 25px rgba(255,110, 64, 0.4);
}

.research-paragraphs p {
    font-size: 16px;
    line-height: 1.8;
    color: #ababab;
    margin-bottom: 15px;
    text-align: justify;
}

.research-paragraphs p strong {
    color: #fff;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.research-list {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 20px;
    justify-items: center;
}

.research-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 350px;
    width: 100%;
}

.research-card:hover {
    text-decoration: none;
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(255,110, 64, 0.5);
}

.research-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.research-description {
    font-size: 16px;
    color: #ababab;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.research-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.learn-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2C5F2D;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.learn-more-btn:hover {
    text-decoration: none;
    background: #2C5F2D;
    color: #fff;
    transform: scale(1.05);
}

.research-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.research-card:nth-child(1) { animation-delay: 0.2s; }
.research-card:nth-child(2) { animation-delay: 0.4s; }
.research-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style the Download Resume button */
.resume-btn {
    display: inline-block;
    padding: 10px 30px;
    background: #2C5F2D;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-btn:hover {
    text-decoration: none;
    background: #2C5F2D;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(44,95,45, 0.5);
}

/* Contact Section */
#contact {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    margin-top: 80px; /* Increased to move section further down */
}

#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
}

.social-icons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    font-size: 40px;
    color: #2C5F2D;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Adjust icon size in the header */
.header-text .social-icons a {
    font-size: 30px;
}

/* Adjust icon size in the contact section */
#contact .social-icons a {
    font-size: 40px;
}

.social-icons a:hover {
    text-decoration: none;
    color: #2C5F2D;
    transform: scale(1.2);
}

/* Footer Section */
.footer {
    width: 100%;
}

.footer .copyright {
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
    margin-bottom: 2rem;
}

.footer a {
    color: #ff004f;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #e60047;
}

/* Styles for other sections */
#awards, #news, #gallery {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

/* Awards Section Styles */
.awards-content {
    text-align: center;
    width: 100%;
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on larger screens */
    grid-gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.award-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.award-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.award-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,110, 64, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.award-card:hover {
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255,110, 64, 0.4);
}

.award-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.award-card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.award-card p {
    font-size: 16px;
    color: #ababab;
    line-height: 1.6;
    text-align: justify;
}

/* Center the box in the Awards section (for single award display, if needed) */
#awards .research-paragraphs {
    margin: 0 auto;
    text-align: center;
}

/* News Section Styles */
.news-content {
    text-align: center;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
    margin-top: 20px;
}

.news-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.news-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.news-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255,110, 64, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    text-decoration: none;
    box-shadow: 0 0 25px rgba(255,110, 64, 0.4);
}

.news-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-align: center;
}

.news-card img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
    transition: transform 0.3s ease;
}

/* Temporary debug border to check if the image area is visible */
.debug-border {
    border: 2px solid red; /* Remove this after debugging */
}

.news-card .learn-more-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2C5F2D;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.news-card .learn-more-btn:hover {
    text-decoration: none;
    background: #2C5F2D;
    color: #fff;
    transform: scale(1.05);
}

/* Gallery Grid Layout with Flip Cards */
.gallery-content {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 photos per row on larger screens */
    grid-gap: 20px;
    margin-top: 20px;
    justify-items: center;
    padding: 0 20px; /* Add padding to create space on the sides */
    width: 100%; /* Ensure the grid takes the full width of its container */
}

.gallery-item {
    position: relative;
    max-width: 350px;
    width: 100%;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px; /* Default height for larger screens */
    perspective: 1000px; /* Add perspective for 3D effect */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front {
    background: #2C5F2D;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the area without distortion */
    border-radius: 10px;
}

.flip-card-back {
    background: #2C5F2D;
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255,110, 64, 0.2);
}

.flip-card-back p {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* Hover effect for the card */
.flip-card:hover {
    text-decoration: none;
    box-shadow: 0 0 15px rgba(255,110, 64, 0.5);
}

/* Responsive adjustments */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
        padding: 10px 3%;
    }

    .header-content {
        gap: 60px; /* Increased gap for larger screens */
    }

    .header-text h1 {
        font-size: 60px;
    }

    .header-text {
        font-size: 35px;
    }

    .header-text .resume-btn {
        margin-left: 5rem;
    }

    .home-img img {
        max-width: 450px;
    }

    .nav-menu li a {
        font-size: 20px;
    }

    .logo-slide {
        flex: 0 0 180px; /* Larger logos on bigger screens */
        height: 120px;
    }

    .logo-slide-track {
        width: calc(180px * 8);
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 4));
        }
    }

    #contact {
        margin-top: 100px; /* Larger margin for bigger screens */
    }

    .logo-slider {
        margin-bottom: 60px; /* Increased bottom margin */
        height: 140px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: row;
        gap: 30px; /* Adjusted gap for laptops */
    }

    .header-text {
        flex-basis: 50%;
    }

    .home-img {
        flex-basis: 40%;
    }

    .header-text h1 {
        font-size: 40px;
    }

    .header-text {
        font-size: 25px;
    }

    .home-img img {
        max-width: 350px;
    }

    .hero-quote p {
        font-size: 16px;
        max-width: 90%; /* Adjust width for smaller screens */
    }

    .research-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px; /* Reduced gap to prevent overflow */
    }

    .research-paragraphs {
        max-width: 90%; /* Adjusted to fit within laptop screens */
        padding: 20px;
    }

    .research-list {
        max-width: 90%; /* Adjusted to fit within laptop screens */
    }

    .research-card {
        max-width: 100%; /* Ensure cards fit within the container */
    }

    .awards-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
        grid-gap: 20px;
    }

    .award-card img {
        max-width: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 photos per row on screens 1024px and below */
        grid-gap: 15px;
        padding: 0 15px; /* Adjust padding for medium screens */
    }

    .gallery-item {
        max-width: 400px; /* Slightly increase width for better visibility */
    }

    .flip-card {
        height: 350px; /* Slightly increase height for better visibility */
    }

    .flip-card-back p {
        font-size: 16px; /* Keep description readable */
    }

    .news-list {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
    }

    .news-card img {
        max-width: 500px;
    }

    .logo-slide {
        flex: 0 0 120px; /* Smaller logos on medium screens */
        height: 80px;
    }

    .logo-slide-track {
        width: calc(120px * 8);
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 4));
        }
    }

    #contact {
        margin-top: 70px; /* Adjusted for medium screens */
    }

    .logo-slider {
        margin-bottom: 40px; /* Adjusted bottom margin */
        height: 100px;
    }
}

@media (max-width: 768px) {
    /* Show hamburger menu and adjust nav menu */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 70px; /* Below the navbar */
        right: 0;
        background: #1a1a1a;
        width: 200px;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        border-radius: 0 0 0 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu li {
        display: block;
        margin: 10px 0;
    }

    .nav-menu li a {
        font-size: 16px;
    }

    /* Reorder hero section: image first, then text */
    .header-content {
        flex-direction: column;
        text-align: center;
        margin-top: 5%;
        gap: 20px;
    }

    .header-text {
        order: 2; /* Place text after the image */
        flex-basis: 100%;
        align-items: center; /* Center all items in the flex container */
    }

    .home-img {
        order: 1; /* Place image first */
        flex-basis: 100%;
        margin-top: 20px;
    }

    .header-text h1 {
        font-size: 35px;
    }

    .header-text {
        font-size: 20px;
    }

    .header-text p {
        align-self: center;
    }

    .header-text .resume-btn {
        align-self: center;
    }

    .home-img img {
        max-width: 300px;
    }

    .hero-quote {
        margin-top: 5px; /* Shifted upwards from 15px to 5px */
    }

    .hero-quote p {
        font-size: 14px;
        max-width: 100%; /* Full width on mobile */
        padding: 0 10px; /* Add padding to prevent edge touching */
    }

    .research-cards {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }

    .research-paragraphs {
        max-width: 100%;
        padding: 20px;
    }

    .research-list {
        max-width: 100%;
    }

    .awards-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
        grid-gap: 15px;
    }

    .award-card img {
        max-width: 100%;
    }

    .award-card h3 {
        font-size: 18px;
    }

    .award-card p {
        font-size: 14px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 photos per row on mobile */
        grid-gap: 10px;
        padding: 0 10px; /* Adjust padding for mobile screens */
        width: 100%;
    }

    .gallery-item {
        max-width: 100%;
        width: 100%;
    }

    .flip-card {
        height: 0;
        padding-bottom: 100%; /* 1:1 aspect ratio (square) */
        position: relative;
    }

    .flip-card-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .flip-card-front img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .flip-card-back p {
        font-size: 14px;
    }

    .social-icons a {
        font-size: 30px;
    }

    .header-text .social-icons a {
        font-size: 25px;
    }

    .resume-btn {
        padding: 8px 25px;
        font-size: 14px;
    }

    .footer .copyright {
        font-size: 14px;
        margin-top: 30px;
        margin-bottom: 1.5rem;
    }

    .logo {
        font-size: 2rem; /* Reduce logo size on mobile */
    }

    .sub-title {
        font-size: 40px; /* Reduce section title size on mobile */
    }

    .research-paragraphs p {
        font-size: 14px; /* Reduce paragraph font size for better readability */
    }

    .news-list {
        grid-template-columns: 1fr; /* Stack news items vertically on mobile */
        grid-gap: 15px;
    }

    .news-card img {
        max-width: 100%;
    }

    .news-card h3 {
        font-size: 18px;
    }

    .news-card .learn-more-btn {
        font-size: 14px;
        padding: 8px 16px;
        background: #2C5F2D;
        color: #fff;
    }

    .news-card .learn-more-btn:hover {
        color: #fff;
        background: #2C5F2D;
    }

    .logo-slide {
        flex: 0 0 100px; /* Smaller logos on mobile */
        height: 60px;
    }

    .logo-slide-track {
        width: calc(100px * 8);
        animation: slide 15s linear infinite; /* Faster animation on mobile */
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 4));
        }
    }

    #contact {
        margin-top: 60px; /* Adjusted for mobile */
    }

    .logo-slider {
        margin-bottom: 30px; /* Adjusted bottom margin */
        height: 80px;
    }
}

/* Additional media query for very small screens (e.g., 480px and below) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem; /* Further reduce logo size */
    }

    .nav-menu {
        width: 150px; /* Reduce menu width on very small screens */
    }

    .nav-menu li a {
        font-size: 14px; /* Further reduce font size */
    }

    .header-text h1 {
        font-size: 28px; /* Further reduce heading size */
    }

    .header-text {
        font-size: 16px; /* Further reduce text size */
    }

    .home-img img {
        max-width: 250px; /* Further reduce image size */
    }

    .hero-quote p {
        font-size: 12px; /* Further reduce font size for very small screens */
    }

    .sub-title {
        font-size: 32px; /* Further reduce section title size */
    }

    .research-paragraphs p {
        font-size: 12px; /* Further reduce paragraph font size */
    }

    .resume-btn {
        padding: 6px 20px;
        font-size: 12px; /* Further reduce button text size */
    }

    .header-text .social-icons a {
        font-size: 20px; /* Further reduce social icon size */
    }

    .awards-list {
        grid-template-columns: 1fr; /* 1 column on very small screens */
        grid-gap: 10px;
    }

    .award-card h3 {
        font-size: 16px;
    }

    .award-card p {
        font-size: 12px;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 photos per row on very small screens */
        grid-gap: 8px;
        padding: 0 8px; /* Adjust padding for very small screens */
        width: 100%;
    }

    .gallery-item {
        max-width: 100%;
        width: 100%;
    }

    .flip-card {
        height: 0;
        padding-bottom: 100%; /* Maintain 1:1 aspect ratio */
    }

    .flip-card-front img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .flip-card-back p {
        font-size: 12px;
    }

    .news-card h3 {
        font-size: 16px;
    }

    .news-card img {
        max-width: 100%;
    }

    .news-card .learn-more-btn {
        font-size: 12px;
        padding: 6px 12px;
        background: #2C5F2D;
        color: #fff;
    }

    .news-card .learn-more-btn:hover {
        color: #fff;
        background: #2C5F2D;
    }

    .logo-slide {
        flex: 0 0 80px; /* Even smaller logos on very small screens */
        height: 50px;
    }

    .logo-slide-track {
        width: calc(80px * 8);
        animation: slide 12s linear infinite; /* Faster animation on small screens */
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-80px * 4));
        }
    }

    #contact {
        margin-top: 50px; /* Smaller margin for very small screens */
    }

    .logo-slider {
        margin-bottom: 20px; /* Minimal bottom margin */
        height: 60px;
    }
}
