/* =====================================================
   HERO SECTION - ULTRA DYNAMIC ANIMATIONS
   ===================================================== */

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Particles/Bubbles */
.particle {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    animation: floatUp 15s infinite ease-in-out;
    opacity: 0.7;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.particle:nth-child(even) {
    width: 30px;
    height: 30px;
    animation-duration: 18s;
}

.particle:nth-child(3n) {
    width: 50px;
    height: 50px;
    animation-duration: 12s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Animated Waves */
@keyframes wave1 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes wave2 {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

@keyframes wave3 {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(-25%) scale(1.05);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Glowing Orbs Float */
@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
    }
    50% {
        transform: translate(-20px, -60px) scale(0.9);
    }
    75% {
        transform: translate(-40px, -30px) scale(1.05);
    }
}

/* Pulsing Glow Effect */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Spinning Rings with Pulse */
@keyframes spin-pulse {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(180deg) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

/* Orbiting Icons */
@keyframes orbit1 {
    0% {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(200px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotate(120deg) translateX(220px) rotate(-120deg);
    }
    100% {
        transform: rotate(480deg) translateX(220px) rotate(-480deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotate(240deg) translateX(210px) rotate(-240deg);
    }
    100% {
        transform: rotate(600deg) translateX(210px) rotate(-600deg);
    }
}

/* Logo 3D Hover Effect */
.logo-hover-3d {
    transition: all 0.5s ease;
}

.logo-container:hover .logo-hover-3d {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

/* Enhanced Glass Effect */
.glass-effect-enhanced {
    position: relative;
    overflow: hidden;
}

.glass-effect-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Animation for Logo */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Ring Glow Effect on Hover */
.ring-animation {
    transition: all 0.5s ease;
}

.logo-container:hover .ring-animation {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(74, 144, 184, 0.6);
}

/* Typewriter Effect (Optional) */
.typewriter {
    overflow: hidden;
    border-right: 0.15em solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgba(255, 255, 255, 0.75);
    }
}

/* Text Glow Animation */
.text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                     0 0 20px rgba(74, 144, 184, 0.3),
                     0 0 30px rgba(74, 144, 184, 0.2);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                     0 0 30px rgba(74, 144, 184, 0.6),
                     0 0 40px rgba(74, 144, 184, 0.4);
    }
}

/* Button Hover Effects */
.hero-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Parallax Scroll Effect */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-indicator i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 30px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .particle {
        width: 30px;
        height: 30px;
    }

    .orbit-icon {
        display: none; /* Hide orbiting icons on mobile for performance */
    }

    @keyframes orbit1, @keyframes orbit2, @keyframes orbit3 {
        0%, 100% {
            transform: none;
        }
    }
}

@media (max-width: 768px) {
    .glass-effect-enhanced {
        width: 280px !important;
        height: 280px !important;
    }

    .glass-effect-enhanced img {
        width: 200px !important;
        height: 200px !important;
    }

    .particle:nth-child(n+6) {
        display: none; /* Show fewer particles on mobile */
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU Acceleration */
.particle,
.wave-animation,
.ring-animation,
.orbit-icon,
.float-animation {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
