@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ================================
   RESET DASAR
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(243, 216, 117, 0.14),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(0, 255, 170, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(0, 125, 83, 0.35),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #01150f 0%,
            #023326 45%,
            #00543b 100%
        );
}

/* Cahaya dekorasi background */

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.45;
    animation: backgroundFloat 14s ease-in-out infinite alternate;
}

body::before {
    top: 15%;
    left: -150px;
    background: rgba(243, 216, 117, 0.18);
}

body::after {
    right: -150px;
    bottom: 10%;
    background: rgba(0, 255, 170, 0.16);
    animation-delay: 4s;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ================================
   NAVBAR
================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    min-height: 75px;
    padding: 10px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: rgba(1, 21, 15, 0.82);
    border-bottom: 1px solid rgba(243, 216, 117, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    color: #ffffff;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo img {
    display: block !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;

    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 8px rgba(243, 216, 117, 0.35));
    transition: 0.3s ease;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.08);
    filter: drop-shadow(0 0 14px rgba(243, 216, 117, 0.65));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text b {
    color: #f3d875;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-text strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.navbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.navbar nav a {
    position: relative;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #f3d875;
    transition: 0.3s ease;
}

.navbar nav a:hover {
    color: #f3d875;
}

.navbar nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

/* ================================
   TOMBOL
================================ */

.btn,
button,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 24px;
    border: none;
    border-radius: 10px;

    background: linear-gradient(135deg, #d6ad42, #a47d20);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover,
button:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #f3d875, #d6ad42);
    color: #063d2b;
    box-shadow: 0 8px 25px rgba(214, 173, 66, 0.3);
}

/* ================================
   HERO
================================ */

.hero,
#home {
    position: relative;
    min-height: 100vh;
    padding: 160px 7% 90px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(1, 21, 15, 0.35),
            rgba(2, 51, 38, 0.72)
        ),
        radial-gradient(
            circle at center,
            rgba(0, 140, 91, 0.85),
            rgba(1, 21, 15, 0.95)
        );
}

/* Pola grid halus di hero */

.hero::before,
#home::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;

    background-image:
        linear-gradient(
            rgba(243, 216, 117, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(243, 216, 117, 0.08) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
    mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 950px;
    margin: auto;
}

.hero-content img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;

    filter: drop-shadow(0 0 18px rgba(243, 216, 117, 0.4));
    animation: logoFloat 4s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: 18px;
    color: #f3d875;
    font-size: clamp(30px, 5vw, 65px);
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 0 25px rgba(243, 216, 117, 0.2);
}

.hero h2 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: clamp(20px, 3vw, 34px);
}

.hero p {
    max-width: 750px;
    margin: 0 auto 30px;
    color: #e4f0e9;
    font-size: clamp(14px, 2vw, 18px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ================================
   SECTION UMUM
================================ */

section {
    position: relative;
    width: 100%;
    padding: 90px 7%;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading span {
    display: inline-block;
    margin-bottom: 8px;

    color: #f3d875;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.3;
}

.section-heading p {
    color: #dce9e2;
    font-size: 15px;
}

/* ================================
   TENTANG / PROFIL
================================ */

#tentang,
#profil,
.about-section {
    background:
        linear-gradient(
            135deg,
            rgba(1, 21, 15, 0.65),
            rgba(0, 84, 59, 0.35)
        );
}

.about-container,
.about-content {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 45px;
}

.about-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
}

.about-text h2,
.about-content h2 {
    margin-bottom: 18px;
    color: #f3d875;
    font-size: clamp(25px, 4vw, 38px);
}

.about-text p,
.about-content p {
    margin-bottom: 15px;
    color: #e1eee7;
    font-size: 15px;
}

/* ================================
   KARTU LOMBA
================================ */

#lomba,
.lomba-section {
    background:
        radial-gradient(
            circle at top left,
            rgba(243, 216, 117, 0.08),
            transparent 28%
        );
}

.lomba-grid,
.competition-grid,
.cards-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lomba-card,
.competition-card,
.card {
    min-width: 0;
    padding: 25px;

    background: rgba(255, 255, 255, 0.96);
    color: #26352e;

    border: 1px solid rgba(243, 216, 117, 0.3);
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.lomba-card:hover,
.competition-card:hover,
.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(214, 173, 66, 0.25);
}

.lomba-card h3,
.competition-card h3,
.card h3 {
    margin-bottom: 10px;
    color: #063d2b;
    font-size: 19px;
}

.lomba-card p,
.competition-card p,
.card p {
    color: #5b665f;
    font-size: 14px;
}

/* ================================
   JADWAL
================================ */

.jadwal-section,
#jadwal {
    background:
        radial-gradient(
            circle at top right,
            rgba(243, 216, 117, 0.13),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(0, 84, 59, 0.85),
            rgba(1, 21, 15, 0.8)
        );
}

.jadwal-grid {
    max-width: 1150px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.jadwal-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 20px;
    background: rgba(255, 255, 255, 0.97);

    border-left: 6px solid #d6ad42;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
}

.jadwal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(214, 173, 66, 0.25);
}

.jadwal-nomor {
    width: 55px;
    height: 55px;
    min-width: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #d6ad42, #a47d20);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
}

.jadwal-detail {
    min-width: 0;
    flex: 1;
}

.jadwal-detail h3 {
    margin-bottom: 10px;
    color: #063d2b;
    font-size: 17px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.jadwal-detail p {
    margin: 5px 0;
    color: #5b665f;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.jadwal-detail strong {
    color: #08704e;
}

/* ================================
   PENDAFTARAN / CTA
================================ */

.cta,
.cta-section,
#pendaftaran {
    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(0, 84, 59, 0.9),
            rgba(1, 21, 15, 0.95)
        );
}

.cta h2,
.cta-section h2 {
    margin-bottom: 15px;
    color: #f3d875;
    font-size: clamp(25px, 4vw, 40px);
}

.cta p,
.cta-section p {
    max-width: 750px;
    margin: 0 auto 25px;
    color: #e1eee7;
}

/* ================================
   KONTAK
================================ */

#kontak,
.contact-section {
    background:
        radial-gradient(
            circle at bottom left,
            rgba(0, 255, 170, 0.08),
            transparent 30%
        ),
        rgba(1, 21, 15, 0.72);
}

.contact-container {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contact-card {
    padding: 25px;
    text-align: center;

    background: rgba(255, 255, 255, 0.96);
    color: #26352e;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    margin-bottom: 8px;
    color: #063d2b;
}

.contact-card p {
    color: #5b665f;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* ================================
   FOOTER
================================ */

footer {
    padding: 30px 7%;
    text-align: center;

    background:
        linear-gradient(
            135deg,
            #01150f,
            #023326
        );

    border-top: 1px solid rgba(243, 216, 117, 0.2);
}

footer p {
    color: #cbdcd2;
    font-size: 13px;
}

footer strong {
    color: #f3d875;
}

/* ================================
   ANIMASI
================================ */

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes backgroundFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, -40px) scale(1.1);
    }

    100% {
        transform: translate(-40px, 70px) scale(0.95);
    }
}

/* ================================
   TABLET
================================ */

@media (max-width: 1000px) {
    .navbar {
        padding: 10px 4%;
    }

    .logo img {
        width: 48px !important;
        height: 48px !important;
    }

    .navbar nav {
        gap: 15px;
    }

    .navbar nav a {
        font-size: 12px;
    }

    .lomba-grid,
    .competition-grid,
    .cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-container,
    .about-content {
        gap: 25px;
    }
}

/* ================================
   HP
================================ */

@media (max-width: 700px) {
    .navbar {
        min-height: 65px;
        padding: 8px 15px;
        flex-wrap: wrap;
    }

    .logo {
        display: flex !important;
        align-items: center;
        gap: 8px;
        max-width: calc(100% - 55px);

        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo img {
        display: block !important;
        width: 40px !important;
        height: 40px !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .logo-text b {
        font-size: 12px;
    }

    .logo-text strong {
        font-size: 9px;
    }

    .menu-toggle {
        display: block;
        padding: 4px 8px;
        background: transparent;
        color: #ffffff;
        font-size: 28px;
    }

    .navbar nav {
        display: none;
        width: 100%;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 20px;
        background: rgba(1, 21, 15, 0.98);
        border-top: 1px solid rgba(243, 216, 117, 0.2);
    }

    .navbar nav.show {
        display: flex;
    }

    .navbar nav a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
    }

    .navbar nav a::after {
        display: none;
    }

    .hero,
    #home {
        min-height: auto;
        padding: 145px 20px 75px;
    }

    .hero-content img {
        width: 110px;
        height: 110px;
    }

    section {
        padding: 65px 20px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .about-container,
    .about-content,
    .lomba-grid,
    .competition-grid,
    .cards-container,
    .jadwal-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .about-text h2,
    .about-content h2 {
        font-size: 28px;
    }

    .jadwal-card {
        padding: 15px;
        gap: 12px;
    }

    .jadwal-nomor {
        width: 43px;
        height: 43px;
        min-width: 43px;
        font-size: 18px;
    }

    .jadwal-detail h3 {
        font-size: 15px;
    }

    .jadwal-detail p {
        font-size: 12px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ================================
   HP KECIL
================================ */

@media (max-width: 400px) {
    .logo img {
        width: 36px !important;
        height: 36px !important;
    }

    .logo-text b {
        font-size: 11px;
    }

    .logo-text strong {
        font-size: 8px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .jadwal-card {
        gap: 10px;
    }

    .jadwal-nomor {
        width: 37px;
        height: 37px;
        min-width: 37px;
        font-size: 16px;
    }
}

/* ================================
   AKSESIBILITAS
================================ */

:focus-visible {
    outline: 3px solid #f3d875;
    outline-offset: 4px;
}

/* ================================
   REDUCE MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* TEST BACKGROUND - LETAKKAN PALING BAWAH */
html,
body {
    background: #01150f !important;
}

body {
    background-image:
        radial-gradient(
            circle at 15% 20%,
            rgba(243, 216, 117, 0.35),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(0, 255, 170, 0.25),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #01150f 0%,
            #034b35 50%,
            #001c13 100%
        ) !important;
    background-attachment: fixed !important;
}

body {
    background: red !important;
}