/* PROFESSIONAL ANIMATIONS AND MODERN LAYOUT OVERRIDES */

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 153, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); }
}

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

/* Make body and entire wrapper smooth */
body {
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

/* Animate main content area when loading */
#dynamic-content-area {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Card Hover Effects - make them pop */
.scheme-card, .member-card, .contact-card, .feature-box, .cert-card, .info-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

.scheme-card:hover, .member-card:hover, .contact-card:hover, .feature-box:hover, .cert-card:hover, .info-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    border-color: #ff9933 !important; /* Premium Saffron accent */
}

/* Enhance Headers with Gradient Text */
h1.village-name, .section-title, .content-wrapper h2, .content-wrapper h3 {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

/* Buttons and Links - Add pulse and better transitions */
button, .btn, .nav-item {
    transition: all 0.3s ease !important;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 153, 51, 0.3) !important;
}

nav .nav-item.active {
    animation: pulseBorder 2s infinite;
    background: linear-gradient(135deg, #ff9933, #e67300) !important;
    color: white !important;
    border-radius: 30px;
    padding: 8px 20px;
}

nav .nav-item:hover {
    background: rgba(255, 153, 51, 0.1);
    color: #e67300 !important;
    border-radius: 30px;
}

/* Image scaling and smoothness */
.slider-img, .gallery-img, .leader-img {
    transition: transform 0.6s ease;
}

.leader-item:hover .leader-img {
    transform: scale(1.1) rotate(2deg);
    border-color: #ff9933;
}

.gallery-wrapper img:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Add a slow float to decorative orbs */
.decorative-orb {
    animation: floatElement 6s ease-in-out infinite;
}
.decorative-orb-2 {
    animation-delay: 2s;
}
.decorative-orb-3 {
    animation-delay: 4s;
}

/* Sticky Mobile Header Shadows */
.main-header {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
}
