﻿/* Hero Section CSS - Interactive Demo Features */

/* Hero Section Base */
.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% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(-20px) translateY(-10px); }
    66% { transform: translateX(20px) translateY(10px); }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 60%;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Rotating Text Container */
.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-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #f59e0b;
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

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

.hero-quote {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Background Controls */
.bg-controls {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 10px;
    color: white;
}

.bg-controls h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.bg-controls button {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    background: #374151;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.bg-controls button:hover {
    background: #2563eb;
}

.bg-controls button.active {
    background: #10b981;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }
    
    .rotating-text-container {
        min-height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bg-controls {
        display: none;
    }
}
