/* Hero Section CSS - ORIGINAL RESTORED with Chat Fix */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(124, 58, 237, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Background System */
.hero-video { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.active {
    opacity: 0.7;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-image.active {
    opacity: 0.6;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg-animation.active {
    opacity: 1;
}

.hero-bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
}

.hero-bg-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    animation: gradientShift 6s ease-in-out infinite;
}

/* Motion Overlay - Floating Elements */
.motion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 15s linear infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    animation-delay: -5s;
    animation-duration: 25s;
    background: rgba(255, 255, 255, 0.15);
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
    animation-duration: 18s;
    background: rgba(255, 255, 255, 0.1);
}

.floating-element:nth-child(4) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 20%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.animated-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: lineMove 8s linear infinite;
}

.animated-line:nth-child(5) {
    width: 300px;
    top: 20%;
    left: -300px;
    animation-delay: 0s;
}

.animated-line:nth-child(6) {
    width: 250px;
    top: 60%;
    left: -250px;
    animation-delay: -4s;
}

.animated-line:nth-child(7) {
    width: 200px;
    top: 80%;
    left: -200px;
    animation-delay: -2s;
}

.pulse-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-dot:nth-child(8) {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.pulse-dot:nth-child(9) {
    top: 65%;
    right: 25%;
    animation-delay: -1s;
}

.pulse-dot:nth-child(10) {
    bottom: 30%;
    left: 60%;
    animation-delay: -2s;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 20;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
}

/* Rotating Text System - ORIGINAL RESTORED */
.rotating-text-container {
    margin-bottom: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.text-line {
    transition: all 1.5s ease;
    margin: 0.2rem 0;
    text-align: center;
    font-weight: 700;
    width: 100%;
}

.text-line.featured {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    transform: scale(1);
}

.text-line.secondary {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    opacity: 0.6;
    color: #e5e7eb;
    transform: scale(0.8);
}

.text-line.tertiary {
    font-size: clamp(1.2rem, 2.4vw, 2rem);
    opacity: 0.3;
    color: #d1d5db;
    transform: scale(0.7);
}

/* Hero Controls - ORIGINAL */
.hero-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
}

.hero-control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-control-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Hero Title & Text - ORIGINAL GOLDEN COLORS */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-rotating-text {
    display: block;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons - ORIGINAL STYLING */
.cta-buttons,
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    color: #1f2937;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.hero .btn-outline,
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .btn-outline:hover,
.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Hero Quote */
.hero-quote {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    font-style: italic;
    opacity: 0.95;
}

/* Hero Stats - ORIGINAL */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    min-width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Indicator - ORIGINAL */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-oval {
    width: 32px;
    height: 54px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 27px;
    position: relative;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-ball {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBallMove 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.scroll-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ANIMATIONS - ORIGINAL RESTORED */
@keyframes scrollBallMove {
    0% {
        top: 8px;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 38px;
        opacity: 0;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    }
    50% {
        background: 
            radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    }
    50% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg);
        opacity: 0.4;
    }
    66% {
        transform: translateY(20px) translateX(-15px) rotate(240deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg);
        opacity: 0.7;
    }
}

@keyframes lineMove {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
}

/* Responsive Design - MINIMAL FIX APPLIED */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-controls {
        display: none;
    }
    
    .cta-buttons,
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat {
        min-width: 120px;
        padding: 1rem;
    }
    
    .floating-element {
        display: none; /* Hide on mobile for performance */
    }
    
    .animated-line {
        display: none;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-oval {
        width: 28px;
        height: 48px;
    }
}