body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Styling */
.main-header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.main-header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #007bff;
}

.social-icons a {
    margin-left: 15px;
}

.social-icons img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Hamburger menu (will be hidden by default for desktop) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scroll-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0;
    transition: transform 0.05s ease-out, border-radius 0.05s ease-out, opacity 0.05s ease-out;
    z-index: 1;
}

#scroll-text {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
    z-index: 2;
    white-space: nowrap;
    transition: transform 0.05s ease-out, opacity 0.05s ease-out;
}

/* Main Content Styling */
.main-content {
    padding: 60px 0;
    background-color: #ffffff;
    padding-top: 100px;
}

.main-content .container {
    display: block;
    padding: 0 20px;
}

/* Styling untuk Fitur/Kartu */
.features-section {
    padding: 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease-out;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.card-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: #fff;
    padding: 30px;
    text-align: left;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

.feature-card:hover .card-overlay {
    transform: translateY(-15px);
}

.card-overlay h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.card-overlay p {
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.plus-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2.5em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: background-color 0.3s ease;
}

.feature-card:hover .plus-icon {
    background-color: rgba(255, 255, 255, 0.4);
}


/* Styling untuk Modal Pop-up */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 80%;
    max-width: 900px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-main-title {
    font-size: 3em;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: left;
}

.modal-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.modal-body img {
    flex: 0 0 50%;
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
}

.modal-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-text-content p:first-of-type {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.modal-text-content p:last-of-type {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}


.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#modal-overlay.active {
    display: block;
    opacity: 1;
}

/* Styling untuk Bagian Kontak */
.contact-section {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0;
}

.contact-container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    padding: 0 20px;
}

.contact-info {
    flex: 1;
    max-width: 450px;
}

.contact-info h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #fff;
}

.contact-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.contact-info p:last-of-type {
    margin-bottom: 0;
}

.contact-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 600px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form label {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #007bff;
}

.submit-button {
    background-color: #ffcc00;
    color: #333;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 30px;
    align-self: flex-end;
    grid-column: 2;
}

.submit-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* Responsif untuk ukuran layar < 768px (Mobile) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Kurangi padding container di mobile */
    }

    /* Header di Mobile */
    .main-header .container {
        flex-wrap: wrap; /* Izinkan wrap jika item tidak muat */
        justify-content: center; /* Pusatkan elemen di header */
        text-align: center;
    }

    .main-header .logo,
    .main-header .social-icons {
        flex: 1 1 100%; /* Ambil lebar penuh */
        margin-bottom: 10px; /* Jarak antar elemen header */
    }
    
    .main-header .social-icons {
        margin-left: 0;
        margin-top: 10px;
    }

    .main-nav {
        width: 100%; /* Navigasi mengambil lebar penuh */
        order: 3; /* Posisikan navigasi di bawah logo dan ikon sosial */
        margin-top: 15px;
    }

    .main-nav ul {
        flex-direction: column; /* Menu vertikal */
        align-items: center; /* Pusatkan item menu */
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .main-nav ul li {
        margin: 10px 0; /* Jarak antar item menu */
    }

    /* Hero Section di Mobile */
    #scroll-text {
        font-size: 2.5em; /* Ukuran font lebih kecil untuk mobile */
        bottom: 3vh; /* Posisikan lebih ke atas di mobile agar tidak terlalu mepet */
    }

    /* Features Grid di Mobile */
    .features-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
        gap: 20px; /* Kurangi jarak antar kartu */
        max-width: none;
    }

    .feature-card {
        height: 450px; /* Sesuaikan tinggi kartu */
    }

    .card-overlay h3 {
        font-size: 1.8em;
    }

    .card-overlay p {
        font-size: 1em;
    }

    .plus-icon {
        font-size: 2em;
        width: 40px;
        height: 40px;
    }

    /* Modal Pop-up di Mobile */
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .modal-body img {
        flex: none;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .modal-text-content {
        flex: none;
        width: 100%;
    }

    .modal-text-content p:first-of-type {
        font-size: 1.4em;
    }

    .modal-text-content p:last-of-type {
        font-size: 0.9em;
    }

    /* Contact Section di Mobile */
    .contact-container {
        flex-direction: column; /* Ubah menjadi satu kolom di mobile */
        gap: 40px;
        align-items: center; /* Pusat konten */
        text-align: center; /* Pusat teks */
    }

    .contact-info,
    .contact-form-wrapper {
        max-width: 100%; /* Lebar penuh di mobile */
        width: 100%; /* Pastikan mengambil lebar penuh */
        text-align: center;
    }

    .contact-info h2 {
        font-size: 2em;
    }

    .contact-info p {
        font-size: 1em;
    }

    .contact-form {
        grid-template-columns: 1fr; /* Satu kolom untuk input di mobile */
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: auto; /* Hapus span kolom di mobile */
    }

    .submit-button {
        width: 100%; /* Tombol lebar penuh di mobile */
        align-self: center; /* Pusat tombol */
        grid-column: auto; /* Hapus posisi grid spesifik */
    }
}

/* Responsif untuk ukuran layar < 1200px (tablet/laptop kecil) */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Sesuaikan grid untuk tablet */
        max-width: 950px;
    }
}


/* Footer Styling */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}