/* About Section */
#about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInFromLeft 1.5s forwards ease-out;
    flex-wrap: wrap; /* Untuk mendukung responsivitas */
}

@keyframes fadeInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-content {
    flex: 1;
    padding-right: 20px;
    max-width: 50%; /* Membatasi lebar text content */
    box-sizing: border-box;
}

.text-content h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s 0.5s forwards ease-out;
}

.text-content h2 {
    font-size: 28px;
    color: #ff6347;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s 1s forwards ease-out;
}

.text-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 1.5s forwards ease-out;
}

.btn-about {
    background-color: #ff6347;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 2s forwards ease-out;
}

.btn-about:hover {
    background-color: #ff4500;
    transform: translateY(-5px);
}

.image-content-1 {
    flex: 1;
    padding-left: 20px;
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1.5s 0.5s forwards ease-out;
    max-width: 50%; /* Membatasi lebar image */
    box-sizing: border-box;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column; /* Menumpuk elemen secara vertikal pada layar kecil */
        align-items: center;
    }

    .text-content {
        max-width: 100%; /* Lebar teks full pada layar kecil */
        padding-right: 0;
        text-align: center;
    }

    .image-content-1 {
        max-width: 100%; /* Lebar image full pada layar kecil */
        margin-top: 20px;
    }

    .text-content h1 {
        font-size: 32px; /* Ukuran font h1 lebih kecil */
    }

    .text-content h2 {
        font-size: 24px; /* Ukuran font h2 lebih kecil */
    }

    .text-content p {
        font-size: 16px; /* Ukuran font paragraf lebih kecil */
    }

    .btn-about {
        font-size: 16px;
        padding: 10px 20px; /* Ukuran tombol lebih kecil */
    }
}

@media screen and (max-width: 480px) {
    .text-content h1 {
        font-size: 28px; /* Ukuran font h1 lebih kecil */
    }

    .text-content h2 {
        font-size: 20px; /* Ukuran font h2 lebih kecil */
    }

    .text-content p {
        font-size: 14px; /* Ukuran font paragraf lebih kecil */
    }

    .btn-about {
        font-size: 14px; /* Ukuran font tombol lebih kecil */
        padding: 8px 15px; /* Ukuran tombol lebih kecil */
    }
}
