html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom keyframes for animations */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-up {
    animation: fade-up 1s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Visibility classes for script-triggered animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* Navigation Styles */
nav.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav.scrolled #nav-logo span:last-child {
    color: white !important;
}

nav.scrolled #nav-links a:not([class*="bg-"]) {
    color: white !important;
}

nav.scrolled #nav-links a:not([class*="bg-"]):hover {
    color: #0d9488 !important; /* accent */
}

/* Carousel Image Fallback / Overlay */
.carousel-slide img {
    filter: brightness(0.85);
}

/* Force transparency for logo images to fix potential silent bug */
header img, footer img, nav img, .group img {
    background-color: transparent !important;
    background: transparent !important;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Premium Typography Overrides */
h1, h2, h3, h4, .font-display {
    letter-spacing: -0.02em;
}

/* Form Styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* Image Fallbacks */
img {
    background-color: #f1f5f9; /* Slate 100 */
    position: relative;
    min-height: 50px;
}

img::after {
    content: "Image Placeholder: " attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.active {
    opacity: 1;
    visibility: visible;
}



/* Success Rate Progress Bar Animation */
.progress-bar {
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Ensure body doesn't scroll when menu is open */
/* --- Executive Glassmorphism (Elite Standard) --- */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --exec-accent: #0d9488;
    --exec-glow: rgba(13, 148, 136, 0.3);
}

.executive-perspective {
    perspective: 2000px;
}

.executive-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.executive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 50%, rgba(13, 148, 136, 0.05) 100%);
    pointer-events: none;
}

.executive-card:hover {
    transform: translateY(-20px) rotateX(6deg) rotateY(-6deg);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.15),
        0 18px 36px -18px rgba(13, 148, 136, 0.3);
}

/* Internal Glow Rim */
.rim-light {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 40%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Vibrant Mesh Container */
.mesh-container {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    animation: morphing-shape 12s ease-in-out infinite;
    box-shadow: 
        inset 0 10px 20px rgba(0,0,0,0.1),
        0 20px 40px -10px var(--exec-glow);
    border: 4px solid white;
}

.mesh-gradient {
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background-image: 
        radial-gradient(at 10% 10%, #0d9488 0px, transparent 50%),
        radial-gradient(at 90% 10%, #f59e0b 0px, transparent 50%),
        radial-gradient(at 90% 90%, #0d9488 0px, transparent 50%),
        radial-gradient(at 10% 90%, #f59e0b 0px, transparent 50%),
        radial-gradient(at 50% 50%, #0f766e 0px, transparent 50%);
    filter: blur(35px);
    opacity: 0.25;
    animation: mesh-rotate 15s linear infinite;
}

@keyframes mesh-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes morphing-shape {
    0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    33% { border-radius: 62% 38% 37% 63% / 56% 59% 41% 44%; }
    66% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

/* Floating Placeholder Icon */
.floating-user {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: gentle-float 4s ease-in-out infinite;
}

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

.exec-title {
    letter-spacing: -0.01em;
    font-weight: 800;
    line-height: 1.2;
}

.exec-role {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.exec-tag {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(13, 148, 136, 0.1);
    color: #0d9488;
    transition: all 0.4s ease;
}

.executive-card:hover .exec-tag {
    background: #0d9488;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.2);
}
@keyframes gold-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.gold-badge-pulse {
    animation: gold-pulse 2s infinite;
}
@keyframes emerald-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.emerald-badge-pulse {
    animation: emerald-pulse 2s infinite;
}
@keyframes primary-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.primary-badge-pulse {
    animation: primary-pulse 2s infinite;
}

/* Premium Donate Pulse */
@keyframes donate-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-pulse {
    animation: donate-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Standardized Button Sizing */
.btn-nav-size {
    min-width: 120px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-pagination-focus .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #0D9488;
    opacity: 0.3;
    transition: all 0.3s;
}

.swiper-pagination-focus .swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

/* Mobile Submenu Accordion Native States */
.mobile-submenu-closed {
    max-height: 0px;
    opacity: 0;
    margin-top: 0;
}

.mobile-submenu-open {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem; /* mt-6 equivalent */
}
/* Mobile hamburger menu button - always stays white regardless of scroll state */
#mobile-menu-btn,
#mobile-menu-btn i,
#mobile-menu-btn svg {
    color: white !important;
    stroke: white !important;
}
/* Our Legacy badge - continuous pulse animation */
@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
        transform: scale(1.04);
    }
}

.animate-pulse-badge {
    animation: pulseBadge 2s ease-in-out infinite;
}