.hero {
    padding: 96px 0;
    background-color: var(--color-white);
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero__avatar {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: #A98E78;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;;
    font-size: 90px;
    font-weight: 700;
}

.hero__text-content {
    flex-grow: 1;
}

    .hero__subtitle {
        font-size: 16px;
        font-weight: 700;
        color: var(--color-text-light);
        margin-bottom: 8px;
        height: 30px;
    }


    .text-wrapper{
        overflow: hidden;
        position: relative;
        height: 30px;
        display: block;
    }

    .item{
        display: block;
        height: 100%;
        animation: role-change 7s infinite;
        height: 40px;
    }

@keyframes role-change{
    16% {transform: translateY(-102%);}

    32% {transform: translateY(-100%);}

    48% {transform: translateY(-202%);}

    64% {transform: translateY(-200%);}

    80% {transform: translateY(-302%);}

    100% {transform: translateY(-300%);}
}

.hero__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary-teal);
    margin-bottom: 16px;
}

.hero__description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.hero__description b {
    font-weight: 600;
    color: var(--color-text-dark);
}

.projects {
    padding: 120px 0; /* Padding diperbesar agar transisi terasa lebih lega */
}



@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.projects .container {
    position: relative;
    z-index: 1; 
}

.projects__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

.project-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-normal);
    box-shadow: var(--box-shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    width: 336px;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px -3px rgba(0,0,0,0.08), 0 4px 8px -2px rgba(0,0,0,0.06);
}

.project-card__image-wrapper {
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__content {
    background-color: var(--color-white);
    padding: 24px;
    margin-top: -30px;
    position: relative;
    border-top-left-radius: var(--border-radius-normal);
    border-top-right-radius: var(--border-radius-normal);
    transition: margin-top 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card:hover .project-card__content {
    margin-top: 0;
}

.project-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
}

.project-card__tag {
    background-color: var(--color-primary-dark-teal);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.project-card__description {
    font-size: 13px;
    flex-grow: 1;
    font-weight: 500; 
    color: var(--color-text-light);
}

.project-card__button {
    display: inline-block;
    width: 100%;
    background-color: var(--color-primary-teal);
    color: #FFFFFF;
    text-align: center;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease, background-color 0.3s ease;
}

.project-card:hover .project-card__button {
    opacity: 1;
    max-height: 50px;
    margin-top: 24px;
}

.project-card__button:hover,
.project-card__button:active {
    background-color: var(--color-primary-dark-teal);
    cursor: pointer;
}

@media (max-width:1071px) {
    .container {
        padding: 0 32px;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }
    
    .contact__container {
        flex-direction: column;
        gap: 64px;
    }

    .project-card {
        min-height: unset;
    }
    
    .project-card:hover {
        transform: none;
    }

    .project-card__content {
        margin-top: 0;
    }
    
    .project-card__image-wrapper {
        height: 200px;
    }

    .project-card__button {
        opacity: 1;
        max-height: 50px;
        margin-top: 24px;
    }
}

@media (max-width: 768px) {
    .project-card {
        width: 100%;
    }

    .section-title {
        font-size: 30px;
    }
}