/* Modern Enhancements for Mawingu Camp - Desktop & Mobile */

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

/* Mobile-First Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* Enhanced Hero Section */
.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-cta {
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(251, 146, 60, 0.4);
}

.hero-cta:active {
    transform: translateY(-1px);
}

/* Floating Animation for Icons */
.float-icon {
    animation: float 3s ease-in-out infinite;
}

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

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

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

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Mobile Navigation Enhancement */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-item {
        animation: slideInRight 0.3s ease forwards;
    }
    
    .mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
    .mobile-menu-item:nth-child(2) { animation-delay: 0.15s; }
    .mobile-menu-item:nth-child(3) { animation-delay: 0.2s; }
    .mobile-menu-item:nth-child(4) { animation-delay: 0.25s; }
    .mobile-menu-item:nth-child(5) { animation-delay: 0.3s; }
}

/* Enhanced Image Containers */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.image-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

/* Gradient Text Enhancement */
.gradient-text {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

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

/* Enhanced Shadows */
.shadow-elegant {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shadow-elegant-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-elegant-hover:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 5px 10px rgba(0, 0, 0, 0.08);
}

/* Pulse Animation for CTAs */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(251, 146, 60, 0);
    }
}

.pulse-cta {
    animation: pulse 2s infinite;
}

/* Mobile Touch Feedback */
@media (hover: none) and (pointer: coarse) {
    .modern-card:active {
        transform: scale(0.98);
    }
    
    .btn-primary:active {
        transform: scale(0.95);
    }
}

/* Improved Spacing for Mobile */
@media (max-width: 640px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .container-mobile {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Sticky Header Enhancement */
.sticky-header {
    transition: all 0.3s ease;
}

.sticky-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Enhanced Form Inputs */
.modern-input {
    transition: all 0.3s ease;
}

.modern-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251, 146, 60, 0.2);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Progress Indicators */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Improved Accessibility */
.focus-visible:focus {
    outline: 3px solid #fb923c;
    outline-offset: 2px;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1a1a1a;
        color: #ffffff;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Mobile-Specific Enhancements */
@media (max-width: 768px) {
    /* Larger touch targets */
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better readability */
    .mobile-text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
    
    /* Optimized images */
    img {
        max-width: 100%;
        height: auto;
    }
}
