/* hero-enhanced.css - AI-Inspired Enhanced Hero Section Styles */

/* =================================================================
   ENHANCED HERO CONTAINER
   ================================================================= */
.hero {
    position: relative;
    overflow: hidden;
}

/* Animated Gradient Background - 2 Colors Only */
.hero-background {
  background: linear-gradient(
    135deg,
    #11998e 0%,
    #38ef7d 25%,
    #11998e 50%,
    #38ef7d 75%,
    #11998e 100%
);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particle Canvas Container */
#hero-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Neural Network Lines */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

/* =================================================================
   HERO CONTENT ENHANCEMENTS
   ================================================================= */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Animated Title - Light & Always Visible */
.hero-title {
    position: relative;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.3);
    /* Removed heavy pulsing animation */
}

/* Title Text - Always Visible */
.hero-title .gradient-text {
    position: relative;
    display: inline-block;
    /* Removed glitch effect */
}

/* Letter Animation Container */
.hero-title .gradient-text .letter {
    display: inline-block;
    opacity: 0;
    animation: letterFade 3s ease-in-out infinite;
}

/* Stagger each letter with delay */
.hero-title .gradient-text .letter:nth-child(1) { animation-delay: 0s; }
.hero-title .gradient-text .letter:nth-child(2) { animation-delay: 0.1s; }
.hero-title .gradient-text .letter:nth-child(3) { animation-delay: 0.2s; }
.hero-title .gradient-text .letter:nth-child(4) { animation-delay: 0.3s; }
.hero-title .gradient-text .letter:nth-child(5) { animation-delay: 0.4s; }
.hero-title .gradient-text .letter:nth-child(6) { animation-delay: 0.5s; }
.hero-title .gradient-text .letter:nth-child(7) { animation-delay: 0.6s; }
.hero-title .gradient-text .letter:nth-child(8) { animation-delay: 0.7s; }
.hero-title .gradient-text .letter:nth-child(9) { animation-delay: 0.8s; }
.hero-title .gradient-text .letter:nth-child(10) { animation-delay: 0.9s; }
.hero-title .gradient-text .letter:nth-child(11) { animation-delay: 1s; }
.hero-title .gradient-text .letter:nth-child(12) { animation-delay: 1.1s; }

@keyframes letterFade {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Floating Emoji Animation - Gentler */
.hero-emoji {
    display: inline-block;
    animation: floatEmoji 4s ease-in-out infinite;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* Subtitle Fade-in with Typing Effect */
.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-mtitle {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* =================================================================
   CTA BUTTONS ENHANCEMENT
   ================================================================= */
.hero-cta {
    animation: fadeInUp 1s ease forwards 1s;
    opacity: 0;
}

.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer Effect on Buttons */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Primary Button - Light Glow */
.cta-button.primary {
    box-shadow: 
        0 0 10px rgba(255, 107, 107, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    /* Removed heavy glow animation */
}

.cta-button.primary:hover {
    box-shadow: 
        0 0 15px rgba(255, 107, 107, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Secondary Button Border Animation */
.cta-button.secondary {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-button.secondary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #667eea,
        #764ba2,
        #f093fb,
        #4facfe
    );
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    background-size: 300% 300%;
    animation: borderGradient 3s ease infinite;
}

.cta-button.secondary:hover::after {
    opacity: 1;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =================================================================
   STATS BAR ENHANCEMENT
   ================================================================= */
.stats-bar {
    position: relative;
    animation: fadeInUp 1s ease forwards 1.5s;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Glassmorphism Effect */
.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 15px;
    z-index: -1;
}

/* Stat Item Animation */
.stat-item {
    position: relative;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

/* Number Counter Animation */
.stat-number {
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-number.counting {
    animation: numberPulse 0.5s ease;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Scanning Line Effect */
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    animation: scanLine 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanLine {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* =================================================================
   FLOATING ELEMENTS - Lighter & Slower
   ================================================================= */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.3; /* Much lighter */
    z-index: 2;
}

.floating-element.icon-1 {
    top: 15%;
    left: 10%;
    animation: float 10s ease-in-out infinite; /* Slower */
}

.floating-element.icon-2 {
    bottom: 20%;
    right: 10%;
    animation: float 12s ease-in-out infinite 2s; /* Slower */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(3deg); /* Less movement */
    }
}

/* Icon Styles - Lighter */
.floating-icon {
    font-size: 36px; /* Smaller */
    color: rgba(255, 255, 255, 0.2); /* More transparent */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* =================================================================
   DIGITAL GRID OVERLAY - Lighter
   ================================================================= */
.digital-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite; /* Slower */
    z-index: 1;
    pointer-events: none;
    opacity: 0.5; /* More transparent */
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px !important;
    }
    
    .stat-number {
        font-size: 24px !important;
    }
    
    .floating-element {
        display: none;
    }
    
    .digital-grid {
        background-size: 30px 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px !important;
    }
    
    .cta-button {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
    .hero-background {
        animation-duration: 20s;
    }
}

/* =================================================================
   ACCESSIBILITY - REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}