/* ==================== TOURIX ANIMATED HERO ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    overflow-x: hidden;
}

/* Hero Section with Animated Background */
.hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, 
        #0a0a0a 0%,
        #1a1319 25%,
        #2d1810 50%,
        #1a1319 75%,
        #0a0a0a 100%) !important;
    background-size: 400% 400% !important;
    animation: heroGradientShift 20s ease infinite !important;
}

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

/* Animated Geometric Shapes - Gold Theme */
.hero::before {
    content: "" !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(201, 162, 39, 0.15) 0%, transparent 70%) !important;
    animation: shapesMove 25s ease-in-out infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes shapesMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        transform: scale(1) rotate(0deg);
    }
    50% {
        background-position: 100% 100%, 0% 0%, 80% 20%;
        transform: scale(1.1) rotate(5deg);
    }
}

/* Animated Grid Pattern */
.hero-pattern {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    background-image: 
        linear-gradient(rgba(201, 162, 39, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.06) 1px, transparent 1px) !important;
    background-size: 70px 70px !important;
    animation: gridMove 30s linear infinite !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

/* Glowing Orbs - Gold */
.hero::after {
    content: "" !important;
    position: absolute !important;
    width: 700px !important;
    height: 700px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: radial-gradient(circle, 
        rgba(201, 162, 39, 0.4) 0%, 
        rgba(212, 175, 55, 0.25) 30%, 
        transparent 70%) !important;
    border-radius: 50% !important;
    filter: blur(120px) !important;
    animation: orbPulse 15s ease-in-out infinite !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

@keyframes orbPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.9;
    }
}

/* Overlay for text readability */
.hero-overlay {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* Content above all backgrounds */
.hero-content,
.hero .container {
    position: relative !important;
    z-index: 10 !important;
}

/* Light Rays Effect */
.hero-rays {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(201, 162, 39, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(212, 175, 55, 0.08) 50%, transparent 70%) !important;
    background-size: 300% 300% !important;
    animation: raysMove 25s linear infinite !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

@keyframes raysMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 300%; }
}

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

.hero-sparkles {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

.hero-sparkles::before,
.hero-sparkles::after {
    content: "✦" !important;
    position: absolute !important;
    color: rgba(201, 162, 39, 0.9) !important;
    font-size: 35px !important;
    animation: sparkle 5s ease-in-out infinite !important;
    text-shadow: 0 0 15px rgba(201, 162, 39, 0.9), 0 0 30px rgba(212, 175, 55, 0.6) !important;
}

.hero-sparkles::before {
    top: 20% !important;
    left: 12% !important;
    animation-delay: 0s !important;
}

.hero-sparkles::after {
    bottom: 25% !important;
    right: 15% !important;
    animation-delay: 2.5s !important;
}

/* Floating Particles */
@keyframes floatParticle {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(40px, -60px) rotate(180deg);
        opacity: 1;
    }
}

.hero .container::before {
    content: "" !important;
    position: absolute !important;
    width: 300px !important;
    height: 300px !important;
    top: 12% !important;
    right: 6% !important;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.25) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    animation: floatParticle 20s ease-in-out infinite !important;
    z-index: -1 !important;
    filter: blur(50px) !important;
}

.hero .container::after {
    content: "" !important;
    position: absolute !important;
    width: 250px !important;
    height: 250px !important;
    bottom: 15% !important;
    left: 10% !important;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    animation: floatParticle 18s ease-in-out infinite reverse !important;
    z-index: -1 !important;
    filter: blur(50px) !important;
}

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

/* Ensure all animations are running */
* {
    animation-play-state: running !important;
}
