/* Enhanced floating shapes with organic movement */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.4;
    animation: organicFloat 8s ease-in-out infinite;
    will-change: transform;
}

.floating-shape:nth-child(1) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(127, 219, 255, 0.15), rgba(255, 111, 97, 0.1));
    top: 15%;
    left: 12%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.12), rgba(207, 255, 229, 0.15));
    top: 65%;
    right: 18%;
    animation-delay: 2.5s;
}

.floating-shape:nth-child(3) {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(207, 255, 229, 0.18), rgba(127, 219, 255, 0.1));
    top: 75%;
    left: 25%;
    animation-delay: 5s;
}

.floating-shape:nth-child(4) {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(127, 219, 255, 0.1), transparent);
    top: 10%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes organicFloat {
    0%, 100% { 
        transform: translate3d(0px, 0px, 0) rotate(0deg) scale(1); 
        opacity: 0.3; 
    }
    25% { 
        transform: translate3d(-15px, -20px, 0) rotate(2deg) scale(1.05); 
        opacity: 0.5; 
    }
    50% { 
        transform: translate3d(10px, -25px, 0) rotate(-1deg) scale(0.95); 
        opacity: 0.6; 
    }
    75% { 
        transform: translate3d(20px, -10px, 0) rotate(3deg) scale(1.02); 
        opacity: 0.4; 
    }
}

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

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(207, 255, 229, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(207, 255, 229, 0.6); }
}

/* Entry animations with progressive disclosure */
.hero {
    animation: heroFadeIn 1.2s ease-out;
}

.logo {
    animation: logoFadeIn 0.8s ease-out 0.2s both, gentleBreathe 6s ease-in-out infinite;
}

.hero h1 {
    animation: titleFadeIn 0.8s ease-out 0.5s both, gradientShift 8s ease-in-out infinite;
}

.hero .subtitle {
    animation: subtitleFadeIn 0.8s ease-out 0.8s both;
}

.email-form {
    animation: formFadeIn 0.8s ease-out 1.1s both;
}

.modal-icon {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtitleFadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gentle breathing animation */
@keyframes gentleBreathe {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
}


/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translate3d(0, 50px, 0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }
.fade-in-up:nth-child(5) { transition-delay: 0.5s; }
