/* Font Loading */
@font-face {
    font-family: 'Neue Haas Grotesk Text Pro';
    src: url('../font/neue_haas_grotesk_text_pro/reguler.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Text Pro';
    src: url('../font/neue_haas_grotesk_text_pro/bold.ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Neue Haas Grotesk Text Pro', sans-serif;
    color: var(--text-color);
    background: var(--background-color);
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-color: #4D4D4D;
    --accent-color: #B0DB52;
    --background-color: #ffffff;
    --text-color: #4D4D4D;
    --border-color: rgba(77, 77, 77, 0.1);
    --transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    display: flex;
    height: 100vh; /* Tinggi penuh layar */
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Atur elemen menjadi kolom */
    align-items: left; /* Rata tengah secara horizontal */
    gap: 0.5rem; /* Jarak antar elemen */
    text-align: left; /* Rata tengah teks */
}

.hero-half {
    flex: 1;
    display: flex;
    padding: 6.5rem 2.5rem;
}

/* Kiri: Hijau Soulver */
.hero-left {
    background-color: #B0DB52;
}

.hero-left h1 {
    font-size: 3.81rem;
    line-height: 0.95;
    font-weight: bold;
    max-width: 80%;
}

/* Kanan: Putih */
.hero-right {
    background-color: #ffffff;
    background: url('../images/soulver_team.jpg') no-repeat center calc(13vh);
    background-size: cover; /* Pastikan gambar mencakup seluruh area */
}

.hero-right h1 {
    font-size: 3.52rem;
    line-height: 1.2;
    color: #F26419;
    font-weight: bold;
    max-width: 100%;
    margin-top: -0.6rem;
}

.hero-right .button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #F26419;
    color: #ffffff;
    border: none;
    border-radius: 0 100px 100px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-right .button:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Responsivitas */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .hero-half {
        height: 50vh;
    }

    .hero-left h1,
    .hero-right h1 {
        font-size: 2rem;
    }

    .hero-right .button {
        font-size: 0.875rem;
    }
}

@media (min-width: 1920px) {
    .hero-left h1,
    .hero-right h1 {
        font-size: 3rem;
    }

    .hero-right .button {
        font-size: 1.25rem;
    }
}


/* Description Sections */
.line-container-description {
    padding: 0vh 2.5rem 2.5rem;
}

.description-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.description-value {
    display: flex; /* Gunakan Flexbox */
    justify-content: space-between; /* Jarak antara teks dan gambar */
    align-items: center; /* Vertikal rata tengah */
    padding: 2.5rem 2.5rem;
    min-height: 40vh; /* Tinggi minimum */
    position: relative; /* Untuk konteks posisi gambar absolut */
}

.description-text {
    max-width: 46%; /* Batas lebar teks */
    z-index: 1; /* Pastikan teks di atas elemen lainnya */
}

.description-text p {
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.description-text .button {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.description-image {
    display: flex; /* Aktifkan Flexbox */
    position: absolute; /* Tetap menjaga posisi absolut */
    top: -2%;
    right: 0;
    z-index: 0;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2.5rem 2.5rem;
}

.description-image-1 {
    width: 90%; /* Sesuaikan ukuran gambar */
    height: auto;
    object-fit: contain;
    max-width: 25vw;
}

.description-image-2 {
  max-width: 25vw;
    height: auto;
    margin-top: 1.5%;
    width: 1.5%;
    object-fit: contain;
    top: 0;
}

/* Responsiveness */
@media (min-width: 1920px) {
    .description-value {
        padding: 2rem 5rem; /* Padding lebih luas */
    }

    .description-text p {
        font-size: 2rem; /* Font lebih besar */
    }

    .description-image-1,
    .description-image-2 {
        width: 30vw; /* Ukuran gambar lebih besar */
    }
}

@media (max-width: 768px) {
    .description-value {
        flex-direction: column; /* Susun secara vertikal untuk layar kecil */
        justify-content: flex-start;
        align-items: flex-start;
    }

    .description-image {
        top: 10px;
        right: 10px;
        transform: none; /* Hilangkan transform untuk layar kecil */
    }

    .description-image img {
        width: 30vw; /* Perbesar gambar untuk layar kecil */
    }
}

@media (max-width: 480px) {
    .description-image img {
        width: 40vw; /* Perkecil gambar pada layar kecil */
    }
}

/* Description Sections */
.line-container-portfolio {
    padding: 0vh 2.5rem 2.5rem;
}

.portfolio-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 0 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.portfolio-item {
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-title {
    font-size: 1.1rem;
    width: 62%;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.portfolio-description {
    font-size: 0.9rem;
    width: 75%;
    line-height: 1.5;
    letter-spacing: -0.05em;
    color: var(--primary-color);
    opacity: 0.8;
}

@media (min-width: 1920px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr); /* Tambah kolom */
        gap: 2rem;
    }

    .portfolio-title {
        font-size: 1.5rem; /* Font lebih besar */
    }

    .portfolio-description {
        font-size: 1.2rem; /* Penyesuaian teks deskripsi */
    }
}


/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.button_header {
    padding: 0.75rem 1.5rem;
    background-color: #F26419; /* Warna hijau Soulver */
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button_header:hover {
    background-color: #4D4D4D; /* Warna hover */
    color: #B0DB52;
}

/* Tombol Utama */
.button {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #F26419; /* Warna hijau Soulver */
    color: #ffffff;
    border: none;
    border-radius: 0 100px 100px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 33.1%;
    text-align: left; /* Rata tengah teks */
}

.button:hover {
    background-color: #4D4D4D; /* Warna hover */
    color: #F26419;
}

/* Tombol Sekunder */
.button-secondary {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #F26419; /* Warna hijau untuk teks */
    border: 1.5px solid #F26419;
    border-radius: 0 100px 100px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 33.1%;
    text-align: left; /* Rata tengah teks */
}

.button-secondary:hover {
    background-color: var(--accent-color); /* Warna hijau saat hover */
    border: 1.5px solid var(--accent-color);
    color: #ffffff;
}

.button_other {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
  border: 1.5px solid var(--primary-color);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--primary-color);
  transition: var(--transition);
  background: none;
}

.button_other:hover {
  background: var(--primary-color);
  color: var(--accent-color);
  border: 1.5px solid var(--accent-color);
}

/* Responsif untuk Tombol */
@media (max-width: 768px) {
    .button,
    .button-secondary {
        font-size: 0.875rem; /* Ukuran font lebih kecil */
        width: 100%; /* Lebar penuh untuk layar kecil */
    }

    .button-secondary {
        margin-top: 0.5rem; /* Kurangi jarak antar tombol */
    }
}

.button-work {
    padding: 0.75rem 1.5rem;
    margin-bottom: 4rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary-color);
    transition: var(--transition);
    background: none;
}

.button-work:hover {
    background: var(--primary-color);
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
}

/* Modal Background */
.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Latar belakang dengan transparansi */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Izinkan scroll vertikal */
}

/* Modal Content */
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px; /* Maksimal lebar modal */
    width: 90%; /* Lebar modal relatif */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 2rem auto; /* Tambahkan margin untuk memberi ruang pada layar kecil */
}

/* Tambahkan batas tinggi agar konten modal bisa scroll */
.modal-content {
    max-height: 90vh; /* Batas maksimum tinggi modal */
    overflow-y: auto; /* Izinkan scroll dalam modal */
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

form label {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

form textarea {
    resize: vertical;
}

/* Form Elements */
form input,
form select,
form textarea {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form input[type="file"] {
    margin-top: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

form button {
    margin-top: 1.5rem;
    background-color: #B0DB52;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #4D4D4D;
    color: #B0DB52;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    form label {
        font-size: 0.9rem;
    }

    form input,
    form select,
    form textarea {
        font-size: 0.9rem;
    }

    form button {
        font-size: 0.9rem;
    }
}
