/* =========================================================================
   Heroes Stylesheet - Premium UI
   ========================================================================= */

/* --- Hero Container --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: 24px;
    overflow: hidden;
    /* Dark overlay base behind the image */
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Hero Background Image --- */
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
    /* Darken the image so text pops out nicely */
    transition: transform 10s ease;
    /* Slow premium zoom effect */
}

.hero:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover for interactivity */
}

/* --- Hero Content Elements --- */
.hero h1 {
    position: relative;
    z-index: 2;
    /* Keep above the background image */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Responsive fluid typography */
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Optional: we can apply our text gradient here, or keep it stark white */
}

.hero p {
    position: relative;
    z-index: 2;
    /* Keep above the background image */
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white */
    max-width: 800px;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Add a subtle vignette overlay to the hero container to improve text contrast on light images */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 17, 21, 0.1) 0%,
            rgba(15, 17, 21, 0.8) 100%);
    z-index: 1;
}