* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    /* Mencegah scroll horizontal */
}

a {
    text-decoration: none;
    color: inherit;
}

.navbar {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    z-index: 30;
}

.navbar .navbar-container {
    max-width: var(--max-screen);
    margin: auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.navbar .navbar-brand h2 {
    font-size: var(--small-size);
}

.navbar .navbar-links {
    display: flex;
    column-gap: 50px;
}

.navbar .navbar-links a {
    text-decoration: none;
    font-size: var(--small-size);
}

.navbar-mobile {
    position: sticky;
    top: 0;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-color);
    z-index: 30;
}

.navbar-mobile h2 {
    font-size: 24px;
}

.navbar-mobile .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.navbar-mobile .hamburger>div {
    width: 35px;
    height: 4px;
    background-color: black;
    transition: all 0.3s ease;
}

.navbar-mobile .hamburger.active>div:nth-child(1) {
    transform: translateY(-1px) rotate(45deg);
}

.navbar-mobile .hamburger.active>div:nth-child(2) {
    transform: translateY(-10px) rotate(-45deg);
}

.navbar-mobile-links {
    position: fixed;
    width: 100%;
    left: 0;
    top: 70px;
    transform: translateY(-100%);
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    background-color: var(--background-color);
    display: none;
    flex-direction: column;
    gap: 20px;
    transition: .3s;
    z-index: 10;
}

.navbar-mobile-links.active {
    transform: translateY(0);
}

.navbar-mobile-links a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .navbar-mobile {
        display: flex;
    }

    .navbar-mobile-links {
        display: flex;
    }
}

/* ------------------------ Hero Section Styles ------------------------------ */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hero Info */
.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    max-width: var(--max-screen);
    margin: auto;
    text-align: center;
    margin: auto;
    flex: 1;
}

.hero-info h1 {
    font-size: var(--large-size);
    line-height: 1.2;
}

.hero-info .hero-paragraf {
    font-size: var(--small-size);
    line-height: 1.5;
    margin-top: 50px;
}

/* Hero Footer */
.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    font-size: var(--small-size);
    letter-spacing: 0.1em;
    width: 100%;
    max-width: var(--max-screen);
}

/* Atur link tengah secara spesifik */
.hero-footer .scroll-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* -------------------------------------- About Section Styles ----------------------------------------- */
.about-section {
    padding: 12rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.about-img {
    width: 100%;
    /* Batas lebar maksimum gambar */
    margin-bottom: 3rem;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.about-info {
    max-width: var(--max-screen);
    margin: auto;
}

.about-info p {
    font-size: var(--medium-size);
    font-weight: 700;
}









/* ----------------------------------------------- SECTION TIM PROFILE ------------------------------------------ */
/* --- Content Section / Team Section --- */
.content-section {
    padding: 6rem 1rem;
    box-sizing: border-box;
    max-width: var(--max-screen);
    margin: auto;
}

.content-info {
    margin-bottom: 4rem;
}

.content-info p {
    font-size: 1rem;
    font-weight: 400;
}

.content-info h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
}

/* 1. Tambahkan PERSPEKTIF agar efek 3D terlihat */
.content-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
    /* Memberi kedalaman 3D */
}

/* 2. Atur KARTU UTAMA agar bisa berputar dan berbentuk persegi */
.team-member {
    aspect-ratio: 1 / 1;
    /* Membuat kartu menjadi persegi */
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* 3. Aturan HOVER BARU untuk memutar kartu */
.team-member:hover {
    transform: rotateY(180deg);
}

/* 4. Atur MUKA DEPAN dan MUKA BELAKANG kartu */
.team-front,
.team-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* Sembunyikan sisi belakang saat diputar */
    overflow: hidden;
    border-radius: 8px;
}

/* 5. Atur MUKA DEPAN (gambar dan info ringkas) */
.team-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.team-info p:first-child {
    font-weight: 700;
    font-size: 1rem;
}

.team-info p:last-child {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 6. Atur MUKA BELAKANG dan putar 180 derajat di awal */
.team-back {
    background-color: #111111;
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transform: rotateY(180deg);
    /* Putar sisi belakang di awal */
}

/* Styling konten di dalam sisi belakang */
.team-back h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid white;
    padding-bottom: 0.5rem;
}

.team-back p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.team-back .motto {
    font-style: italic;
    opacity: 0.8;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.social-links a:hover {
    color: #cccccc;
}






/* ---------------------------------------- SECTION FOOTER ---------------------------------------------- */
.footer-section {
    padding: 8rem 1rem;
    box-sizing: border-box;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: var(--max-screen);
    min-height: 90vh;
    position: relative;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
    /* Membuat elemen sejajar di bagian bawah */
}

.next-page {
    margin: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.next-page a {
    font-size: var(--small-size);
}

.contact-details h1 {
    font-size: var(--extra-size);
}

.contact-details p {
    font-size: var(--small-size);
}

.copy-right {
    position: absolute;
    bottom: 0;
    padding: 2rem 1rem;
    box-sizing: border-box;
    text-align: center;
    font-size: var(--small-size);
}



/* ============================================================
--- MEDIA QUERIES FOR RESPONSIVENESS ---
Gaya di bawah ini hanya akan aktif pada layar dengan 
lebar 768px atau lebih kecil (tablet dan mobile).
============================================================
*/
@media (max-width: 768px) {

    /* -- Variabel Font untuk Mobile -- */
    :root {
        --medium-size: 2.25rem;
        /* Perkecil font H1 */
        --normal-size: 0.9rem;
    }

    /* -- Penyesuaian Global -- */
    body {
        /* Hapus max-width di mobile agar konten memenuhi layar */
        max-width: 100%;
    }

    /* -- Perbaikan Hero Section -- */
    .hero-section {
        padding: 1.5rem 5%;
        /* Kurangi padding */
    }

    .navbar-menu {
        flex-direction: column;
        /* Susun logo dan link secara vertikal */
        gap: 1.5rem;
        /* Beri jarak antara logo dan link */
    }

    .navbar-links a {
        margin-left: 1.5rem;
        /* Kurangi jarak antar link */
        margin-right: 1.5rem;
    }

    .hero-info {
        margin: 2rem 0;
        /* Kurangi margin vertikal */
    }

    .hero-footer {
        flex-direction: column;
        /* Susun footer secara vertikal */
        gap: 1.5rem;
        /* Beri jarak */
        text-align: center;
    }

    /* -- Perbaikan About Section -- */
    .about-section {
        padding: 4rem 5%;
        /* Kurangi padding */
    }

    .about-info p {
        font-size: var(--medium-size);
        /* Perkecil font di bagian about */
    }
}



/* --- Penyesuaian Responsif untuk Bagian Tim --- */
@media (max-width: 992px) {
    .content-team {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-team {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .content-team {
        grid-template-columns: 1fr;
    }
}


/* footer */
@media (max-width: 768px) {
    .footer-section {
        /* Kurangi padding di layar kecil */
        padding: 1rem;
        box-sizing: border-box;
    }

    .footer-info {
        /* Ubah tata letak menjadi vertikal */
        grid-template-columns: repeat(1, 1fr);
        /* Ratakan ke kiri */
    }

    .contact-details h1 {
        /* Perkecil ukuran font judul "Contacts" */
        font-size: var(--extra-size);
    }

    .next-page {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }


    .next-page a {
        /* Perkecil ukuran font "Next page" */
        font-size: var(--small-size);
    }
}