@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #3b82f6, #f59e0b);
    border-radius: 2px;
}

.section-title-light {
    position: relative;
    display: inline-block;
}

.section-title-light::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #f59e0b, #ffffff);
    border-radius: 2px;
}

.nav-link {
    position: relative;
    color: white;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.leader-card {
    transition: all 0.3s ease;
}

.leader-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.staff-card {
    transition: all 0.3s ease;
}

.staff-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-container {
    position: relative;
    padding: 0 40px;
}

.gallery-track {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-slide {
    scroll-snap-align: start;
    transition: all 0.5s ease;
    cursor: pointer;
}

.gallery-nav {
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-nav:hover {
    transform: scale(1.1);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.success-card {
    transition: all 0.3s ease;
}

.success-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animation classes */
.animate-card {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode transitions */
.dark .bg-white {
    background-color: #1f2937;
}

.dark .bg-gray-50 {
    background-color: #111827;
}

.dark .text-gray-800 {
    color: #e5e7eb;
}

.dark .bg-blue-50 {
    background-color: #1e3a8a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-title::after, .section-title-light::after {
        width: 60px;
        height: 3px;
        bottom: -8px;
    }
    
    .leader-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .gallery-slide {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 640px) {
    .section-title::after, .section-title-light::after {
        width: 50px;
        height: 2px;
        bottom: -6px;
    }
    
    .feature-card, .success-card {
        padding: 1.5rem;
    }
    
    .staff-card {
        width: calc(50% - 8px);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #f59e0b);
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f59e0b, #3b82f6);
}

/* Image popup animation */
#image-popup {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#image-popup[open] {
    opacity: 1;
    pointer-events: auto;
}

#popup-image {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#image-popup[open] #popup-image {
    transform: scale(1);
}

/* Leadership Cards - Mobile */
@media (max-width: 767px) {
    .leader-card {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .leader-card:last-child {
        margin-bottom: 0;
    }
    
    .leader-card img {
        height: 200px;
    }
    
    .leader-card h3 {
        font-size: 1.25rem;
    }
    
    .leader-card p {
        font-size: 0.875rem;
    }
}

/* Staff Cards - Mobile */
@media (max-width: 767px) {
    .staff-card {
        width: calc(50% - 0.5rem);
        margin-bottom: 1rem;
    }
    
    .staff-card img {
        height: 120px;
    }
    
    .staff-card h3 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .staff-card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .staff-card button {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet and Desktop adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .staff-card {
        width: calc(33.333% - 0.67rem);
    }
    
    .staff-card img {
        height: 150px;
    }
    
    .staff-card h3 {
        font-size: 1rem;
    }
    
    .staff-card p {
        font-size: 0.875rem;
    }
}

/* Hover effects */
.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animation timing */
.leader-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.staff-card {
    transition: all 0.2s ease-out;
}