/* CSS Styles for Hero Hover Layout */

/* ====================================
   BASE / DESKTOP STYLES
   ==================================== */
.hover-hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #0f1115;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.hover-hero-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Navigation Menu styling */
.hover-hero-nav {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    z-index: 10;
    background: linear-gradient(90deg, #0f1115 80%, transparent);
}

.hover-hero-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a0aec0;
    margin-bottom: 2rem;
}

.hover-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hover-hero-item {
    margin-bottom: 1.5rem;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-hero-item.active,
.hover-hero-item:hover {
    opacity: 1;
    transform: translateX(10px);
}

.hover-hero-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    color: #ffffff;
}

.hover-hero-number {
    font-size: 1rem;
    font-family: monospace;
    margin-right: 1.5rem;
    color: #4a5568;
}

.hover-hero-description {
    font-size: 0.85em;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.hover-hero-item.active .hover-hero-description {
    opacity: 1;
}

.hover-hero-item.active .hover-hero-number {
    color: #3182ce;
}

.hover-hero-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Image Visual Window Styling */
.hover-hero-visual {
    width: 55%;
    position: relative;
    height: 100%;
}

.hover-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-hero-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hover-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 21, 0.2);
    z-index: 2;
    pointer-events: none;
}

/* ====================================
   TABLET (max-width: 992px)
   ==================================== */
@media (max-width: 992px) {
    .hover-hero-text {
        font-size: 2rem;
    }
    
    .hover-hero-nav {
        padding: 0 4%;
    }
}

/* ====================================
   MOBILE (max-width: 768px)
   ==================================== */
@media (max-width: 768px) {
    /* Let the section grow with content instead of fixed viewport height */
    .hover-hero-section {
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    
    /* Stack children vertically */
    .hover-hero-container {
        flex-direction: column;
    }
    
    /* Image comes first on mobile */
    .hover-hero-visual {
        width: 100%;
        height: 45vh;
        min-height: 280px;
        max-height: 400px;
        order: 1;
    }
    
    /* Menu comes second, sized by its content */
    .hover-hero-nav {
        width: 100%;
        height: auto;
        padding: 2rem 1.5rem;
        background: #0f1115;
        order: 2;
    }
    
    .hover-hero-title {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hover-hero-item {
        margin-bottom: 1.25rem;
        opacity: 1; /* All items fully visible on mobile — no hover */
        cursor: pointer;
    }
    
    /* Remove the hover translate on mobile */
    .hover-hero-item:hover {
        transform: none;
    }
    
    .hover-hero-item.active {
        transform: translateX(6px);
    }
    
    .hover-hero-text {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hover-hero-number {
        font-size: 0.9rem;
        margin-right: 1rem;
    }
    
    .hover-hero-description {
        font-size: 0.8em;
        opacity: 0.8;
        margin-top: 3px;
    }
}

/* ====================================
   SMALL MOBILE (max-width: 480px)
   ==================================== */
@media (max-width: 480px) {
    .hover-hero-visual {
        height: 35vh;
        min-height: 220px;
        max-height: 320px;
    }
    
    .hover-hero-nav {
        padding: 1.5rem 1rem;
    }
    
    .hover-hero-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hover-hero-item {
        margin-bottom: 1rem;
    }
    
    .hover-hero-text {
        font-size: 1.25rem;
    }
    
    .hover-hero-number {
        font-size: 0.8rem;
        margin-right: 0.75rem;
    }
    
    .hover-hero-description {
        font-size: 0.75em;
    }
}

/* ====================================
   FALLBACK: Older browsers without vh support
   ==================================== */
@supports not (height: 100vh) {
    .hover-hero-section {
        height: 600px;
    }
    
    @media (max-width: 768px) {
        .hover-hero-visual {
            height: 350px;
        }
    }
    
    @media (max-width: 480px) {
        .hover-hero-visual {
            height: 280px;
        }
    }
}