:root {
    --primary-color: #00AEEF;
    --primary-light-color: rgba(224, 242, 255, 1);
    --primary-light-color-2: rgba(184, 226, 255, 1);
}

html, body {
    font-family: 'Roboto', sans-serif;
    height: 100%;
}

#loading {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 19999;
    flex-direction: column;
    gap: 20px;
}

.loader {
    width: 60px;
    aspect-ratio: 1;
    background:
      linear-gradient(90deg,#CEE879 50%,#FF5254 0) top/100% 50% no-repeat,
      linear-gradient(90deg,#FCB653 50%,#5CACC4 0);
    -webkit-mask:linear-gradient(#000 0 0) 0 0/50% 50% no-repeat;
    animation: l18 2s infinite; 
}
@keyframes l18 {
    0%   {-webkit-mask-position:0    0   }
    25%  {-webkit-mask-position:100% 0   }
    50%  {-webkit-mask-position:100% 100%}
    75%  {-webkit-mask-position:0    100%}
    100% {-webkit-mask-position:0    0   }
}


.koulen {
    font-family: "Koulen", sans-serif;
}
.roboto {
    font-family: "Roboto", sans-serif;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color)!important;
}

.lh-8 {
    line-height: .8;
}

.form-control {
    border: 1px solid #000!important;
}

.relative-visible {
    position: relative;
    z-index: 100;
}

section {
    position: relative;
    min-height: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.main-lead-text-size {
    font-size: 150px;
}

.sticky-part {
    position: fixed; 
    top: 0;
    right: 60px;
    z-index: 10000;
    text-align: right;
}

.modal {
    z-index: 10001;
}

.menu-toggler {
    background: transparent;
    border:none;
}
.menu-toggle {
    padding-top: 1.5rem;
}

.menu-toggle a {
    display: block;
    text-decoration: none;
    font-size: 20px;
    color: #333;
    padding: .5rem 0;
}

#generic {
    width: 100%;
    min-height: 100vh;
    background: var(--primary-color)!important;
}

#generic::before, #generic::after {
    content: "";
    display: block;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    opacity: .5;
    z-index: 2;
    background-blend-mode: multiply;
}

#generic::after {
    background: url('img/Vector.png') no-repeat center center;
    background-size: cover;
}

#generic > * {
    position: relative; 
    z-index: 100;
}

/* SECTION 1: HERO */
#hero {
    position: relative;
    height: 100vh;
    background: url('img/hero.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 167, 255, .5); 
    background-blend-mode: multiply;
    z-index: 1;
}

#hero .container-fluid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Menyesuaikan posisi row utama */
.main-content-row {
    flex-grow: 1; /* Agar mengambil sisa ruang di tengah */
    align-items: center; /* Memastikan konten di tengah vertikal */
}

/* Container untuk hero text agar bisa diatur posisinya relatif */
.hero-text-container {
    position: relative;
    display: flex; /* Untuk flexbox di dalam kolom */
    flex-direction: column;
    justify-content: center; /* Untuk memusatkan teks secara vertikal */
    height: 100%; /* Agar span di dalamnya bisa mengambil tinggi penuh */
}

#hero h1 {
    font-weight: 900;
    line-height: .8;
}

.run-for-wrapper {
    position: relative; /* Penting untuk penempatan vektor */
    display: inline-block; /* Agar bisa menampung child absolute */
    color: white; /* Default fallback */
}

.run-for-text {
    color: black; /* Warna hitam untuk RUN FOR */
    position: relative; /* Menempatkan teks di atas vektor */
    z-index: 2;
}

.run-for-bg-vector {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('img/Vector.png') no-repeat center center; /* Ganti dengan URL vektor Anda */
    background-size: cover; /* Agar vektor pas di dalam area */
    opacity: 1; /* Sesuaikan opasitas jika perlu */
    z-index: -1;
}

/* --- SECTION 2: THEME PERBAIKAN --- */
#theme {
    min-height: 100vh;
    background-color: #1a1a3a;
    overflow: hidden;
    
    /* PENTING: Menggunakan Flexbox untuk memposisikan heart */
    display: flex; 
    align-items: center; /* Pusatkan heart secara vertikal */
    justify-content: flex-end; /* Dorong heart ke sisi KANAN (pentok) */
}

/* Gaya untuk gambar heart (LYE-heart.png) */
.gradient-heart {
    /* PENTING: Mengatur tinggi 90% dari Viewport Height */
    height: 95vh; 
    width: auto; /* Jaga rasio aspek */
    object-fit: contain;

    /* Opsional: Margin negatif agar gambar terlihat benar-benar menempel/keluar batas kanan */
    /* margin-right: -5vw;  */
}


.bottom-logos {
    position: absolute;
    bottom: 2rem;
    left: 9.75rem;
    display: flex;
    align-items: center;
    gap: 2.688rem;
    z-index: 10; /* Pastikan logo terlihat di atas heart */
}

.bottom-logo-item {
    max-height: 250px;
}

.racepack-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 400px;
    background: #fff;
    position: relative;
    margin-bottom: 2.5rem;
}

.racepack-item::before {
    content: "";
    display: block;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(184, 226, 255, 1);
    transform: rotate(4deg);
    z-index: 0;
}
.racepack-item img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}
.racepack-item .text-container {
    position: absolute; 
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    text-align: center;
    font-family: 'Koulen', sans-serif;
    font-size: 22px;
    padding: .5rem;
}

.prize-money {
    width: 100%;
    height: 80vh;
    position: relative;
    background: url('img/splash-brush.png') no-repeat center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -20vh;
}

.prize-block {
    position: relative;
    background: var(--primary-light-color);
    padding: 2.5rem;
    z-index: 2;
    margin-bottom: 3rem;
}
.prize-block::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: rotate(3deg);
    z-index: 1;
}
.prize-block.light::before {
    background: var(--primary-light-color-2);
}
.prize-block * {
    position: relative;
    z-index: 2;
}
.prize-block table {
    text-align: center;
}

#doorprize {
    background-color: var(--primary-color);
    position: relative;
    min-height: 100vh;
}

#doorprize::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('img/clip.png') no-repeat center;
    background-size: cover;
    z-index: 1;
}

#doorprize * {
    position: relative;
    z-index: 10;
}

.custom-card {
    background: #fff;
    padding: 1.5rem;
    position: relative;
}
.custom-card::before {
    content: "";
    background: var(--primary-light-color);
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(2.5deg);
    z-index: 1;
}
.custom-card * {
    z-index: 2;
    position: relative;
}

.generic-splash {
    position: relative;
}
.generic-splash::before {
    content: "";
    display: block;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/splatter.png') no-repeat center;
    background-size: cover;
    z-index: 1;
}
.generic-splash > * {
    position: relative;
    z-index: 10;
}

.table-sizechart {
    font-size: 20px;
}
.table-sizechart th {
    color: var(--primary-color);
    font-size: 30px;
    font-family: 'Koulen', sans-serif;
    text-align: center;
}
.table-sizechart td {
    padding: 1rem;
    text-align: center;
}
.table-sizechart.table-lead td {
    font-size: 45px;
    font-family: 'Koulen', sans-serif;
}

.sponsor-container {
    position: relative; 
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .5rem;
}
.sponsor-container img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(217, 217, 217, 1);
    object-fit: contain;
}

#faq {
    height: 100%;
}

.btn-contact-us {
    position: relative; 
    z-index: 100;
    translate: translate(0px, 30px);
}

.table-event-lg img {
    height: 100%;
    object-fit: cover;
}

.social-links a {
    text-decoration: none;
    display: inline-block;
    margin: .5rem;
}

.card-registration input, .card-registration select, .card-registration textarea {
    background: transparent;
    border: 1px solid #fff;
}

.card-registration input:not(:placeholder-shown):not([type="date"]),
.card-registration textarea:not(:placeholder-shown),
.card-registration input[type="date"]:valid,
.card-registration select:valid {
  background: #fff;
}

.custom-radio {
    position: relative;
    display: block;
}

.custom-radio label {
    display: inline-block;
    margin-right: .5rem;
}

.custom-radio input {
    display: none;
}

.custom-radio span {
    display: inline-block;
    padding: .3rem .6rem;
    border: 1px solid #000;
    cursor: pointer;
}
.custom-radio input:checked + span {
    background: #000;
    color: #fff;
}


/* --- SECTION 3: ABOUT (#RUN FOR SIGHT) --- */
#about {
    background-color: white; 
    color: black;
    
    /* MODIFIKASI UTAMA: Tinggi 1024px dan Flexbox untuk pemusatan */
    height: 1024px; 
    display: flex;
    align-items: center; /* Memusatkan konten secara vertikal */
    justify-content: center; /* Memusatkan konten secara horizontal (opsional) */
}

/* Container di dalam #about perlu mengambil tinggi penuh agar row di dalamnya bisa dipusatkan */
#about .container {
    height: 100%;
    /* Pastikan row di dalamnya juga mengambil tinggi penuh container */
}

#about .row {
    height: 100%;
}

.about-head-title {
    margin-right: 3rem;
}

.about-title {
    font-size: 6rem;
    line-height: 0.9;
    position: relative;
    z-index: 2; 
}

.hashtag {
    font-size: 0.7em; 
    vertical-align: top;
    color: black;
    margin-right: -0.05em; 
}

.run-for-text-about {
    color: black;
    font-size: 1em;
    display: inline-block;
}

.sight-text-about {
    color: #00AEEF; 
    font-size: 1.1em; 
    display: inline-block;
}

/* Background Splatter */
.splatter-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('img/splatter.png') no-repeat center center; 
    background-size: contain;
    opacity: 0.8; 
    z-index: 1;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 400px;
}

#racepack {
    background: var(--primary-color);
}


/* --- SECTION 4: RACE PACK --- */
#racepack {
    /* Warna biru cerah dari gambar */
    background-color: var(--primary-color);
    position: relative;
    min-height: 100vh; 
    overflow: hidden;
}

/* Background Splatter di Section 4 (opsional, jika Anda punya asetnya) */
#racepack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ganti 'img/splatter-blue.png' dengan aset splatter yang cocok */
    background: url('img/splatter-blue.png') no-repeat center center; 
    background-size: cover; 
    opacity: 0.1; 
    z-index: 1;
}

#countdown > *, #countdown .number-part, #countdown .separator {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

#countdown .number-label, #countdown .duration-desc {
    display: block;
    text-align: center;
    line-height: .9;
}

#countdown .duration-desc {
    font-size: 20px;
}

.soft-bg {
    background: rgba(0,0,0,.05);
    padding: 0 25px;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .sticky-part {
        right: 30px;
    }

    #hero h1 {
        font-size: 110px;
    }

    #hero .top-logo img {
        max-width: 120px!important;
    }

    .soft-bg {
        padding: 10px 20px;
        margin-top: 10px;
    }
    #countdown {
        font-size: 2rem;
        margin-top: 0!important;
        margin-bottom: 0!important;
    }
    #countdown .duration-desc {
        font-size: 1rem;
    }

    .partner-logos {
        gap: 1rem;
    }
    .partner-logo {
        max-height: 30px;
    }
    
    /* PENYESUAIAN MOBILE UNTUK HEART */
    .gradient-heart {
        height: 60vh; /* Perkecil sedikit di mobile */
        right: -35%;
        position: relative;
    }
    
    #theme {
        flex-direction: column;
    }
     
    .bottom-logos {
        width: 100%;
        position: relative;
        justify-content: center;
        bottom: 0;
        left: 0;
    }
    .bottom-logo-item {
        max-width: 90%;
    }

    #about {
        height: auto; 
        min-height: 100vh;
        padding: 50px 0; /* Tambahkan padding agar tidak terlalu mepet */
    }

    .about-head-title {
        font-size: 110px!important;
        width: 100%;
        text-align: right!important;
        margin-right: 1rem;
    }
    
    .about-title {
        font-size: 3rem; 
    }
    .sight-text-about {
        font-size: 1.2em; 
    }

    .about-description {
        max-width: 100%;
        padding: 0 15px;
    }

    .main-lead-text-size {
        font-size: 40px;
    }
    .main-lead-text-size.lg {
        font-size: 110px;
        line-height: .8;
    }

    .racepack-item {
        margin: 2.5rem auto;
        width: 80%;
    }

    .table-prize td {
        padding-bottom: .6rem;
    }

    .table-sizechart td {
        padding: .25rem;
    }
    .table-sizechart.table-lead th {
        font-size: 18px;
    }
    .table-sizechart.table-lead td {
        font-size: 20px;
    }
    .table-prize .display-4 {
        font-size: 16px;
    }
}
