/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif, ;
    font-weight: bold;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #001f3f, #0074D9, #7FDBFF);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    color: #f5faff;
    line-height: 1.7;
    overflow-x: hidden;
    /* matikan scroll horizontal */
    overflow-y: auto;
    /* tetap bisa scroll vertikal */
    /* Lebih nyaman dibaca */
}

/* Gradient background animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scanline {
    0% {
        top: -100%;
    }

    100% {
        top: 0%;
    }
}

/* Main title */
h1 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    background: linear-gradient(90deg, #00c6ff, #7FDBFF);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 2px;
}

/* Section box */
section {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.4);
    backdrop-filter: blur(6px);
    transition: transform 0.3s;
    min-width: 300px;
    width: 1200px;
    max-width: 1500px;
    margin: 1rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    animation: neonGlow 3s infinite alternate;
    /* lapisan tipis */
    overflow: hidden;
    /* supaya pseudo-element tidak keluar */
}

section::after,
.day-card::after,
.day-container::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: repeating-linear-gradient(to bottom,
            rgba(255, 255, 255, 0.06) 1px,
            rgba(255, 255, 255, 0.06) 2px,
            transparent 2px,
            transparent 4px);
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

section:hover,
section::after:hover {
    transform: translateY(-4px);
}


/* Subheading */
h2,
h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #7FDBFF;
    font-weight: 500;
    border-bottom: 1px solid rgba(127, 219, 255, 0.4);
    padding-bottom: 0.5rem;
}

/*Scroll wrapper*/
.scroll-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(0, 200, 255, 0.2);
    border: none;
    color: #e6faff;
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, opacity 0.3s;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.scroll-btn:hover {
    background: rgba(0, 200, 255, 0.6);
}

.scroll-btn.left {
    left: -2rem;
}

.scroll-btn.right {
    right: -2rem;
}

.scroll-wrapper:hover .scroll-btn,
.scroll-wrapper:active .scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

/*Container*/
.day-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    overflow: hidden;
    position: relative;
}

.day-card {
    flex: 0 0 280px;
    /* lebar card tetap */
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    transition: transform 0.3s, background 0.3s;
    overflow: hidden;
    position: relative;
}

.day-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 200, 255, 0.1);
}

/* Sembunyikan scrollbar */
.day-container::-webkit-scrollbar {
    display: none;
}

.day-container {
    -ms-overflow-style: none;
    /* IE dan Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* List styling */
.day-card {
    background: rgba(255, 255, 255, 0.05);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    transition: transform 0.3s, background 0.3s;
    animation: neon-glow 3s infinite alternate;
}

.day-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 200, 255, 0.1);
}

.day-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    color: #00c6ff;
}

.task-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.task-list a,
.task-list span {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #e6faff;
    transition: background 0.3s, color 0.3s;
}

.task-list a:hover {
    background: #7FDBFF;
    color: #001f3f;
}

a {
    color: #e6faff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.3s, background 0.3s, text-shadow 0.3s;
}

a:hover {
    color: #001f3f;
    background: #7FDBFF;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.9);
}

section {
    background: rgba(255, 255, 255, 0.02);
    /* lapisan tipis */
    overflow: hidden;
    /* supaya pseudo-element tidak keluar */
}

/* Stella background sebagai watermark */
section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.3;
    /* semakin kecil → semakin samar */
    z-index: 0;
}

#tugastambahan::before {
    background-image: url("/assets/aa72-background.png");
    background-repeat: no-repeat;
    background-position: center 25%;
    background-size: cover;
}

#minggu1::before {
    background-image: url("/assets/aa72-background.png");
    background-repeat: no-repeat;
    background-position: center 25%;
    background-size: cover;
}

#minggu2::before {
    background-image: url("/assets/aa72-background-2.png");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: cover;
}

#minggu3::before {
    background-image: url("/assets/aa72-background-3.png");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: cover;
}

#minggu4::before {
    background-image: url("/assets/aa72-background.png");
    background-repeat: no-repeat;
    background-position: 30% 25%;
    background-size: cover;
}


/* Pastikan konten di atas gambar */
section>* {
    position: relative;
    z-index: 1;
}


/* Nav & hamburger menu (dari sebelumnya) */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.menu {
    display: flex;
    gap: 1rem;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #00c6ff;
}

#menu-toggle {
    display: none;
}


#stella-run {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: 80px;
    height: 80px;
    z-index: 9999;
}

#stella-run img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: bounce 0.6s ease infinite;
}


@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes neon-glow {
    0% {
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.4);
    }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    section {
        width: 80%;
        padding: 0.8rem;
        max-width: 768px;
    }

    .menu {
        display: none;
        flex-direction: column;
        position: relative;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.85);
        padding: 1rem;
        gap: 0.5rem;
        text-align: center;
        z-index: 1000;
    }

    #menu-toggle:checked+.menu-icon+.menu {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}

h1 {
    font-size: 1.4rem;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.day-card {
    flex: 0 0 220px;
    /* card lebih kecil agar muat */
    padding: 0.8rem;
}

.day-card h3 {
    font-size: 1rem;
}

.task-list a,
.task-list span {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Tombol scroll lebih kecil dan rapat */
.scroll-btn {
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
    top: 35%;
}

.scroll-btn.left {
    left: -1rem;
}

.scroll-btn.right {
    right: -1rem;
}

.scroll-btn {
    opacity: 0;
    pointer-events: none;
    /* tidak bisa diklik saat sembunyi */
    transition: opacity 0.3s;
}

/* Saat user tap/hover area scroll-wrapper → tombol muncul */
.scroll-wrapper:active .scroll-btn,
.scroll-wrapper:hover .scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 635px) {
    section {
        width: 80%;
        padding: 0.8rem;
        max-width: 635px;
    }
}