/* ===================================
   AKED - Hero Background Animations
   =================================== */

/* Animated Background Container */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Animated Shapes */
.animated-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0.1;
    animation: float-shape 20s ease-in-out infinite;
}

.animated-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.animated-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.animated-shape.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    animation-delay: 6s;
    animation-duration: 22s;
}

.animated-shape.shape-4 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.animated-shape.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 30%;
    right: 5%;
    animation-delay: 5s;
    animation-duration: 24s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, 40px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg) scale(1.05);
    }
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Individual Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    top: 80%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 40%;
    animation-delay: 4s;
    animation-duration: 18s;
}

.particle:nth-child(4) {
    left: 40%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 14s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 30%;
    animation-delay: 3s;
    animation-duration: 16s;
}

.particle:nth-child(6) {
    left: 60%;
    top: 70%;
    animation-delay: 5s;
    animation-duration: 13s;
}

.particle:nth-child(7) {
    left: 70%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    left: 80%;
    top: 25%;
    animation-delay: 4.5s;
    animation-duration: 19s;
}

.particle:nth-child(9) {
    left: 90%;
    top: 65%;
    animation-delay: 1.5s;
    animation-duration: 14.5s;
}

.particle:nth-child(10) {
    left: 15%;
    top: 55%;
    animation-delay: 3.5s;
    animation-duration: 16.5s;
}

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

/* Glowing Gradient Animation */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 100, 102, 0.1) 25%,
        rgba(77, 25, 77, 0.1) 50%,
        rgba(0, 100, 102, 0.1) 75%,
        transparent 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse Effect on Hero Content */
.hero-content {
    animation: content-pulse 4s ease-in-out infinite;
}

@keyframes content-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

/* Animated Border */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--color-primary) 0%, 
        var(--color-accent) 50%, 
        var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: border-slide 3s linear infinite;
    z-index: 10;
}

@keyframes border-slide {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Remove/Minimize on Mobile */
@media (max-width: 768px) {
    .animated-shape {
        opacity: 0.05;
    }
    
    .particle {
        display: none;
    }
    
    .hero-overlay::after {
        animation: none;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .animated-shape,
    .particle,
    .hero-overlay::after {
        animation: none;
    }
    
    .hero-content {
        animation: none;
    }
}

