/* Reset */
@font-face {
    font-family: "AgathoLightCaps";
    /* Customize with your font name */
    src: url("assets/fonts/AgathoLightCAPS.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AgathoLight";
    /* Customize with your font name */
    src: url("assets/fonts/AgathoLight.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AgathoBold";
    /* Customize with your font name */
    src: url("assets/fonts/AgathoBold.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "AgathoNarrow";
    /* Customize with your font name */
    src: url("assets/fonts/AgathoNarrow.otf") format("otf");
    font-weight: normal;
    font-style: normal;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%); /* Mulai dari luar layar di kanan */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animasi geser keluar */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%); /* Pergi ke luar layar di kiri */
        opacity: 0;
    }
}

@keyframes slideLeft {
    0% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(-200%);
    }
}

@keyframes slideRight {
    0% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(200%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


body,
ul,
li,
h1,
h2,
p {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* General Body Styling */
body {
    background-color: #131313;
    color: white;
    line-height: 1.5;
    padding-top: 80px;
}

/* Navbar Styling */
.navbar {
    background-color: #131313;
    padding: 20px 0;
    position: fixed; /* Memastikan navbar tetap berada di atas */
    top: 0; /* Menjaga navbar tetap di bagian atas halaman */
    width: 100%; /* Pastikan navbar mengambil lebar penuh */
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    font-family: 'AgathoLightCaps';
    text-decoration: none; /* Removes underline */
    color: white; /* White text color */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 10px 15px;
    transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
    color: #9c9c9c;
    transform: scale(1.1);
}

.logo {
    display: none;
}

.menu {
    display: none;
}

.menu-overlay {
    display: none;
}

.menu-overlay ul li a {
    color: white; /* Pastikan warna teks putih */
    text-decoration: none; /* Hilangkan underline */
    font-size: 20px; /* Sesuaikan ukuran font sesuai kebutuhan */
    transition: color 0.3s; /* Animasi perubahan warna */
}

.menu-overlay ul li a:hover {
    color: #ccc; /* Warna teks saat hover */
}

.content {
    max-width: 1200px;
    /* Lebar maksimum untuk tata letak */
    margin: auto;
    /* Tengahkan */
    padding: 0 20px;
    /* Padding untuk jarak kanan/kiri */
    margin-top: 70px; /* Tambahkan jarak keseluruhan ke atas */
    padding-top: 20px; /* Opsional: Tambahkan padding jika diperlukan */
}

.content h1 {
    font-size: 38px; /* Ukuran default untuk desktop */
    font-family: 'AgathoLightCaps';
    margin-bottom: -10px;
    text-align: center;
}

.content h2 {
    font-size: 26px; /* Ukuran default untuk desktop */
    margin-bottom: 50px;
    font-family: 'AgathoNarrow';
    text-align: center;
}

.main-box {
    background-color: #131313 !important;
    color: white; /* Warna teks */
    text-align: center; /* Teks di tengah */
    font-family: 'AgathoRegular'; /* Gunakan font custom */
    padding: 0;
    margin: 0 20px 27px 20px; /* Margin atas: 0, kanan: auto, bawah: 20px, kiri: auto */
    max-width: 1200px; /* Sesuaikan lebar maksimum dengan box-container */
}

.main-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: block;
}

.box-container {
    display: grid; /* Menggunakan grid layout */
    gap: 12px; /* Jarak antar media */
    padding: 20px; /* Spasi di dalam container */
    background-color: #131313 !important;
    margin-top: -35px; /* Jarak dengan header */
    justify-content: space-between;
    grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
}

.box {
    background-color: #131313 !important;
    color: white; /* Warna teks */
    text-align: center; /* Teks di tengah */
    font-family: 'AgathoRegular'; /* Gunakan font custom */
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.box video {
  /* Adjust width, height, and other styles as needed */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    display: block;
}

.media-overlay {
    display: none; /* Tersembunyi secara default */
    position: fixed;
    animation: zoomIn 0.5s forwards;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Latar belakang transparan */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Pastikan overlay di atas elemen lainnya */
}

.media-overlay img {
    max-width: 90%; /* Atur lebar maksimum */
    max-height: 90%; /* Atur tinggi maksimum */
}

.slide-left {
    animation: slideRight 0.6s infinite ease-in-out; /* Animasi infinite */
}

.slide-right {
    animation: slideLeft 0.6s infinite ease-in-out; /* Animasi infinite */
}

.close-media {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.arrow {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: black;
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    top: 50%; /* Tengah vertikal */
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s; /* Animasi perubahan latar belakang dan transformasi */
    z-index: 1001; /* Pastikan di atas media */
}

.arrow:hover {
    background: rgba(255, 255, 255, 1); /* Ubah warna saat hover */
    transform: scale(1); /* Efek zoom saat hover */
}

.left {
    left: 30px; /* Jarak dari kiri */
}

.right {
    right: 30px; /* Jarak dari kanan */
}

/* Footer Styling */
.footer {
    background-color: #131313;
    padding: 20px 0;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.footer a {
    text-decoration: none; /* Menghilangkan garis bawah default pada tautan */
    color: #ccc; /* Warna default teks */
    transition: color 0.3s; /* Efek transisi saat perubahan warna */
}

.footer a:hover {
    color: #7e7e7e; /* Warna teks saat hover (sedikit lebih gelap) */
    cursor: pointer; /* Mengubah kursor saat dihover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .logo {
        display: flex;
        text-align: center; /* Pusatkan logo */
        margin-left: 30px;
        margin-top: 10px;
      }

    .logo a {
        color: white;
        text-decoration: none;
    }
      
    .logo h1 {
       font-size: 2rem; /* Sesuaikan ukuran font sesuai kebutuhan */
       margin: -1rem; /* Margin atas dan bawah 1rem */
    }
      
    .logo p {
       font-size: 1rem;
       margin: -2px;
       margin-left: 4rem;
    }
    
    .menu {
        margin-top: -50px;
        display: flex;
        justify-content: right;
        margin-right: 1.5rem;
    }

    .ul {
        list-style: none;
        padding: 0;
    }
    
    .ul.li.a {
        list-style: none;
        text-decoration: none; /* Removes underline */
        color: white; /* White text color */
        font-size: 18px;
        margin: 10px 0;
    }
    
    .menu-button {
        font-size: 30px;
        color: white;
        border: none;
        background-color: #131313; /* Make background transparent */
        cursor: pointer;
        margin-right: 10px;
        margin-top: 10px;
    }

    .menu-overlay {
        display: none; /* Tersembunyi secara default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* Latar belakang gelap dengan transparansi */
        justify-content: center;
        align-items: center;
        transition: display 0.1s ease-out; /* Smooth fade out animation */
    }
    
    .menu-overlay.fade-in {
        animation: fadeIn 1s ease-out forwards; /* Animasi masuk */
    }
    
    .menu-overlay.fade-out {
        animation: fadeOut 1s ease-out forwards; /* Animasi keluar */
    }
    
    .menu-content {
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        color: white;
    }
    
    .close-button {
        background-color: transparent;
        border: none;
        color: white;
        font-size: 45px;
        cursor: pointer;
        position: absolute; /* Memposisikan tombol close */
        top: 30px; /* Jarak dari atas */
        right: 50px; /* Jarak dari kanan */
    }

    .content h1 {
        font-size: 34px; /* Ukuran untuk tablet */
    }

    .content h2 {
        font-size: 22px; /* Ukuran untuk tablet */
    }

    .box-container {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di tablet */
    }

}

@media (max-width: 768px) {
    .box-container {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di tablet */
    }

    .content h1 {
        font-size: 30px; /* Ukuran untuk ponsel besar */
    }

    .content h2 {
        font-size: 18px; /* Ukuran untuk ponsel besar */
    }

}

@media (max-width: 720px) {
    .box-container {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di ponsel */
    }

    .content h1 {
        font-size: 30px; /* Ukuran untuk ponsel kecil */
    }

    .content h2 {
        font-size: 18px; /* Ukuran untuk ponsel kecil */
    }

    .footer {
        font-size: 12px;
    }
}