html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Poppins', sans-serif;
    margin: 0px;
}

h1 {
    color: #27445d;
    font-size: 35px;
}

h2,
h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

p,
a,
button {
    font-family: "Inter", serif;
    font-weight: 400;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-family: "Poppins", sans-serif;
    font-size: 55px;
    font-weight: bold;
    color: #16325b;
    margin-bottom: -20px;
}

.hero h2 {
    font-size: 24px;
    color: #27445d;
}

button {
    background-color: #227b94;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

button:hover {
    background-color: #27445d;
}

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 50px;
}

.about-image img {
    max-width: 500px;
    height: auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
}

.about h3 {
    margin-top: -10px;
    font-size: 25px;
    color: #444;
    text-align: left;
    text-align: justify;
}

/* OUR SERVICES */
.services {
    text-align: center;
    padding: 50px 20px;
}

.service-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Pastikan semua box memiliki tinggi yang sama */
    gap: 30px;
    flex-wrap: wrap;
}

.service-box {
    margin-top: 20px;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 10px;
    max-width: 250px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 120px;
}

.service-box p {
    flex-grow: 1;
    /* Memastikan deskripsi menyesuaikan ruang yang tersedia */
    font-size: 14px;
    color: #333;
}

.service-box button {
    background: #19647e;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: auto;
    cursor: pointer;
    font-weight: bold;
}

.service-box button:hover {
    background: #227b94;
}

/* PROJECTS */
.projects {
    text-align: center;
    padding: 50px 20px;

}

.project-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-box {
    width: 300px;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 9px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    text-decoration-color: #227b94;
    transition: transform 0.3s ease-in-out;

}

.project-box:hover {
    transform: scale(1.05) translateY(-5px);
    /* Zoom + Naik sedikit */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Tambah efek bayangan */
}

.project-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.project-box h3 {
    margin: 10px 0;
}

.project-box p {
    font-size: 14px;
    color: #666;
}

.project-box a {
    text-decoration: none;
    color: inherit;
}

/* CONTACT SECTION */
.contact {
    text-align: center;
    padding: 50px 20px;
    color: #16325b;
    align-items: center;
}

.contact h1 {
    margin-bottom: 100px;
}

.contact-image img {
    max-width: 100%;
    height: auto;
}

.contact-container {
    display: flex;
    align-items: center;
    /* Biar gambar & teks sejajar */
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
    margin-top: -150px;
}

.contact-info {
    text-align: left;
    max-width: 500px;
    margin: 50px;
    align-items: start;
    /* Auto pada kiri & kanan bikin dia ke tengah */
}

.contact-info p {
    font-size: 22px;
    margin-top: -10px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    font-family: "Nunito", serif;
}

.contact-info ul li {
    margin-bottom: 10px;
    font-weight: normal;

}

.contact-info a {
    text-decoration: none;
    color: #16325b;
}


.hero-image img {
    width: 80%;
    /* Mulai dari ukuran kecil */
    animation: grow 1.5s ease-out forwards;
    margin-left: 90px;
    margin-top: 50px;
}

@keyframes grow {
    from {
        transform: scale(0.3);
        /* Lebih kecil saat mulai */
        opacity: 0;
        /* Mulai transparan */
    }

    to {
        transform: scale(1.5);
        /* Jadi lebih besar dari ukuran asli */
        opacity: 1;
        /* Full terlihat */
    }
}

.hero-content h1,
.hero-content h2 {
    opacity: 0;
    /* Mulai dari transparan */
    transform: translateY(20px);
    /* Mulai dari bawah */
    animation: fadeIn 1.5s ease-out forwards;
    /* Animasi fade-in */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Posisi awal di bawah */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Posisi akhir di tempat normal */
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero-image img {
        max-width: 100%;
        margin: 0;
    }

    .about-image img {
        max-width: 250px;
        height: auto;
    }

    .about h3 {
        font-size: 20px;
    }

    .contact-image img {
        max-width: 100%;
        height: auto;
        align-items: start;
    }

    .service-box {
        margin-top: 20px;
        background: #f8f8f8;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        max-width: 250px;
        text-align: left;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        min-height: 120px;
    }

    .service-box img {
        max-width: 70%;
        height: auto;
    }

    .service-box h3 {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        max-width: 80%;
    }

    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-img {
        max-width: 50%;
        height: auto;
        align-items: start;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .about {
        padding: 60px 20px;
    }

    .service-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 80%;
    }

    .contact-img {
        max-width: 50%;
        height: auto;
        align-items: start;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero {
        padding: 20px;
    }

    .about-content img {
        max-width: 100%;
    }

    .service-box {
        width: 100%;
    }

    .project-box {
        width: 100%;
    }
}