@font-face {
    font-family: 'Voga';
    src: url('../fonts/Voga-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bodoni 72';
    src: url('../fonts/bodoni-72-book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.hero {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(180deg, #001140 6.71%, rgba(15, 82, 152, 0) 59.28%),
                      url('../images/bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-bottom: -2px;
    height: 300px;
    background: linear-gradient(180deg, rgba(0, 17, 64, 0) 0%, #001140 100%);
    pointer-events: none;
    z-index: 1;
}

.title-container {
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

h1 {
    font-family: 'Voga', 'Bodoni MT', serif;
    font-size: 6.875rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 500;
}

h2 {
    font-family: 'Bodoni 72', serif;
    font-size: 2.625rem;
    font-weight: 400;
    line-height: 40px;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

@media (max-width: 768px) {
    .hero {
        background-position: center calc(100px + 50%);
        justify-content: flex-start;
    }

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: #001140;
        z-index: 1;
    }

    .title-container {
        top: 100px;
        position: relative;
        bottom: auto;
        padding: 0 20px;
        z-index: 2;
    }

    h1 {
        font-size: 3.5rem;
        margin-bottom: 15px;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 20px;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .title-container {
        top: 100px;
        position: relative;
        bottom: auto;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.2rem;
        line-height: 1.2;
    }
}