/* Base Styles & Variables - Light Theme */
:root {
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    
    --color-green: #2e7d32;
    --color-green-light: #4caf50;
    --color-green-glow: rgba(76, 175, 80, 0.2);
    
    --color-yellow: #f57f17;
    --color-yellow-light: #ffb300;
    --color-yellow-glow: rgba(255, 179, 0, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 25px;
}

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

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

/* Top Bar */
.top-bar {
    background-color: var(--bg-gray);
    padding: 10px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--color-green);
}

/* Header */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease;
}

#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: padding 0.3s ease;
}

#main-header.scrolled .header-container {
    padding: 8px 20px;
}

.logo img {
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-hero-logo {
    height: 180px;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-green);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active {
    color: var(--color-green);
}
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Split Portal Section (index.html) */
.split-portal {
    display: flex;
    height: calc(100vh - 120px); /* Adjust for header height */
    width: 100%;
    overflow: hidden;
}

.split-pane {
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Shine effect on hover */
.split-pane::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0s; /* No reverse animation */
    z-index: 5;
    pointer-events: none;
}

.split-pane:hover::after {
    left: 200%;
    transition: left 2.5s ease; /* Animate only on hover, much slower */
}

.split-pane:hover {
    flex: 1.6;
}

.split-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.split-pane:hover .split-bg {
    transform: scale(1.15);
    filter: brightness(1.15);
}

.split-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    transition: background 0.5s ease;
    z-index: 2;
}

.split-pane:hover .split-overlay {
    background: rgba(0,0,0,0.3);
}

.split-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.split-content h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    transition: transform 0.5s ease;
}

.split-pane:hover .split-content h2 {
    transform: translateY(-10px);
}

.split-content p {
    font-size: 1.2rem;
    color: #f0f0f0;
    max-width: 450px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 30px;
}

.split-pane:hover .split-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.btn-explore {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.split-pane:hover .btn-explore {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.split-pane.green .btn-explore {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}
.split-pane.yellow .btn-explore {
    background: linear-gradient(135deg, #ffc107 0%, #f57f17 100%);
    color: #111;
}

/* Page Headers (Hero for internal pages) */
.page-header {
    padding: 200px 0 150px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}

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

.page-header h1 {
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #e0e0e0;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card-img {
    height: 380px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Shine effect strictly on image */
.service-card-img::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0s; /* No reverse animation */
    z-index: 5;
    pointer-events: none;
}

.service-card:hover .service-card-img::after {
    left: 200%;
    transition: left 2.5s ease; /* Animate only on hover, much slower */
}

.service-card:hover .service-card-img {
    transform: scale(1.1);
    filter: brightness(1.15);
}

.service-card-content {
    padding: 35px 30px;
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-top: 4px solid var(--border-color);
    flex-grow: 1;
}

.green-theme .service-card-content { border-top-color: var(--color-green); }
.yellow-theme .service-card-content { border-top-color: var(--color-yellow); }

.service-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.green-theme .service-card i { color: var(--color-green-light); }
.yellow-theme .service-card i { color: var(--color-yellow-light); }

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* New Contact Section */
.contact-section {
    padding: 60px 0 100px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-blocks {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--color-green);
    background: rgba(76, 175, 80, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.info-item p, .info-item a {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.contact-form-side {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

/* Scroll Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card.reveal-element:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card.reveal-element:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card.reveal-element:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card.reveal-element:nth-child(4) { transition-delay: 0.4s; }
.services-grid .service-card.reveal-element:nth-child(5) { transition-delay: 0.5s; }
.services-grid .service-card.reveal-element:nth-child(6) { transition-delay: 0.6s; }

/* Continuous Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.info-section img {
    animation: float 10s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

.contact-form-side h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.custom-form .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-form .form-control:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Custom Animated Contact Buttons */
.btn-whatsapp, .btn-email {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white !important;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.btn-email {
    background: linear-gradient(135deg, #444 0%, #111 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-email:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Shine effect on hover */
.btn-whatsapp::after, .btn-email::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    z-index: -1;
}

.btn-whatsapp:hover::after, .btn-email:hover::after {
    left: 200%;
}

.btn-submit {
    background-color: var(--text-main);
    color: white;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--bg-gray);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col p, .footer-col a {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-green);
}

.footer-col a i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .portal-cards {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

/* Increase major heading sizes */
.split-content h2 { font-size: 4.5rem; margin-bottom: 25px; line-height: 1.1; }
.page-header h1 { font-size: 4.2rem; margin-bottom: 15px; }
.info-section h2 { font-size: 3.5rem; margin-bottom: 25px; line-height: 1.2; }

@media (max-width: 768px) {
    .split-content h2 { font-size: 2.8rem; }
    .page-header h1 { font-size: 2.8rem; }
    .info-section h2 { font-size: 2.2rem; }
}

/* Typewriter Cursor Effect */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--color-yellow);
    margin-left: 4px;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .page-header, .stats-section, .split-pane {
        background-attachment: scroll !important;
    }
    
    .header-hero-logo {
        height: 135px !important;
        margin-bottom: 20px !important;
    }

    .split-portal {
        flex-direction: column;
    }
    
    .top-bar {
        display: none;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-light);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        max-height: 300px;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-top: 1px solid var(--border-color);
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.fab-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.fab-whatsapp {
    background: #25D366;
}
.fab-whatsapp:hover {
    background: #128C7E;
}

.fab-email {
    background: #007bff; /* Nice blue for email to contrast with green */
}
.fab-email:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
/* Premium MADES Button */
.btn-mades {
    background: linear-gradient(135deg, var(--color-green), #1b4d2e);
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-mades::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-mades:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 106, 79, 0.5);
}

.btn-mades:hover::before {
    left: 150%;
}

.btn-mades i {
    transition: transform 0.3s ease;
}

.btn-mades:hover i {
    transform: translateX(6px) scale(1.1);
}

/* --- Metrics & Trust Sections --- */
.stats-section {
    background: linear-gradient(rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.85)), url('../img/InicioHambiental.jpg') center/cover fixed;
    padding: 100px 20px;
    color: white;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-item h3 {
    font-size: 4rem;
    color: var(--color-green);
    margin-bottom: 10px;
    font-weight: 800;
}
.stat-item p {
    font-size: 1.1rem;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.clients-section {
    padding: 80px 20px;
    background: white;
    text-align: center;
}
.clients-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 50px;
}
.client-logo {
    font-size: 1.8rem;
    color: #a0a0a0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    cursor: default;
}
.client-logo:hover {
    color: var(--color-green);
    transform: scale(1.1) translateY(-5px);
}

.projects-section {
    padding: 80px 20px 100px;
    background: #f8f9fa;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
.project-img {
    height: 250px;
    background: #ccc center/cover;
}
.project-info {
    padding: 30px;
}
.project-info h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.project-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Infinite Logo Carousel --- */
.clients-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 40px 0;
    margin-top: 20px;
    background: white;
}
/* Fading edges for the carousel */
.clients-carousel-wrapper::before,
.clients-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.clients-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}
.clients-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.clients-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll-carousel 30s linear infinite;
}

@media (hover: hover) {
    .clients-track:hover {
        animation-play-state: paused; /* Pause animation when user hovers to look at a logo */
    }
}

.client-logo-img {
    width: 250px; /* Width of each logo slot */
    height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}
.client-logo-img img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
@media (hover: hover) {
    .client-logo-img img:hover {
        transform: scale(1.15);
    }
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Perfectly loops if items are duplicated exactly once */
}

@media (max-width: 768px) {
    .clients-carousel-wrapper::before,
    .clients-carousel-wrapper::after {
        width: 50px; /* smaller fade on mobile */
    }
    .client-logo-img {
        width: 180px;
        padding: 0 20px;
    }
}

/* Continuous Subtle Animation for Info Images */
@keyframes slowPan {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1%, 1%); }
    100% { transform: scale(1.12) translate(1%, -1%); }
}
.animated-image {
    animation: slowPan 20s alternate infinite ease-in-out;
    transform-origin: center;
    will-change: transform;
}

/* Animated Mission/Vision Cards */
.mission-vision-card {
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 5px solid transparent;
}

.mission-card {
    border-top-color: var(--color-green);
    background: linear-gradient(145deg, #ffffff, rgba(76, 175, 80, 0.05));
}
.vision-card {
    border-top-color: var(--color-yellow);
    background: linear-gradient(145deg, #ffffff, rgba(255, 179, 0, 0.05));
}

.mission-vision-card:hover {
    transform: translateY(-15px);
}
.mission-card:hover {
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.25);
    background: linear-gradient(145deg, #ffffff, rgba(76, 175, 80, 0.25));
}
.vision-card:hover {
    box-shadow: 0 25px 50px rgba(255, 179, 0, 0.25);
    background: linear-gradient(145deg, #ffffff, rgba(255, 179, 0, 0.25));
}

.mv-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
    animation: floatingIcon 4s ease-in-out infinite;
}

.mission-card .mv-icon-wrapper {
    background: rgba(76, 175, 80, 0.15);
    color: var(--color-green);
    box-shadow: 0 0 20px var(--color-green-glow);
}
.vision-card .mv-icon-wrapper {
    background: rgba(255, 179, 0, 0.15);
    color: var(--color-yellow);
    box-shadow: 0 0 20px var(--color-yellow-glow);
}

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

.mission-vision-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.mission-card h3 { color: var(--color-green); }
.vision-card h3 { color: var(--color-yellow); }

.mission-vision-card p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}
