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

:root {
    --primary-color: #000000;
    --secondary-color: #5141b5;
    --accent-color: #05031d;
    --text-dark: #264653;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2c5aa0 0%, #122350 100%);
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(81, 65, 181, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Enhanced Navigation with Solid White Background */
.navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px var(--glow));
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background: rgba(81, 65, 181, 0.1);
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 80%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(81, 65, 181, 0.1);
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Enhanced Hero Section with Floating Elements */
.hero {
    height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 14, 22, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%),
        url('/images/home_img.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(81, 65, 181, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 111, 81, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(44, 90, 160, 0.2) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating geometric shapes */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 45% 70%, rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
    animation: floatingDots 20s linear infinite;
}

@keyframes floatingDots {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideInLeft 1s ease forwards 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: scaleIn 1.2s ease forwards 0.5s;
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scaleIn 1.2s ease forwards 0.5s, shimmer 3s ease-in-out infinite 2s;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {

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

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

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: bounceIn 1s ease forwards 0.9s;
    flex-wrap: wrap;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.9) translateY(5px);
    }

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

.btn {
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::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 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    box-shadow: 0 10px 30px rgba(81, 65, 181, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(81, 65, 181, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

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

.btn:hover i {
    transform: scale(1.2) rotate(360deg);
}

/* Enhanced Hero Section with Sliding Backgrounds */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Image Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom for Ken Burns effect */
    animation: kenBurns 12s ease-in-out infinite;
}

.hero-slide.active {
    opacity: 1;
}

/* Ken Burns zoom effect */
@keyframes kenBurns {
    0% {
        transform: scale(1.05) translateX(0px);
    }

    25% {
        transform: scale(1.08) translateX(-20px);
    }

    50% {
        transform: scale(1.1) translateX(0px);
    }

    75% {
        transform: scale(1.08) translateX(20px);
    }

    100% {
        transform: scale(1.05) translateX(0px);
    }
}

/* Background overlay for better text readability */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 14, 22, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Hero content stays on top */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

/* Slide Navigation Dots (Optional) */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Slide Direction Arrows (Optional) */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
    .hero-nav {
        display: none;
    }

    .hero-dots {
        bottom: 20px;
        gap: 10px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

/* Smooth transitions for different slide effects */
.hero-slide.slide-left {
    animation: slideFromLeft 1s ease-out;
}

.hero-slide.slide-right {
    animation: slideFromRight 1s ease-out;
}

.hero-slide.fade-up {
    animation: fadeFromBottom 1s ease-out;
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-100%) scale(1.05);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1.05);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(100%) scale(1.05);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1.05);
        opacity: 1;
    }
}

@keyframes fadeFromBottom {
    0% {
        transform: translateY(50px) scale(1.05);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1.05);
        opacity: 1;
    }
}

/* Enhanced About Section with Staggered Animations */
.about {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(81, 65, 181, 0.05), transparent, rgba(231, 111, 81, 0.05));
    border-radius: 50%;
    animation: slowRotate 30s linear infinite;
}

@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header h2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, transparent, rgba(81, 65, 181, 0.1), transparent);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header:hover h2::before {
    opacity: 1;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {

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

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

.about-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(81, 65, 181, 0.1), transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.about-card:hover::after {
    width: 300px;
    height: 300px;
}

.about-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.about-card>* {
    position: relative;
    z-index: 1;
}

.about-card i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: inline-block;
}

.about-card:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px rgba(81, 65, 181, 0.5));
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.about-card p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Enhanced Services Section */
.services {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, #ffffff 0%, var(--bg-light) 50%, #ffffff 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(81,65,181,0.02)"/><circle cx="80" cy="80" r="1" fill="rgba(231,111,81,0.02)"/><circle cx="50" cy="10" r="1" fill="rgba(44,90,160,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: moveGrain 20s linear infinite;
}

@keyframes moveGrain {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100px, -100px);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 65, 181, 0.3), rgba(231, 111, 81, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.service-content {
    padding: 2.5rem;
    position: relative;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2.5rem;
    right: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card:hover .service-content h3 {
    color: var(--secondary-color);
}

.service-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-content p {
    line-height: 1.8;
    color: var(--text-light);
}

/* Enhanced Messages Section */
.messages {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, var(--bg-light) 0%, #f0f2f5 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(81, 65, 181, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(231, 111, 81, 0.1) 0%, transparent 30%);
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 65, 181, 0.05), rgba(231, 111, 81, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.message-card:hover::before {
    opacity: 1;
}

.message-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.message-thumbnail {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--gradient);
}

.message-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.message-card:hover .message-thumbnail img {
    transform: scale(1.1) rotate(1deg);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(224, 15, 15, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.play-button::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.message-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 15px 40px rgba(81, 65, 181, 0.5);
}

.message-card:hover .play-button::before {
    opacity: 1;
    transform: scale(1.2);
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

.message-duration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.message-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.message-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.message-date::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}

.message-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-family: 'Merriweather', serif;
    transition: color 0.3s ease;
}

.message-card:hover .message-content h3 {
    color: var(--secondary-color);
}

.message-speaker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.message-speaker i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.message-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.message-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(81, 65, 181, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(81, 65, 181, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s ease;
}

.tag:hover::before {
    left: 100%;
}

.message-card:hover .tag {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.messages-cta {
    text-align: center;
    margin-top: 5rem;
}

.messages-cta .btn {
    font-size: 1.2rem;
    padding: 1.5rem 3rem;
}

/* Enhanced Events Section */
.events {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, var(--bg-light) 0%, #ffffff 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.events::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(231, 111, 81, 0.05), transparent, rgba(81, 65, 181, 0.05));
    border-radius: 50%;
    animation: slowRotateReverse 25s linear infinite;
}

@keyframes slowRotateReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.event-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.event-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.event-item:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(81, 65, 181, 0.3);
    position: relative;
    z-index: 2;
}

.event-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.event-item:hover h3 {
    color: var(--secondary-color);
}

.event-item p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Enhanced Leadership Section */
.leadership {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, #ffffff 0%, var(--bg-light) 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.leadership::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(81, 65, 181, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(231, 111, 81, 0.08) 0%, transparent 50%);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 65, 181, 0.05), rgba(231, 111, 81, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    border: 5px solid rgba(255, 255, 255, 0.8);
}

.team-card:hover .team-photo {
    transform: scale(1.1);
    box-shadow: 0 25px 60px rgba(81, 65, 181, 0.3);
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.team-title {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.team-card p {
    line-height: 1.8;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

/* Enhanced Elder Card */
.elder-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 4rem;
    border-radius: 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.5s ease;
}

.elder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 65, 181, 0.03), rgba(231, 111, 81, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.elder-card:hover::before {
    opacity: 1;
}

.elder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.15);
}

.elder-photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 5px solid var(--secondary-color);
    transition: all 0.5s ease;
}

.elder-content {
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.elder-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.elder-content .team-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.elder-content p {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .elder-card {
        flex-direction: row;
        align-items: stretch;
    }

    .elder-photo {
        width: 50%;
        height: auto;
        border-bottom: none;
        border-right: 5px solid var(--secondary-color);
    }

    .elder-content {
        width: 50%;
        text-align: left;
        padding: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Enhanced Contact Section */
.contact {
    padding: 8rem 0;
    background:
        linear-gradient(135deg, #1a1a1a 0%, #000000 100%),
        url('/images/contact-pattern.jpg') center/cover;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(81, 65, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231, 111, 81, 0.2) 0%, transparent 50%);
    animation: contactGlow 8s ease-in-out infinite;
}

@keyframes contactGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.contact-grid>div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.contact-grid>div:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.contact-grid h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
    font-weight: 600;
    position: relative;
}

.contact-grid h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-info i {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 2rem;
    filter: drop-shadow(0 0 10px rgba(81, 65, 181, 0.5));
}

.contact-info div {
    flex: 1;
}

.contact-info strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Enhanced Footer */
.footer {
    background:
        linear-gradient(135deg, rgba(35, 35, 37, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%),
        url('/images/footer_ngc.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(81, 65, 181, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(231, 111, 81, 0.1) 0%, transparent 50%);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(81, 65, 181, 0.4);
}

.footer p {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes float {

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

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

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

/* Enhanced Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in:nth-child(6) {
    transition-delay: 0.6s;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .about-grid,
    .services-grid,
    .messages-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 1);
        flex-direction: column;
        padding: 2rem;
        border-radius: 0 0 25px 25px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        padding: 1rem;
        border-radius: 15px;
        display: block;
        text-align: center;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .about-grid,
    .services-grid,
    .messages-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .about,
    .services,
    .messages,
    .events,
    .leadership,
    .contact {
        padding: 4rem 0;
    }

    .elder-card {
        flex-direction: column;
    }

    .elder-photo {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 5px solid var(--secondary-color);
    }

    .elder-content {
        width: 100%;
        text-align: center;
        padding: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-card,
    .service-card,
    .message-card,
    .event-item,
    .team-card {
        margin: 0 0.5rem;
    }

    .contact-grid>div {
        padding: 2rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom Scrollbar Enhancement */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f1f1, #e0e0e0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color), var(--secondary-color));
}

/* Loading Animation */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Particle Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(81, 65, 181, 0.3);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Enhanced YouTube Modal */
.youtube-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.youtube-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }

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

/* Ripple Effect for Interactive Elements */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Intersection Observer Enhanced Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-in-left.visible,
.slide-in-right.visible,
.scale-in.visible,
.rotate-in.visible {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0);
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary-color);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.text-reveal.visible::before {
    transform: translateX(100%);
}

/* Image Reveal Animation */
.image-reveal {
    overflow: hidden;
    position: relative;
}

.image-reveal img {
    transform: scale(1.2);
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-reveal.visible img {
    transform: scale(1);
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.image-reveal.visible::before {
    transform: translateX(100%);
}

/* Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

/* Glitch Effect for Special Elements */
.glitch {
    position: relative;
    color: var(--secondary-color);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--accent-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--primary-color);
    z-index: -2;
}

@keyframes glitch-1 {

    0%,
    14%,
    15%,
    49%,
    50%,
    99%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    15%,
    49% {
        transform: translate(-2px, -2px);
        opacity: 1;
    }
}

@keyframes glitch-2 {

    0%,
    19%,
    20%,
    39%,
    40%,
    79%,
    80%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    20%,
    39% {
        transform: translate(2px, 2px);
        opacity: 1;
    }
}

/* Morphing Background */
.morphing-bg {
    background: linear-gradient(-45deg, var(--secondary-color), var(--accent-color), var(--primary-color), var(--secondary-color));
    background-size: 400% 400%;
    animation: gradientMorph 8s ease infinite;
}

@keyframes gradientMorph {
    0% {
        background-position: 0% 50%;
    }

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

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

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(81, 65, 181, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    animation: fabPulse 2s ease-in-out infinite;
}

.fab:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(81, 65, 181, 0.6);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(81, 65, 181, 0.4);
    }

    50% {
        box-shadow: 0 10px 30px rgba(81, 65, 181, 0.4), 0 0 0 10px rgba(81, 65, 181, 0.1);
    }
}

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-transition.active {
    transform: translateX(0);
}

/* Enhanced Focus States for Accessibility */
*:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus,
.nav-menu a:focus,
.message-card:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

/* Print Styles */
@media print {

    .navbar,
    .fab,
    .youtube-modal,
    .page-loading {
        display: none !important;
    }

    .hero {
        height: 50vh;
        background: var(--bg-light) !important;
        color: var(--text-dark) !important;
    }

    .hero h1,
    .hero h2,
    .hero p {
        color: var(--text-dark) !important;
    }

    .about,
    .services,
    .messages,
    .events,
    .leadership {
        padding: 2rem 0 !important;
    }

    .contact {
        background: var(--bg-light) !important;
        color: var(--text-dark) !important;
    }

    .footer {
        background: var(--text-dark) !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066cc;
        --accent-color: #ff6600;
        --text-dark: #000000;
        --text-light: #333333;
        --bg-light: #ffffff;
    }

    .hero {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), var(--bg-light);
    }

    .about-card,
    .service-card,
    .message-card,
    .team-card {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

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

    .hero::before,
    .hero::after,
    .about::before,
    .services::before,
    .messages::before,
    .events::before,
    .leadership::before,
    .contact::before {
        animation: none;
    }

    .floating {
        animation: none;
    }
}

/* Dark Mode Support */
/* @media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --bg-light: #1a1a1a;
        --white: #000000;
    }
    
    .navbar {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .about,
    .services,
    .events,
    .leadership {
        background: var(--bg-light);
    }
    
    .about-card,
    .service-card,
    .message-card,
    .team-card,
    .elder-card {
        background: rgba(0, 0, 0, 0.8);
        color: var(--text-dark);
    }
} */