/* Animation Styles */

/* Modern Landing Page Animations */
.hero {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroContentSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes heroContentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: heroBadgeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes heroBadgeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    animation: heroTitleSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes heroTitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitleSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes heroSubtitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: heroStatsSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

@keyframes heroStatsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats .stat-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: statItemPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hero-stats .stat-item:nth-child(1) { animation-delay: 1.2s; }
.hero-stats .stat-item:nth-child(2) { animation-delay: 1.3s; }
.hero-stats .stat-item:nth-child(3) { animation-delay: 1.4s; }

@keyframes statItemPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroActionsSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

@keyframes heroActionsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.primary-btn,
.secondary-btn {
    opacity: 0;
    transform: scale(0.9);
    animation: buttonPopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.primary-btn {
    animation-delay: 1.7s;
}

.secondary-btn {
    animation-delay: 1.8s;
}

@keyframes buttonPopIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-features {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFeaturesSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.9s forwards;
}

@keyframes heroFeaturesSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: featureItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-item:nth-child(1) { animation-delay: 2.1s; }
.feature-item:nth-child(2) { animation-delay: 2.2s; }
.feature-item:nth-child(3) { animation-delay: 2.3s; }

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

/* Floating shapes animation */
.hero-shapes .shape {
    opacity: 0;
    animation: shapesFadeIn 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.shape-1 { animation-delay: 0.5s; }
.shape-2 { animation-delay: 0.7s; }
.shape-3 { animation-delay: 0.9s; }

@keyframes shapesFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Landing Animation */
.header {
    opacity: 0;
    transform: translateY(-100%);
    animation: headerSlideDown 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes headerSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-brand {
    opacity: 0;
    transform: translateX(-30px);
    animation: navBrandSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

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

.nav-links a {
    opacity: 0;
    transform: translateY(-20px);
    animation: navLinkSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.7s; }
.nav-links a:nth-child(2) { animation-delay: 0.8s; }
.nav-links a:nth-child(3) { animation-delay: 0.9s; }
.nav-links a:nth-child(4) { animation-delay: 1s; }

@keyframes navLinkSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.donate-btn {
    opacity: 0;
    transform: scale(0.8);
    animation: donateButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.1s forwards;
}

@keyframes donateButtonPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating Buttons Landing Animation */
.floating-buttons {
    opacity: 0;
    transform: translateX(100px);
    animation: floatingButtonsSlideIn 1s cubic-bezier(0.4, 0, 0.2, 1) 2s forwards;
}

@keyframes floatingButtonsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sections are visible by default */
.about,
.contact,
.blog-slider-section {
    opacity: 1;
    transform: translateY(0);
}

/* Only hide sections when specifically loading and animations are enabled */
html.page-loading .about,
html.page-loading .contact,
html.page-loading .blog-slider-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show sections when page is loaded and animations are ready */
body.page-loaded .about,
body.page-loaded .contact,
body.page-loaded .blog-slider-section {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile-specific: Ensure sections are always visible to prevent flash */
@media (max-width: 768px) {
    .about,
    .contact,
    .blog-slider-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Disable the page-loading hiding behavior on mobile */
    html.page-loading .about,
    html.page-loading .contact,
    html.page-loading .blog-slider-section {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Base animation states */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
}

/* Enhanced Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.scroll-reveal-scale.animate {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for multiple elements */
.slide-up:nth-child(1) { transition-delay: 0.1s; }
.slide-up:nth-child(2) { transition-delay: 0.2s; }
.slide-up:nth-child(3) { transition-delay: 0.3s; }
.slide-up:nth-child(4) { transition-delay: 0.4s; }
.slide-up:nth-child(5) { transition-delay: 0.5s; }

/* About section specific animations */
.about-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-card:nth-child(1) { transition-delay: 0.1s; }
.about-card:nth-child(2) { transition-delay: 0.2s; }
.about-card:nth-child(3) { transition-delay: 0.3s; }

/* About Header Animation */
.about-header {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-header h2 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.about-header.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.about-header .about-subtitle {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.about-header.animate .about-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Image Animation */
.about-hero-image {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-hero-image.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-hero-image .hero-img {
    transform: scale(1.05);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.about-hero-image.animate .hero-img {
    transform: scale(1);
}

/* Article Content Animation */
.about-article {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-article.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Statistics Animation */
.community-stats {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-stats.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.community-stats.animate .stat-item:nth-child(1) { 
    animation: statItemPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s forwards;
}
.community-stats.animate .stat-item:nth-child(2) { 
    animation: statItemPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s forwards;
}
.community-stats.animate .stat-item:nth-child(3) { 
    animation: statItemPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s forwards;
}
.community-stats.animate .stat-item:nth-child(4) { 
    animation: statItemPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s forwards;
}

@keyframes statItemPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Number Counter Animation */
.stat-number {
    opacity: 0;
}

.hero-stats .stat-number {
    animation: numberCountUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

.community-stats.animate .stat-number {
    animation: numberCountUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes numberCountUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Section Animation */
.contact {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.contact.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.contact-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.contact.animate .contact-grid {
    opacity: 1;
    transform: translateY(0);
}

.contact-info .contact-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact.animate .contact-info .contact-item:nth-child(1) {
    animation: contactItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}
.contact.animate .contact-info .contact-item:nth-child(2) {
    animation: contactItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}
.contact.animate .contact-info .contact-item:nth-child(3) {
    animation: contactItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}
.contact.animate .contact-info .contact-item:nth-child(4) {
    animation: contactItemSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

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

.contact-form {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.contact.animate .contact-form {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax Scroll Effect */
.parallax-element {
    transform: translateY(0);
    transition: transform 0.1s linear;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Page Load Animation */
body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Page Transition Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
}

/* Interactive Button Animations */
.cta-btn,
.donate-btn,
.contact-form button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover,
.donate-btn:hover,
.contact-form button:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-btn:active,
.donate-btn:active,
.contact-form button:active {
    transform: translateY(0) scale(0.98);
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

/* Loading animations */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Entrance animations for floating elements */
.floating-buttons {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-buttons.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for attention */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Bounce animation */
.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Slide animations for mobile navigation */
.slide-in-mobile {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-mobile.active {
    transform: translateX(0);
}

/* Fade overlay animation */
.fade-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-overlay.active {
    opacity: 1;
}

/* Staggered list animations */
.stagger-list > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-list.animate > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-list.animate > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-list.animate > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-list.animate > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-list.animate > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-list.animate > * {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Hero Animations - Optimized and Reliable */
@media (max-width: 768px) {
    /* Override desktop animations for mobile */
    .hero {
        opacity: 0;
        animation: mobileHeroFadeIn 1s ease-out forwards !important;
    }
    
    .hero-content {
        opacity: 0;
        transform: translateY(30px);
        animation: mobileContentSlideUp 0.8s ease-out 0.3s forwards !important;
    }
    
    .hero-badge {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        animation: mobileBadgeSlideUp 0.6s ease-out 0.6s forwards !important;
    }
    
    .hero-title {
        opacity: 0;
        transform: translateY(25px);
        animation: mobileTitleSlideUp 0.7s ease-out 0.8s forwards !important;
    }
    
    .hero-subtitle {
        opacity: 0;
        transform: translateY(20px);
        animation: mobileSubtitleSlideUp 0.6s ease-out 1s forwards !important;
    }
    
    .hero-actions {
        opacity: 0;
        transform: translateY(25px);
        animation: mobileActionsSlideUp 0.7s ease-out 1.2s forwards !important;
    }
    
    .hero-actions .primary-btn {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards !important;
    }
    
    .hero-actions .secondary-btn {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.7s forwards !important;
    }
    
    /* Ensure buttons inside hero-actions are animated */
    .primary-btn {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards !important;
    }
    
    .secondary-btn {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.7s forwards !important;
    }
    
    /* Hide stats and features on mobile */
    .hero-stats,
    .hero-features,
    .hero-stats .stat-item,
    .feature-item {
        display: none !important;
    }
    
    /* Disable desktop animations on mobile */
    .hero,
    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .primary-btn,
    .secondary-btn {
        animation-name: none !important;
    }
    
    /* Re-enable mobile animations */
    .hero {
        animation-name: mobileHeroFadeIn !important;
    }
    
    .hero-content {
        animation-name: mobileContentSlideUp !important;
    }
    
    .hero-badge {
        animation-name: mobileBadgeSlideUp !important;
    }
    
    .hero-title {
        animation-name: mobileTitleSlideUp !important;
    }
    
    .hero-subtitle {
        animation-name: mobileSubtitleSlideUp !important;
    }
    
    .hero-actions {
        animation-name: mobileActionsSlideUp !important;
    }
    
    .primary-btn,
    .secondary-btn,
    .hero-actions .primary-btn,
    .hero-actions .secondary-btn {
        animation-name: mobileButtonPop !important;
    }
}
}
    
    .header {
        animation-duration: 0.4s;
        animation-delay: 0.05s;
    }
    
    /* Disable floating shapes animation on mobile for performance */
    .shape {
        animation: none;
        opacity: 0.25;
        transform: none;
    }
    
    /* Disable parallax on mobile */
    .parallax-element {
        transform: none !important;
    }
    
    /* Simplify scroll animations on mobile */
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale {
        transition-duration: 0.3s;
    }
    
    /* Optimize button animations for mobile */
    .primary-btn,
    .secondary-btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .feature-item {
        transition: transform 0.2s ease, background 0.2s ease;
    }
}

/* Very small mobile screens - minimal animations */
@media (max-width: 480px) {
    .hero {
        animation-duration: 0.4s;
    }
    
    .hero-content {
        animation-duration: 0.3s;
        animation-delay: 0.05s;
    }
    
    .hero-badge {
        animation-duration: 0.2s;
        animation-delay: 0.1s;
    }
    
    .hero-title {
        animation-duration: 0.3s;
        animation-delay: 0.15s;
    }
    
    .hero-subtitle {
        animation-duration: 0.3s;
        animation-delay: 0.2s;
    }
    
    .hero-stats {
        animation-duration: 0.3s;
        animation-delay: 0.25s;
    }
    
    .hero-stats .stat-item {
        animation-duration: 0.2s;
    }
    
    .hero-stats .stat-item:nth-child(1) { animation-delay: 0.3s; }
    .hero-stats .stat-item:nth-child(2) { animation-delay: 0.32s; }
    .hero-stats .stat-item:nth-child(3) { animation-delay: 0.34s; }
    
    .hero-actions {
        animation-duration: 0.3s;
        animation-delay: 0.36s;
    }
    
    .primary-btn {
        animation-delay: 0.4s;
        animation-duration: 0.2s;
    }
    
    .secondary-btn {
        animation-delay: 0.42s;
        animation-duration: 0.2s;
    }
    
    .hero-features {
        animation-duration: 0.3s;
        animation-delay: 0.44s;
    }
    
    .feature-item {
        animation-duration: 0.2s;
    }
    
    .feature-item:nth-child(1) { animation-delay: 0.46s; }
    .feature-item:nth-child(2) { animation-delay: 0.48s; }
    .feature-item:nth-child(3) { animation-delay: 0.5s; }
}

/* Low-end device optimizations */
.reduced-animations .hero,
.reduced-animations .hero-content,
.reduced-animations .header,
.reduced-animations .scroll-reveal,
.reduced-animations .scroll-reveal-left,
.reduced-animations .scroll-reveal-right,
.reduced-animations .scroll-reveal-scale {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
}

.reduced-animations .stat-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Fallback: Ensure sections are visible if JavaScript fails to load */
.about,
.contact,
.blog-slider-section {
    animation: showSectionFallback 0.1s 2s forwards;
}

@keyframes showSectionFallback {
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .slide-up,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .fade-in,
    .about-card,
    .hover-lift,
    .floating-buttons,
    .slide-in-mobile,
    .fade-overlay,
    .stagger-list > *,
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale,
    .hero,
    .hero-content,
    .header,
    .about,
    .contact,
    .blog-slider-section {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    .pulse,
    .bounce,
    .loading {
        animation: none !important;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    .slide-up,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .fade-in,
    .about-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles - disable animations */
@media print {
    .slide-up,
    .slide-in-left,
    .slide-in-right,
    .scale-in,
    .fade-in,
    .about-card,
    .hover-lift,
    .floating-buttons,
    .slide-in-mobile,
    .fade-overlay,
    .stagger-list > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}/*
/* Blog Slider Animations */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-slider-section {
    opacity: 1;
    transform: translateY(0);
}

.blog-slide-content {
    opacity: 1;
    transform: translateY(0);
}

.blog-slide:nth-child(1) .blog-slide-content {
    animation-delay: 0.1s;
}

.blog-slide:nth-child(2) .blog-slide-content {
    animation-delay: 0.2s;
}

.blog-slide:nth-child(3) .blog-slide-content {
    animation-delay: 0.3s;
}

.slider-controls {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animations for blog slides */
.blog-slide-content {
    position: relative;
    overflow: hidden;
}

.blog-slide-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.blog-slide-content:hover::after {
    left: 100%;
}

/* Pulse animation for active slider dot */
.slider-dot.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Slide transition animations */
.blog-slider {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading animation improvements */
.loading-slide {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button hover animations */
.slider-btn {
    position: relative;
    overflow: hidden;
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.slider-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* Auto-play progress indicator */
.slider-progress-container {
    position: relative;
    width: 100%;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.slider-progress {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    border-radius: 2px;
    animation: progressBar 6s linear infinite;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Entrance animations for different elements */
.blog-slider-header h2 {
    opacity: 1;
    transform: translateY(0);
}

.blog-slider-header p {
    opacity: 1;
    transform: translateY(0);
}

.view-all-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
    .blog-slider-section {
        animation-duration: 0.6s;
    }
    
    .blog-slide-content {
        animation-duration: 0.4s;
    }
    
    .slider-controls {
        animation-duration: 0.4s;
        animation-delay: 0.6s;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .blog-slider-section,
    .blog-slide-content,
    .slider-controls,
    .blog-slider-header h2,
    .blog-slider-header p,
    .view-all-btn {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .slider-dot.active {
        animation: none;
    }
    
    .slider-progress {
        animation: none;
    }
    
    .blog-slide-content::after {
        display: none;
    }
}
/* M
obile-Optimized Hero Animations */
@keyframes mobileHeroFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes mobileContentSlideUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileBadgeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mobileTitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileSubtitleSlideUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileActionsSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileButtonPop {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce motion for better performance on slower devices */
    @media (prefers-reduced-motion: reduce) {
        .hero,
        .hero-content,
        .hero-badge,
        .hero-title,
        .hero-subtitle,
        .hero-actions,
        .primary-btn,
        .secondary-btn {
            animation-duration: 0.01ms !important;
            animation-delay: 0s !important;
        }
    }
    
    /* GPU acceleration for smooth animations */
    .hero,
    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .primary-btn,
    .secondary-btn {
        will-change: transform, opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Mobile Animation Trigger Class */
@media (max-width: 768px) {
    /* Ensure animations are ready when body has the mobile-hero-ready class */
    body.mobile-hero-ready .hero {
        animation: mobileHeroFadeIn 1s ease-out forwards !important;
    }
    
    body.mobile-hero-ready .hero-content {
        animation: mobileContentSlideUp 0.8s ease-out 0.3s forwards !important;
    }
    
    body.mobile-hero-ready .hero-badge {
        animation: mobileBadgeSlideUp 0.6s ease-out 0.6s forwards !important;
    }
    
    body.mobile-hero-ready .hero-title {
        animation: mobileTitleSlideUp 0.7s ease-out 0.8s forwards !important;
    }
    
    body.mobile-hero-ready .hero-subtitle {
        animation: mobileSubtitleSlideUp 0.6s ease-out 1s forwards !important;
    }
    
    body.mobile-hero-ready .hero-actions {
        animation: mobileActionsSlideUp 0.7s ease-out 1.2s forwards !important;
    }
    
    body.mobile-hero-ready .primary-btn,
    body.mobile-hero-ready .hero-actions .primary-btn {
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.5s forwards !important;
    }
    
    body.mobile-hero-ready .secondary-btn,
    body.mobile-hero-ready .hero-actions .secondary-btn {
        animation: mobileButtonPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.7s forwards !important;
    }
}

/* Fallback: If JavaScript doesn't load, show content after 2 seconds */
@media (max-width: 768px) {
    .hero,
    .hero-content,
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-actions,
    .primary-btn,
    .secondary-btn {
        animation-fill-mode: both;
    }
    
    /* Ensure content is visible even if animations fail */
    @keyframes fallbackShow {
        to {
            opacity: 1 !important;
            transform: none !important;
        }
    }
    
    .hero {
        animation: mobileHeroFadeIn 1s ease-out forwards, fallbackShow 0.1s 3s forwards;
    }
}