/* ================================
   CHUMARKET - GLOBAL STYLES
   Colors: Orange (#FF6B35), White (#FFFFFF), Dark Pink (#C71585)
   Dark BG: #0A0E27
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF8C42;
    --primary-pink: #FF6B9D;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --pink-light: #FFA8C5;
    --pink-dark: #E84A7A;
    --primary-white: #FFFFFF;
    --orange-light: #FFA366;
    --orange-dark: #FF6B1A;
    --bg-dark: #050508;
    --bg-darker: #020203;
    --bg-white: rgba(255, 255, 255, 0.95);
    --text-white: #FFFFFF;
    --text-gray: #94a3b8;
    --text-dark: #F5F5F5;
    --accent-purple: #9D4EDD;
    --success: #4ECDC4;
    --danger: #FF6B6B;
    --warning: #FFD93D;
    
    /* CyberGlass Variables */
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --card-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 140, 66, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(255, 107, 53, 0.08), transparent 25%);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
    padding-top: 90px; /* Prevent navbar overlap */
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* Paling atas agar terlihat */
    pointer-events: none;
}

/* ================================
   NAVBAR / HEADER
   ================================ */

header {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0; /* Reduced padding */
    position: fixed;
    width: 100%;
    right: 0;
    top: 0;
    left: 0;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateZ(0); /* Fix navbar flickering/disappearing on mobile scroll */
    will-change: transform;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0 5%;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    max-width: fit-content;
}

.logo-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    max-width: 60px;
    min-height: 60px;
    max-height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    font-weight: bold;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}

.nav-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.logo-icon img {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-orange), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:not(.btn-primary):not(.btn-secondary):hover {
    background: linear-gradient(to right, var(--primary-orange), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a:not(.btn-primary):not(.btn-secondary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-orange), var(--primary-pink));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:not(.btn-primary):not(.btn-secondary):hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
    color: white;
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.3);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 140, 66, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    padding: 0.7rem 1.3rem;
    border: 1px solid var(--primary-orange);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 140, 66, 0.1);
    border-color: var(--primary-orange);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.2);
}

/* ================================
   CONTAINER & GRID
   ================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2; /* Pastikan konten di atas partikel */
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 
        -2px -2px 0 #000000,
        -2px -1px 0 #000000,
        -2px 0px 0 #000000,
        -2px 1px 0 #000000,
        -2px 2px 0 #000000,
        -1px -2px 0 #000000,
        -1px -1px 0 #000000,
        -1px 0px 0 #000000,
        -1px 1px 0 #000000,
        -1px 2px 0 #000000,
        0px -2px 0 #000000,
        0px -1px 0 #000000,
        0px 0px 0 #000000,
        0px 1px 0 #000000,
        0px 2px 0 #000000,
        1px -2px 0 #000000,
        1px -1px 0 #000000,
        1px 0px 0 #000000,
        1px 1px 0 #000000,
        1px 2px 0 #000000,
        2px -2px 0 #000000,
        2px -1px 0 #000000,
        2px 0px 0 #000000,
        2px 1px 0 #000000,
        2px 2px 0 #000000,
        0 0 15px rgba(255, 140, 66, 0.4);
}

.section-subtitle {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 
        -1px -1px 0 #000000,
        -1px 0px 0 #000000,
        -1px 1px 0 #000000,
        0px -1px 0 #000000,
        0px 0px 0 #000000,
        0px 1px 0 #000000,
        1px -1px 0 #000000,
        1px 0px 0 #000000,
        1px 1px 0 #000000;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ================================
   CARD COMPONENTS
   ================================ */

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.card:hover {
    border-color: rgba(255, 140, 66, 0.5);
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.15);
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.7);
}

/* ================================
   FORM COMPONENTS
   ================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #BF360C; /* Dark Orange Blackish (Oren Hitam) */
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #BF360C; /* Oren Hitam (Darker Orange) */
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.2);
}

/* Force Input Color for Readability (including disabled) */
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    color: #BF360C !important;
    -webkit-text-fill-color: #BF360C !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.8);
}

/* Global Placeholder Override */
::placeholder {
    color: #BF360C !important;
    opacity: 0.8;
}

/* ================================
   ALERT & MESSAGE
   ================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border-color: #3B82F6;
}

/* ================================
   LOADING & SPINNER
   ================================ */

.spinner {
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top: 3px solid var(--primary-orange);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

/* ================================
   SCROLL TOP
   ================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
    border: none;
}

.scroll-top i {
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

.scroll-bottom {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
    border: none;
}

.scroll-bottom:hover {
    transform: translateY(5px);
}

.scroll-bottom i {
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    header {
        background: rgba(5, 5, 8, 0.95); /* More solid on mobile */
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        min-height: 70px;
        gap: 0;
    }

    .search-bar {
        max-width: 100%;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        height: 100dvh; /* Use dynamic viewport height for mobile browsers */
        background: rgba(15, 12, 41, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 10001; /* Ensure above header */
        padding: 2rem;
    }

    .navbar .nav-links.nav-active {
        right: 0;
    }

    .navbar .nav-links a {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
}

/* Mobile Footer Visibility (Align with Mobile Nav Breakpoint 900px) */
@media (max-width: 900px) {
    footer { 
        display: none !important; 
        /* Mobile Footer Optimization for all screen sizes */
        padding: 2.5rem 1.5rem; /* Adjusted padding for a cleaner look */
        margin-top: 3rem;
    }
    footer.footer-home { display: block !important; }

    .footer-content {
        /* Use a single column for all mobile devices for consistency */
        grid-template-columns: 1fr;
        gap: 2.5rem; /* More vertical space between sections */
        margin-bottom: 2.5rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem; /* Slightly more readable */
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.nav-toggle.is-active .hamburger { background: transparent; }
.nav-toggle.is-active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ================================
   ANIMATIONS & INTERACTIVE
   ================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.animate-pop {
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 3D Hover Effect for Cards */
.hover-3d {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-3d:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-orange);
    z-index: 10;
}

/* Pulse Effect for Buttons */
@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.9); }
    70% { box-shadow: 0 0 0 25px rgba(255, 140, 66, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0); }
}

.btn-pulse:hover {
    animation: pulse-orange 1.5s infinite;
}

/* ================================
   PAGE LOADER
   ================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.show {
    opacity: 1;
    visibility: visible;
}

.loader-logo {
    width: 120px;
    height: 120px;
    animation: spin-and-pulse 2s linear infinite;
}

@keyframes spin-and-pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .search-bar input {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* ================================
   FOOTER (Moved from Main)
   ================================ */
footer {
    background: #050812; /* Solid background */
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative; /* Changed from fixed */
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

footer .container {
    position: relative;
    z-index: 2;
}

footer h4, footer p, footer a, footer li {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
    position: relative;
    z-index: 3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    color: #E0E0E0;
    font-size: 0.9rem;
}
