/* Horizon Hero - Three.js Space Scene Implementation */

.horizon-hero-container {
    position: relative;
    width: 100%;
    height: 300vh; /* Multiple sections for scrolling */
    overflow: hidden;
    background: #000000;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Three.js Canvas */
.horizon-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Content Sections */
.content-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 2rem;
    text-align: center;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    visibility: hidden; /* Initially hidden for GSAP */
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-icon span {
    width: 1.5rem;
    height: 0.125rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.menu-icon:hover span {
    background: rgba(255, 255, 255, 1);
    transform: scaleX(1.2);
}

.menu-divider {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.menu-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Hero Title */
.hero-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    visibility: hidden; /* Initially hidden for GSAP */
}

.title-char {
    display: inline-block;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.4;
    margin-top: 2rem;
    max-width: 800px;
    visibility: hidden; /* Initially hidden for GSAP */
}

.subtitle-line {
    display: block;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    visibility: hidden; /* Initially hidden for GSAP */
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.progress-track {
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #ffffff, #a0a0a0);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.section-counter {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
}

/* Scroll Sections */
.scroll-sections {
    position: relative;
    z-index: 10;
}

/* Cosmos Section Specific Styles */
.cosmos-subtitle {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .side-menu {
        left: 1rem;
        gap: 1.5rem;
    }
    
    .scroll-progress {
        bottom: 1rem;
        right: 1rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 10vw, 8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 1rem;
    }
    
    .side-menu {
        display: none; /* Hide on mobile */
    }
    
    .scroll-progress {
        bottom: 1rem;
        right: 1rem;
        scale: 0.8;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 6rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        margin-top: 1rem;
    }
}

/* Loading Animation */
.horizon-hero-container.loading {
    opacity: 0;
}

.horizon-hero-container.ready {
    opacity: 1;
    transition: opacity 1s ease;
}

/* Three.js Scene Enhancements */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Performance Optimizations */
.horizon-canvas {
    will-change: transform;
    transform: translateZ(0);
}

.content-section {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
