@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset and Base Styles */
*,
*:after,
*:before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:active,
:hover,
:focus {
    outline: 0 !important;
    outline-offset: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 100%;
    font-weight: 400;
    background-color: #0a1122;
    color: #f8fafc;
    position: relative;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    color: #FFD700; /* Gold accent */
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 3rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    color: #94a3b8; /* Muted text */
    line-height: 1.75rem;
    letter-spacing: 0.5px;
}

/* Layout Components */
.wrapper {
    padding: 8.25rem 0;
}

.text-content {
    width: 70%;
    margin: 0 auto;
}

/* Buttons */
.main-btn, .white-btn {
    display: inline-block;
    padding: 0.625rem 1.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-btn {
    background-color: #FFD700;
    color: #000;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-btn:hover {
    background-color: transparent;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.white-btn {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.white-btn:hover {
    background-color: #FFD700;
    color: #000;
}

/* Loading Screen Styles */
#loading-screen {
    transition: opacity 0.5s ease;
    z-index: 9999;
}

.loading-content {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

.reward-card {
    background: linear-gradient(145deg, #1a2a4a, #0e1a30);
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    overflow: hidden;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.gold-tier {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.card-header {
    background: rgba(30, 40, 60, 0.8);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-gold);
}

.reward-img {
    max-height: 150px;
    margin: 0 auto;
    display: block;
}

.reward-desc {
    font-style: italic;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.reward-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-to-get {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.reward-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.reward-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reward-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Navigation */
.navigation-wrap {
    position: fixed;
    width: 100%;
    left: 0;
    z-index: 1000;
    background-color: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-out;
}

.nav-item {
    padding: 0 0.625rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: #FFD700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFD700;
}

.scroll-on {
    background: #1E3A8A !important;
    box-shadow: 0 0.125rem 1.75rem 0 rgba(0, 0, 0, 0.2);
}

/* Sections */
.top-banner {
    width: 100%;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    background-size: cover;
    padding: 16.875rem 0 9.375rem;
}

/* Counter Styles */
#counter [id^="count"] {
    display: inline-block;
    min-width: 60px; /* Prevent layout shift */
  }
  
  .counter-suffix {
    margin-left: 2px;
  }
  
  /* Loading Screen Fixes */
  #loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    transition: opacity 0.5s ease;
  }

  :root {
    --primary-darkblue: #0a1122;
    --primary-blue: #1E3A8A;
    --accent-gold: #FFD700;
    --accent-lightblue: #7DD3FC;
    --pure-black: #000;
    --secondry-font: 'Quicksand', sans-serif;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-darkblue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 300px;
    padding: 2rem;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 0.5rem solid rgba(255, 215, 0, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rest of your CSS remains the same */
  
  /* Ensure clickable elements */
  button, a, [onclick] {
    cursor: pointer;
    position: relative;
    z-index: 10;
  }

.counter-section {
    background-color: #1E3A8A;
    padding: 2.5rem 0;
}

.counter-section p {
    color: #fff;
    text-transform: uppercase;
}

/* Cards */
.card {
    background-color: #1e293b;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #f8fafc;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.reward-card {
    border: 2px solid #FFD700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Footer */
.footer-section {
    background-color: #0a1122;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #7DD3FC;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700 !important;
    padding-left: 5px;
}

.social-icon {
    color: #fff;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: #FFD700 !important;
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: #FFD700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0.625rem;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #3B82F6;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(30, 58, 138, 0.95);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .nav-link {
        padding: 0.75rem 1.25rem !important;
    }
    
    .nav-link.active::after {
        display: none;
    }
}

body.debug * {
    pointer-events: auto !important;
    z-index: auto !important;
    opacity: 1 !important;
    position: static !important;
}

#loading-screen {
    display: none !important;
}

/* Tambahkan di CSS */
#counter [id^="count"] {
    display: inline-block !important;
    opacity: 1 !important;
}