:root {
    --color-primary: #00A86B;
    --color-secondary: #102A43;
    --color-bg: #F9FAFB;
    --color-surface: #F5F5F5;
    --color-clients-bg: #E8F5E9;
    --text-primary: #4A4A4A;
    --text-strong: #333333;
    --white: #FFFFFF;
    --white-overlay: rgba(255,255,255,0.9);
    --white-overlay-2: rgba(255,255,255,0.95);
    --footer-dark-1: #0b0c2a;
    --footer-dark-2: #06061a;
    --divider: rgba(255,255,255,0.15);
    --hover-light: #EEEEEE;
    --black: #000000;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --gradient-hero: linear-gradient(135deg, rgba(0,168,107,0.4) 0%, rgba(16,42,67,0.35) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: var(--color-secondary);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #008f5c;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white-overlay-2);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo h2 {
    color: #000080; /* Navy blue */
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-strong);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0,168,107,0.4) 0%, rgba(16,42,67,0.35) 100%);
}

/* Home Page Hero Section with Video Background */
#home.hero {
    background: transparent;
}

#home.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place behind video and overlay */
}

#home.hero .hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 168, 107, 0.3) 0%, rgba(16, 42, 67, 0.3) 100%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--white);
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Services Section */
.services {
    background-color: var(--color-bg);
    padding: 40px 0;
}

.services p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-primary);
}

.services-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.services-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.service-card {
    background: var(--white);
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
    min-width: 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0;
}

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

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin: 0 0 15px 0;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-primary);
    margin: 0;
    flex-grow: 1;
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    background: var(--white);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--color-primary);
    color: var(--white);
}

/* Gallery Section */
.gallery {
    background-color: var(--white);
}

.gallery p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-primary);
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 250px;
    min-width: 300px;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-end;
}

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

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.7));
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.overlay h4 {
    color: var(--white);
    margin: 0 0 5px 0;
}

.overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Clients Section */
.clients {
    /* background: linear-gradient(135deg, #f0f9ff 0%, #e6fffa 100%); */
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
}

.clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 168, 107, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(16, 42, 67, 0.05) 0%, transparent 20%);
    z-index: 0;
}

.clients .container {
    position: relative;
    z-index: 2;
}

/* Note: This is overridden by the more specific rule below to match About Us styling */
.clients h2 {
    position: relative;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 700;
    margin-left: auto;
    margin-right: auto;
}

.clients h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.clients p {
    margin-bottom: 70px;
    text-align: center;
    color: var(--text-strong);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
    font-weight: 500;
}

/* Clients grid — simplified: show only logos (no cards or names), equal sizes, responsive */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
    justify-items: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* If a client item is wrapped in an anchor (linked client), ensure the anchor behaves as the grid item */
.clients-grid > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Each grid cell is a neutral container sized as a square using aspect-ratio */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: visible;
    border: none;
}

/* Hide any text/names — only show images */
.client-logo p {
    display: none !important;
}

/* Logo images: centered and contained, all share the same visual size */
.client-logo img {
    max-height: 70%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

/* Keep layout compact on smaller screens */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 14px;
    }

    .client-logo img {
        width: 72%;
        height: 72%;
        max-width: 120px;
        max-height: 120px;
    }
}

/* Ensure specific section headings are centered and displayed as block for consistent centering */
#gallery .container h2,
#clients .container h2,
#testimonials .container h2 {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Also center inline content of the section containers so inline-block headings align */
#gallery .container,
#clients .container,
#testimonials .container {
    text-align: center !important;
}

/* Strong override: force headings to be block and centered, clear any positional transforms */
#gallery h2,
#clients h2,
#testimonials h2 {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    text-align: center !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Center the Services heading specifically (override inline-block positioning) */
#services .container,
.services .container {
    text-align: center !important;
}

#services h2,
.services h2 {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .client-logo img {
        width: 75%;
        height: 75%;
        max-width: 90px;
        max-height: 90px;
    }
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Enhanced responsive adjustments for clients section */
@media (max-width: 768px) {
    .clients {
        padding: 80px 0;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 30px;
    }

    .client-logo {
        height: 160px;
        padding: 30px 20px;
    }

    .client-logo img {
        max-height: 65px;
    }

    .client-logo p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .client-logo {
        height: 150px;
        padding: 25px 15px;
    }

    .client-logo img {
        max-height: 55px;
    }

    .clients h2 {
        font-size: 2.2rem;
    }
}

/* Certificates Section */
.certificates {
    padding: 80px 0;
    background: var(--color-bg);
    text-align: center;
}

.certificates h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.certificates p {
    font-size: 1rem;
    margin: 0 auto 40px;
    max-width: 650px;
    opacity: 0.85;
}

/* Responsive Centered Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    justify-content: center;
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern UI Certificate Card */
.certificate-card {
    width: 100%;
    max-width: 300px;
    position: relative;
    /* border-radius: 14px; */
    overflow: hidden;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: 0.35s ease-in-out;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

/* Shiny small highlight on hover */
.certificate-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 180%;
    height: 200%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(15deg);
    transition: opacity 0.4s;
    opacity: 0;
}

.certificate-card:hover::after {
    opacity: 1;
    animation: shine 1.2s ease forwards;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(15deg); }
    100% { transform: translateX(100%) rotate(15deg); }
}

/* Image Styles */
.certificate-image-container {
    height: 350px;
    /* border-bottom: 1px solid rgba(0,0,0,0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(30, 135, 30, 0.925); /* Simple clean border */
    object-fit: contain;
    transition: transform 0.45s ease;
}

.certificate-card:hover .certificate-image {
    transform: scale(1.04);
}

/* Title always visible */
.certificate-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    background: rgba(255,255,255,0.85);
    padding: 0 4px 0 4px;
}

h4.certificate-title{
    margin-bottom: 5px;
}

/* Neon Accent on Hover */
.certificate-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .certificate-image-container {
        height: 270px;
    }
}
@media (max-width: 480px) {
    .certificate-image-container {
        height: 220px;
    }
}


/* Testimonials — styled to match certificate cards for clear image display */
.testimonials {
    background-color: var(--color-bg); /* subtle off-white background to separate section */
    padding: 60px 0;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--white); /* solid white cards on soft background for clarity */
    border: 1px solid rgba(16, 42, 67, 0.06); /* subtle cool border */
    box-shadow: 0 8px 18px rgba(16,42,67,0.06);
    transition: 0.28s ease-in-out;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(16,42,67,0.08);
    border-color: rgba(16,42,67,0.12);
}

.testimonial-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -40%;
    width: 180%;
    height: 200%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(15deg);
    transition: opacity 0.4s;
    opacity: 0;
}

.testimonial-card:hover::after {
    opacity: 1;
    animation: shine 1.2s ease forwards;
}

.rating {
    color: #ffc107;
    margin: 15px auto 10px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
}

.testimonial-image-container {
    height: 350px; /* Match certificate large size for letter images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa; /* slight paper background to make white scans readable */
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve letter image, don't crop */
    border: 1px solid rgba(16,42,67,0.06); /* subtle border instead of bright green */
    transition: transform 0.45s ease;
    display: block;
}

.testimonial-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 12px 15px 6px;
}

.client-position {
    margin: 0 15px 18px 15px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .testimonial-image-container { height: 270px; }
}

@media (max-width: 480px) {
    .testimonial-image-container { height: 220px; }
    .testimonial-card { max-width: 100%; }
}

/* About Us */
.about {
    background: linear-gradient(to bottom right, var(--color-bg), #e6f7f0);
    padding: 80px 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-overview {
    text-align: center;
    margin-bottom: 80px;
}

.about-overline {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-overview h2,
.services > .container h2,
.gallery > .container h2,
.clients > .container h2,  /* This overrides the .clients h2 rule */
.testimonials > .container h2,
.contact .contact-info h2,
.certificates > .container h2 {
    font-size: 3rem !important;
    color: var(--color-secondary) !important;
    margin-bottom: 30px !important;
    font-weight: 300 !important;
    text-align: center !important;
    position: relative !important;
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Add a decorative line under specific section headings to match about style */
.about-overview h2::after,
.services > .container h2::after,
.gallery > .container h2::after,
.clients > .container h2::after,
.testimonials > .container h2::after,
.contact .contact-info h2::after,
.certificates > .container h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.about-overview p {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 auto 40px;
    max-width: 900px;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-primary);
}

.team-section {
    margin-bottom: 80px;
}

.team-section h3 {
    font-size: 2.2rem;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
    justify-items: center;
}

.team-member {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* min-height: 420px; */
    width: 100%;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

/* Add a subtle hover effect for better interaction */
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

/* Improved avatar styling */
.avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--color-bg);
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover .avatar {
    transform: scale(1.05);
    border-color: var(--color-primary);
}

.avatar-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    text-align: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Improved name styling */
.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 8px;
    /* Prevent the bio from stretching to fill the card */
    flex: 0 0 auto;
    text-align: center;
}

.team-member:hover .member-name {
    color: var(--color-primary);
}

/* Improved position styling */
.member-position {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Improved bio styling */
.member-bio {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0px;
    line-height: 1.6;
    flex-grow: 1;
    /* display: -webkit-box; */
    /* -webkit-line-clamp: 5;
    -webkit-box-orient: vertical; */
    overflow: hidden;
    text-align: center;
}

/* Expertise tags styling */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--color-surface);
}

.expertise-tag {
    background: var(--color-surface);
    color: var(--color-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.expertise-tag:hover {
    background: var(--color-primary);
    color: var(--white);
}

.mission-section {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(248,249,250,0.3) 100%);
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.mission-card {
    background:
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.05) 0%, transparent 20%),
        linear-gradient(145deg, var(--white), #f8f9fa);
    border-radius: 2rem;
    padding: 3rem 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(0, 0, 0, 0.05),
                inset 0 0 100px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05),
                inset 0 0 100px rgba(255, 255, 255, 0.9);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    z-index: 1;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-header {
    margin-bottom: 1rem;
    position: relative;
}

.mission-header h3 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-align: center;
    letter-spacing: -0.5px;
}

.mission-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin: 0 auto 1rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.4));
}

.mission-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.mission-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 auto 40px;
    max-width: 900px;
    line-height: 1.6;
}

.mission-decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mission-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(2px);
    mix-blend-mode: overlay;
}

.mission-shape-1 {
    width: 120px;
    height: 120px;
    background: var(--color-primary);
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.mission-shape-2 {
    width: 80px;
    height: 80px;
    background: var(--color-secondary);
    bottom: 15%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

.mission-shape-3 {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    top: 40%;
    right: 15%;
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Contact Section */
.contact {
    background-color: var(--color-bg);
    padding: 64px 24px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: stretch;
}

.contact-overline {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

/* Note: This is overridden by the more specific rule above to match About Us styling */
.contact-info h2 {
    margin: 8px 0 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.contact-info p {
    margin-bottom: 32px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.contact-icon-btn {
    margin-right: 16px;
    background: var(--color-primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-btn:hover {
    background: #008a5a;
}

.contact-details {
    flex-grow: 1;
}

.contact-label {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--color-secondary);
}

.contact-text {
    margin: 0;
    color: var(--text-primary);
}

.contact-form-container {
    flex: 1;
    min-width: 320px;
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-form-container h3 {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    margin-bottom: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
}

.form-group input {
    height: 56px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-message {
    margin-top: 16px;
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0b0c2a 0%, #06061a 100%);
    color: var(--white);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 64px;
}

.footer-main {
    padding: 32px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
    line-height: 1.7;
    max-width: 360px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.footer-right {
    flex: 1.2;
}

.footer-contact-map-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
}

.footer-contact {
    flex: 1;
}

.footer-contact-title {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-contact-icon {
    margin-right: 8px;
    color: var(--color-primary);
}

.footer-contact-text {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.map-container {
    flex: 1.2;
    border-radius: 24px;
    overflow: hidden;
    height: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    transform: translateY(-2px);
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.15);
    margin: 0;
}

.footer-bottom-bar {
    text-align: center;
    padding: 16px;
    background-color: #06061a;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Career Pages Specific */
.careers-intro {
    background-color: var(--color-bg);
    padding: 100px 0;
}

.career-info {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.career-info ul {
    margin: 20px 0;
}

.career-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.career-info li i {
    color: var(--color-primary);
    margin-right: 15px;
    margin-top: 8px;
    min-width: 20px;
}

.application {
    background-color: var(--color-bg);
    padding: 100px 0;
}

.application-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Job Cards */
.openings {
    background-color: var(--color-bg);
    padding: 100px 0;
}

.openings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.job-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    max-height: 500px; /* Limit card height */
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.job-card-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-surface);
    padding-bottom: 15px;
}

.job-title {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-location {
    background: var(--color-surface);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-strong);
}

.job-type, .job-salary {
    background: var(--color-surface);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
}

.job-card-body {
    flex-grow: 1;
    margin-bottom: 15px;
    overflow: hidden;
}

.job-description {
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
    /* Limit description height */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-details {
    margin-top: 10px;
}

.job-section {
    margin-bottom: 15px;
}

.job-section:last-child {
    margin-bottom: 0;
}

.job-section h4 {
    color: var(--color-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.job-section ul {
    padding-left: 0;
    margin: 0;
}

.job-section li {
    list-style: none;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: none;
}

.job-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.job-section li i {
    color: var(--color-primary);
    margin-right: 6px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.job-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--color-surface);
    display: flex;
    justify-content: flex-end;
}

.apply-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* Animation for About section elements */
.about-overview {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.team-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.team-member {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }

.mission-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    h2 {
        font-size: 2rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-container {
        min-width: auto;
    }

    .contact {
        padding: 48px 16px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-contact-map-container {
        flex-direction: column;
    }

    .map-container {
        height: 200px;
    }

    .footer-main {
        padding: 24px 16px;
    }

    .services-slider,
    .gallery-slider {
        flex-direction: column;
        align-items: center;
    }

    .services-slider .service-card,
    .gallery-slider .gallery-item {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}