@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.main-container {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    /* Menambahkan overflow hidden untuk mencegah elemen animasi terlihat sebelum waktunya */
    overflow: hidden;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* Animasi untuk header */
    animation: fadeInDown 0.8s ease-out forwards;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.header-icons {
    display: flex;
    gap: 25px;
    font-size: 22px;
    align-items: center;
}

.header-icons i {
    cursor: pointer;
    transition: color 0.3s ease;
}

.header-icons i:hover {
    color: #ddd;
}

.logout-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* KONTEN UTAMA */
main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* KONTEN KIRI DIBERI ANIMASI BARU */
.content-left {
    max-width: 500px;
    /* State awal sebelum animasi */
    opacity: 0;
    transform: translateY(30px);
    /* Penerapan animasi */
    animation: contentFadeUp 0.8s ease-out 0.5s forwards;
}

.location {
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.content-left h1 {
    font-size: 90px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
}

/* KONTEN KANAN - KARTU */
.content-right {
    display: flex;
    flex-direction: column;
}

.destination-cards {
    display: flex;
    gap: 20px;
}

.card {
    width: 180px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease;
    cursor: pointer;
    
    /* State awal sebelum animasi */
    opacity: 0;
    transform: scale(0.8);
    
    /* Penerapan animasi */
    animation: cardPopIn 0.6s ease-out forwards;
}

/* Membuat animasi kartu muncul satu per satu (staggered) */
.card:nth-child(1) {
    animation-delay: 0.8s;
}
.card:nth-child(2) {
    animation-delay: 1.0s;
}
.card:nth-child(3) {
    animation-delay: 1.2s;
}

.card.active, .card:hover {
    transform: translateY(-20px) scale(1.05); /* Sedikit scale saat hover */
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content p {
    font-size: 12px;
    text-transform: uppercase;
}

.card-content h3 {
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
}

/* NAVIGASI CAROUSEL */
.carousel-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
    /* Animasi */
    opacity: 0;
    animation: contentFadeUp 0.8s ease-out 1.5s forwards;
}

.nav-arrows button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.pagination {
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

.pagination::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}
/* Animasi dashboard */
/* Animasi untuk header, turun dari atas */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk konten kiri, muncul dari bawah */
@keyframes contentFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animasi untuk kartu, membesar dan muncul */
@keyframes cardPopIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}