/* French Coin CSS Styles */

/* Custom Properties default dark mode */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #FFD23F;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #b0b3b8;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-secondary: linear-gradient(135deg, #F7931E 0%, #FFD23F 100%);
    --gradient-new: linear-gradient(135deg, #0f1927 0%, #202243 50%, #2c5364 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-light: 0 4px 15px rgba(247, 147, 30, 0.3);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.3);

        /* Warna utama yang akan diubah */
    --bg-main: #16213e; /* darker-bg */
    --bg-secondary: #1a1a2e; /* dark-bg */
    --bg-contrast: rgba(255, 255, 255, 0.05);
    --bg-social: linear-gradient(135deg, #171935 0%, #180e38 100%);
    --text-main: #ffffff;
    --text-secondary: #b0b3b8;
    --border-color: var(--border-color);
    --navbar-bg: rgba(22, 33, 62, 0.85);

    --slides-to-show: 3;

}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Jua", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    line-height: 2;
    color: var(--text-main);
    background: var(--bg-main);
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Light Mode Palette */
body.light-mode {
    --bg-main: #f9f9f9;
    --bg-secondary: #f8f9fa;
    --bg-contrast: rgba(0, 0, 0, 0.05);
    --bg-social: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --text-main: #212529;
    --text-secondary: #6c757d;
    --border-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --gradient-new: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Loading Screen */
#loader {
    background: var(--gradient-new) !important;
    z-index: 2000;
}

#loader .spinner-border {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* Aturan Global untuk Teks Umum */
p, li, span, .small {
    color: var(--text-secondary);
}

/* Aturan untuk Judul & Teks Penting */
h1, h2, h3, h4, h5, h6, .hero-title, .brand-text, .tokenomics-value {
    color: var(--text-main);
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4);
    background: var(--gradient-secondary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--border-color);
    border-color: white;
    color: white;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;

}

.theme-toggle:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: #000;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(3px);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Gaya Navbar SETELAH di-scroll */
        .navbar.scrolled {
            background-color: var(--navbar-bg); /* Warna --darker-bg dengan transparansi */
            backdrop-filter: blur(10px);
            padding: 0.5rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

@media(max-width: 992px){
  .navbar {
    backdrop-filter: blur(0);
    position:absolute;
  }
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-main) !important;
    text-decoration: none;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1.3rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-main) !important;
}


.navbar-toggler i {
    color: var(--text-main);
    transition: color 0.3s ease; /* Tambahkan transisi agar lebih mulus */
}

.custom-offcanvas {
    height: auto !important;
    top: 20px; /* Ganti posisi dari atas */
    right: 20px;
    transform: translateX(100%); /* Hanya translate X */
    transition: transform 0.3s ease-in-out;
    max-height: calc(72vh - 20px); /* Beri jarak dari atas/bawah */
    overflow-y: auto; /* Scroll jika konten panjang */
    border-radius: 20px;
}

  

/* Offcanvas */
.offcanvas {
    background: var(--bg-main);
    border: none;
}


.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
}

.btn-close {
    color: var(--text-main);
}
/* Hero Section */
        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            position: relative;
            overflow: hidden; /* Penting untuk menjaga video di dalam batas */
            display: flex; /* Menggunakan flexbox untuk menengahkan konten */
            align-items: center;
            justify-content: center;
            background-color: var(--bg-main); /* Fallback jika video tidak dimuat */
        }

        /* Elemen Video Latar Belakang */
        #hero-background-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);

            z-index: 1; /* Di belakang konten */
            
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
        }



        /* Konten di atas video */
        .hero-content {
            z-index: 2; /* Di atas video */
            padding-top: 20px;
            color: var(--text-main);
            text-align: center; /* Pusatkan teks sebagai default */
        }

        @media (max-width: 768px) {
            #hero-background-video {
                position: static;
                top: 0;
                left: 0;
                transform: none;
                align-items: start;
                /* justify-content: start; */
                min-width: auto;
                min-height: auto;
                width: 100%;
                height: auto;
                /* margin: -150px 0 0 0;  */
            }
            
            .hero-section {
                position: static;
                min-height: 0;
                align-items: start;
            }

        }

        @media (min-width: 769px) {
            .hero-content {
                display: none;
            }
        }

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.how-to-buy-buttons {
    margin-top: 2rem;
}

/* Sections */
section {
    padding: 80px 0;
}

/* ======================================================= */
/* == GAYA FINAL SECTION ABOUT == */
/* ======================================================= */

/* --- Tampilan untuk DESKTOP (Layar 992px ke atas) --- */
/* CSS ini hanya akan aktif di layar besar */
@media (min-width: 992px) {
    #about {
        position: relative;
        background-image: url('../assets/bg/about.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
    }

    /* Lapisan overlay gelap di atas gambar latar */
    #about::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(12, 21, 43, 0.2);
        z-index: -1;
    }

    /* Mengatur semua teks di dalam #about menjadi putih di desktop */
    #about .section-title,
    #about .section-subtitle,
    #about p {
        color: #ffffff;
    }
}

/* --- Tampilan untuk MOBILE & TABLET (Layar di bawah 992px) --- */
/* Di layar kecil, kita pastikan tidak ada background dan warna teks mengikuti tema */
@media (max-width: 991.98px) {
    #about {
        background-image: none; /* Hapus gambar latar */
    }
    
    #about::before {
        display: none; /* Hapus overlay */
    }

    /* Kembalikan warna teks agar mengikuti tema (terang/gelap) */
    #about .section-title {
        color: var(--text-main);
    }
    #about .section-subtitle,
    #about p {
        color: var(--text-secondary);
    }
    .about-section {
        padding-top: 20px;
    }
}

.about-section {
    background: var(--bg-main);
}

.tokenomics {
    background-position: 50%, 0 0;
    background-size: auto, auto;
}

.tokenomics-section {
    background: var(--bg-secondary);
}

.roadmap-section {
    background: var(--bg-main);
}

.how-to-buy-section {
    background: var(--bg-secondary);
}

.community-section {
    background: var(--bg-main);
}

/* Social Bar */
.social-bar {
    /* background: rgba(255, 107, 53, 0.1); */
    background: var(--bg-social);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links-horizontal {
    display: flex;
    gap: 20px;
}

.social-link-bar {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.social-link-bar:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: rgba(255, 107, 53, 0.2);
}


/* Social Links */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-contrast);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-5px);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.social-link i {
    font-size: 2rem;
    margin-right: 1rem;
}

/* Placeholders */
.image-placeholder,
.chart-placeholder {
    background: var(--border-color);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 2rem 0;
}

.circle-image {
    border-radius: 50%;
    object-fit: cover; /* Memastikan gambar tidak terdistorsi */
}

/* Footer */
.footer {
    background: var(--bg-main);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-links h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-contract {
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-bar-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-contract {
        text-align: left;
        margin-top: 2rem;
    }
    
    .contract-info-footer {
        justify-content: flex-start;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}



/* Loader full-screen wrapper */
#loader {
  background-color: #ffffff; 
  transition: opacity 0.5s ease;
  overflow:hidden; 
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

#loader::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Saat sudah selesai loading, kita sembunyikan */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}


/* SLIDER CARTOON*/

        /* Gaya untuk keseluruhan section */
        #cartoon-section {
            background: linear-gradient(135deg, #727272 0%, #030011 80%);
            padding: 80px 0;
            overflow: hidden; /* Mencegah overflow horizontal */
        }

        #cartoon-section .section-title {
            color: #fff;
            font-family: 'Fredoka One', cursive; /* Menggunakan font yang sama jika ada */
            font-size: 3rem;
            margin-bottom: 40px;
        }

        /* Wadah utama untuk slider */
        .slider-container {
            position: relative;
            width: 100%;
            max-width: 1200px; /* Batas lebar slider */
            margin: auto;
            padding: 0 50px;
            box-sizing: border-box;
        }

        /* Jendela yang terlihat dari slider */
        .slider-window {
            width: 100%;
            overflow: hidden;
            padding-inline: calc((100% - var(--slides-to-show) * 1fr) / 2);
            margin: 50px 0; 
            padding: 0;
          scroll-behavior: smooth; /* scroll smooth */
        /* Opsional: scroll snap agar selalu centering lebih rapi */
        scroll-snap-type: x mandatory;
        }

        /* Trek yang menampung semua gambar dan akan digeser */
        .slider-track {
            display: flex;
            align-items: center; /* Membuat slide sejajar di tengah secara vertikal */
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Animasi geser yang halus */
            width: fit-content;
        }

        /* Setiap item/gambar dalam slider */
        .slide-item {
          flex: 0 0 calc(100% / var(--slides-to-show));
            padding: 8px;
            box-sizing: border-box;
            transform: scale(0.8); /* Gambar samping dibuat lebih kecil */
            transition: transform 0.5s ease, opacity 0.5s ease;
            opacity: 0.6;
            cursor: pointer;
            scroll-snap-align: center;
        }

        .slide-item img {
            width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.4);
            display: block;
        }

        .slide-item.landscape img {
            width: auto;
            max-height: 500px;
        }

        /* Gaya khusus untuk slide yang aktif/di tengah */
        .slide-item.active-slide {
            transform: scale(1); /* Ukuran normal (terlihat lebih besar dari yang lain) */
            opacity: 1;
        }

        /* Ketika gambar landscape, item mengambil penuh slider-window */
        .slide-item.landscape {
        flex: 0 0 100%;
        transform: scale(0.5);
        transition: transform 0.5s ease, opacity 0.5s ease;
        opacity: 0.6;
        cursor: pointer;
        scroll-snap-align: center;
        justify-content: center;
        display: flex; /* Untuk memastikan gambar landscape tetap di tengah */
        align-items: center; /* Pusatkan gambar secara vertikal */
        }

        .slide-item.landscape.active-slide {
            transform: scale(1); /* Ukuran normal (terlihat lebih besar dari yang lain) */
            opacity: 1;
            max-height: 500px;
        }

        #its-me-section {
        --slides-to-show: 1;
        background: linear-gradient(45deg, #727272 0%, #030011 80%);
        padding: 80px 0;
        }
        /* Tombol Navigasi */
        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%) translateX(50%);
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            transition: background-color 0.3s;
        }
        .slider-btn:hover {
            background-color: rgba(255, 255, 255, 0.4);
        }

        .slider-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
        }


        .prev-btn { left: 0; }
        .next-btn { right: 0; }

        /* Modal/Lightbox untuk detail gambar */
        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .image-modal.visible {
            opacity: 1;
            pointer-events: auto;
        }
        .image-modal img {
            max-width: 90%;
            max-height: 80%;
            border-radius: 10px;
        }
        .modal-close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        /* Penyesuaian untuk mobile */
        @media (max-width: 768px) {
            .slider-container {
                padding: 20px;
                margin: 0; 
            }
            .slider-window {
            margin: 0; /* ruang tombol, bukan padding */
            }
            .slide-item {
                flex: 0 0 100%; /* Di mobile, tampilkan satu gambar dominan */
                align-items: center; /* Pusatkan gambar */
            }
            .slide-item.landscape {
                flex: 0 0 100%; /* Di mobile, tampilkan satu gambar dominan */
                align-items: center; /* Pusatkan gambar */
            }
        .slide-item.landscape img {
            width: 100%;
            height: 100%; 
        
        }
            .section-title {
                font-size: 2.5rem;
            }
        }