/* Base Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Mada', sans-serif;
}

.main-content {
    flex: 1;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.desert-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}

/* Alpine.js Cloak */
[x-cloak] {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes duneSlideUp {
    from {
        opacity: 0;
        transform: translateY(200px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowShift {
    0%, 100% {
        filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.4));
    }
    33% {
        filter: drop-shadow(0 8px 24px rgba(217, 117, 54, 0.4));
    }
    66% {
        filter: drop-shadow(0 8px 24px rgba(245, 243, 232, 0.3));
    }
}

/* Animation Classes */
.dune-bg-layer {
    animation: duneSlideUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.dune-bg-1 {
    animation-delay: 0.1s;
}

.dune-bg-2 {
    animation-delay: 0.2s;
}

.dune-bg-3 {
    animation-delay: 0.3s;
}

.dune-bg-4 {
    animation-delay: 0.4s;
}

.logo-glow {
    animation: glowShift 4s ease-in-out infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.pulse-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #d97536 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Gradient Overlay */
.main-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, #0f0a08 100%);
    z-index: 5;
    pointer-events: none;
}

/* Scroll Reveal Animations */
@keyframes fadeInUpScroll {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(212, 175, 55, 0.95);
    color: #1a1510;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.95);
}

/* Button Ripple Effect */
.ripple-container {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(4);
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    animation: ripple 0.6s ease-out;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 21, 16, 0.3);
    border-top-color: #1a1510;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Enhanced Logo Animation */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.logo-float {
    animation: logoFloat 3s ease-in-out infinite;
}

/* Smooth Transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
