:root {
    --hero-title-font-size: clamp(3rem, 2.2rem + 1.5vw, 5.5rem);
    --hero-subtitle-font-size: clamp(1.75rem, 1.3rem + 0.8vw, 2.75rem);
}

@media (min-width: 1920px) {
    :root {
        --hero-title-font-size: clamp(3.5rem, 2.4rem + 2vw, 6.5rem);
        --hero-subtitle-font-size: clamp(2rem, 1.5rem + 1.2vw, 3.25rem);
    }

    .hero-text {
        font-size: var(--hero-title-font-size);
        line-height: 1.2;
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-align: left;
        color: white;
    }
    
    .hero .subtitle {
        font-weight: 200;
        font-size: var(--hero-subtitle-font-size);
        opacity: 0.75;
        text-align: left;
        overflow: hidden;
    }
}

/* Hero Section */
#home-section {
    padding: 0;
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    box-sizing: border-box;
    overflow: visible;
}

.section.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-section .container {
    width: 50vw;
    padding: 4rem 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url('../../assets/images/main_bg_2.jpg') center top / cover no-repeat;
    color: white;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.25);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
}

.hero-caption {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.hero-caption a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.hero-caption a:focus-visible,
.hero-caption a:hover {
    color: #fff;
}

.hero-text {
    align-self: flex-start;
}

.hero h1 {
    font-size: var(--hero-title-font-size);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
    margin-bottom: 1.5rem;
    color: white;
}

.hero .subtitle {
    font-weight: 200;
    font-size: var(--hero-subtitle-font-size);
    opacity: 0.75;
    text-align: left;
    overflow: hidden;
}


@media (max-width: 1023px) and (min-width: 768px) {
    #home-section {
        padding: 0;
        min-height: 70vh;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero {
        min-height: 70vh;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .hero-caption {
        bottom: 1rem;
        right: 1.5rem;
    }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    #home-section {
        padding: 0;
        min-height: 50vh;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero {
        min-height: 50vh;
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
    .hero .subtitle {
        font-size: var(--hero-subtitle-font-size);
        line-height: 1.25;
        font-weight: 300;
    }

    .section {
        padding: 3rem 1rem;
    }
        
    .hero-caption {
        align-self: flex-end;
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        border-radius: 999px;
        display: inline-flex;
        gap: 0.35rem;
        align-items: center;
    }

}

