/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

#hero-video.visible {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 2s ease-in-out;
    z-index: 2;
}

.video-overlay.transparent {
    opacity: 0.3;
}

.video-overlay.fade-in {
    opacity: 0.8;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text {
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1.5s ease forwards;
    animation-delay: 1s;
}

.hero-title {
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.title-line {
    display: block;
    color: var(--primary-color);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    color: var(--text-color);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    opacity: 0.9;
    animation: subtitleGlow 3s ease-in-out infinite alternate;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--text-muted);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 3D Scene Container */
#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Particles System */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 8s linear infinite;
}

.particle.large {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
}

.particle.small {
    width: 2px;
    height: 2px;
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    background: rgba(212, 175, 55, 0.1);
}

.scroll-wheel {
    width: 2px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 1px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: 7;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-element.symbol-1 {
    top: 20%;
    left: 10%;
    font-size: 2rem;
    color: var(--primary-color);
    animation-delay: 0s;
}

.floating-element.symbol-2 {
    top: 30%;
    right: 15%;
    font-size: 1.5rem;
    color: var(--accent-color);
    animation-delay: 2s;
}

.floating-element.symbol-3 {
    bottom: 40%;
    left: 15%;
    font-size: 1.8rem;
    color: var(--primary-color);
    animation-delay: 4s;
}

/* Animations */
@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleGlow {
    from {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) translateY(16px);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 700px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 600px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

/* High-performance optimizations */
.hero-section * {
    will-change: transform, opacity;
}

#hero-video {
    will-change: opacity;
}

.video-overlay {
    will-change: opacity;
}

/* Video fade effects */
.video-fade-out {
    opacity: 0 !important;
    transition: opacity 2s ease-in-out;
}

.video-fade-in {
    opacity: 1 !important;
    transition: opacity 2s ease-in-out;
}
