/* hero section */

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: 100hv;
    padding-top: 160px;
}

/* hero text */

.hero-text{
    flex: 1;
    max-width: 600px;
}

.hero-text > p:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0;
    animation: heroFade .8s ease forwards;
}

.hero-text > p:first-child ::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--primary-color);
}

.hero-text h1 {
    line-height: 1.1;
    margin-bottom: 14px;
    opacity: 0;
    animation: heroFade .8s ease .15 forwards;
}

.hero-text h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0;
    animation: heroFade .8s ease .3s forwards;
}

.hero-text > p:last-of-type {
    max-width: 500px;
    margin-bottom: 34px;
    opacity: 0;
    animation: heroFade .8s ease .45s forwards;
}

/* hero buttons */

.hero-button {
    display: flex;
    gap: 18px;
    opacity: 0;
    animation: heroFade .8s ease .6s forwards;
}

/* hero image */

.hero-image {
    flex-shrink: 0;
    width: min(38vw, 420px);
    aspect-ratio: 1/1;
    position: relative;
    opacity: 0;
    animation: heroFade .1s ease .3s forwards;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), transparent 70%);
    opacity: .25;
    filter: blur(20px);
    z-index: 0;
}

.hero-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);;
    z-index: 1;
}

/* animation */

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        taransform: translateY(0);
    }
}

/*responsive*/

@media (max-width: 968px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text > p:first-child {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 44px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .hero-text > p:last-of-type {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-button {
        justify-content: center;
    }

    .hero-image {
        width: min(60vw, 280px);
    }
}