/* Custom Animations & Styles */

/* Parallax Scrolling Effect */
.parallax {
    transform: translateZ(-1px) scale(2);
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scale Pulse */
@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Glow Pulse */
@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(253, 184, 19, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(253, 184, 19, 0.8));
    }
}

/* Background Pan */
@keyframes bg-pan {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Slow Spin */
@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Floating Animation for Texas Stars */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Pulse Glow */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(191, 87, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(191, 87, 0, 0.6);
    }
}

/* Bounce In */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Slide In From Right */
@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Left */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Up */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.animate-shimmer {
    animation: shimmer 3s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #F5E6D3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #BF5700 0%, #CC5500 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #CC5500 0%, #FF6B35 100%);
}

/* Animated Background Particles */
.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(253, 184, 19, 0.6);
    border-radius: 50%;
    animation: float-particles 20s linear infinite;
}

@keyframes float-particles {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

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

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Text Gradient Animation */
.text-gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glowing Border Effect */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #BF5700, #FF6B35, #FDB813, #5A7FA5);
    background-size: 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-shift 8s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

/* Sparkle Effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

/* Fade In Scale */
@keyframes fade-in-scale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ken Burns Effect (Zoom Pan) */
@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(10px, 10px);
    }
}

/* Subtle Shake */
@keyframes subtle-shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

/* Color Shift */
@keyframes color-shift {
    0%, 100% {
        color: #BF5700;
    }
    50% {
        color: #FDB813;
    }
}

/* Background Breathe */
@keyframes bg-breathe {
    0%, 100% {
        background-color: rgba(191, 87, 0, 0.05);
    }
    50% {
        background-color: rgba(191, 87, 0, 0.15);
    }
}

/* Wiggle */
@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

/* Utility Classes */
.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.animate-fade-in-scale {
    animation: fade-in-scale 0.6s ease-out;
}

.animate-ken-burns {
    animation: ken-burns 20s ease-in-out infinite alternate;
}

.animate-subtle-shake {
    animation: subtle-shake 3s ease-in-out infinite;
}

.animate-color-shift {
    animation: color-shift 4s ease infinite;
}

.animate-bg-breathe {
    animation: bg-breathe 4s ease infinite;
}

.animate-wiggle {
    animation: wiggle 2s ease-in-out infinite;
}

/* Staggered 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; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Professional Subtle Patterns */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(191, 87, 0, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.grid-pattern {
    background-image:
        linear-gradient(rgba(191, 87, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 87, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.diagonal-lines {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(191, 87, 0, 0.02) 10px,
        rgba(191, 87, 0, 0.02) 20px
    );
}

/* Enhanced Shadows for Depth */
.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1), 0 12px 25px -5px rgba(0, 0, 0, 0.08);
}

.shadow-strong {
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15), 0 15px 35px -10px rgba(0, 0, 0, 0.12);
}

/* Professional Typography Enhancements */
.text-balance {
    text-wrap: balance;
}

.letter-spacing-tight {
    letter-spacing: -0.025em;
}

.letter-spacing-relaxed {
    letter-spacing: 0.05em;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #BF5700;
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(191, 87, 0, 0.1);
}
