/* CSS Custom Properties for Better Maintainability */
:root {
    --navy: #000f5d;
    --secondary: #2b3d5b;
    --secondary-light: #7c8594;
    --accent: #fd820e;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}

/* Optimize font loading */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #0d1b69 50%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Enhanced Keyframe Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateSlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Refined Hero Artwork Animations */
@keyframes subtleFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(5px, 5px);
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.7;
    }
}

@keyframes dotsPan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 0%;
    }
}

/* Enhanced Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #1a237e 0%, #0d1b69 25%, #1a237e 50%, #0d1b69 75%, #1a237e 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
}

/* New Hero Artwork Styles */
.hero-left-curves {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    /* Adjust as needed */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 2rem;
    z-index: 0;
}

.hero-left-curves .curve {
    position: absolute;
    border: 2px solid rgba(253, 130, 14, 0.4);
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(45deg);
    animation: subtleFloat 8s ease-in-out infinite alternate;
}

.hero-left-curves .curve-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 0;
    opacity: 0.8;
}

.hero-left-curves .curve-2 {
    width: 120px;
    height: 120px;
    top: 25%;
    left: -10px;
    opacity: 0.6;
    animation-delay: 1s;
}

.hero-left-curves .curve-3 {
    width: 140px;
    height: 140px;
    top: 30%;
    left: -20px;
    opacity: 0.4;
    animation-delay: 2s;
}

.hero-left-curves .curve-4 {
    width: 160px;
    height: 160px;
    top: 35%;
    left: -30px;
    opacity: 0.2;
    animation-delay: 3s;
}

.hero-right-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    /* Adjust as needed */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 2rem;
    z-index: 0;
}

.hero-right-shapes .shape {
    position: absolute;
    background-color: rgba(253, 130, 14, 0.6);
    border-radius: 50% 30% 40% 60% / 60% 40% 30% 50%;
    animation: gentlePulse 7s ease-in-out infinite alternate;
}

.hero-right-shapes .shape-1 {
    width: 80px;
    height: 60px;
    top: 25%;
    right: 10px;
    opacity: 0.7;
}

.hero-right-shapes .shape-2 {
    width: 70px;
    height: 90px;
    top: 35%;
    right: 50px;
    opacity: 0.5;
    animation-delay: 1.5s;
    transform: rotate(20deg);
}

.hero-right-shapes .shape-3 {
    width: 100px;
    height: 70px;
    top: 45%;
    right: 20px;
    opacity: 0.3;
    animation-delay: 3s;
    transform: rotate(-10deg);
}

.hero-bottom-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    /* Adjust width as needed */
    height: 20px;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: 0;
    animation: dotsPan 60s linear infinite;
}

/* Smooth Scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Fixed Navigation Bar */
.nav-bar {
    height: 64px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.nav-bar.scrolled {
    background: rgba(0, 15, 93, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color var(--transition-normal);
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

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

/* Button Animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--white);
    transition: width var(--transition-normal);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

/* Card Hover Effects */
.card-hover {
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-hover .w-16.h-16 {
    position: relative;
    overflow: hidden;
}

.card-hover .w-16.h-16::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover .w-16.h-16::before {
    opacity: 1;
}

/* Principle Cards */
.principle-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 15, 93, 0.1);
}

.principle-card .icon-container {
    transition: all 0.3s ease;
}

.principle-card:hover .icon-container {
    transform: scale(1.05);
}

.principle-card:hover h3 {
    color: var(--accent);
    transition: color var(--transition-normal);
}

/* Executive Council Slider */
.executive-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.executive-slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.executive-card {
    padding: 0 1rem;
    box-sizing: border-box;
}

.executive-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.executive-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 15, 93, 0.25);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.executive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop - 4 cards visible */
@media (min-width: 1280px) {
    .executive-card {
        width: 25%;
        flex: 0 0 25%;
    }
}

/* Large tablets - 3 cards visible */
@media (min-width: 1024px) and (max-width: 1279px) {
    .executive-card {
        width: 33.333333%;
        flex: 0 0 33.333333%;
    }
}

/* Tablets - 2 cards visible */
@media (min-width: 768px) and (max-width: 1023px) {
    .executive-card {
        width: 50%;
        flex: 0 0 50%;
    }

    .executive-slider-wrapper {
        padding: 0 1.5rem;
    }
}

/* Mobile - 1 card visible */
@media (max-width: 767px) {
    .executive-card {
        width: 100%;
        flex: 0 0 100%;
        padding: 0 0.5rem;
    }

    .executive-slider-wrapper {
        padding: 0 1rem;
    }

    .executive-card-inner:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Meet the Team Slider */
.team-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.team-slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.team-card {
    padding: 0 1rem;
    box-sizing: border-box;
}

.team-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.team-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 15, 93, 0.25);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card img.group-hover\:scale-105.group-hover\:rotate-\[8\.5deg\]:hover {
    transform: scale(1.05) rotate(8.5deg);
}

/* Responsive settings for team slider */
@media (min-width: 1280px) {
    .team-card {
        width: 25%;
        flex: 0 0 25%;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .team-card {
        width: 33.333333%;
        flex: 0 0 33.333333%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .team-card {
        width: 50%;
        flex: 0 0 50%;
    }

    .team-slider-wrapper {
        padding: 0 1.5rem;
    }
}

@media (max-width: 767px) {
    .team-card {
        width: 100%;
        flex: 0 0 100%;
        padding: 0 0.5rem;
    }

    .team-slider-wrapper {
        padding: 0 1rem;
    }

    .team-card-inner:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Testimonials Slider */
.testimonials-slider-container {
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%;
    opacity: 0.8;
    transform: scale(0.95);
    transition: all var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-card blockquote {
    position: relative;
}

.testimonial-card blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card blockquote::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: -10px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: serif;
}

/* Past Events Slider */
.past-events-slider-container {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 1.5rem;
}

.past-events-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.past-event-card {
    flex: 0 0 100%;
    opacity: 0.9;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    min-height: 600px;
}

.past-event-card.active {
    opacity: 1;
    transform: scale(1);
}

.past-event-card:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px -10px rgba(0, 15, 93, 0.15);
}

.past-event-card img {
    transition: transform var(--transition-slow);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.past-event-card:hover img {
    transform: scale(1.05);
}

/* Click to Top Button */
.click-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #ff8a50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(253, 130, 14, 0.3);
    border: none;
}

.click-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.click-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(253, 130, 14, 0.4);
}

.click-to-top svg {
    color: var(--white);
    width: 24px;
    height: 24px;
    transition: transform var(--transition-normal);
}

.click-to-top:hover svg {
    transform: translateY(-1px);
}

/* Section Animation Classes */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
}

.animate-on-scroll[data-animation="fade-in-up"].visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll[data-animation="slide-in-left"].visible {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-on-scroll[data-animation="slide-in-right"].visible {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-on-scroll[data-animation="scale-in"].visible {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Hero Content Animation */
.hero-content>* {
    opacity: 0;
    transform: translateY(20px);
}

.hero-content.visible>* {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content.visible>*:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content.visible>*:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content.visible>*:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-content.visible>*:nth-child(4) {
    animation-delay: 0.8s;
}

/* Social Links */
.social-link {
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Footer Links */
.footer-link {
    position: relative;
    transition: color var(--transition-normal);
}

.footer-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.footer-link:hover::before {
    width: 100%;
}

/* Contact Info */
.contact-info-card {
    transition: all var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.contact-item {
    transition: transform var(--transition-normal);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Newsletter Form */
.newsletter-form input {
    transition: all var(--transition-normal);
}

.newsletter-form input:focus {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-hover {
    transition: transform var(--transition-normal);
}

.btn-hover:hover {
    transform: scale(1.05);
}

/* Image Hover */
.image-hover {
    transition: all var(--transition-normal);
}

.image-hover:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-left-curves {
        width: 150px;
        padding-left: 1rem;
    }

    .hero-left-curves .curve-1 {
        width: 80px;
        height: 80px;
    }

    .hero-left-curves .curve-2 {
        width: 100px;
        height: 100px;
    }

    .hero-left-curves .curve-3 {
        width: 120px;
        height: 120px;
    }

    .hero-left-curves .curve-4 {
        width: 140px;
        height: 140px;
    }

    .hero-right-shapes {
        width: 150px;
        padding-right: 1rem;
    }

    .hero-right-shapes .shape-1 {
        width: 60px;
        height: 40px;
    }

    .hero-right-shapes .shape-2 {
        width: 50px;
        height: 70px;
    }

    .hero-right-shapes .shape-3 {
        width: 80px;
        height: 50px;
    }

    .hero-bottom-dots {
        width: 200px;
        bottom: 10px;
    }
}

@media (max-width: 768px) {

    .hero-left-curves,
    .hero-right-shapes,
    .hero-bottom-dots {
        display: none;
    }

    .click-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .click-to-top svg {
        width: 20px;
        height: 20px;
    }

    .testimonial-card blockquote::before,
    .testimonial-card blockquote::after {
        font-size: 2.5rem;
    }

    .past-event-card {
        min-height: auto;
    }

    .past-event-card .flex.flex-col.lg-flex-row {
        flex-direction: column;
    }

    .past-event-card .w-full.lg-w-1-2 {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .testimonial-card blockquote::before,
    .testimonial-card blockquote::after {
        display: none;
    }

    .activity-card {
        margin-bottom: 1rem;
    }

    .principle-card {
        margin-bottom: 1rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-bg {
        animation: none;
    }

    .loading-spinner {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card-hover:hover {
        border: 2px solid var(--accent);
    }

    .btn-primary {
        border: 2px solid var(--accent);
    }

    .nav-link:hover {
        background: rgba(253, 130, 14, 0.1);
    }
}

/* Print Styles */
@media print {

    .loading-screen,
    .nav-bar,
    .click-to-top,
    .hero-left-curves,
    .hero-right-shapes,
    .hero-bottom-dots {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .gradient-bg {
        background: white !important;
    }

    .past-event-card,
    .activity-card,
    .principle-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 2rem;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Performance Optimizations */
.executive-slider,
.testimonials-slider,
.past-events-slider,
.team-slider {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.card-hover,
.btn-primary,
.btn-secondary {
    transform: translateZ(0);
}

/* Enhanced Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.executive-card.slide-in-right,
.team-card.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.executive-card.slide-in-left,
.team-card.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.activity-card .w-16.h-16::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.activity-card:hover .w-16.h-16::after {
    animation: shimmer 0.8s ease-in-out;
}

/* Counter Animation */
.counter {
    transition: all var(--transition-normal);
}

.counter:hover {
    transform: scale(1.05);
    color: var(--accent);
}

/* Enhanced Grid Layout for Activities */
.grid.grid-cols-1.md-grid-cols-2.lg-grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .grid.grid-cols-1.md-grid-cols-2.lg-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid.grid-cols-1.md-grid-cols-2.lg-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ensure equal height cards */
.activity-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card>div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Focus States for Accessibility */
.activity-card:focus,
.principle-card:focus,
.executive-card-inner:focus,
.team-card-inner:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.testimonial-indicator:focus,
.past-events-indicator:focus,
.team-indicator:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Button Focus States */
button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Enhanced Hover States */
.testimonial-nav-btn {
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.testimonial-nav-btn:hover {
    transform: scale(1.1);
    background: rgba(253, 130, 14, 0.2);
    border-color: var(--accent);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

/* Testimonial Indicators */
.testimonial-indicator {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonial-indicator:hover {
    transform: scale(1.2);
}

.testimonial-indicator.active {
    background: var(--accent) !important;
    transform: scale(1.3);
}

/* Team Indicators*/
.team-indicator {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.team-indicator:hover {
    transform: scale(1.2);
}

.team-indicator.active {
    background: var(--accent) !important;
    transform: scale(1.3);
}

/* Star Rating Animation */
.testimonial-card .fill-current {
    animation: starGlow 2s ease-in-out infinite alternate;
}

@keyframes starGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2) drop-shadow(0 0 3px var(--accent));
    }
}

/* Loading Animation for Images */
@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Enhanced Button Feedback */
.nav-btn {
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(253, 130, 14, 0.1);
    transition: width var(--transition-normal);
    border-radius: 50%;
}

.nav-btn:hover::before {
    width: 100%;
}

/* Success Message Animation */
.success-message {
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Final Responsive Adjustments */
@media (max-width: 640px) {
    .activity-card {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }

    .activity-card h3 {
        font-size: 1.125rem;
    }

    .principle-card {
        padding: 1.5rem;
    }

    .principle-card h3 {
        font-size: 1.125rem;
    }

    .past-event-card .p-6.md-p-8.lg-p-10 {
        padding: 1rem;
    }

    .past-event-card h3 {
        font-size: 1.25rem;
    }
}

/* Decorative Elements */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(253, 130, 14, 0.4);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    top: 80%;
    left: 40%;
    animation-delay: 6s;
    animation-duration: 9s;
}

/* Curved Lines */
.curved-lines {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 300px;
    opacity: 0.4;
    pointer-events: none;
}

.curved-line {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50px;
    opacity: 0.6;
}

.curved-line:nth-child(1) {
    width: 60px;
    height: 120px;
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.curved-line:nth-child(2) {
    width: 80px;
    height: 160px;
    top: 20px;
    left: 15px;
    border-right: none;
    border-bottom: none;
    opacity: 0.4;
}

.curved-line:nth-child(3) {
    width: 100px;
    height: 200px;
    top: 40px;
    left: 30px;
    border-right: none;
    border-bottom: none;
    opacity: 0.3;
}

/* Abstract Shapes */
.abstract-shapes {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(253, 130, 14, 0.3);
    border-radius: 50% 20% 50% 20%;
    opacity: 0.6;
}

.shape:nth-child(1) {
    width: 80px;
    height: 100px;
    top: 0;
    right: 0;
    transform: rotate(15deg);
}

.shape:nth-child(2) {
    width: 60px;
    height: 80px;
    top: 60px;
    right: 40px;
    transform: rotate(-20deg);
    opacity: 0.4;
}

.shape:nth-child(3) {
    width: 70px;
    height: 90px;
    top: 120px;
    right: 10px;
    transform: rotate(45deg);
    opacity: 0.3;
}

/* Hero Content Animation */
.hero-content>* {
    opacity: 0;
    transform: translateY(20px);
}

.hero-content.visible>* {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content.visible>*:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content.visible>*:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content.visible>*:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-content.visible>*:nth-child(4) {
    animation-delay: 0.8s;
}


/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 15s ease-in-out infinite;
    will-change: transform;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--accent), transparent);
    border-radius: 50% 20% 50% 20%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 30px;
    top: 70%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent));
    border-radius: 50%;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
    animation-duration: 18s;
}

.floating-shape:nth-child(4) {
    width: 100px;
    height: 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--accent), rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    top: 60%;
    left: 20%;
    animation-delay: 9s;
    animation-duration: 25s;
}

.floating-shape:nth-child(5) {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, var(--accent), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 20%;
    left: 70%;
    animation-delay: 12s;
    animation-duration: 22s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translateY(-40px) rotate(180deg) scale(0.9);
    }

    75% {
        transform: translateY(-20px) rotate(270deg) scale(1.05);
    }
}

/* Enhanced Curved Lines with Glow Effect */
.curved-lines {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 400px;
    opacity: 0.6;
    pointer-events: none;
}

.curved-line {
    border: 2px solid var(--accent);
    filter: drop-shadow(0 0 10px rgba(253, 130, 14, 0.3));
}

.curved-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 50px;
    z-index: -1;
    opacity: 0.3;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Animated Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* Constellation Effect */
.constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 30%;
    left: 80%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: 0.5s;
}

.star:nth-child(5) {
    top: 40%;
    left: 60%;
    animation-delay: 1.5s;
}

.star:nth-child(6) {
    top: 70%;
    left: 40%;
    animation-delay: 2.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

/* Animated Orbs */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(253, 130, 14, 0.2), transparent);
    animation: floatOrb 20s ease-in-out infinite;
}

.orb:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation-delay: 7s;
}

.orb:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-60px) translateX(-10px) scale(0.9);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-30px) translateX(-30px) scale(1.05);
        opacity: 0.4;
    }
}

/* Enhanced Particles with Different Sizes */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    animation: particleFloat 12s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 0 0 6px rgba(253, 130, 14, 0.6);
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 70%;
    left: 75%;
    animation-delay: 4s;
    box-shadow: 0 0 8px rgba(253, 130, 14, 0.4);
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 60%;
    animation-delay: 8s;
    box-shadow: 0 0 4px rgba(253, 130, 14, 0.8);
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 85%;
    left: 40%;
    animation-delay: 2s;
    box-shadow: 0 0 7px rgba(253, 130, 14, 0.5);
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-25px) scale(1.2);
        opacity: 1;
    }

    50% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-25px) scale(1.1);
        opacity: 0.8;
    }
}

/* Enhanced Abstract Shapes */
.abstract-shapes {
    right: 2rem;
    width: 250px;
    height: 300px;
}

.shape {
    background: rgba(253, 130, 14, 0.2);
    filter: blur(0.5px);
}

.shape::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--accent), transparent, var(--accent));
    border-radius: 50% 20% 50% 20%;
    z-index: -1;
    opacity: 0.3;
    animation: shapeGlow 6s ease-in-out infinite;
}

@keyframes shapeGlow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Responsive Adjustments for Art Elements */
@media (max-width: 1024px) {

    .floating-shapes,
    .floating-orbs,
    .constellation {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-pattern {
        display: none;
    }

    .particles .particle {
        width: 2px !important;
        height: 2px !important;
    }
}