/* Hero Animation Styles - Light Theme */
/* Calm, evidence-first, scientific feel */

.hero-animation {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

/* Subtle gradient orbs in background */
.hero-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    animation: float-orb 20s ease-in-out infinite;
}

.hero-animation::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    animation: float-orb 25s ease-in-out infinite reverse;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

/* Particle Background - subtle dots */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: particle-float 20s infinite ease-in-out;
    opacity: 0;
}

.particle:nth-child(odd) {
    background: var(--accent);
}

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(100vh) scale(0.5);
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(0.8);
    }
}

/* Glowing Text Container */
.glow-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-8);
}

/* Main Text - clean, professional */
.glow-text {
    font-family: var(--font-family);
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    position: relative;
}

/* Subtle gradient accent on text */
.glow-text span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typing cursor */
.cursor {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

/* Subtitle */
.glow-subtitle {
    font-family: var(--font-family);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray-500);
    margin-top: var(--space-4);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

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

/* Subtle decorative rings - removed aggressive pulse */
.pulse-ring {
    display: none; /* Disabled for cleaner look */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: gentle-bounce 2.5s infinite ease-in-out;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--gray-400);
    stroke-width: 2;
    transition: stroke 0.2s ease;
}

.scroll-indicator:hover svg {
    stroke: var(--primary);
}

@keyframes gentle-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

/* Alternative Hero Style - Minimal */
.hero-minimal {
    position: relative;
    padding: var(--space-16) var(--space-6);
    text-align: center;
    background: var(--white);
}

.hero-minimal h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.hero-minimal p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* Decorative line */
.hero-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    margin: var(--space-6) auto;
}

/* Feature highlight animation */
.feature-highlight {
    opacity: 0;
    transform: translateY(20px);
    animation: feature-appear 0.6s ease-out forwards;
}

.feature-highlight:nth-child(1) { animation-delay: 0.1s; }
.feature-highlight:nth-child(2) { animation-delay: 0.2s; }
.feature-highlight:nth-child(3) { animation-delay: 0.3s; }

@keyframes feature-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success checkmark animation */
.success-check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pop-in 0.4s ease-out;
}

.success-check svg {
    width: 24px;
    height: 24px;
    stroke: var(--success);
    stroke-width: 3;
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Progress animation */
.progress-animated .progress-bar {
    animation: progress-fill 1s ease-out forwards;
}

@keyframes progress-fill {
    from {
        width: 0;
    }
}

/* Card entrance animation */
.card-animated {
    opacity: 0;
    transform: translateY(16px);
    animation: card-enter 0.5s ease-out forwards;
}

@keyframes card-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Number count-up effect container */
.count-up {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-animation {
        min-height: 40vh;
    }

    .glow-container {
        padding: var(--space-6);
    }

    .scroll-indicator {
        bottom: var(--space-4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .particle,
    .glow-text,
    .glow-subtitle,
    .scroll-indicator,
    .feature-highlight,
    .card-animated {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-animation::before,
    .hero-animation::after {
        animation: none;
    }
}
