@import url(common.css);

.hero {
    background-color: transparent;
    /* padding: 60px 0; */
    text-align: left;
    position: relative;
    margin-top: 30px;
}

.hero .container {
    display: flex;
    align-items: self-start;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    margin-right:60px;
    flex-basis: 80%;
}

.hero h1 {
    font-size: 40px;
    color: var(--foreground2);
    margin-bottom: 40px;
    padding: auto;
    line-height: 40px;
}

.hero h2 {
    font-size: 24px;
    color: var(--foreground1);
    margin-bottom: 0px;
    padding: auto;
    line-height: 30px;
}

.hero p {
    font-size: 21px;
    color: var(--foreground1);
    margin-bottom: 50px;
}

.hero-image {
    margin-top: 30px;
    flex-basis: 35%;
    text-align: right;
}

.hero-image img {
    max-width: 400px;
    height: auto;
    border-radius: 16px;
}

.portrait-name {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--foreground2);
}

@media (max-width: 1200px) {
    .hero {
        margin-top: 15px;
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero h2 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    .hero p {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .hero-image {
        flex-basis: 100%;
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-image img {
        max-width: 50%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .hero-image img {
        max-width: 70%;
        height: auto;
    }
}