/* ========================================
   Hongbai Landing Page — Modern & Elegant
   ======================================== */

/* ---- CSS Variables (Premium Dark Mode Default) ---- */
:root {
    --primary: #b20606;
    --primary-dark: #8a0505;
    --secondary: #ffffff;
    --bg-body: #000000;
    --bg-surface: #0a0a0a;
    --bg-elevated: #121212;
    --dark: #1d3557;
    --darker: #0a192f;
    --light: #121212;
    --gray: #a0a0a0;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-sc: 'Noto Sans SC', sans-serif;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Background Animated Hanzi ---- */
.bg-hanzi-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background-color: #000000;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(178, 6, 6, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% -10%, rgba(178, 6, 6, 0.2) 0%, transparent 50%);
}

.bg-hanzi-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b20606, transparent);
    box-shadow: 0 0 20px #b20606;
    opacity: 0.5;
    z-index: 1;
}

.bg-hanzi {
    position: absolute;
    font-family: 'Ma Shan Zheng', cursive;
    font-weight: 400;
    user-select: none;
    filter: blur(1px);
    transition: opacity 0.3s ease;
}

.bg-hanzi.red {
    color: #b20606;
    opacity: 0.12;
    text-shadow: 0 0 20px rgba(178, 6, 6, 0.3);
}

.bg-hanzi.white {
    color: #ffffff;
    opacity: 0.08;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Posisi dan Variasi Arah Animasi */
.h1 {
    font-size: 15rem;
    top: 10%;
    left: 5%;
    animation: float-up 18s linear infinite;
}

.h2 {
    font-size: 12rem;
    top: 60%;
    right: 5%;
    animation: float-down 22s linear infinite -2s;
}

.h3 {
    font-size: 8rem;
    top: 40%;
    left: 15%;
    animation: float-left 15s linear infinite -4s;
}

.h4 {
    font-size: 18rem;
    bottom: 10%;
    left: 30%;
    animation: float-right 25s linear infinite -1s;
}

.h5 {
    font-size: 10rem;
    top: 5%;
    right: 20%;
    animation: float-up 16s linear infinite -6s;
}

.h6 {
    font-size: 14rem;
    bottom: 20%;
    right: 10%;
    animation: float-down 20s linear infinite -3s;
}

.h7 {
    font-size: 9rem;
    top: 75%;
    left: 10%;
    animation: float-left 14s linear infinite -5s;
}

.h8 {
    font-size: 13rem;
    top: 20%;
    right: 35%;
    animation: float-right 19s linear infinite -2s;
}

.h9 {
    font-size: 11rem;
    bottom: 45%;
    left: 45%;
    animation: float-up 17s linear infinite -8s;
}

.h10 {
    font-size: 16rem;
    top: 35%;
    right: 45%;
    animation: float-down 21s linear infinite -4s;
}

.h11 {
    font-size: 7rem;
    top: 15%;
    left: 55%;
    animation: float-left 13s linear infinite -1s;
}

.h12 {
    font-size: 12rem;
    bottom: 10%;
    right: 55%;
    animation: float-right 16s linear infinite -7s;
}

.h13 {
    font-size: 14rem;
    top: 85%;
    right: 25%;
    animation: float-up 19s linear infinite -3s;
}

.h14 {
    font-size: 10rem;
    bottom: 65%;
    left: 25%;
    animation: float-down 15s linear infinite -6s;
}

.h15 {
    font-size: 18rem;
    top: 30%;
    left: 65%;
    animation: float-left 24s linear infinite -9s;
}

.h16 {
    font-size: 9rem;
    bottom: 30%;
    left: 20%;
    animation: float-right 18s linear infinite -2s;
}

@keyframes float-up {
    0% {
        transform: translateY(100px) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-400px) rotate(20deg);
        opacity: 0;
    }
}

@keyframes float-down {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(400px) rotate(-20deg);
        opacity: 0;
    }
}

@keyframes float-left {
    0% {
        transform: translateX(100px) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateX(-400px) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes float-right {
    0% {
        transform: translateX(-100px) rotate(0deg);
        opacity: 0;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        transform: translateX(400px) rotate(15deg);
        opacity: 0;
    }
}

/* Membuat section transparan agar glossy background terlihat */
section {
    background: transparent !important;
}

.testimonials,
.services,
.programs,
.class-types {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Web3 Wallet Dropdown */
.wallet-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.wallet-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    min-width: 200px;
    z-index: 1001;
    padding: 8px;
    backdrop-filter: blur(15px);
}

.wallet-wrapper:hover .wallet-dropdown,
.wallet-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.wallet-dropdown-item:hover {
    background: rgba(178, 6, 6, 0.15);
    color: var(--primary);
}

.wallet-dropdown-item img {
    width: 20px;
    height: 20px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-utama {
    display: none;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar to match examine interface */
html, body {
    scrollbar-width: thin;
    scrollbar-color: #b20606 #0a0a0a;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #b20606;
    border-radius: 10px;
    border: 2px solid #0a0a0a;
}

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
    transition: background 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-muted);
    max-width: 65ch;
}

.gradient-text {
    background: linear-gradient(135deg, #b20606 0%, #ff4d5a 100%);
    /* Gradien merah branding */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #b20606;
    /* Merah Branding */
    color: white;
    box-shadow: 0 4px 16px rgba(178, 6, 6, 0.3);
}

.btn-primary:hover {
    background: #8a0505;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 6, 6, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: #b20606;
    color: #b20606;
}

.btn-outline:hover {
    background: #b20606;
    color: white;
}

.btn-lg {
    padding: 14px 26px;
    font-size: 1.05rem;
}

.btn-hero-cta {
    padding: 20px 60px;
    font-size: 1.4rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(178, 6, 6, 0.5);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-actions .wallet-action {
        display: none !important;
    }

    .btn-hero-cta {
        padding: 14px 35px !important;
        font-size: 1.1rem !important;
    }
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
}

/* ---- Navbar ---- */
.mobile-actions-row {
    display: none;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 10, 0.85);
    /* Senada dengan footer (#0a0a0a) dengan transparansi */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000000 !important;
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    flex: 0 0 auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin-left: 60px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.logo-img {
    height: 55px;
    width: auto;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.15);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    list-style: none;
    padding: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: var(--transition);
    color: #ffffff;
}

.dropdown-menu li a:hover {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    color: #b20606;
    /* Merah branding */
}

.icon-btn:hover {
    background: rgba(178, 6, 6, 0.1);
    transform: scale(1.1);
}

:root.dark .icon-btn {
    color: #ff4d5a;
}

/* Warna merah yang lebih menyala di dark mode */
:root.dark .icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile {
    position: relative;
}

.profile-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.profile-avatar:hover {
    border-color: var(--primary);
}

:root.dark .profile-avatar {
    border-color: var(--border);
}

:root.dark .profile-avatar:hover {
    border-color: var(--primary);
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

:root.dark .profile-dropdown {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

/* Profile Dropdown Logic */
@media (min-width: 769px) {
    .profile:hover .profile-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.profile.active .profile-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .profile-dropdown {
        display: none !important;
        background: rgba(20, 20, 20, 0.98) !important;
        padding: 10px 0 !important;
        margin: 15px auto 0 auto !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        opacity: 0;
        visibility: hidden;
        width: 100% !important; /* Full width row */
        border-radius: 12px !important;
        position: relative !important;
        order: 10 !important; /* Force to bottom */
    }
    .profile-dropdown.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .profile-dropdown a {
        font-size: 1rem !important;
        padding: 12px 10px !important;
        background: transparent !important;
        color: rgba(255,255,255,0.9) !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .profile-dropdown a:last-child {
        border-bottom: none;
    }
    /* Keep icons at top and allow wrapping for dropdown */
    .mobile-actions-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important; 
        justify-content: space-around !important;
        padding: 20px 10px !important;
    }

    .mobile-actions-row #wallet-menu-simple {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        order: 9 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 15px auto 0 auto !important;
        display: none !important;
        border-radius: 12px !important;
    }

    .mobile-actions-row #wallet-menu-simple.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-action-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .profile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
}

.profile-dropdown a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: var(--transition);
}

.profile-dropdown a:hover {
    background: rgba(178, 6, 6, 0.2);
    color: #f1c40f;
}

.profile-dropdown .logout {
    color: var(--primary);
}

:root.dark .profile-dropdown a {
    color: var(--text-main);
}

:root.dark .profile-dropdown a:hover {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

:root.dark .hamburger span {
    background: var(--text-main);
}

/* ---- Hero ---- */
.hero {
    margin-top: 0;
    min-height: 100vh;
    /* Memenuhi tinggi layar penuh */
    display: flex;
    align-items: center;
    /* Menengahkan konten secara vertikal */
    padding: 80px 0;
    /* Memberikan ruang napas di atas dan bawah */
    background: transparent;
    /* Sepenuhnya transparan */
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero::before {
    display: none;
    /* Hapus dekorasi lama */
}

:root.dark .hero {
    background: transparent;
}

:root.dark .hero::before {
    display: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    /* Jarak dikurangi agar lebih rapat */
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
    /* Margin kanan dihapus agar lebih dekat ke teks */
}

.hero-logo-img {
    max-width: 380px;
    /* Ukuran diperbesar agar lebih menonjol */
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 3s ease-in-out infinite;
    /* Dipercepat ke 3s */
    border-radius: 24px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-35px);
    }

    /* Pergerakan diperjauh ke 35px */
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 100%;
}

.hero-tagline {
    margin-bottom: 24px;
    /* Dikurangi */
    padding: 12px 20px;
    /* Diperkecil */
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
    /* Garis diperhalus */
    border-radius: 0 8px 8px 0;
    max-width: fit-content;
    backdrop-filter: blur(10px);
}

.hero-tagline h3 {
    font-size: 1.1rem;
    /* Diperkecil dari 1.4rem */
    color: white;
    margin-bottom: 2px;
    font-weight: 700;
}

.hero-tagline p {
    font-size: 0.85rem !important;
    /* Diperkecil dari 1rem */
    margin-bottom: 0 !important;
    color: #bdc3c7 !important;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

/* ---- Section Header (General) ---- */
.section-header {
    text-align: center;
    margin: 0 auto 48px auto;
    max-width: 680px;
    padding: 0 16px;
}

.section-header .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
}

:root.dark .section-header .badge {
    background: rgba(230, 57, 70, 0.15);
}

.section-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--gray);
}

:root.dark .section-header p {
    color: var(--text-muted);
}

/* ---- Programs Section ---- */
.programs {
    background: white;
    padding: 0 0 40px 0;
}

:root.dark .programs {
    background: var(--bg-surface);
}

.programs-header {
    text-align: center;
    margin: 0 auto 36px auto;
    max-width: 680px;
    padding: 0 16px;
}

.programs-header .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
}

:root.dark .programs-header .badge {
    background: rgba(230, 57, 70, 0.15);
}

.programs-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    letter-spacing: -0.02em;
}

.programs-header p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    color: var(--gray);
}

:root.dark .programs-header p {
    color: var(--text-muted);
}

.programs-hero {
    text-align: center;
    margin: 0 auto 28px auto;
    max-width: 640px;
    padding: 0 16px;
}

.programs-hero h3 {
    margin: 0 0 8px 0;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    color: var(--dark);
}

:root.dark .programs-hero h3 {
    color: var(--text-main);
}

.programs-hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--gray);
}

:root.dark .programs-hero p {
    color: var(--text-muted);
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.program-card {
    background: var(--light);
    padding: 36px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

:root.dark .program-card {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.program-icon {
    font-size: 2.8rem;
    margin-bottom: 0;
    text-align: center;
}

.program-card h3 {
    margin: 0;
    font-size: 1.3rem;
    text-align: center;
    color: #ffffff;
}

.program-desc {
    color: #bdc3c7;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.program-points h4 {
    margin: 8px 0 8px;
    font-size: 0.82rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.program-points ul {
    margin: 0;
    padding-left: 22px;
    color: #bdc3c7;
    font-size: 0.96rem;
    line-height: 1.7;
}

.program-outcome {
    margin-top: 8px;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(230, 57, 70, 0.12) 0%, rgba(230, 57, 70, 0.18) 100%);
    border-radius: 8px;
    font-size: 0.96rem;
    color: #ffffff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.1);
    text-align: center;
}

/* ---- 3D Program Icons (Brand Colors) ---- */
.program-3d-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    perspective: 800px;
}

/* Sphere — Pemula */
.sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--primary) 0%, var(--secondary) 100%);
    box-shadow:
        inset -12px -12px 24px rgba(0, 0, 0, 0.25),
        inset 8px 8px 16px rgba(255, 255, 255, 0.4),
        0 12px 24px rgba(230, 57, 70, 0.35);
    animation: spin-sphere 18s infinite linear;
}

@keyframes spin-sphere {
    from {
        transform: rotateY(0deg) rotateX(15deg);
    }

    to {
        transform: rotateY(360deg) rotateX(15deg);
    }
}

/* Ring — Profesional */
.ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 14px solid transparent;
    border-top-color: var(--secondary);
    border-right-color: var(--primary);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.25),
        0 10px 20px rgba(69, 123, 157, 0.4);
    animation: spin-ring 3s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes spin-ring {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.07);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Diamond — Bisnis */
.diamond {
    width: 60px;
    height: 60px;
    margin: 10px auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: rotate(45deg);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.45);
    animation: spin-diamond 12s infinite linear;
    position: relative;
}

.diamond::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(45deg);
}

@keyframes spin-diamond {
    from {
        transform: rotate(45deg) rotateY(0deg) rotateX(20deg);
    }

    to {
        transform: rotate(45deg) rotateY(360deg) rotateX(20deg);
    }
}

/* ---- Class Types Section ---- */
.class-types {
    background: var(--light);
    padding: 50px 0 60px;
}

:root.dark .class-types {
    background: var(--bg-surface);
}

.class-types-header {
    text-align: center;
    margin: 0 auto 32px auto;
    max-width: 680px;
    padding: 0 16px;
}

.class-types-header .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
}

:root.dark .class-types-header .badge {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
}

.class-types-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    letter-spacing: -0.02em;
}

.class-types-header p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    color: var(--gray);
}

:root.dark .class-types-header p {
    color: var(--text-muted);
}

.class-types-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
}

.class-card {
    background: var(--light);
    padding: 32px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

:root.dark .class-card {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.class-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Class 3D Icons */
.class-3d-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    position: relative;
}

/* Group: 3 mini spheres orbiting */
.sphere-group {
    position: relative;
    width: 80px;
    height: 80px;
    animation: float-group 6s ease-in-out infinite;
}

.mini-sphere {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
    box-shadow: 0 4px 8px rgba(69, 123, 157, 0.35);
}

.mini-sphere.s1 {
    top: 10px;
    left: 29px;
    animation: orbit1 8s infinite linear;
}

.mini-sphere.s2 {
    top: 26px;
    left: 10px;
    animation: orbit2 8s infinite linear;
}

.mini-sphere.s3 {
    top: 26px;
    right: 10px;
    animation: orbit3 8s infinite linear;
}

@keyframes orbit1 {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(8px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(8px) rotate(180deg);
    }

    100% {
        transform: translateX(0) rotate(360deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    50% {
        transform: translateX(-8px) rotate(180deg);
    }

    100% {
        transform: translateX(0) rotate(360deg);
    }
}

@keyframes float-group {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Solo: ring + center dot (1-on-1) */
.solo-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: var(--secondary);
    border-bottom-color: var(--primary);
    box-shadow: 0 8px 16px rgba(69, 123, 157, 0.3);
    animation: spin-solo 4s infinite linear;
}

@keyframes spin-solo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.solo-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 30% 30%, var(--primary), var(--secondary));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}

/* Team: stacked diamonds (group) */
.pyramid-stack {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 10px auto;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid var(--secondary);
    filter: drop-shadow(0 6px 12px rgba(69, 123, 157, 0.35));
    animation: spin-stack 12s infinite linear;
}

.pyramid-stack::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid var(--primary);
    transform: scale(0.85);
    opacity: 0.7;
}

.pyramid-stack::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid var(--primary);
    transform: scale(0.9);
    opacity: 0.85;
}

@keyframes spin-stack {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

/* ---- Services Section ---- */
.services {
    background: white;
    padding: 60px 0 80px;
}

:root.dark .services {
    background: var(--bg-surface);
}

.services-header {
    text-align: center;
    margin: 0 auto 32px auto;
    max-width: 680px;
    padding: 0 16px;
}

.services-header .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary);
}

:root.dark .services-header .badge {
    background: rgba(230, 57, 70, 0.15);
}

.services-header h2 {
    margin: 0 0 10px 0;
    font-size: clamp(1.65rem, 3.2vw, 2.1rem);
    letter-spacing: -0.02em;
}

.services-header p {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    color: var(--gray);
}

:root.dark .services-header p {
    color: var(--text-muted);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.service-card {
    background: var(--light);
    padding: 24px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

:root.dark .service-card {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Service 3D Icons */
.service-3d-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    position: relative;
}

/* Visa: document + paper plane */
.doc-plane {
    position: relative;
    width: 50px;
    height: 50px;
    margin: 15px auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    clip-path: polygon(10% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
    filter: drop-shadow(0 4px 10px rgba(69, 123, 157, 0.4));
    animation: float-doc 3s ease-in-out infinite;
}

.doc-plane::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: fly-plane 2s infinite linear;
    transform-origin: center bottom;
}

@keyframes float-doc {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(3deg);
    }
}

@keyframes fly-plane {
    from {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    to {
        transform: translateX(30px) translateY(-20px) rotate(20deg);
    }
}

/* Travel: globe with orbit */
.globe-plane {
    width: 60px;
    height: 60px;
    margin: 10px auto;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--secondary), var(--primary));
    box-shadow: inset -8px -8px 16px rgba(0, 0, 0, 0.2), inset 6px 6px 12px rgba(255, 255, 255, 0.3), 0 8px 20px rgba(69, 123, 157, 0.35);
    position: relative;
    animation: spin-globe 8s infinite linear;
}

.globe-plane::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.globe-plane::after {
    content: '';
    position: absolute;
    top: -15px;
    right: 4px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 14px solid var(--secondary);
    transform: rotate(-45deg);
    animation: fly-jet 3s infinite linear;
}

@keyframes spin-globe {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes fly-jet {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 1;
    }

    100% {
        transform: rotate(-45deg) translateX(40px);
        opacity: 0;
    }
}

/* Import: stacked boxes/shipment */
.box-ship {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 5px auto;
    transform-style: preserve-3d;
    animation: float-box 4s ease-in-out infinite;
}

.box-ship::before,
.box-ship::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.box-ship::before {
    top: 10px;
    left: 21px;
    transform: rotate(15deg);
}

.box-ship::after {
    bottom: 10px;
    left: 21px;
    transform: rotate(-15deg);
}

.box-ship .crate {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35px;
    height: 35px;
    background: var(--secondary);
    border-radius: 4px;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 16px rgba(69, 123, 157, 0.4);
}

@keyframes float-box {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }

    50% {
        transform: translateY(-8px) rotateY(10deg);
    }
}

/* Terjemah: Document File */
.doc-file {
    position: relative;
    width: 45px;
    height: 55px;
    margin: 12px auto;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 4px 12px 4px 4px;
    box-shadow: 4px 4px 12px rgba(178, 6, 6, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float-doc-file 3s ease-in-out infinite;
}

.doc-file::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.7), 0 16px 0 rgba(255, 255, 255, 0.7);
}

@keyframes float-doc-file {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-8px) rotate(0deg);
    }
}

/* ---- How It Works ---- */
.how-it-works {
    background: var(--darker);
    color: white;
    padding: 100px 0;
}

:root.dark .how-it-works {
    background: var(--bg-body);
}

.how-it-works .badge {
    background: rgba(69, 123, 157, 0.2);
    color: #7eb8c7;
}

.how-it-works p {
    color: #bdc3c7;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    counter-reset: step;
    margin: 60px 0 32px;
}

.step {
    position: relative;
    padding-left: 70px;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

/* Extra card below steps */
.steps-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 20px;
}

.extra-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.extra-card h4 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: white;
}

.extra-card p {
    margin: 0;
    color: #bdc3c7;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Testimonials ---- */
.testimonials {
    background: transparent !important;
    /* Sepenuhnya transparan */
    transition: background 0.3s ease;
    padding-bottom: 0;
    overflow: hidden;
    /* Mencegah horizontal scroll di mobile */
}

:root.dark .testimonials {
    background: transparent !important;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.testimonial-content p {
    font-style: italic;
    color: #ffffff !important;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info strong {
    display: block;
    color: var(--dark);
    font-size: 0.95rem;
}

:root.dark .author-info strong {
    color: var(--text-main);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

:root.dark .author-info span {
    color: var(--text-muted);
}

/* ---- Testimonials Horizontal Scroll ---- */
.testimonials-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 40px 0 80px;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-row {
    width: 100%;
    position: relative;
}

.testimonials-row::before,
.testimonials-row::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.testimonials-row::before {
    left: 0;
    background: linear-gradient(to right, var(--light) 0%, transparent 100%);
}

.testimonials-row::after {
    right: 0;
    background: linear-gradient(to left, var(--light) 0%, transparent 100%);
}

:root.dark .testimonials-row::before {
    background: linear-gradient(to right, var(--bg-surface), transparent);
}

:root.dark .testimonials-row::after {
    background: linear-gradient(to left, var(--bg-surface), transparent);
}

.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.row-top .testimonials-track {
    animation: scroll-left 60s linear infinite;
}

.row-bottom .testimonials-track {
    animation: scroll-right 60s linear infinite;
}

.testimonials-row:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Adjust card width and height for a more squared look */
.testimonials-row .testimonial-card {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 16px;
    /* Efek Glossy / Glassmorphism */
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
    /* Abu-abu gelap untuk kontras */
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 0.75rem;
    /* Font diperkecil agar muat */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Limit baris teks */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:root.dark .testimonial-content p {
    color: #bdc3c7;
    /* Abu-abu terang untuk mode gelap */
}

.author-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50% !important;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-info strong {
    font-size: 0.8rem;
}

.author-info span {
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-rows {
        margin: 32px 0;
        gap: 16px;
    }

    .testimonials-row {
        overflow: hidden;
        width: 100%;
    }

    .testimonials-row .testimonial-card {
        width: 180px;
        height: 180px;
        padding: 12px;
    }
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 60px 0 35px;
    margin-top: -40px;
    /* Menarik ke atas */
}

.cta h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 2.5rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 100%;
    font-size: 1.1rem;
}

.cta .btn-primary {
    background: #b20606;
    /* Merah branding */
    color: white;
    /* Teks putih */
    box-shadow: 0 10px 20px rgba(178, 6, 6, 0.2);
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.cta .btn-primary:hover {
    background: #8a0505;
    transform: scale(1.05);
}

:root.dark .cta {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
}

:root.dark .cta .btn-primary {
    background: #b20606;
    color: white;
}

:root.dark .cta .btn-primary:hover {
    background: #8a0505;
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-surface);
    color: white;
    padding: 10px 0 0;
    /* Padding atas diperkecil mentok */
    transition: background 0.3s ease;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    /* Hanya dua kolom */
    gap: 40px;
    max-width: 1350px;
    margin: 0 auto 5px auto;
    /* Margin bottom hampir tidak ada */
    padding: 0 40px;
    align-items: start;
    /* Tulisan sejajar di atas */
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    text-decoration: none;
}

.footer-brand .logo-img {
    height: 38px;
    /* Diperkecil sedikit */
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.3rem;
    /* Diperkecil sedikit */
    font-weight: 800;
}

.footer-brand p {
    color: #bdc3c7;
    max-width: 400px;
    /* Diberi ruang agar cukup 2 baris */
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-brand strong {
    color: white;
    display: block;
    margin-bottom: 4px;
}

:root.dark .footer-brand p {
    color: var(--text-muted);
}

.footer-contact {
    margin-left: 0;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.contact-columns {
    display: flex;
    gap: 30px;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-col-title {
    color: #bdc3c7;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #bdc3c7;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-item span {
    transition: var(--transition);
}

.contact-item:hover {
    color: white;
    transform: translateX(5px);
}

.contact-item:hover span {
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

:root.dark .footer-links a {
    color: var(--text-muted);
}

:root.dark .footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 8px;
}

:root.dark .footer-contact p {
    color: var(--text-muted);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
    /* Padding sangat tipis */
    display: flex;
    justify-content: center;
    /* Menengahkan secara horizontal */
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    width: 100%;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .footer-bottom p {
        white-space: normal !important;
        line-height: 1.6;
        padding: 0 20px;
    }
}

:root.dark .footer-bottom {
    border-top-color: var(--border);
    color: var(--text-muted);
}

/* ---- Responsive 992px ---- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo {
        justify-content: center;
        margin-right: 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact {
        margin-left: 0;
    }

    .contact-columns {
        justify-content: center;
        gap: 40px; /* Jarak antar kolom lebih lega di tablet */
    }

    .contact-col {
        align-items: flex-start; /* Agar barisan icon di contact sejajar lurus ke bawah, tidak rata tengah yang berantakan */
    }
}


/* ---- Responsive 768px (Mobile) ---- */
@media (max-width: 768px) {

    /* Navbar Structure */
    .navbar {
        overflow: visible !important;
        height: 72px !important;
    }

    .nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0 10px !important;
        height: 100% !important;
        overflow: visible !important;
        gap: 5px !important;
    }

    .logo {
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 15px;
        right: 15px;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        align-items: center;
        width: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
        z-index: 999999 !important;
        padding: 25px 15px;
    }

    .nav-actions {
        display: flex !important;
        position: static !important;
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 5px !important;
        gap: 6px !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        flex-shrink: 1 !important;
    }

    .nav-container.active .nav-menu {
        display: flex !important;
    }

    /* Hide text labels on mobile bar */
    .community-text-link {
        display: none !important;
    }

    /* Keep icons visible */
    .community-btn, 
    .notification-btn,
    .cart-btn,
    .profile {
        display: flex !important;
    }

    .hamburger {
        display: flex !important;
        order: 3 !important;
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }

    .hamburger span {
        background: white !important;
    }

    /* Icon Sizes for mobile bar */
    .nav-actions .icon-btn, 
    .nav-actions .cart-btn,
    .nav-actions .profile-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Menu Items Vertical */
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
        position: relative !important;
        z-index: 1000001 !important;
    }

    .nav-menu li a {
        font-size: 1.1rem;
        padding: 12px;
        display: block;
        color: white;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    /* Dropdown Vertical */
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background: rgba(20, 20, 20, 0.98) !important;
        padding: 10px 0 !important;
        margin-top: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        pointer-events: none;
        width: 100% !important;
        border-radius: 12px !important;
    }

    .dropdown.active > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        pointer-events: auto !important;
    }

    .dropdown-menu li {
        margin: 5px 0 !important;
        padding: 0 !important;
    }

    .dropdown-menu li a {
        font-size: 1rem !important;
        padding: 12px 20px !important;
        background: transparent !important;
        color: rgba(255,255,255,0.9) !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-toggle {
        pointer-events: auto !important;
        position: relative !important;
        z-index: 1000002 !important;
        display: block !important;
    }

    /* Hero & Sections */
    .hero { padding: 120px 20px 60px; }
    .hero-logo-img { max-width: 200px; }
    .hero-content h1 { font-size: 2.2rem; }
    
    .section { padding: 50px 20px; }
    
    /* Footer Mobile Optimization */
    .footer { padding: 20px 0 0 !important; }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px; /* Kurangi dari 30px */
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0 !important; /* Hapus margin bawah */
    }
    .footer-brand .logo {
        margin: 0 auto 5px !important;
        justify-content: center;
        transform: scale(1.1);
    }
    .footer-brand strong {
        display: block;
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    .footer-brand p { 
        margin: 0 auto; 
        max-width: 250px;
        font-size: 0.8rem;
        line-height: 1.3;
    }
    .footer-contact { margin-top: 5px !important; } /* Kurangi margin atas */
    .contact-columns { 
        flex-direction: column;
        gap: 12px; /* Rapatkan antar item kontak */
        align-items: center;
    }
    .contact-col {
        align-items: center;
    }
}

/* Restored Back to Top */
/* Tombol Kembali Global */
.btn-back-game {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #b20606 0%, #e01010 60%, #ff4d5a 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px; /* Ubah ke kotak (12px) sesuai gaya Devils */
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 18px rgba(178, 6, 6, 0.45);
    transition: 0.3s;
    text-decoration: none;
}
.btn-back-game:hover {
    background: rgba(178, 6, 6, 0.2);
    border-color: rgba(178, 6, 6, 0.4);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(178, 6, 6, 0.4);
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary) !important;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile notification drawer: use a bottom sheet while keeping desktop as side drawer */
@media (max-width: 768px) {
    #notification-drawer {
        top: auto !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 0 !important;
        width: auto !important;
        height: min(78dvh, 620px) !important;
        padding: 18px !important;
        border-radius: 22px 22px 0 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
        box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.72) !important;
        transform: translateY(110%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    #notification-drawer.active {
        right: 12px !important;
        transform: translateY(0) !important;
    }

    #notification-drawer .drawer-header {
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
    }

    #notification-drawer .drawer-header h2 {
        font-size: 1.15rem !important;
    }

    #notification-drawer .notif-item {
        padding: 14px !important;
        margin-bottom: 10px !important;
        border-radius: 14px !important;
    }
}
