/* Hero Section Animations */

/* Background floating elements */
.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    animation: float 6s ease-in-out infinite;
}

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

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 30px;
    height: 30px;
    top: 30%;
    right: 8%;
    transform: rotate(45deg);
    animation-delay: 4s;
}

.floating-dots {
    top: 80%;
    right: 15%;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

/* Content animations */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-text {
    animation: fadeIn 1.5s ease-out 0.5s both;
}

.hero-badge {
    animation: slideInDown 1s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    animation: statusPulse 2s infinite;
}

/* Brain icon animations */
.brain-icon-container {
    position: relative;
    display: inline-block;
}

.brain-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    animation: brainPulse 3s infinite;
}

.pulse-slow {
    animation: pulse 4s infinite;
}

/* Text highlight animation */
.text-highlight {
    display: inline-block;
}

.highlight-underline {
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    animation: drawLine 2s ease-out 1s both;
}

/* Feature tags */
.feature-tag {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-lift-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Counter animation */
.counter {
    animation: countUp 2s ease-out 1.5s both;
}

/* Hero illustration animations */
.circle-gradient {
    animation: rotateGlow 20s linear infinite;
    border: 2px solid rgba(255,255,255,0.3);
}

.central-brain {
    animation: breathe 4s ease-in-out infinite;
}

.brain-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    animation: pulseRing 3s infinite;
}

.pulse-delay-1 {
    animation-delay: 1s;
}

.pulse-delay-2 {
    animation-delay: 2s;
}

/* Orbiting elements */
.orbit {
    position: absolute;
    border: 1px dashed rgba(0,0,0,0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    top: 75px;
    left: 75px;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    top: 50px;
    left: 50px;
    animation-direction: reverse;
    animation-duration: 25s;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    top: 25px;
    left: 25px;
    animation-duration: 30s;
}

.orbit-4 {
    width: 320px;
    height: 320px;
    top: 15px;
    left: 15px;
    animation-direction: reverse;
    animation-duration: 35s;
}

.orbit-item {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.hover-float:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Data visualization */
.data-viz {
    opacity: 0.8;
}

.data-viz-1 {
    top: 20%;
    left: -20px;
    display: flex;
    gap: 3px;
}

.viz-bar {
    width: 4px;
    height: 20px;
}

.data-viz-2 {
    bottom: 20%;
    right: -20px;
}

.viz-circle {
    width: 12px;
    height: 12px;
}

.animate-bar {
    animation: barGrow 2s infinite;
}

.animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Info cards */
.info-card {
    z-index: 10;
    transition: all 0.3s ease;
}

.info-card-1 {
    top: 15%;
    left: -50px;
}

.info-card-2 {
    bottom: 15%;
    right: -50px;
}

.animate-float {
    animation: floatCard 6s ease-in-out infinite;
}

.icon-circle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes brainPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

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

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

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

@keyframes barGrow {
    0%, 100% { height: 15px; }
    50% { height: 25px; }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-illustration .circle-gradient {
        width: 280px !important;
        height: 280px !important;
    }
    
    .brain-main-icon {
        font-size: 4rem !important;
    }
    
    .info-card {
        display: none;
    }
    
    .orbit {
        transform: scale(0.8);
    }
    
    .floating-shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-illustration .circle-gradient {
        width: 250px !important;
        height: 250px !important;
    }
    
    .hero-stats {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }
    
    .feature-highlights .row {
        justify-content: center;
    }
}

/* Dark Mode Support with Space Grotesk Font */
[data-bs-theme="dark"] .hero-section,
.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%) !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .hero-section *,
.dark-mode .hero-section * {
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .hero-section .text-dark,
.dark-mode .hero-section .text-dark {
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .hero-badge,
.dark-mode .hero-badge {
    background: rgba(255, 193, 7, 0.15) !important;
    color: #ffc107 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .hero-badge .status-dot,
.dark-mode .hero-badge .status-dot {
    background: #68d391 !important;
}

[data-bs-theme="dark"] .hero-title,
.dark-mode .hero-title {
    color: #e2e8f0 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .brand-text,
.dark-mode .brand-text {
    color: #e2e8f0 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .fade-in-text,
.dark-mode .fade-in-text {
    color: #cbd5e0 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .hero-description,
.dark-mode .hero-description {
    color: #a0aec0 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .floating-info-card,
.dark-mode .floating-info-card {
    background: rgba(45, 55, 72, 0.9) !important;
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #e2e8f0 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .floating-info-card h6,
.dark-mode .floating-info-card h6 {
    color: #ffc107 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .floating-info-card small,
.dark-mode .floating-info-card small {
    color: #94a3b8 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .feature-tag,
.dark-mode .feature-tag {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .btn-warning,
.dark-mode .btn-warning {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #1a202c !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .btn-outline-warning,
.dark-mode .btn-outline-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
    font-family: "Space Grotesk", sans-serif !important;
}

[data-bs-theme="dark"] .btn-outline-warning:hover,
.dark-mode .btn-outline-warning:hover {
    background-color: #ffc107 !important;
    color: #1a202c !important;
}

[data-bs-theme="dark"] .floating-shape,
.dark-mode .floating-shape {
    background: rgba(255, 193, 7, 0.05) !important;
}

[data-bs-theme="dark"] .floating-dots .dot,
.dark-mode .floating-dots .dot {
    background: rgba(255, 193, 7, 0.15) !important;
}

[data-bs-theme="dark"] .brain-icon-container i,
.dark-mode .brain-icon-container i {
    color: #ffc107 !important;
}

[data-bs-theme="dark"] .brain-pulse,
.dark-mode .brain-pulse {
    border: 2px solid rgba(255, 193, 7, 0.3);
}

[data-bs-theme="dark"] .orbiting-element,
.dark-mode .orbiting-element {
    background: rgba(45, 55, 72, 0.8) !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107 !important;
}

/* Ensure all typography uses Space Grotesk in dark mode */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] p,
[data-bs-theme="dark"] span,
[data-bs-theme="dark"] div,
[data-bs-theme="dark"] a,
[data-bs-theme="dark"] button,
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6,
.dark-mode p,
.dark-mode span,
.dark-mode div,
.dark-mode a,
.dark-mode button {
    font-family: "Space Grotesk", sans-serif !important;
}

/* Accessibility improvements - maintain Space Grotesk even with reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-bs-theme="dark"] *,
    .dark-mode * {
        font-family: "Space Grotesk", sans-serif !important;
    }
}
