/* SATRIA 2026 landing page styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.gradient-text {
    background: linear-gradient(135deg, #002B7F, #7C3AED, #EC4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.2;
    padding-bottom: 0.08em;
}

/* Navbar: Centrinova link styled as an external pill */
.nav-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(0, 43, 127, 0.18);
    color: #002B7F;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero-bg {
    background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.12), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(0, 43, 127, 0.08), transparent 45%);
}

/* Mobile menu panel */
.mobile-menu-panel {
    display: none;
    background: linear-gradient(165deg, #001d5c 0%, #002B7F 45%, #3b2f8f 100%);
    overflow-y: auto;
}

.mobile-menu-panel.flex {
    display: flex;
}

.mobile-menu-link {
    color: #ffffff;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.mobile-menu-register {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    color: #002B7F;
    background: #ffffff;
    font-weight: 900;
    padding: 1rem 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

/* Navbar: scrolled state + hide-on-scroll */
#navbar {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, background-color 0.4s ease !important;
    will-change: transform;
}

#navbar.nav-hidden {
    transform: translateY(-130%) !important;
}

.nav-scrolled {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1) !important;
}

/* Animations */
.float-animation {
    animation: floating 5s ease-in-out infinite;
}

.floating-slow {
    animation: floatingIcon 12s linear infinite;
    will-change: transform;
}

.floating-fast {
    animation: floatingIcon 8s linear infinite reverse;
    will-change: transform;
}

@keyframes floating {

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

    50% {
        transform: translateY(-30px) rotate(3deg);
    }
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translate(0, 0) rotate(0);
        opacity: 0.2;
    }

    33% {
        transform: translate(30px, -40px) rotate(10deg);
        opacity: 0.4;
    }

    66% {
        transform: translate(-20px, 30px) rotate(-10deg);
        opacity: 0.3;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#002B7F, #7C3AED);
    border-radius: 10px;
    border: 3px solid #f8fafc;
}

/* Mobile menu open/close transition */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

#modalContent {
    display: flex;
    flex-direction: column;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #002B7F;
    border-radius: 10px;
}

@media (max-width: 768px) {
    #navbar .max-w-7xl {
        margin: 0 10px;
    }
}

#modalContent.show-modal {
    transform: scale(1);
    opacity: 1;
}

.hero-bg h1 {
    overflow: visible;
}

/* Hero: headline slideshow */
.hero-slideshow {
    display: grid;
    place-items: center;
    justify-items: center;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    pointer-events: auto;
}

.hero-slide.is-leaving {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
    filter: blur(6px);
}

/* Hero: logo stage */
.hero-logo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 46rem;
}

.hero-logo-glow {
    position: absolute;
    inset: -15%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), rgba(0, 43, 127, 0.18) 45%, transparent 72%);
    filter: blur(70px);
    border-radius: 9999px;
    z-index: 0;
    animation: heroGlowPulse 4.5s ease-in-out infinite;
}

@keyframes heroGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.18);
        opacity: 1;
    }
}

.hero-logo-ring {
    position: absolute;
    border: 1.5px dashed rgba(124, 58, 237, 0.28);
    border-radius: 9999px;
    z-index: 0;
}

.hero-logo-ring-1 {
    width: 108%;
    height: 108%;
    animation: heroRingRotate 26s linear infinite;
}

.hero-logo-ring-2 {
    width: 126%;
    height: 126%;
    border-color: rgba(0, 43, 127, 0.18);
    animation: heroRingRotate 40s linear infinite reverse;
}

@keyframes heroRingRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-logo-img {
    animation: heroLogoFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 25px 45px rgba(0, 43, 127, 0.28));
}

@keyframes heroLogoFloat {

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

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

@media (max-width: 640px) {
    .hero-logo-ring-2 {
        display: none;
    }
}

/* Footer: "Supported By" shimmer text */
.supported-by-text {
    background: linear-gradient(90deg, #002B7F, #7C3AED, #002B7F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: supportedByShimmer 4s linear infinite;
}

@keyframes supportedByShimmer {
    to {
        background-position: -200% center;
    }
}

/* Back-to-top button */
.back-to-top-btn {
    position: relative;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed, #1d4ed8);
    background-size: 200% 200%;
    animation: backToTopGradient 5s ease infinite;
    overflow: visible;
}

@keyframes backToTopGradient {

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

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

.back-to-top-ring {
    position: absolute;
    inset: -6px;
    border-radius: 1.2rem;
    border: 1.5px solid rgba(124, 58, 237, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Primary "Register Now" button */
.btn-register {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem 3.25rem;
    border-radius: 1.25rem;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, #002B7F 0%, #7C3AED 55%, #EC4899 100%);
    background-size: 220% 220%;
    box-shadow: 0 20px 45px -14px rgba(0, 43, 127, 0.5);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    animation: btnGradientShift 6s ease infinite;
}

.btn-register:active {
    transform: translateY(-1px) scale(0.99);
}

@keyframes btnGradientShift {

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

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

.btn-register-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 35%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    animation: btnShineMove 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShineMove {
    0% {
        left: -60%;
    }

    55%,
    100% {
        left: 130%;
    }
}

/* Secondary "Register Now" button (QR section) */
.btn-register-alt {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3.75rem;
    background: #ffffff;
    color: #002B7F;
    font-weight: 900;
    border-radius: 1.75rem;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 0 25px 55px -18px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

/* Hero "Guidelines" button */
.guidelines-btn-soft {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(124, 58, 237, 0.08));
    border: 1.5px solid rgba(29, 78, 216, 0.18);
    color: #1d4ed8;
    box-shadow: 0 8px 20px -12px rgba(29, 78, 216, 0.35);
}


/* Guidelines section: PDF preview + download */
.guidelines-preview-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 2.5rem;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: 0 30px 60px -25px rgba(0, 43, 127, 0.25);
}

@media (min-width: 768px) {
    .guidelines-preview-wrap {
        aspect-ratio: 4 / 5;
    }
}

.guidelines-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.guidelines-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    background: linear-gradient(to top, rgba(0, 20, 60, 0.7) 0%, rgba(0, 20, 60, 0.15) 40%, rgba(0, 20, 60, 0) 65%);
}

.guidelines-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    border-radius: 1rem;
    background: #fff;
    color: #002B7F;
    font-weight: 900;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.guidelines-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #002B7F, #1d4ed8);
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 18px 35px -14px rgba(0, 43, 127, 0.5);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.guidelines-download-btn svg {
    transition: transform 0.3s ease;
}

/* Footer brand bar */
.footer-brand-bar {
    background: linear-gradient(160deg, #001553 0%, #001238 100%);
}

/* Sponsor logo marquee */
.sponsor-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.sponsor-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 3.5rem;
    animation: sponsorMarquee 36s linear infinite;
}

@media (min-width: 768px) {
    .sponsor-track {
        gap: 5rem;
    }
}

@keyframes sponsorMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Sponsor logos: fixed-height boxes keep every logo on the same baseline */
.sponsor-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    width: 100%;
    max-width: 190px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sponsor-logo-box {
        height: 130px;
        max-width: 240px;
    }
}

.sponsor-logo-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* Recap 2025 cards */
.recap-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recap-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f1f5f9;
    overflow: hidden;
}

.recap-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recap-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 43, 127, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.recap-ig-icon {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Competition track badges (SD / SMP / SMA-K) */
.track-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
    min-width: 5rem;
    padding: 0 1.1rem;
    border-radius: 1.5rem;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .track-badge {
        font-size: 1.25rem;
        height: 4.25rem;
        min-width: 4.25rem;
    }
}

/* Hover states — scoped to pointer devices only, so touch taps don't
   leave buttons stuck in a hovered state */
@media (hover: hover) and (pointer: fine) {
    .nav-external-link:hover {
        background: #002B7F;
        color: #ffffff;
        border-color: #002B7F;
        transform: translateY(-1px);
    }

    .mobile-menu-link:hover {
        color: #93c5fd;
        padding-left: 0.5rem;
    }

    .mobile-menu-register:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
    }

    .back-to-top-btn:hover {
        transform: translateY(-4px) scale(1.08);
        box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
    }

    .back-to-top-btn.translate-y-0:hover {
        transform: translateY(-4px) scale(1.08);
    }

    .back-to-top-btn:hover .back-to-top-ring {
        opacity: 1;
        transform: scale(1.08);
    }

    .btn-register:hover {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 30px 60px -14px rgba(124, 58, 237, 0.6);
    }

    .btn-register-alt:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 30px 65px -18px rgba(0, 0, 0, 0.6);
    }

    .guidelines-btn-soft:hover {
        background: linear-gradient(135deg, rgba(29, 78, 216, 0.14), rgba(124, 58, 237, 0.14));
        border-color: rgba(29, 78, 216, 0.3);
        transform: translateY(-3px);
        box-shadow: 0 14px 28px -12px rgba(29, 78, 216, 0.45);
    }

    .guidelines-preview-wrap:hover .guidelines-preview-img {
        transform: scale(1.04);
    }

    .guidelines-preview-wrap:hover .guidelines-preview-btn {
        transform: translateY(-4px);
    }

    .guidelines-download-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 24px 45px -14px rgba(0, 43, 127, 0.6);
    }

    .guidelines-download-btn:hover svg {
        transform: translateY(3px);
    }

    .sponsor-marquee:hover .sponsor-track {
        animation-play-state: paused;
    }

    .sponsor-logo-box:hover .sponsor-logo-img {
        opacity: 1;
        filter: grayscale(0);
        transform: scale(1.04);
    }

    .recap-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 25px 45px -15px rgba(0, 0, 0, 0.2);
    }

    .recap-card:hover .recap-img {
        transform: scale(1.06);
    }

    .recap-card:hover .recap-overlay {
        background: rgba(0, 43, 127, 0.35);
    }

    .recap-card:hover .recap-ig-icon {
        opacity: 1;
        transform: scale(1);
    }

}