/* Hero Section Animations */
.hero {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    min-height: 600px;
    z-index: 1;
}

/* Bouncing Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(1px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: float 8s ease-in-out infinite;
    z-index: -1;
}

.bubble:nth-child(1) {
    width: 120px;
    height: 120px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.bubble:nth-child(2) {
    width: 80px;
    height: 80px;
    left: 20%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.bubble:nth-child(3) {
    width: 150px;
    height: 150px;
    right: 15%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.bubble:nth-child(4) {
    width: 60px;
    height: 60px;
    right: 30%;
    top: 70%;
    animation-delay: 0.5s;
    animation-duration: 7s;
}

.bubble:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 40%;
    top: 40%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.bubble:nth-child(6) {
    width: 100px;
    height: 100px;
    right: 5%;
    top: 50%;
    animation-delay: 2.5s;
    animation-duration: 11s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }

    33% {
        transform: translateY(-50px) translateX(20px) rotate(10deg) scale(1.05);
    }

    66% {
        transform: translateY(20px) translateX(-15px) rotate(-5deg) scale(0.95);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
}

/* Geometric Shapes */
.shape {
    position: absolute;
    opacity: 0.15;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #fff;
    top: 15%;
    left: 15%;
    animation-duration: 30s;
}

.shape.square {
    width: 80px;
    height: 80px;
    background: #fff;
    top: 60%;
    right: 10%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.shape.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    bottom: 20%;
    left: 20%;
    animation-duration: 35s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: particle-move 15s infinite linear;
}

@keyframes particle-move {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-500px) translateX(100px);
        opacity: 0;
    }
}

/* Hero Content Animation */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    animation: fade-up 1s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: scale-in 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fade-in 1.5s ease-out;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.hero-content .btn {
    margin: 0 10px 10px 0;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: bounce-in 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-content .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-content .btn-accent {
    animation-delay: 0.2s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }

    40% {
        opacity: 1;
        transform: scale(1.1) translateY(-10px);
    }

    70% {
        transform: scale(0.9) translateY(5px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

/* Wave Effects at Bottom */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}

/* Glow effect */
.glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(30px);
    animation: pulse 6s infinite alternate;
    z-index: -1;
}

.glow:nth-child(1) {
    top: 10%;
    left: 20%;
    background: rgba(52, 152, 219, 0.2);
    animation-delay: 0s;
}

.glow:nth-child(2) {
    top: 60%;
    right: 30%;
    background: rgba(46, 204, 113, 0.2);
    animation-delay: 2s;
}

.glow:nth-child(3) {
    bottom: 20%;
    left: 40%;
    background: rgba(243, 156, 18, 0.2);
    animation-delay: 4s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.1;
    }
}

/* Typing effect for hero subtitle */
.typed-text::after {
    content: '|';
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .bubble,
    .shape {
        transform: scale(0.7);
    }
}