/* Modern Color Palette and Variables */
:root {
    --primary: #00A0B0;  /* Logo blue */
    --primary-light: #33B5C3;
    --secondary: #7AB800;  /* Logo green */
    --secondary-light: #8FCC1A;
    --dark: #1A2F35;
    --gray-dark: #4A5559;
    --gray: #9AA0A6;
    --gray-light: #F0F5F6;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-light: linear-gradient(135deg, rgba(0, 160, 176, 0.1) 0%, rgba(122, 184, 0, 0.1) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 160, 176, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 160, 176, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 160, 176, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, rgba(0, 160, 176, 0.95), rgba(122, 184, 0, 0.95));
    padding: 0.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 160, 176, 0.2);
    backdrop-filter: blur(10px);
    height: 55px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 45px;
    width: auto;
}

.nav-brand span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-left: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    height: 100%;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a.active {
    opacity: 1;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Adjust main content padding to account for shorter navbar */
main {
    padding-top: 55px;
}

/* Hero Video Background - Only for homepage */
.home-hero {
    position: relative;
    padding: 0;
    background: transparent;
    overflow: hidden;
    color: var(--white);
    height: 100vh; /* Full viewport height */
    min-height: 800px; /* Minimum height for larger screens */
    display: flex;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.home-hero .container {
    width: 100%;
    padding-top: 80px; /* Account for navbar */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.4)
    );
}

/* Regular hero sections for other pages */
.hero, .about-hero, .projects-hero, .contact-hero {
    background: var(--gradient-light);
    padding: 6rem 5% 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1, .about-hero h1, .projects-hero h1, .contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero p, .about-hero p, .projects-hero p, .contact-hero p {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto;
}

/* Home hero specific styles */
.home-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.home-hero .hero-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.home-hero .hero-subtitle {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.home-hero .cta-button {
    margin-top: 2rem;
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.home-hero .cta-button:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 160, 176, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.project-info p {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary);
}

/* Contact Form */
.contact-section {
    padding: 4rem 0;
    background: var(--gradient-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Contact Items with Icons */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 160, 176, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-item p,
.contact-item a {
    color: var(--gray-dark);
    text-decoration: none;
    line-height: 1.5;
}

.contact-item:hover i {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 160, 176, 0.1);
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

/* Footer Styles */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo-brand span {
    color: var(--white);
    font-weight: 500;
    font-size: 1.25rem;
}

.footer-logo p {
    color: var(--gray);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.footer-contact,
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact h3,
.footer-nav h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-nav a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact a:hover,
.footer-nav a:hover {
    color: var(--white);
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    margin-top: 2rem;
}

.cta-button:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 160, 176, 0.2);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 160, 176, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Latest Projects Section */
.latest-projects {
    padding: 6rem 0;
    background: var(--gray-light);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

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

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

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

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* About Page Styles */
.about-content {
    padding: 6rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.about-section {
    max-width: 800px;
    margin: 0 auto;
}

/* About Page Animations */
@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.about-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.about-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.about-section h2 i {
    color: var(--accent);
    font-size: 1.5rem;
    transform: scale(0);
    animation: popIn 0.5s ease forwards;
    animation-delay: 0.3s;
}

.about-section p {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    line-height: 1.8;
}

.about-section .projects-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.about-section .projects-list li {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease forwards;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-section .projects-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 0.6s;
}

/* Animation delays for list items */
.about-section .projects-list li:nth-child(1) { animation-delay: 0.4s; }
.about-section .projects-list li:nth-child(2) { animation-delay: 0.5s; }
.about-section .projects-list li:nth-child(3) { animation-delay: 0.6s; }
.about-section .projects-list li:nth-child(4) { animation-delay: 0.7s; }

/* Hover effects */
.about-section:hover h2 i {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

.about-section p:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.about-section .projects-list li:hover {
    transform: translateX(5px);
    color: var(--primary);
    transition: all 0.3s ease;
}

.about-section .projects-list li:hover::before {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.projects-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.projects-list li {
    padding: 1rem 1.5rem;
    background: var(--gradient-light);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(0, 160, 176, 0.1);
    text-align: center;
}

.projects-list li:hover {
    transform: translateY(-2px);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Footer Social Media */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary);
    background: var(--white);
    transform: translateY(-3px);
}

/* Contact Departments */
.contact-departments {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-departments h2 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.department-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.department-info h3 {
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.department-info a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.department-info a:hover {
    color: var(--secondary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 160, 176, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.contact-item:hover i {
    transform: scale(1.1);
    background: var(--primary);
    color: var(--white);
}

/* Base Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Container */
    .container {
        padding: 0 1.25rem;
    }

    /* Hero Sections */
    .hero {
        padding: 6rem 0 3rem;
    }

    .video-background video {
        height: 100%;
        width: auto;
        min-width: 100%;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    /* Features Section */
    .features {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.25rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    /* About Page */
    .about-content {
        padding: 3rem 0;
    }

    .about-grid {
        gap: 2.5rem;
        padding: 0 1.25rem;
    }

    .about-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .about-section p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .projects-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-list li {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Contact Page */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
    }

    .contact-info,
    .contact-departments {
        padding: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1.5rem;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .department-info h3 {
        font-size: 1.2rem;
    }

    /* Footer */
    footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.25rem;
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-logo img {
        height: 35px;
    }

    .footer-logo p {
        font-size: 0.95rem;
        max-width: 300px;
        margin: 0.5rem auto;
    }

    .footer-contact,
    .footer-nav,
    .footer-social {
        align-items: center;
    }

    .footer-contact a,
    .footer-nav a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .feature-card,
    .project-card,
    .contact-info,
    .contact-departments {
        padding: 1.25rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

/* Ensure touch targets are large enough */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .footer-contact a,
    .footer-nav a,
    .social-links a {
        padding: 0.75rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .project-link,
    .cta-button {
        padding: 0.875rem 1.75rem;
        min-height: 44px;
    }
}

/* Improve readability in dark mode */
@media (prefers-color-scheme: dark) {
    .contact-info,
    .contact-departments,
    .feature-card,
    .project-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
} 

/* Mobile Navbar */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(to right, rgba(0, 160, 176, 0.98), rgba(122, 184, 0, 0.98));
        padding: 0.5rem 1rem;
        height: 60px;
    }

    .nav-logo {
        height: 42px;
        background: white;
        border-radius: 8px;
        padding: 6px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }

    .nav-brand span {
        font-size: 1.1rem;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        margin: 5px 0;
        transition: var(--transition);
    }

    .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(5px, -5px);
    }

    .nav-links {
        position: fixed;
        top: 60px; /* Updated to match new navbar height */
        left: 0;
        right: 0;
        background: linear-gradient(to right, rgba(0, 160, 176, 0.98), rgba(122, 184, 0, 0.98));
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 4px 20px rgba(0, 160, 176, 0.2);
        z-index: 1000;
        height: auto;
        max-height: calc(100vh - 60px); /* Updated to match new navbar height */
        overflow-y: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        opacity: 0.9;
        font-size: 1.1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        opacity: 1;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-sm);
    }

    .nav-links a::after {
        display: none;
    }
} 

 

.gallery-section {
    padding: 2rem 0;
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
    padding: 0.5rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* Animation for gallery items */
.gallery-item.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.6s;
} 