/* ================= GLOBAL ================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f5f7fb;
    margin: 0;
}

section {
    position: relative;
}

/* ================= NAVBAR PREMIUM ================= */
.yosuka-navbar {
    font-family: 'Poppins', sans-serif;
    position: fixed !important; /* Paksa selalu fixed agar tidak ada efek melompat */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important;
    /* Transisi difokuskan hanya pada elemen yang berubah agar lebih smooth */
    transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out, box-shadow 0.4s ease-in-out, backdrop-filter 0.4s ease-in-out !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

/* Glassmorphism saat di-scroll */
.yosuka-navbar.navbar-scrolled {
    background: rgba(10, 60, 35, 0.85) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    padding: 10px 0 !important; /* Mengecil saat di-scroll */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.08) inset !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Logo Animation (FIX: Gabung semua transisi di sini!) */
.navbar-logo img {
    /* Height, Transform, dan Filter digabung jadi satu rumah agar tidak bentrok */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s ease-in-out, filter 0.3s ease !important;
}

.navbar-logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(255, 107, 0, 0.35));
}

.yosuka-navbar.navbar-scrolled .navbar-logo img {
    height: 50px !important;
    
}

/* ---- Nav Link Animasi ---- */
.nav-link-fancy {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 8px 18px !important;
    transition: color 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* Animated underline */
.nav-link-fancy::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B00, #ffb347);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link-fancy:hover::after,
.nav-link-fancy:focus::after {
    width: 60%;
    left: 20%;
}

.nav-link-fancy:hover {
    color: #ffb347 !important;
    transform: translateY(-1px);
}

/* Stagger animation masuk */
@keyframes navFadeIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yosuka-navbar .nav-item {
    animation: navFadeIn 0.5s ease forwards;
    opacity: 0;
}

.yosuka-navbar .nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.yosuka-navbar .nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.yosuka-navbar .nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.yosuka-navbar .nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

.yosuka-navbar .nav-item:nth-child(5) {
    animation-delay: 0.5s;
}

/* ---- CTA Button Premium ---- */
.btn-cta-navbar {
    background: linear-gradient(135deg, #FF6B00, #D81B24);
    color: #fff !important;
    border: none;
    letter-spacing: 0.5px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-cta-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transition: left 0.6s ease;
}

.btn-cta-navbar:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 30px rgba(255, 107, 0, 0.45),
        0 0 20px rgba(216, 27, 36, 0.2);
    color: #fff !important;
}

.btn-cta-navbar:hover::before {
    left: 100%;
}

/* Pulse glow subtle */
@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
    }

    50% {
        box-shadow:
            0 4px 25px rgba(255, 107, 0, 0.5),
            0 0 40px rgba(255, 107, 0, 0.15);
    }
}

.btn-cta-navbar {
    animation: ctaPulse 3s ease-in-out infinite;
}

.btn-cta-navbar:hover {
    animation: none;
}

/* ================= CARD ================= */
.card {
    border: none;
    border-radius: 14px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
    background: transparent;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* ================= BUTTON ================= */
.btn {
    border-radius: 8px;
    padding: 6px 14px;

    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-main {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* ================= BADGE ================= */
.badge {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* ================= STATUS ================= */
.status-badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* ================= HERO ================= */
.hero-section {
    position: relative;

    min-height: 100vh;

    background:
        linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
        url('/assets/images/hero.webp') center/cover no-repeat;

    display: flex;
    align-items: center;

    color: #fff;

    padding: 140px 0 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);

    padding: 10px 20px;

    border-radius: 50px;

    font-size: 14px;
    letter-spacing: 1px;

    display: inline-block;

    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 78px;
    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 25px;
}

.hero-description {
    font-size: 20px;

    color: rgba(255, 255, 255, 0.85);

    line-height: 1.8;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 40px;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;

    gap: 40px;

    margin-top: 50px;
}

/* ================= RACEPACK IMAGE ================= */
.racepack-image {
    overflow: hidden;
}

.racepack-image div {
    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.card:hover .racepack-image div {
    transform: scale(1.08);
    filter: brightness(1.05);
}


/* ================= E-TICKET (RINCIAN.PHP) ================= */
.ticket-card {
    border: none;
    border-radius: 24px;
    background: #ffffff;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Mengunci efek melayang card global khusus untuk layout tiket */
.ticket-card:hover {
    transform: none !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Pembatas Gunting Tiket */
.ticket-divider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.ticket-divider::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    border-bottom: 2px dashed #e9ecef;
}

/* Efek Lubang Setengah Lingkaran Kiri & Kanan */
.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    top: 145px;
    width: 32px;
    height: 32px;
    background: #f5f7fb;
    /* Menyesuaikan background body global kamu */
    border-radius: 50%;
    z-index: 5;
}

.ticket-card::before {
    left: -16px;
}

.ticket-card::after {
    right: -16px;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adb5bd;
    margin-bottom: 1.25rem;
}

.btn-whatsapp-premium {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.btn-whatsapp-premium:hover {
    background-color: #1ebd54;
    color: white;
    transform: translateY(-2px);
}

/* Mode Cetak Browser ke PDF/Kertas */
@media print {
    body {
        background: #ffffff !important;
    }

    .no-print,
    header,
    footer,
    .btn,
    .alert,
    .mt-4 {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .ticket-card {
        border: 1px solid #e9ecef !important;
        box-shadow: none !important;
    }

    .ticket-card::before,
    .ticket-card::after {
        display: none !important;
    }
}


/* ================= MOBILE RESPONSIVE ================= */
@media(max-width: 768px) {

    body {
        display: block;
    }

    /* TYPOGRAPHY */
    h2 {
        font-size: 34px !important;
    }

    h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* CARD */
    .card {
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .card-body {
        padding: 12px;
    }

    /* FORM */
    .form-control {
        font-size: 14px;
        padding: 10px;
    }

    /* BUTTON */
    .btn {
        font-size: 13px;
        padding: 6px 10px;
    }

    .btn-main {
        padding: 10px;
        font-size: 14px;
    }

    .btn-lg {
        width: 100%;
    }

    /* BADGE */
    .badge {
        font-size: 11px;
        padding: 4px 6px;
    }

    /* NAVBAR */
    .navbar-collapse {
        background: rgba(10, 50, 30, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        padding: 24px;

        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);

        margin-top: 15px;

        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .nav-link-fancy {
        padding: 12px 18px !important;
        font-size: 16px;
        border-radius: 12px;
        transition: background 0.3s ease;
    }

    .nav-link-fancy:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-link-fancy::after {
        display: none;
    }

    .btn-cta-navbar {
        width: 100%;
        text-align: center;
        padding: 14px !important;
        font-size: 15px !important;
    }

    /* HERO */
    .hero-section {
        min-height: auto;

        padding:
            130px 20px 90px;

        text-align: center;
    }

    .hero-content {
        max-width: 420px;
        margin: auto;
    }

    .hero-badge {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 56px;

        line-height: 1.05;

        margin:
            20px 0 24px;
    }

    .hero-description {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-info {
        justify-content: center;
        gap: 24px;
    }

    /* PACKAGE */
    #package .card-body {
        padding: 28px !important;
    }

    #package h3 {
        font-size: 30px !important;
    }

    /* INFO */
    #info .bg-white {
        padding: 30px 24px !important;
    }

    /* RACEPACK */
    .racepack-image div {
        height: 180px !important;
    }

    /* FOOTER */
    footer {
        text-align: center;
    }
}