/* General Reset */
body, html {
    background: linear-gradient(to bottom, #f3f3e0, #f3f3e0, #CBDCEB, #CBDCEB, #f3f3e0, #f3f3e0);
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: #133e87;
    scroll-behavior: smooth;
    font-size: 20px;
    overflow-x: hidden;
}

/* Top Bar */
.topbar {
    background-color: #133e87;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: calc(100% - 100px);
    top: 0;
    z-index: 1000;
}

.topbar .name a {
    color: #f3f3e0;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    border: none;
}

.topbar .name a:hover {
    text-decoration: none;
}

.topbar a {
    color: #f3f3e0;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 12px;
    border: 3.5px solid transparent;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.topbar a:hover {
    border-color: #f3f3e0;
    background-color: #133e87;
    color: #c2d4ff;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
}

/* Intro Text */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #133e87;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-bar {
    width: 70%;
    height: 20px;
    background-color: #f3f3e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.bar {
    width: 0;
    height: 100%;
    background-color: #6699ff;
    animation: loadBar 3s ease-in-out forwards;
}

.loading-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    color: #f3f3e0;
}

.dots {
    display: inline-block;
    animation: dots 1s steps(3, end) infinite;
}

@keyframes loadBar {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Intro Video */
.intro-video {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
}

.intro-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Sections */
.section {
    padding: 40px 70px;
    margin: 55px auto;
    border-radius: 15px;
    background-color: #f3f3e0;
    box-shadow: 0 4px 8px rgb(43, 101, 202);
    max-width: 1100px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.show {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.about-content img {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.about-content p {
    flex: 1;
    line-height: 1.6;
}

/* Skills & Experience Section */
.skills-experience {
    display: flex;
    justify-content: space-between;
    gap: 0px;
}

.skills, .experience {
    width: 100%;
}

.skills ul, .experience ul {
    list-style-type: none;
    padding: 0;
}

.skills li, .experience li {
    margin-bottom: 10px;
}

/* Skill Level Bullets */
.skill-level .skill {
    margin-bottom: 10px;
}

.skill-level .skill span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.skill-bullets {
    display: flex;
    gap: 7px;
}

.bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #b9d1ff92;
}

.bullet.filled {
    background-color: #133e87;
}

/* Experience List */
.experience-list {
    list-style-type: none;
    padding: 0;
}

.experience-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.experience-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #133e87;
    border-radius: 50%;
}

/* Projects Section */
.projects-section {
    margin-bottom: 50px; /* Atur nilai ini sesuai kebutuhan */
    padding-bottom: 50px; /* Atur nilai ini sesuai kebutuhan */
    overflow: hidden; /* Pastikan tidak ada overflow */
    height: auto; /* Hindari penggunaan height tetap */
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.project-buttons button {
    padding: 15px 25px;
    font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    border: none;
    background-color: #133e87;
    color: #f3f3e0;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.project-buttons button:hover {
    background-color: #0f2d63;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Pastikan gap antar elemen tidak terlalu besar */
}

.project-item.poster img {
    width: 100%;
    height: auto; /* atau gunakan max-height: 500px untuk batasan tinggi */
}

.project-item {
    display: none; /* Sembunyikan secara default */
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-bottom: 0; /* Atur ulang margin bawah */
}

.project-item.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.project-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.project-item img:hover {
    transform: scale(10);
    box-shadow: 0 8px 16px rgb(43, 101, 202);
}

/* Layout Kolase untuk Fotografi */
.project-grid.photography-layout {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Kolom grid */
    grid-template-rows: repeat(4, 200px); /* Baris grid */
    gap: 20px;
}

.photo-large {
    grid-column: span 3; /* Memanjang 3 kolom */
    grid-row: span 2; /* Memanjang 2 baris */
}

.photo-medium {
    grid-column: span 2; /* Memanjang 2 kolom */
    grid-row: span 2; /* Memanjang 2 baris */
}

.photo-small {
    grid-column: span 1; /* Memanjang 1 kolom */
    grid-row: span 1; /* Memanjang 1 baris */
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(43, 101, 202, 0.46);
}

/* Brosur */
.project-item.brochure {
    display: block;
    width: 100%;
}

.project-grid.brochure-layout {
    display: flex;
    flex-direction: column; /* Menyusun elemen secara vertikal */
    gap: 30px; /* Jarak antar elemen */
    width: 100%; /* Pastikan grid menempati seluruh lebar section */
}

.project-item.brochure img {
    width: 100%; /* Pastikan gambar menempati lebar penuh */
    height: auto; /* Atur agar gambar tetap proporsional */
}

/* Video Projects Section */
.video-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

.video-slider iframe {
    width: 80%;
    height: 450px;
    border-radius: 15px;
    margin-bottom: 10px;
}

.video-title, .video-description {
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
}

/* Contact Section */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

/* Kontak Section */
.contact-section {
    background: linear-gradient(135deg, #F3F3E0, #F3F3E0); /* Gradasi biru */
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f3f3e0;
}

.quote-container {
    flex: 1;
    padding-left: 60px;
    max-width: 40%; /* Sesuaikan dengan ukuran yang diinginkan */
}

.quote {
    font-size: 42px; /* Ukuran font */
    font-style: normal; /* Gaya font */
    color: #133e87; /* Warna font */
    line-height: 0.01; /* Jarak antar baris */
    letter-spacing: 0.01px; /* Jarak antar huruf */
    font-weight: 900; /* Ketebalan font */
    text-align: left; /* Perataan teks */
    margin-bottom: 30px; /* Jarak bawah */
    word-spacing: 2px; /* Jarak antar kata */
    text-transform: none; /* Transformasi teks (none, uppercase, lowercase, capitalize) */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0); /* Bayangan teks opsional */
}

.contact-container {
    display: flex;
    flex: 2;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-right: 60px;
}

.contact-details,
.newsletter {
    flex: 1;
}

.contact-details h3,
.newsletter h3 {
    font-size: 25px;
    margin-bottom: 45px;
    line-height: 0.3;
    color: #133e87;
}

.contact-icons {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: flex-end; /* Ubah sesuai kebutuhan: flex-start, center, flex-end */
    margin-top: 120px; /* Atur margin jika perlu */
}

.contact-icons img {
    width: 60px; /* Atur ukuran sesuai kebutuhan */
    height: 60px;
    object-fit: contain;
    display: block;
}

.contact-icons img:hover {
    transform: scale(1.1);
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter input[type="email"] {
    padding: 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    width: 93.8%;
}

.newsletter button {
    background-color: #133e87;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #071b35;
}
