/* Footer Styling */
footer {
    background: linear-gradient(45deg, #002413, #003a20);
    color: #fff;
    padding: 60px 0 20px;
    font-family: 'Poppins', sans-serif;
    margin-top: 50px;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #3bb78f;
    font-size: 1.5em;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background: #ff9f43;
}

.footer-section p,
.footer-section a {
    color: #ddd;
    line-height: 1.8;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3bb78f;
    padding-left: 5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form button {
    padding: 12px;
    background: #3bb78f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #ff9f43;
}

/* Bottom Bar */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a:hover {
        padding-left: 0;
    }
}

/* Dark Mode Overrides */
[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0f172a, #020617);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer-section h3 {
    color: #34d399;
    /* Lighter teal */
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section a {
    color: #94a3b8;
}

[data-theme="dark"] .footer-section a:hover {
    color: #34d399;
}

[data-theme="dark"] .newsletter-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

/* Enhanced CEO Profile Styles */
.footer-ceo .leadership-profiles {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}
.footer-ceo .ceo-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 10px;
    transition: transform 0.3s ease;
    width: 100%;
    width: 100%;
}

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

@media (min-width: 769px) {
    .footer-ceo .leadership-profiles {
        position: relative;
        min-height: 280px;
        align-items: center;
        width: 100%;
    }
    .footer-ceo .ceo-profile {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    .footer-ceo .ceo-profile.active-profile {
        opacity: 1;
        visibility: visible;
        animation: profileFadeIn 0.8s ease forwards;
    }
    .footer-ceo .ceo-profile:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .footer-ceo .ceo-profile:hover {
        transform: translateY(-5px);
    }
}

.footer-ceo .ceo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.footer-ceo .ceo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-ceo .ceo-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-ceo .ceo-title {
    margin: 0;
    font-size: 0.85rem;
    color: #34d399 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-ceo .ceo-desc {
    margin: 4px 0 8px 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #f1f5f9 !important;
    font-weight: 400;
}



@media (max-width: 768px) {
    .footer-ceo .leadership-profiles {
        flex-direction: column;
    }
}