/* Reset Dasar dan Font */
:root {
    --black: #000000;
    --white: #ffffff;
    --red: #D7282F; /* Warna Merah pada logo */
    --blue: #007bff; /* Warna biru untuk tombol/link yang bisa disesuaikan */
    --bg-color: var(--black);
    --text-color: var(--white);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

/* Kontainer Utama (agar terpusat dan rapi) */
.container {
    width: 100%;
    max-width: 450px; /* Ukuran khas untuk Link-in-Bio */
    text-align: center;
    padding-top: 50px; /* Jarak dari atas */
}

/* Logo */
.logo-wrapper {
    width: 100px; /* Ukuran wadah logo */
    height: 100px;
    margin: 0 auto 20px;
    border: 5px solid var(--white); /* Lingkaran putih */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
}

.logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Styling untuk gambar teks "ABS Payroll" */
.company-text-logo {
    max-width: 250px; /* Atur lebar maksimum agar tidak terlalu besar */
    height: auto;     /* Jaga rasio aspek gambar */
    margin: 20px auto 5px auto; /* Jarak atas, tengah, jarak bawah, tengah */
    display: block;   /* Agar bisa menggunakan margin auto untuk centering */
}

/* Sesuaikan ukuran di layar kecil jika perlu */
@media (max-width: 480px) {
    .company-text-logo {
        max-width: 200px; /* Ukuran lebih kecil untuk mobile */
        margin-top: 15px;
    }
}

/* Teks Judul dan Deskripsi */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
}

.description {
    font-size: 1em;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Ikon Media Sosial */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.social-icons a {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); 
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bagian Link Utama (Carousel) */
.main-link-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Container untuk menampung semua item eBook */
.ebook-carousel-track {
    width: 180px; /* Lebar hanya selebar satu item */
    height: 250px;
    overflow: hidden; /* Penting: menyembunyikan item di luar tampilan */
    position: relative;
    border: 4px solid var(--white);
    border-radius: 10px;
}

/* Style untuk setiap item eBook */
.ebook-item {
    display: none; /* Default: Sembunyikan semua item */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.3s;
}

/* Item yang sedang aktif akan ditampilkan */
.ebook-item.active {
    display: block;
    z-index: 10;
}

/* Style untuk tag Gambar Cover Baru */
.ebook-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar menutupi area */
    display: block;
}

/* Teks label ebook (di atas gambar) */
.ebook-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7); /* Bayangan teks agar terlihat */
}


/* Tanda Panah Navigasi */
.nav-arrow {
    font-size: 3em;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    opacity: 0.7;
    user-select: none;
    transition: opacity 0.2s;
}

.nav-arrow:hover {
    opacity: 1;
}

/* Judul eBook di bawah cover */
.ebook-title {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    opacity: 0.5;
    font-size: 0.8em;
}

/* Media Query untuk Responsif */
@media (max-width: 480px) {
    .container {
        padding-top: 30px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .social-icons {
        gap: 10px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }
    
    .ebook-carousel-track {
        width: 150px;
        height: 200px;
    }
    
    .nav-arrow {
        font-size: 2.5em;
    }
}