/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Garamond, serif;
    background-color: rgb(251, 236, 218);
    overflow: hidden;
}

/* NAVBAR */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: teal;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.logo-main {
    font-weight: bold;
}

.logo-sub {
    font-size: 10px;
}

.nav-menu {
    display: flex;
    gap:50px;
    list-style: none;
    font-size: 18px;
}

.nav-menu li a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    text-decoration: underline;
    color:  #e0e0e0;
}
.nav-menu li a:hover {
    transform: scale(1.1);
}
/* .nav-menu a,
.nav-menu button {
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
} */

/* DROPDOWN */
/* .nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: teal;
    padding: 10px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s;
}

.dropdown-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
} */

/*  MAIN SLIDER  */
main {
    display: flex;
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x proximity;
}

/* SECTION = SLIDE */
.section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;

    padding: 100px 40px 40px;
    scroll-snap-align: start;
}

/* ================= HOME ================= */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .overlay {
  max-width: 7000px;
  padding: 20px;
  color: #000000;
  animation: fadeIn 1.2s ease;

  width: 80%;
    height: 80%;

    background-image: linear-gradient(
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.6)
    ), url("../assets/1.jpeg");

    background-size: cover;
    border-radius: 10px;
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

/* Judul */
.home .overlay h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Story */
.story {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #000000;
}

/* Fakta */
.fact {
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    color: #000000;
    margin-bottom: 25px;
    letter-spacing: 1.1px;
}

/* Highlight */
.highlight {
    margin-bottom: 30px;
}

.highlight span {
    display: inline-block;
    background: rgba(200, 169, 126, 0.9);
    padding: 8px 16px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
    transition: 0.3s;
}

.highlight span:hover {
    transform: scale(1.1);
    background: #c8a97e;
}

/* Tombol */
.btn {
    text-decoration: none;
    color: black;
    background: #c8a97e;
    padding: 10px 20px;
    border-radius: 18px;
    font-size: 16px;
    transition: 0.3s;
    
}

.btn:hover {
  transform: scale(1.1);
    background: #c8a97e;
}


/* ================= ABOUT ================= */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about .container {
    width: 80%;
    height: 80%;

    background-image: linear-gradient(
        rgba(255,255,255,0.6),
        rgba(255,255,255,0.6)
    ), url("../assets/1.jpeg");

    background-size: cover;
    border-radius: 10px;
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.about h1 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.about p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ================= PROFIL ================= */
.profil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profil h2 {
    margin-bottom: 40px;
}

.card-container {
    display: flex;
    gap: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;

    width: 250px;
}

.card img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 10px;
}

.card-subtitle {
    background: teal;
    color: white;
    padding: 8px;
    border-radius: 10px;
    margin: 10px 0;
}

.social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social i {
    font-size: 24px;
    color: teal;
    transition: transform 0.3s, color 0.3s;
}
.social i:hover {
    color: #004d4d;
    transform: scale(1.2);
}

/* ================= TIMELINE ================= */
.timeline {
    display: flex;
    align-items: center;
}

.timeline h2 {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

/* container horizontal */
.timeline-container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 60px;
}

/* item */
.timeline-container article {
    min-width: 300px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* gambar bulat gede */
.timeline-container img {
    width: 220px;
    height: 220px;

    border-radius: 50%;
    object-fit: cover;
    border: 5px solid teal;

    margin-bottom: 15px;
}

/* judul */
.timeline-container h4 {
    text-align: center;
    max-width: 250px;
}

/* ================= SCROLLBAR (optional biar clean) ================= */
main::-webkit-scrollbar {
    height: 8px;
}

main::-webkit-scrollbar-thumb {
    background: teal;
    border-radius: 10px;
}   
/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;

    transform: scale(0.85);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid teal;
    margin-bottom: 16px;
}

.modal-box h3 {
    color: teal;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.modal-box p {
    line-height: 1.6;
    font-size: 0.95em;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #555;
    line-height: 1;
}

.modal-close:hover {
    color: teal;
}

/* Gambar timeline bisa diklik */
.timeline-container img {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(0, 128, 128, 0.5);
}