/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
}

/* Header */
header {
    background: #333;
    color: #fff;
    padding-top: 30px;
    min-height: 50px;
    border-bottom: #77aaff 3px solid;
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
#hero {
    background: url('img/hero.jpg') no-repeat center center/cover;
    height: 400px;
    text-align: center;
    padding-top: 100px;
    /* Tambahkan properti berikut untuk memastikan teks terbaca di atas gambar */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal tengah */
    align-items: center; /* Horizontal tengah */
    position: relative; /* Penting: hero section harus memiliki position relative */

} 


#hero h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #000; /* Ubah warna teks menjadi hitam */
    /* Tambahkan font dari Google Fonts */
    font-family: 'Montserrat', sans-serif; /* Contoh: ganti 'Montserrat' dengan nama font yang Anda inginkan */
    font-weight: 700; /* Contoh: atur ketebalan font */
    position: absolute;
    left: 20px; /* Contoh: memposisikan teks 20px dari kiri */
    top: 5%; /* Contoh: memposisikan teks di tengah vertikal */
    transform: translateY(-50%); /* Contoh: menyesuaikan posisi vertikal */
}

#hero p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #000; /* Ubah warna teks menjadi hitam */
    /* Tambahkan font dari Google Fonts */
    font-family: 'Open Sans', sans-serif; /* Contoh: ganti 'Open Sans' dengan nama font yang Anda inginkan */
    position: absolute;
    left: 20px; /* Contoh: memposisikan teks 20px dari kiri */
    top: 20%; /* Contoh: memposisikan teks sedikit di bawah h2 */
}

#hero .btn {
    background: #77aaff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

/* Sections */
section {
    padding: 20px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Services Section */
.services-grid {
    display: flex;
    justify-content: space-between;
}

.service {
    flex: 1;
    margin: 10px;
    padding: 20px;
    background: #f4f4f4;
    text-align: center;
    border-radius: 5px;
}

/* Projects Section */
.projects-grid {
    display: flex;
    justify-content: space-between;
}

.project {
    flex: 1;
    margin: 10px;
    text-align: center;
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Contact Section */
/* Modal Styles */
.modal {
    display: none; /* Sembunyikan modal secara default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Latar belakang semi-transparan */
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* Posisi modal di tengah */
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Lebar maksimal modal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: #000;
}

/* Form Styles */
#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#contact-form textarea {
    resize: vertical; /* Biarkan pengguna mengubah tinggi textarea */
    min-height: 100px;
}

#contact-form button {
    background: #77aaff;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#contact-form button:hover {
    background: #5599ff;
}

/* Tombol "Back to Top" */
#back-to-top {
    display: none; /* Sembunyikan tombol secara default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #77aaff;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, opacity 0.3s;
}

#back-to-top:hover {
    background-color: #5599ff;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

