@import url('https://fonts.googleapis.com/css2?family=Neonderthaw&family=Poppins:wght@300&family=Quicksand:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}

header {
    display: inline;
}

nav {
    background-color: #ffffff;
    display: flex;
    padding: 5px;
    position: sticky;
    top: 0;
    cursor: pointer;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

nav ul {
    padding-inline: 4rem;
    display: flex;
    gap: 2rem;
}

nav li {
    list-style-type: none;
}

nav a {
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    color: rgb(0, 0, 0);
}

nav a:hover {
    font-weight: bold;
}

.TopHeader {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center; /* Mengatur konten agar berada di tengah secara vertikal */
    padding: 164px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    justify-content: space-between; /* Membagi header_kiri dan header_kanan secara rata */
}

.header_kanan,
.header_kiri {
    flex: 1; /* Membuat kedua bagian mengambil porsi yang sama */
    display: flex;
    justify-content: left; /* Mengatur konten di tengah secara horizontal */
    align-items: center; /* Menjaga konten di tengah secara vertikal */
    color: rgb(109, 109, 109);
}

.header_kanan{
    margin-left: -30px;
}

.header_kiri{
    margin-left: -130px;
}

.gambar_header_kanan {
    max-width: 50%; /* Mengatur gambar agar tidak melebihi lebar div */
    height: auto; /* Mengatur tinggi gambar agar proporsional */
}

.header_kiri h1 {
    margin: 0; /* Menghilangkan margin default untuk menghindari pergeseran */
    text-align: left; /* Memastikan teks tetap rata kiri */
    font-size: 45px;
    line-height: 0.8;
}

.header_kiri h1 .iam {
    font-size: 0.85em;
}

.header_kiri h1 .prodi {
    font-size: 0.75em;
    /* margin-top: -10px; */
}

.header_kiri h1 .nama {
    color: rgb(46, 117, 164);
    font-weight: bolder;
}


.utama{
    justify-content: space-between;
    align-items: center;
    display: flex;
    padding-bottom: 5px;
}

.me,
.gantenk{
    align-items: center;
}

.me{
    padding: 170px;
    padding-left: 200px;
    max-width: 1000px;
}

.box{
    min-width: 250px; /* Lebar minimum box */
    min-height: 150px; /* Tinggi minimum box */
    padding: 20px; /* Menambahkan ruang di sekitar teks */
    border-radius: 10px;
    background-color: #ececec;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.me p{
    flex: 1;
    background-color: white;
    padding: 20px;
    margin: 0 auto;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    font-size: 1.2em;
}

.fotoku{
    flex: 1;
    display: flex;
    justify-content: center; /* Mengatur gambar agar berada di tengah secara horizontal */
    align-items: center;
}

.gantenk{
    max-width: 75%;
    align-content: center;
    height: auto;
    border: black;
}

/* .karya{
    padding: 80px;
} */

/* Modal yang menutupi seluruh halaman */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Latar belakang hitam dengan opasitas */
    overflow-y: auto; /* Bisa di-scroll jika konten lebih tinggi dari layar */
}

/* Konten modal */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    position: relative;
}

.modal-container {
    display: flex;
    justify-content: space-between; /* Distributes the modals evenly with space in between */
    gap: 100px; /* Optional: Adds space between the modals */
    padding: 10px; /* Optional: Adds padding around the container */
    max-width: 85%;
}

.modal-container2 {
    display: flex;
    justify-content: space-between; /* Distributes the modals evenly with space in between */
    gap: 100px; /* Optional: Adds space between the modals */
    padding: 10px; /* Optional: Adds padding around the container */
    max-width: 85%;
}

.modal-container button {
    flex: 1; /* Makes each button/modal take equal space */
    max-width: 30%; /* Adjusts the width of each modal, ensuring they fit on the same row */
}

.modal-container2 button {
    flex: 1; /* Makes each button/modal take equal space */
    max-width: 30%; /* Adjusts the width of each modal, ensuring they fit on the same row */
}

/* Tombol close */
.modal-header .close {
    position: absolute;
    top: 10px; /* Sesuaikan dengan posisi yang diinginkan */
    right: 10px; /* Sesuaikan dengan posisi yang diinginkan */
    background-color: transparent; /* Menghapus background default */
    border: none; /* Menghapus border */
    font-size: 1.5rem; /* Sesuaikan ukuran tombol */
    cursor: pointer;
    outline: none; /* Menghapus outline saat difokuskan */
}

button.btn {
    background-color: transparent; /* Menghapus background color */
    border: none; /* Menghapus border */
    padding: 0; /* Menghapus padding */
    margin: 1px; /* Menghapus margin */
}

button.btn img {
    display: block;
    width: 150%; /* Sesuaikan ukuran gambar sesuai keinginan */
    height: auto;
    border-radius: 10px; /* Opsional: jika ingin memberi efek lengkung */
    cursor: pointer;
}

button.btn:focus {
    outline: none; /* Menghapus outline saat button difokuskan */
}

button.btn {
    box-shadow: none; /* Menghapus shadow */
}

/* Tombol untuk menutup modal */
.close {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
}

.close:hover,
.close:focus {
    color: rgb(255, 0, 0);
    text-decoration: none;
    cursor: pointer;
}
/*ini batasnya*/

button.btn-close {
    background-color: transparent; /* Menghapus background color */
    border: none; /* Menghapus border */
    padding: 0; /* Menghapus padding */
    margin: 0; /* Menghapus margin */
}

button.btn-close:focus {
    outline: none; /* Menghapus outline saat button difokuskan */
}

button.btn-close {
    box-shadow: none; /* Menghapus shadow */
}

.kedua h2 {
    text-align: center;
    /* font-size: 24px; */
    font-weight: bold;
    margin-bottom: 10px;
}

.kedua {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px;
    text-align: center;
}

.kedua img {
    cursor: pointer;
    max-width: 100%;
    height: auto;
    margin-top: 20px; /* Optional: Tambahkan margin jika ingin memberi jarak dari judul */
}

.kedua p{
    font-size: 20px;
}

.ketiga h2 {
    text-align: center;
    /* font-size: 24px; */
    font-weight: bold;
    margin-bottom: 10px;
}

.practicum-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    padding: 20px;
}

/* Adjusting the layout to ensure the logo and title are properly aligned */
.top-row {
    display: flex;
    align-items: center; /* Vertically centers the logo and title */
    justify-content: space-between; /* Ensures logo and title are spaced evenly */
    width: 100%; /* Make sure it uses the full width */
}

/* Logo */
.logo_praktikum {
    width: 80px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover;
    margin-right: 20px; /* Adjust space between logo and title */
}

/* Title */
.title_praktikum {
    font-size: 25px; /* Font size for the title */
    font-weight: bold; /* Make the title bold */
    color: rgb(46, 117, 164); /* Change title color */
    margin-left: auto; /* Push the title to the right */
    text-align: left; /* Align title text to the left */
    white-space: nowrap; /* Prevent text wrapping */
    margin-top: 3px;
    margin-bottom: 3px;
}

.praktikum-kiri, .praktikum-kanan {
    display: grid;
    grid-template-rows: auto 1fr; /* Two rows: first for logo + title, second for the paragraph */
    align-items: start;
    padding: 20px;
    border-radius: 10px;
    background-color: #ececec;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    margin: 10px;
}

.praktikum-kiri p, .praktikum-kanan p {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2em;
    text-align: justify;
    margin-top: 10px; /* Space between the top row and the paragraph */
}

.foto_praktikum {
    max-width: 400px;
    height: auto;
    display: block; /* Make it a block element */
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px; /* Optional: Add some space at the top */
}

.ketiga{
    padding-top: 80px;
    padding-bottom: 120px;
    padding-left: 30px;
    padding-right: 30px;
}
/* taruh sini */
.timeline {
    padding: 50px 0;
    position: relative;
}

.timeline-item {
    position: relative;
    width: 6px;
    margin: 0 auto;
    padding-top: 50px;
    background-color: #000000;
}

.timeline .ble {
    font-size: 23px;
    margin-bottom: 3px;
    font-weight: 1000;
    color: #000000;
}

.timeline p{
    margin-top: 3px;
    color: #7d7d7d;
}

.timeline time {
    display: block;
    font-size: 21px;
    margin-bottom: 8px;
    font-weight: 700;
    color:rgb(46, 117, 164);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.5s;
    background-color: inherit;
    z-index: 1;
}

.timeline-item div {
    position: relative;
    bottom: 0;
    width: 500px;
    padding: 15px;
    background-color: #ffffff;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.timeline-item:nth-child(odd) div {
    left: 45px;
}

.timeline-item:nth-child(even) div {
    left: calc(-500px - 45px - 6px);
}

.timeline-item.in-view:after {
    background-color: #6e0009;
}

.timeline-item.in-view div {
    transform: translateY(0);
    opacity: 1;
}

@media screen and (max-width: 900px) {
    .timeline-item div {
        width: 250px;
    }

    .timeline-item:nth-child(even) div {
        left: calc(-250px - 45px - 6px);
    }
}

@media screen and (max-width: 600px) {
    .timeline-item {
        margin-left: 20px;
    }

    .timeline-item div {
        width: calc(100vw - 90px);
    }

    .timeline-item:nth-child(odd) div,
    .timeline-item:nth-child(even) div {
        left: 45px;
        transform: translateX(0);
    }

    /* ini aside */
    .profil {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .sosmed {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Lebih sedikit jarak antar ikon */
    }

    .comment-form-container {
        width: 100%; /* Lebar penuh pada layar kecil */
        margin-right: 0;
        margin-left: 100px;
        padding: 10px;
    }

    .input-row {
        flex-direction: column;
        justify-content: space-between;
        display: flex;
    }

    .input-group {
        width: 100%; /* Lebar penuh untuk setiap input */
        margin-right: 0;
    }

    .last p {
        padding: 20px; /* Kurangi padding untuk ruang yang lebih kecil */
    }

    .contact h2 {
        font-size: 18px;
    }

    .contact h2:first-child {
        font-size: 16px;
    }
}

.logo_experience {
    width: 90px; /* Set the size of the image */
    height: auto; /* Set the height (same as width to make it square) */
    object-fit: cover; /* Ensures the image covers the container without distortion */
    /* border-radius: 50%; Makes the image circular */
    margin-bottom: 10px; /* Adds space below the image */
}

.keempat{
    padding-top: 80px;
    padding-bottom: 20px;
}

/* taruh sini */
.keempat h2 {
    text-align: center;
    /* font-size: 24px; */
    font-weight: bold;
    margin-bottom: 10px;
}

.kelima{
    padding-top: 80px;
    padding-bottom: 30px;
}

/* taruh sini */
.kelima h2 {
    text-align: center;
    /* font-size: 24px; */
    font-weight: bold;
    margin-bottom: 10px;
}

.container-foto {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    grid-template-rows: auto;              /* Automatically size rows */
    gap: 10px;                             /* Space between images */
    width: 100%;                           /* Make container take full width */
    max-width: 1000px;                     /* Set a max-width to prevent it from getting too wide */
    margin: 0 auto;                        /* Center the grid */
}

.landscape {
    grid-column: 1 / span 3;               /* Make landscape image span across all 3 columns */
    width: 100%;                           /* Make landscape image take full width of the container */
    height: auto;                          /* Maintain aspect ratio */
}

.portrait {
    width: 100%;                           /* Make portrait image take full width of its column */
    height: auto;                          /* Maintain aspect ratio */
}

.kelima p{
    padding-left: 260px;
    padding-right: 260px;
    text-align: justify;
    font-size: 20px;
}

.kelima a{
    text-decoration: none; /* Remove the underline */
    color: #007BFF;        /* Change the color of the link */
}

.kelima a:hover {
    color: #0056b3;        /* Optional: Change color on hover */
}

/* ini bagian aside */
.last {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100vh;
    margin-left: 180px;
    /* padding: 10px; */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

.last p {
    font-size: 20px;
    color: black;
    text-align: center;
    font-weight: 500;
    line-height: 1.75rem;
    padding: 60px;
    border-radius: 8px;
}

.last time{
    font-weight: bold;
    font-style:italic;
}

.contact {
    padding-top: 65px;
    padding-bottom: 30px;
}

.contact h2 {
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 200px;
}

/* Tambahan untuk membagi sosmed dan comment form secara horizontal */
.profil {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 20px; /* Tambahkan padding untuk memberi ruang di sekitar elemen */
    box-sizing: border-box; /* Pastikan padding diperhitungkan dalam lebar */
    /* background-color: #ececec; */
}

.sosmed {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Agar ikon media sosial diatur secara vertikal */
    align-items: flex-start;
    padding: 20px;
    width: 100%; /* Tentukan lebar untuk sosmed agar 45% dari lebar container */
    gap: 40px;
}

.comment-form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 50%; /* Tentukan lebar form agar 50% dari lebar container */
    max-width: 500px; /* Optional: batas maksimal lebar form */
    margin-right: 220px;
}

form {
    display: flex;
    flex-direction: column;
}

.input-row {
    display: flex;
    justify-content: space-between;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;
    margin-right: 10px;
}

.input-group:last-child {
    margin-right: 0;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #5b9bd5;
}

.submit-btn {
    background: linear-gradient(90deg, #4b79a1 0%, #283e51 100%);
    color: white;
    padding: 12px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #4b79a1 0%, #1b2836 100%);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 10px;
    width: 50px; /* Ukuran lebar gambar */
    height: 50px; /* Ukuran tinggi gambar */
    cursor: pointer;
    display: none; /* Secara default, gambar tidak terlihat */
    z-index: 1000; /* Agar tetap terlihat di atas konten lain */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Efek transisi */
}

.scroll-to-top:hover {
    opacity: 0.7; /* Efek transparansi saat di-hover */
    transform: scale(1.1); /* Perbesar sedikit gambar saat di-hover */
}

footer {
    background-color: rgb(46, 117, 164);
    color: white;
    text-align: center;
    padding: 10px;
}