.hero,
.hero-content,
.hero *,
.hero-content * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.hero,
.hero-content,
.hero-content * {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
/* Remove all borders from hero section for a clean look */
.hero,
.hero-content {
    border: none !important;
    box-shadow: none !important;
}
/* Remove all blur, box-shadow, and text-shadow from hero section on desktop */
.hero,
.hero-content {
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.hero::before {
    background: none !important;
}
.hero-content,
.hero-content h1,
.hero-content p,
.hero-content .sub-title {
    text-shadow: none !important;
}
@media (max-width: 768px) {
    .hero,
    .hero-content {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .hero::before {
        background: none !important;
    }
    .hero-content,
    .hero-content h1,
    .hero-content p,
    .hero-content .sub-title {
        text-shadow: none !important;
    }
}
/* =========================================
   1. GENERAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --header-height: 70px;
    --transition-speed: 0.3s;
    /* Settings-controlled variables */
    --bg-color: var(--light-bg);
    --card-bg: rgba(255,255,255,0.06);
 
    --muted-text: rgba(31,41,55,0.7);
    --spacing: 16px;
    --layout-max-width: 1200px;
    --border-radius: 10px;
    --shadow-color: rgba(0,0,0,0.12);
}

/* Dark mode overrides (will also be toggled via JS by adding `.dark-mode` to body) */
body.dark-mode {
    --bg-color: #0f1724;
    --card-bg: #0b1220;
    --text-color: #e6eef8;
    --muted-text: rgba(230,238,248,0.7);
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
}

/* Compact mode reduces spacing and tightens layout */
body.compact {
    --spacing: 8px;
}

/* Data saver mode - remove large background images and reduce autoplay */
body.data-saver {
    background-image: none !important;
}

/* Product/grid visual overrides to avoid unexpected yellow boxes */
.products {
    /* keep background image but fall back to variable bg color */
    background-color: var(--bg-color) !important;
    background-image: var(--products-bg, url('../images/products-bg.jpg')) !important;
    background-size: cover;
    background-position: center;
}

.product-grid,
.products-scroll-container,
.products-container,
.products-wrapper {
    background: transparent !important;
}

.product-card {
    background: var(--card-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 6px 18px var(--shadow-color) !important;
}

.product-card img {
    background: transparent !important;
}

/* If in dark-mode, ensure cards are dark */
body.dark-mode .product-card {
    background: var(--card-bg) !important;
    border-color: rgba(255,255,255,0.04) !important;
}

/* Disable animations/transitions when requested */
.no-animations *, body.no-animations * {
    transition: none !important;
    animation: none !important;
}

/* Utility sizes that JS may adjust via variables */
.container, .settings-container {
    max-width: var(--layout-max-width);
    padding: var(--spacing);
}

/* Make cards and panels use variable background and border radius */
.settings-section,
.testimonial-card,
.contact-card,
.hero-content,
.sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    color: var(--text-color);
}

/* Ensure primary color variable is used where appropriate */
.btn-primary {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.btn-secondary {
    background: rgba(255,255,255,0.06) !important;
    color: var(--text-color) !important;
}

/* Header height variable usage */
.sidebar { top: var(--header-height); height: calc(100% - var(--header-height)); }

/* Use muted text variable */
.setting-info p,
.testimonial-content p {
    color: var(--muted-text) !important;
}

/* Respect data-saver for images flagged as optional */
img[data-saver="optional"] {
    opacity: 1;
}
body.data-saver img[data-saver="optional"] {
    display: none !important;
}

.testimonial-card {
    border: 2px solid #6c5ce7 !important;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%) !important;
    backdrop-filter: blur(10px) !important;
    color: rgb(233, 14, 14) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3) !important;
    border-color: #a29bfe !important;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 70%) !important;
}

.testimonial-content {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 1rem !important;
}

.testimonial-content i {
    color: #a29bfe !important;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 1rem !important;
}

.testimonial-author img {
    border: 2px solid #a29bfe !important;
    padding: 2px !important;
    background: yellow !important;
}

.testimonial-author h4 {
    color: #fff !important;
}

.testimonial-author p {
    color: #ddd !important;
}

.testimonials h2 {
    color: #f2f2f5 !important;
    margin-bottom: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.2) !important;
    border-color: #8c7ae6 !important;
}

.testimonial-content {
    border-bottom: 1px solid rgba(108, 92, 231, 0.2) !important;
    padding-bottom: 1rem !important;
}

.testimonial-author {
    border-top: 1px solid rgba(108, 92, 231, 0.2) !important;
    padding-top: 1rem !important;
}

.testimonial-author img {
    border: 2px solid #6c5ce7 !important;
    padding: 2px !important;
}

.contact-form input,
.contact-form textarea {
    border: 2px solid #6c5ce7 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

/* Sidebar / Accordion helper styles (added to ensure accordions work across pages) */
.sidebar {
    position: fixed;
    top: var(--header-height, 70px);
    left: 0;
    height: calc(100% - var(--header-height, 70px));
    width: 300px;
    max-width: 85%;
    background: var(--light-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform var(--transition-speed, 0.3s) ease;
    z-index: 9999;
    overflow-y: auto;
}
.sidebar.active {
    transform: translateX(0);
}
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 9998;
}
.sidebar-overlay.active,
.sidebar-overlay.show {
    display: block;
}
.sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-nav ul { list-style: none; padding: 12px; }
.sidebar-nav a { display: block; padding: 10px 12px; color: inherit; text-decoration: none; }

/* Accordion styles */
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.04); }
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
}
.accordion-header .accordion-arrow { transition: transform 0.25s ease; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease, padding 0.25s ease;
    padding: 0 12px;
}
.accordion-item.active .accordion-content {
    max-height: 800px; /* large enough for content */
    padding: 8px 12px 16px 12px;
}
.accordion-item.active .accordion-arrow { transform: rotate(180deg); }

/* Small adjustments for product scroller focus */
.products-scroll-container:focus { outline: none; }
.products-scroll-container.dragging { cursor: grabbing; }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #8c7ae6 !important;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2) !important;
}

.contact-card {
    border: 2px solid #6c5ce7 !important;
    border-radius: 12px !important;
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
    margin-left: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 30px;
        position: relative;
        margin-left: auto;
        pointer-events: auto;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: #fff;
        margin: 4px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
        pointer-events: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }

    .logo h1 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding: 0 5px;
    }

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 320px) {
    .logo h1 {
        font-size: 0.9rem;
        max-width: 150px;
    }
}

/* Prevent animation on load */
.no-transition {
    transition: none !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        transition: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 80px 24px 60px 24px;
    overflow: hidden;
    background-image: url('../images/header-bg.jpg'); /* Tambahkan gambar header Anda disini */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 40px 0 rgba(72,52,212,0.12), 0 1.5px 8px 0 rgba(0,0,0,0.08);
}

/* Overlay gradient untuk memastikan teks tetap terbaca */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 28, 32, 0.8), rgba(42, 45, 53, 0.8));
    z-index: 1;
}

/* Pastikan konten hero tetap di atas background */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Pastikan wave container tetap di atas background tapi di bawah gradient */
.wave-container {
    position: absolute;
    width: 100%;
    height: 80px;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 50% 100%;
    animation: wave 15s linear infinite;
}

.wave1 {
    z-index: 1;
    opacity: 0.5;
    animation: wave 30s linear infinite;
    background-position-x: 0;
}

.wave2 {
    z-index: 2;
    opacity: 0.3;
    animation: wave 20s linear infinite;
    background-position-x: 100px;
}

.wave3 {
    z-index: 3;
    opacity: 0.2;
    animation: wave 25s linear infinite;
    background-position-x: 200px;
}

.wave4, .wave5 {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    animation: animate 30s linear infinite;
}

.wave4 {
    z-index: 997;
    opacity: 0.5;
    animation-delay: -3s;
    bottom: 15px;
}

.wave5 {
    z-index: 996;
    opacity: 0.2;
    animation-delay: -4s;
    bottom: 20px;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes animate {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-content {
    max-width: 900px;
    padding: 0 3rem;
    color: yellow;
    z-index: 5;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 32, 60, 0.25);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(72,52,212,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(6px);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #ffffff;
}

.hero-content .sub-title {
    color: #fff;
    font-size: 2.5em;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Section Background tetap sama */
section {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1b2f4e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 60px 20px;
    color: #fff;
}

/* Products Section - Background Image */
.products {
    position: relative;
    padding: 80px 20px;
    background-image: url('../images/products-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Hapus baris ini jika ingin background benar-benar diam */
    background-repeat: no-repeat;
    /* Hapus semua animasi atau efek pergerakan yang ada */
}

/* Pastikan tidak ada animasi yang mempengaruhi background */
.products::before,
.products::after {
    animation: none;
}

/* Jika ada keyframes untuk animasi background, hapus atau nonaktifkan */
@keyframes productsBackground {
    /* Hapus atau nonaktifkan animasi yang ada */
}

.products > * {
    position: relative;
    z-index: 2;
}

/* Responsif text untuk products section */
.products h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.product-grid {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.product-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: clamp(15px, 3vw, 25px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 1rem;
    position: relative;
    z-index: 10;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
}

.carousel-btn {
    background: rgba(74, 0, 224, 0.15); /* Warna background lebih tebal */
    border: 2px solid rgba(74, 0, 224, 0.3); /* Border lebih tebal dan jelas */
    color: rgba(255, 255, 255, 0.9); /* Warna icon lebih jelas */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: none;
    box-shadow: none;
}

.carousel-btn:hover {
    background: rgba(74, 0, 224, 0.25); /* Warna hover lebih tebal */
    color: rgba(255, 255, 255, 1); /* Warna icon saat hover lebih jelas */
    border-color: rgba(74, 0, 224, 0.4); /* Border saat hover lebih jelas */
    box-shadow: 0 2px 8px rgba(74, 0, 224, 0.2); /* Tambah shadow untuk emphasis */
}

.carousel-btn:disabled {
    opacity: 0.4; /* Opacity saat disabled dinaikkan */
    background: rgba(153, 153, 153, 0.15); /* Background disabled lebih jelas */
    color: rgba(153, 153, 153, 0.5); /* Warna icon saat disabled lebih jelas */
    border-color: rgba(153, 153, 153, 0.3); /* Border saat disabled lebih jelas */
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .carousel-nav {
        position: sticky;
        bottom: 0;
        padding: 0.8rem;
        background: transparent;
        backdrop-filter: none;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(74, 0, 224, 0.02);
        border-color: rgba(74, 0, 224, 0.05);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .carousel-btn:active {
        transform: scale(0.95);
        background: rgba(74, 0, 224, 0.35); /* Warna active state lebih tebal */
        color: rgba(255, 255, 255, 1);
        border-color: rgba(74, 0, 224, 0.5); /* Border saat active lebih jelas */
    }
}

.product-grid.loading::after {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes loadingPulse {
    0% { opacity: 0.1; }
    50% { opacity: 0.2; }
    100% { opacity: 0.1; }
}

/* Carousel Navigation Animation */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.carousel-btn i {
    transition: transform 0.3s ease;
}

.carousel-btn:hover i {
    transform: scale(1.2);
}

.carousel-nav {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Touch Device Optimizations */
@media (hover: none) {
.product-grid {
        scroll-snap-type: x mandatory;
        scroll-padding: 1rem;
    }

    .carousel-btn {
        -webkit-tap-highlight-color: transparent;
    }

    .carousel-btn:active {
        transform: scale(0.95);
        background: rgba(74, 0, 224, 0.8);
        color: yellow;
    }
}

/* Smooth Scrolling Animation */
@keyframes smoothScroll {
    from {
        transform: translateX(var(--scroll-offset));
    }
    to {
        transform: translateX(0);
    }
}

/* Card Hover Effects */
.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.product-card .product-icon {
    transition: transform 0.5s ease;
}

.product-card:hover .product-icon {
    transform: rotate(360deg) scale(1.1);
}

/* Loading Animation */
.product-grid.loading {
    position: relative;
}

.product-grid.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: loadingPulse 1.5s infinite;
}

@keyframes loadingPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.4; }
    100% { opacity: 0.3; }
}

.product-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: none;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.8s ease;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.product-icon i {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

/* Container untuk text */
.product-category {
    text-align: center;
    font-size: 0.8rem;
    margin: 8px 0;
    padding: 5px;
}

/* Styling untuk setiap huruf */
.product-category span {
    display: inline-block;
    animation: waveAnimation 2s ease-in-out infinite;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 3px rgba(75, 108, 183, 0.5);
    margin: 0 0.5px;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px) scale(1.03);
        color: #4b6cb7;
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(3px) scale(0.97);
        color: #6a3093;
    }
}

.product-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    margin: clamp(0.8rem, 2vw, 1.2rem) 0;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-card .product-description {
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 8px;
}

.product-card .product-description .title {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: clamp(0.5rem, 1vw, 0.8rem);
    color: #4b6cb7;
    display: block;
}

.product-card .product-description .features {
    text-align: left;
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.product-card .product-description .features li {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    line-height: 1.4;
    margin: clamp(0.3rem, 0.8vw, 0.5rem) 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.product-card .product-description .features li:before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #4b6cb7;
}

.product-card .feature-item {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    margin: clamp(0.4rem, 1vw, 0.6rem) 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.product-card .feature-item i {
    color: #4CAF50;
    font-size: 1rem;
}

.product-card .product-price {
    margin: clamp(1rem, 2.5vw, 1.5rem) 0;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card .price-amount {
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    display: block;
}

.product-card .price-period {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
}

.product-card .guarantee {
    font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    color: #4CAF50;
    margin-top: clamp(0.4rem, 1vw, 0.6rem);
}

.product-card .product-btn {
    display: inline-block;
    padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #fff;
    border-radius: 20px;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-top: 15px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.product-card .product-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.product-card .product-btn span {
    color: #ffffff;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        gap: 1.5rem;
        padding: 10px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        padding: 15px 5px;
    }

    .product-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 15px;
    }

    .product-grid::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 90%;
    }
}

/* Hide scroll indicator when not needed */
@media (min-width: 769px) {
    .products::after {
        display: none;
    }
}

/* Touch Optimization */
@media (hover: none) {
    .product-card {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .product-card:active {
        transform: scale(0.98) !important;
    }
}

/* Accessibility and Performance */
.product-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    .product-card * {
        animation: none !important;
        transition: none !important;
    }
}

/* Features Section - Gradasi Ungu-Biru */
.features {
    background: linear-gradient(-45deg, #7b1fa2, #3f51b5, #6a3093, #4b6cb7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Testimonials Section - Gradasi Ungu-Biru */
.testimonials {
    background: linear-gradient(-45deg, #4b6cb7, #6a3093, #7b1fa2, #3f51b5);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Contact Section - Gradasi Ungu-Biru */
.contact {
    background: linear-gradient(-45deg, #3f51b5, #7b1fa2, #4b6cb7, #6a3093);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* FAQ Section - Gradasi Ungu-Biru */
.faq {
    background: linear-gradient(-45deg, #6a3093, #3f51b5, #7b1fa2, #4b6cb7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Animasi Gradient */
@keyframes borderPulse {
    0% {
        border-color: rgba(255, 255, 255, 0.2);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.4);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Card styling untuk kontras yang lebih baik */
.product-card, .feature-card, .testimonial-card, .contact-card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: none;
    border-radius: 15px;
    padding: 20px;
    box-shadow: none;
}

/* Features Section */
.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: yellow;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 1rem;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #fff, transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: borderPulse 3s infinite;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:active::before {
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(31, 38, 135, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: yellow;
}

.feature-card p {
    color: #e5e7eb;
}

/* Testimonials Section */
.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: yellow;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:active::before {
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    color: #e5e7eb;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author h4 {
    color: yellow;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: #e5e7eb;
    font-size: 0.9rem;
}

/* Contact Section */
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: yellow;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 7, 7, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:active::before {
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: yellow;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info {
    text-align: left;
    margin-top: 1.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form:active::before {
    opacity: 1;
    animation: ripple 0.6s ease-out;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: yellow;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: yellow;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast.error {
    background: linear-gradient(135deg, #f44336, #e53935);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: linear-gradient(-45deg, #0f3460, #1a1a2e, #16213e, #1b2f4e);
    color: #fff;
    padding: 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
    color: #000000;
    font-size: 0.9rem;
}

/* Animasi Kern Text */
.product-category span {
    display: inline-block;
    animation: kernAnimation 2s ease infinite;
    transition: all 0.3s ease;
}

.product-category span:hover {
    color: #4b6cb7;
    transform: scale(1.2);
}

/* Animasi untuk setiap huruf dengan delay berbeda */
.product-category span:nth-child(1) { animation-delay: 0.1s; }
.product-category span:nth-child(2) { animation-delay: 0.2s; }
.product-category span:nth-child(3) { animation-delay: 0.3s; }
.product-category span:nth-child(4) { animation-delay: 0.4s; }
.product-category span:nth-child(5) { animation-delay: 0.5s; }
.product-category span:nth-child(6) { animation-delay: 0.6s; }
.product-category span:nth-child(7) { animation-delay: 0.7s; }
.product-category span:nth-child(8) { animation-delay: 0.8s; }
.product-category span:nth-child(9) { animation-delay: 0.9s; }
.product-category span:nth-child(10) { animation-delay: 1s; }
.product-category span:nth-child(11) { animation-delay: 1.1s; }
.product-category span:nth-child(12) { animation-delay: 1.2s; }
.product-category span:nth-child(13) { animation-delay: 1.3s; }
.product-category span:nth-child(14) { animation-delay: 1.4s; }
.product-category span:nth-child(15) { animation-delay: 1.5s; }
.product-category span:nth-child(16) { animation-delay: 1.6s; }



/* Styling untuk container text */
.product-category {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    padding: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover effect untuk container */
.product-category:hover span {
    animation-play-state: paused;
}

.product-description {
    text-align: left;
    padding: 15px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.6;
    color: #fff;
}

.product-description .title {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: #4b6cb7;
    display: block;
}

.product-description .features {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.product-description .features li {
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-description .features li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #6a3093;
    font-weight: bold;
}

.product-description .features li:last-child {
    border-bottom: none;
}

.animated-title {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.animated-title span {
    display: inline-block;
    transition: all 0.5s ease;
    position: relative;
}

/* Gradasi warna dasar */
.animated-title span {
    background: linear-gradient(45deg, #6a3093, #4b6cb7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
}

/* Class untuk animasi ledakan */
.explode {
    animation: explodeEffect 0.8s ease-out forwards,
              colorChange 2s infinite;
    transform-origin: center;
}




/* Animasi Wave Button */

/* Background Products Section */


/* Pastikan tidak ada animasi yang mempengaruhi background */
.products::before,
.products::after {
    animation: none;
}


.products > * {
    position: relative;
    z-index: 2;
}

/* Logo Animation */
.logo h1 {
    background: linear-gradient(
        to right,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8f00ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-move 8s linear infinite;
    background-size: 200% auto;
}

/* Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-move {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Z-index Management */
.products > * {
    position: relative;
    z-index: 2;
}

.products h2,
.products .product-card {
    position: relative;
    z-index: 3;
}

/* Header Styles */
.header-container .logo h1,
.nav-links .logo h1 {
    display: inline-block;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
} 
.no-fouc { 
    opacity: 0; 
    visibility: hidden;
}
body { 
    opacity: 1; 
    visibility: visible;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in; 
}

#main-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

#main-content.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Optimize animations for mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Social Icons Mobile Styling */
    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: clamp(0.5rem, 2vw, 0.8rem);
        margin: 1rem 0;
    }

    .social-icons a {
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #1e88e5; /* Solid blue background */
        color: yellow;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .social-icons a:hover,
    .social-icons a:active {
        transform: translateY(-2px);
        background: #2196f3; /* Lighter blue on hover */
        box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    }

    @media (max-width: 480px) {
        .social-icons a {
            width: 1.8rem;
            height: 1.8rem;
            font-size: 0.9rem;
        }
    }
    
    
    .wave {
        animation-duration: 30s !important;
    }
    
    .product-card {
        transform: none !important;
        transition: box-shadow 0.3s ease !important;
    }
    
    .animated-title span {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .typing-text {
        animation: none !important;
    }
    
    .wave-text span {
        animation: none !important;
        transform: none !important;
    }
    
    .hamburger span {
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }
    
    .nav-links {
        transition: transform 0.3s ease !important;
    }
}

/* Optimize touch interactions */
@media (hover: none) {
    .product-card:hover,
    .nav-links a:hover,
    .social-icons a:hover {
        transform: none !important;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile Navigation Styles */
.nav-links {
    transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--bg-color);
        padding: 80px 20px 20px;
        transform: translateX(100%);
        z-index: 998;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hamburger {
        display: block;
        z-index: 999;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Ensure links are visible and clickable */
    .nav-links a {
        color: var(--text-color);
        font-size: 1.2rem;
        padding: 10px;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--primary-color);
        color: var(--bg-color);
        border-radius: 5px;
    }

}

/* Ensure smooth transitions */
@media (prefers-reduced-motion: reduce) {
    .nav-links {
        transition: none;
    }
}

.text-animation-container {
    /* Constrain hero paragraph to a centered column on desktop for tidy layout */
    width: 100%;
    overflow: hidden;
    padding: 20px;
    max-width: 900px; /* limit width so long sentence wraps nicely */
    position: relative;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-text {
    display: block;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 18px 20px;
    font-size: 1.25rem;
    line-height: 1.6; /* tighter but readable */
    font-weight: 300;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 780px; /* keep hero sentence visually balanced on wide screens */
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Large Screens */
@media (max-width: 1200px) {
    .text-animation-container {
        padding: 20px;
        margin: 20px auto;
        max-width: 90%;
    }
    
    .animated-text {
        font-size: 1.2rem;
        line-height: 1.7;
        padding: 20px;
        letter-spacing: 0.2px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .text-animation-container {
        padding: 20px;
        margin: 20px auto;
        max-width: 100%;
    }
    
    .animated-text {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 12px;
        letter-spacing: 0.2px;
    }

}

/* Mobile Devices */
@media (max-width: 768px) {
    .text-animation-container {
        padding: 20px;
        margin: 15px auto;
        max-width: 100%;
    }
    
    .animated-text {
        font-size: 1rem;
        line-height: 1.5;
        padding: 5px;
        letter-spacing: 0.3px;
    }
}

/* Small Mobile Devices */
@media (max-width: 320px) {
    .text-animation-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .animated-text {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 5px;
    }
}

/* Touch and Performance Optimizations */
@media (hover: none) {
    .text-animation-container {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 768px) {
    .text-animation-container {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .animated-text {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Ensure text remains crisp */
.animated-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .text-animation-container,
    .animated-text {
        transition: none !important;
        animation: none !important;
    }
}

/* Smooth Hover Effects */
.product-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Responsive Breakpoints with Smooth Transitions */
@media (max-width: 1200px) {
    .product-grid {
        gap: 1.5rem;
        padding: 10px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1rem;
        padding: 15px 5px;
    }

    .product-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        margin-right: 15px;
    }

    .product-grid::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 90%;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-card {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .product-card:active {
        transform: scale(0.98) !important;
    }
}

/* Logo Animation - older "discrete" multicolor (stepped) effect */
.logo h1 {
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #8f00ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Use steps() to create the "old-school" color jumps instead of a smooth slide */
    animation: logo-rainbow 3s steps(7) infinite;
    background-size: 700% 100%;
}

@keyframes logo-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 700% 50%; }
}
@keyframes waveEffect {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@media screen and (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-links {
        width: 100%;
        max-width: none;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-description .features {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    

@media screen and (max-width: 375px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .product-card {
        padding: 0.8rem;
    }
    
    .product-icon i {
        font-size: 1.5rem;
    }
    
    .product-category {
        font-size: 0.9rem;
    }
    
    .product-description .features {
        font-size: 0.75rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Sidebar Styles */
/* SIDEBAR - PASTIKAN TERTUTUP DEFAULT */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; /* SIDEBAR DI LUAR LAYAR */
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(72, 52, 212, 0.8), rgba(104, 109, 224, 0.8), rgba(48, 51, 107, 0.8));
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    display: block;
}

/* Ketika sidebar aktif (terbuka) */
.sidebar.active {
    left: 0; /* SIDEBAR MASUK KE LAYAR */
}

/* Tombol hamburger - SEMBUNYIKAN DI DESKTOP */
.hamburger {
    display: none;
}

/* Tampilkan hamburger hanya di mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* TAMPILKAN DI MOBILE */
    }
    
    .desktop-menu {
        display: none !important; /* SEMBUNYIKAN MENU DESKTOP DI MOBILE */
    }
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    margin: 5px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-nav a i {
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover i {
    transform: rotate(360deg) scale(1.2);
    color: #00ff88;
}

/* Sidebar Footer Enhancement */
.sidebar-footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sidebar-footer .social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer .social-links a:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-footer .social-links a:hover i {
    animation: socialIconPop 0.3s ease;
}

@keyframes socialIconPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Sidebar Header Animation */
.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(65, 105, 225, 0.2),
        rgba(147, 112, 219, 0.2)
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

/* Animasi background gradient */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(65, 105, 225, 0.2) 0%,
        rgba(147, 112, 219, 0.2) 25%,
        rgba(65, 105, 225, 0.2) 50%,
        rgba(147, 112, 219, 0.2) 75%,
        rgba(65, 105, 225, 0.2) 100%
    );
    background-size: 400% 400%;
    animation: gradientFlow 8s ease infinite;
    z-index: 1;
}

/* Text Menu Animation */
.sidebar-header h2 {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textGlow 2s ease-in-out infinite;
}

/* Efek garis bawah bergerak */
.sidebar-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #fff, transparent);
    transform: translateX(-50%);
    animation: underlineMove 3s ease infinite;
}

/* Efek highlight letters */
.sidebar-header h2 span {
    display: inline-block;
    animation: letterWave 2s ease infinite;
    animation-delay: calc(0.1s * var(--i));
}

/* Keyframes untuk animasi */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3),
                     0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes underlineMove {
    0% { width: 0; opacity: 0; }
    50% { width: 80%; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

@keyframes letterWave {
    0%, 100% {
        transform: translateY(0);
        color: #fff;
    }
    50% {
        transform: translateY(-5px);
        color: #4b6cb7;
    }
}

/* Hover Effects */
.sidebar-header:hover h2 {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.sidebar-header:hover::before {
    animation-play-state: paused;
}

/* Media Queries */
@media (max-width: 768px) {
    .sidebar-header h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-header::before,
    .sidebar-header h2,
    .sidebar-header h2::after {
        animation: none;
    }
}

/* Mobile Social Icons Visibility */
@media screen and (max-width: 768px) {
    .mobile-social-icons {
        display: none !important;
    }
    
    
    .header-container {
        padding: 0 1rem;
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        margin: 0;
    }
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.close-sidebar i {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover effects */
.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.close-sidebar:hover i {
    transform: scale(1.2);
}

/* Active state */
.close-sidebar:active {
    transform: scale(0.95);
}

/* Hanya menghilangkan animasi wave di products section */
.products .wave {
    animation: none; /* Menghentikan animasi wave */
    opacity: 0; /* Membuat wave tidak terlihat */
}

/* Atau alternatif lain jika yang di atas tidak bekerja */
.products .wave1,
.products .wave2,
.products .wave3,
.products .wave4,
.products .wave5 {
    animation: none;
    opacity: 0;
}

/* Jika ada keyframes untuk auto-scroll, nonaktifkan */
@keyframes autoScroll {
    /* Nonaktifkan animasi auto-scroll jika ada */
    0%, 100% {
        transform: none;
    }
}

/* Responsive styling untuk products section */
.products {
    padding: clamp(40px, 5vw, 80px) 0;
    width: 100%;
}

.product-grid {
    display: flex;
    gap: clamp(20px, 2vw, 30px);
    padding: 20px clamp(20px, 5vw, 60px);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.product-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px; /* Default untuk mobile */
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .product-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 30px 40px;
    }

    .product-card {
        flex: 0 0 calc(50% - 20px);
        max-width: 300px;
    }
}

/* Styling untuk konten dalam product card */
.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(20px, 3vw, 30px);
}

.product-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.product-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.product-price {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Optimasi performa scroll */
.product-grid {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Styling untuk tombol carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: yellow;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Pastikan product grid bisa di-scroll */
.product-grid {
    position: relative;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.product-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px; /* atau sesuaikan dengan kebutuhan */
}

/* Sembunyikan scrollbar tapi tetap bisa scroll */
.product-grid::-webkit-scrollbar {
    display: none;
}

.product-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* Styling untuk carousel container */
.products {
    position: relative;
    overflow: hidden;
}

/* Efek glass morphism untuk product cards */
.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Styling untuk tombol carousel yang lebih menarik */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: yellow;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.carousel-btn:hover::before {
    transform: scale(1);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.prev-btn:hover i {
    transform: translateX(-3px);
}

.next-btn:hover i {
    transform: translateX(3px);
}

/* Animasi untuk product cards */
.product-card {
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Efek hover untuk product images */
.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Efek gradient untuk price tag */
.product-price {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    padding: 10px 15px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.product-card:hover .product-price {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: yellow;
    transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 1rem;
    }
    
    .product-card {
        animation: none; /* Disable floating animation on mobile */
    }
}

/* Smooth scrolling behavior */
.product-grid {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 40px;
    gap: 30px;
}

/* Active card effect */
.product-card.active {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Styling untuk container products */
.products {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.product-grid {
    display: flex;
    gap: 20px;
    padding: 20px 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
    touch-action: pan-x pan-y;
}

.product-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Styling untuk product cards */
.product-card {
    flex: 0 0 auto;
    width: 300px; /* Base width */
    max-width: 90vw; /* Prevent overflow on small screens */
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

/* Styling untuk navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: yellow;
    z-index: 10;
    transition: all 0.3s ease;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-grid {
        padding: 20px;
        gap: 15px;
    }

    .product-card {
        width: 280px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* Active state for drag scrolling */
.product-grid.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Prevent text selection while scrolling */
.product-grid {
    user-select: none;
}

/* Optimize touch interaction */
@media (hover: none) {
    .product-grid {
        scroll-snap-type: x mandatory;
    }

    .product-card {
        scroll-snap-align: center;
    }
}

/* Improve performance */
.product-card {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Products Section - Horizontal scroll */
.products-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-container::-webkit-scrollbar {
    display: none;
}

.products-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    margin: 0 auto;
}

.product-card {
    flex: 0 0 300px;
    min-width: 300px;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    scroll-snap-align: center;
    margin-right: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide scrollbar */
.products-container::-webkit-scrollbar {
    display: none;
}

.products-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Optional: Add grab cursor for better UX */
.products-container {
    cursor: grab;
}

.products-container:active {
    cursor: grabbing;
}

/* Performance Optimizations for Products Section */
.products-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    width: 100%;
    position: relative;
    will-change: transform;
}

.products-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    will-change: transform;
}

.product-card {
    flex: 0 0 300px;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

/* Hide scrollbar while maintaining functionality */
.products-container::-webkit-scrollbar {
    display: none;
}

.products-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive sizing */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    .products-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    .products-wrapper {
        padding: 0 10px;
        gap: 10px;
    }
}

/* Settings Page Styles */
.settings-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.setting-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4b6cb7;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Select Dropdown */
.setting-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 150px;
}

.setting-select option {
    background: #2c3e50;
    color: #fff;
}

/* Range Slider */
.setting-range {
    width: 150px;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4b6cb7;
    cursor: pointer;
}

.setting-range-value {
    color: #fff;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Buttons */
.settings-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4b6cb7;
    color: yellow;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Theme Preview */
.theme-preview {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-option.active {
    border-color: #4b6cb7;
    transform: scale(1.1);
}

.theme-blue { background: linear-gradient(45deg, #4b6cb7, #182848); }
.theme-purple { background: linear-gradient(45deg, #6a3093, #a044ff); }
.theme-green { background: linear-gradient(45deg, #11998e, #38ef7d); }
.theme-orange { background: linear-gradient(45deg, #ff8c00, #ff2d00); }

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(75, 108, 183, 0.9);
    color: yellow;
    border-radius: 8px;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Theme Classes */
body.theme-blue {
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
}

body.theme-purple {
    --primary-color: #6a3093;
    --secondary-color: #a044ff;
}

body.theme-green {
    --primary-color: #11998e;
    --secondary-color: #38ef7d;
}

body.theme-orange {
    --primary-color: #ff8c00;
    --secondary-color: #ff2d00;
}

/* No Animations */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}

@media (max-width: 768px) {
    .settings-container {
        margin: 80px 15px 30px;
        padding: 15px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .settings-buttons {
        flex-direction: column;
    }
}

/* Settings Page Styles */
body.settings-page {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1b2f4e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow-x: hidden;
}

.settings-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
}

.settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.setting-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4b6cb7;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Select Dropdown */
.setting-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 150px;
}

.setting-select option {
    background: #2c3e50;
    color: #fff;
}

/* Range Slider */
.setting-range {
    width: 150px;
    -webkit-appearance: none;
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4b6cb7;
    cursor: pointer;
}

.setting-range-value {
    color: #fff;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Buttons */
.settings-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4b6cb7;
    color: yellow;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Theme Preview */
.theme-preview {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.theme-option.active {
    border-color: #4b6cb7;
    transform: scale(1.1);
}

.theme-blue { background: linear-gradient(45deg, #4b6cb7, #182848); }
.theme-purple { background: linear-gradient(45deg, #6a3093, #a044ff); }
.theme-green { background: linear-gradient(45deg, #11998e, #38ef7d); }
.theme-orange { background: linear-gradient(45deg, #ff8c00, #ff2d00); }

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(75, 108, 183, 0.9);
    color: yellow;
    border-radius: 8px;
    z-index: 10000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Sidebar Overlay Fix */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Theme Classes */
body.theme-blue {
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
}

body.theme-purple {
    --primary-color: #6a3093;
    --secondary-color: #a044ff;
}

body.theme-green {
    --primary-color: #11998e;
    --secondary-color: #38ef7d;
}

body.theme-orange {
    --primary-color: #ff8c00;
    --secondary-color: #ff2d00;
}

/* No Animations */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}

@media (max-width: 768px) {
    .settings-container {
        margin: 80px 15px 30px;
        padding: 15px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .settings-buttons {
        flex-direction: column;
    }
}

/* =========================================
   SETTINGS PAGE FIXES
   ========================================= */
   
   /* Settings Container */
.settings-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
}

/* Sidebar untuk Settings Page */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(72, 52, 212, 0.95), rgba(104, 109, 224, 0.95));
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}


.sidebar.active {
    left: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* === Hamburger Button Fix === */
.hamburger {
    display: none; /* sembunyikan di desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    margin-left: auto;
}

/* Tampilkan tombol hamburger hanya di tampilan mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}
    
    .desktop-menu {
        display: none !important;
    }
    
    .sidebar {
        width: 85%;
        max-width: 300px;
    }
}

/* Theme Classes */
body.theme-blue {
    --primary-color: #4b6cb7;
    --secondary-color: #182848;
}

body.theme-purple {
    --primary-color: #6a3093;
    --secondary-color: #a044ff;
}

body.theme-green {
    --primary-color: #11998e;
    --secondary-color: #38ef7d;
}

body.theme-orange {
    --primary-color: #ff8c00;
    --secondary-color: #ff2d00;
}

/* No Animations */
body.no-animations * {
    animation: none !important;
    transition: none !important;
}

/*DATA ACCOUNT */
/* Account Page Styles */
.account-profile {
    padding: 100px 20px 50px;
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1b2f4e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4b6cb7;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    color: yellow;
    font-size: 1.5rem;
}

.profile-info h1 {
    color: yellow;
    font-size: 2rem;
    margin-bottom: 5px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4b6cb7;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}


.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.08;
    letter-spacing: 3px;
    text-shadow: 0 4px 32px rgba(72,52,212,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}

.animated-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
    gap: 0.08em;
    font-size: inherit;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 4px 32px rgba(72,52,212,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
}

.animated-title span {
    font-size: inherit;
    line-height: inherit;
    margin: 0 0.02em;
    font-weight: 800;
}

.profile-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    .animated-text {
        font-size: 1rem;
        line-height: 1.5;
        padding: 5px;
        letter-spacing: 0.3px;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .animated-title {
        font-size: 2.1rem;
    }
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .hero-content h1,
    .animated-title {
        font-size: 1.3rem;
    }
.nav-btn.active {
    background: rgba(75, 108, 183, 0.2);
    color: #4b6cb7;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: yellow;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b6cb7;
}

.save-btn {
    background: #4b6cb7;
    color: yellow;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #3a5a9c;
    transform: translateY(-2px);
}

.security-settings,
.preference-settings {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.security-item,
.preference-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.security-item h3,
.preference-item h3 {
    color: yellow;
    margin-bottom: 20px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-item span {
    color: yellow;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-nav {
        flex-wrap: wrap;
    }
}

/* =========================================
   HORIZONTAL SCROLL FIX - TAMBAHKAN DI AKHIR FILE
   ========================================= */

/* Container utama untuk scroll horizontal */
.products-container {
    width: 100%;
    overflow-x: auto; /* Scroll horizontal */
    overflow-y: hidden; /* Matikan scroll vertikal */
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll di iOS */
}

/* Wrapper untuk product cards */
.products-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content; /* Penting: biarkan lebar mengikuti konten */
}

/* Styling product card untuk layout horizontal */
.product-card {
    flex: 0 0 300px; /* Tidak bisa menyusut/membesar, fixed width 300px */
    min-width: 300px; /* Minimum width */
    opacity: 1 !important; /* Pastikan selalu terlihat */
    transform: none !important; /* Hapus transform vertikal */
}

/* Sembunyikan scrollbar tapi tetap bisa scroll */
.products-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.products-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .products-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .products-wrapper {
        padding: 0 10px;
        gap: 10px;
    }
}

/* =========================================
   HORIZONTAL SCROLL - UNIVERSAL SUPPORT
   ========================================= */

/* Container utama untuk scroll horizontal */
.products-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    /* Fix untuk mobile Safari */
    position: relative;
    z-index: 1;
    /* Allow pointer-based horizontal dragging while preserving vertical page scroll */
    touch-action: pan-y;
    cursor: grab;
}

/* Sembunyikan scrollbar di Webkit browsers */
.products-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Wrapper untuk product cards */
.products-scroll-wrapper {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content; /* Penting untuk scroll horizontal */
    min-width: 100%;
    
    /* Optimasi performance */
    will-change: transform;
    backface-visibility: hidden;
}

/* Product card styling untuk horizontal layout */
.product-card {
    flex: 0 0 300px; /* Fixed width, no grow/shrink */
    min-width: 300px;
    opacity: 1 !important;
    transform: none !important;
    
    /* Reset animation interference */
    animation: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* =========================================
   RESPONSIVE BREAKPOINTS - ALL DEVICES
   ========================================= */

/* Tablet & Small Laptop (768px - 1024px) */
@media (max-width: 1024px) {
    .product-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .products-scroll-wrapper {
        padding: 0 15px;
        gap: 15px;
    }
}

/* Mobile Landscape & Small Tablet (576px - 768px) */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .products-scroll-wrapper {
        padding: 0 15px;
        gap: 12px;
    }
    
    .products-scroll-container {
        padding: 15px 0;
    }
}

/* Mobile Portrait (414px - 576px) - iPhone 6/7/8 Plus */
@media (max-width: 576px) {
    .product-card {
        flex: 0 0 240px;
        min-width: 240px;
    }
    
    .products-scroll-wrapper {
        padding: 0 12px;
        gap: 10px;
    }
}

/* Small Mobile (375px - 414px) - iPhone 6/7/8/X */
@media (max-width: 414px) {
    .product-card {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .products-scroll-wrapper {
        padding: 0 10px;
        gap: 8px;
    }
}

/* Extra Small Mobile (320px - 375px) - iPhone 5/SE */
@media (max-width: 375px) {
    .product-card {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .products-scroll-wrapper {
        padding: 0 8px;
        gap: 6px;
    }
}

/* =========================================
   TOUCH DEVICE OPTIMIZATIONS
   ========================================= */

/* Improve touch scrolling */
@media (hover: none) and (pointer: coarse) {
    .products-scroll-container {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .product-card {
        scroll-snap-align: start;
    }
}

/* High DPI Screens (Retina displays) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .products-scroll-container {
        /* Tambahan optimasi untuk retina */
    }
}

/* =========================================
   FALLBACK FOR OLD BROWSERS
   ========================================= */

/* Fallback untuk browser yang tidak support flexbox */
.no-flexbox .products-scroll-wrapper {
    display: block;
    yellow-space: nowrap;
}

.no-flexbox .product-card {
    display: inline-block;
    vertical-align: top;
    yellow-space: normal;
}

/* Print Styles */
@media print {
    .products-scroll-container {
        overflow: visible !important;
    }
    
    .products-scroll-wrapper {
        flex-wrap: wrap;
        width: 100% !important;
    }
}

/* =========================================
   ACCOUNT PAGE STYLES
   ========================================= */

body.account-page {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1b2f4e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

.account-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.account-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar {
    position: relative;
    cursor: pointer;
    width: 150px;
    height: 150px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4b6cb7;
    transition: all 0.3s ease;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    color: yellow;
    font-size: 2rem;
}

.profile-info h1 {
    color: yellow;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.profile-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #4b6cb7;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.account-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: rgba(75, 108, 183, 0.2);
    color: #4b6cb7;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: yellow;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4b6cb7;
    box-shadow: 0 0 10px rgba(75, 108, 183, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.save-btn {
    background: #4b6cb7;
    color: yellow;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.save-btn:hover {
    background: #3a5a9c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 108, 183, 0.4);
}

.security-section,
.preference-section,
.billing-section,
.notification-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.security-section:last-child,
.preference-section:last-child,
.billing-section:last-child,
.notification-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.security-section h3,
.preference-section h3,
.billing-section h3,
.notification-section h3 {
    color: yellow;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-item span {
    color: yellow;
    font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4b6cb7;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Sessions List */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.session-item i {
    font-size: 1.5rem;
    color: #4b6cb7;
}

.session-info {
    flex: 1;
}

.session-info span {
    color: yellow;
    font-weight: 500;
}

.session-info small {
    color: rgba(255, 255, 255, 0.7);
}

.logout-session {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-session:hover {
    background: #f44336;
    color: yellow;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.payment-card i {
    font-size: 2rem;
    color: #4b6cb7;
}

.payment-card span {
    color: yellow;
    flex: 1;
}

.remove-card {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-card:hover {
    background: #f44336;
    color: yellow;
}

.add-card-btn {
    background: rgba(75, 108, 183, 0.2);
    color: #4b6cb7;
    border: 2px dashed #4b6cb7;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.add-card-btn:hover {
    background: rgba(75, 108, 183, 0.3);
}

/* Billing History */
.billing-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.invoice-info {
    flex: 1;
}

.invoice-info span {
    color: yellow;
    font-weight: 500;
}

.invoice-info small {
    color: rgba(255, 255, 255, 0.7);
}

.invoice-amount {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1.1rem;
}

.download-invoice {
    background: rgba(75, 108, 183, 0.2);
    color: #4b6cb7;
    border: 1px solid #4b6cb7;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-invoice:hover {
    background: #4b6cb7;
    color: yellow;
}

/* Notification Styles */
.notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE DESIGN - ACCOUNT PAGE
   ========================================= */

@media (max-width: 768px) {
    .account-container {
        margin: 80px 15px 30px;
        padding: 0 10px;
    }
    
    .account-header {
        padding: 30px 20px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .account-content {
        padding: 20px;
    }
    
    .account-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        text-align: left;
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .security-section,
    .preference-section,
    .billing-section,
    .notification-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-info h1 {
        font-size: 1.5rem;
    }
    
    .toggle-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .session-item,
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* =========================================
   PURCHASE HISTORY STYLES
   ========================================= */

.purchase-history-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: yellow;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.history-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.history-filters select,
.history-filters input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
    min-width: 200px;
}

.filter-btn {
    background: #4b6cb7;
    color: yellow;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #3a5a9c;
}

.purchase-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchase-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.purchase-item:hover {
    transform: translateY(-2px);
    border-color: rgba(75, 108, 183, 0.5);
}

.purchase-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.purchase-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.purchase-id strong {
    color: yellow;
    font-size: 1.1rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid #FF9800;
}

.status-badge.cancelled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.purchase-date {
    color: rgba(255, 255, 255, 0.7);
}

.purchase-body {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.product-info h4 {
    color: yellow;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.product-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.purchase-amount {
    color: #4b6cb7;
    font-size: 1.3rem;
    font-weight: 700;
}

.purchase-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
}

.btn-primary {
    background: #4b6cb7;
    color: yellow;
}

.btn-primary:hover {
    background: #3a5a9c;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: yellow;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #4b6cb7;
}

.empty-state h3 {
    color: yellow;
    margin-bottom: 10px;
}

/* =========================================
   DASHBOARD STYLES
   ========================================= */

.dashboard-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(75, 108, 183, 0.5);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(75, 108, 183, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #4b6cb7;
}

.stat-info h3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-number {
    color: yellow;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.8rem;
}

.stat-change.positive {
    color: #4CAF50;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chart-section, .recent-activity {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-section h3, .recent-activity h3 {
    color: yellow;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(75, 108, 183, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    color: #4b6cb7;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
}

.activity-action {
    color: yellow;
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
    .purchase-history-container,
    .dashboard-container {
        margin: 80px 15px 30px;
        padding: 0 10px;
    }
    
    .history-filters {
        flex-direction: column;
    }
    
    .history-filters select,
    .history-filters input {
        min-width: auto;
        width: 100%;
    }
    
    .purchase-body {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .purchase-footer {
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .purchase-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================
   ACCOUNT PAGE ANIMATED BACKGROUND
   ========================================= */

body.account-page {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background: #302b63;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Background Elements */
.account-bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Animated Orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4b6cb7 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6a3093 0%, transparent 70%);
    bottom: 5%;
    right: 5%;
    animation-delay: -7s;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00b4db 0%, transparent 70%);
    top: 60%;
    left: 80%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -80px) scale(1.1);
    }
    50% {
        transform: translate(-80px, 50px) scale(0.9);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* Floating Particles */
.bg-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Grid Pattern */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(75, 108, 183, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 108, 183, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    border: 2px solid rgba(75, 108, 183, 0.3);
    border-radius: 50%;
    animation: pulseRing 4s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        width: 100px;
        height: 100px;
        opacity: 1;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Neon Glow Effect untuk Container */
.account-container {
    position: relative;
}

.account-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #6a3093;
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: containerGlow 6s ease-in-out infinite;
}

@keyframes containerGlow {
    0%, 100% {
        opacity: 0.2;
        filter: blur(5px);
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.4;
        filter: blur(10px);
        background-position: 100% 50%;
    }
}

/* Enhanced Glass Effect untuk Content */
.account-header, .account-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.account-header::before, .account-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.account-header:hover::before, .account-content:hover::before {
    left: 100%;
}

/* Profile Avatar Glow */
.profile-avatar {
    animation: avatarPulse 4s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(75, 108, 183, 0.5),
            inset 0 0 20px rgba(75, 108, 183, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(106, 48, 147, 0.8),
            inset 0 0 30px rgba(106, 48, 147, 0.3);
    }
}

/* Tab Button Hover Effects */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.save-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.save-btn:hover::before {
    left: 100%;
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(75, 108, 183, 0.5),
        0 4px 15px rgba(106, 48, 147, 0.3);
}

/* =========================================
   DESKTOP NAVBAR PROFESSIONAL STYLING
   ========================================= */

/* Container Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
    backdrop-filter: blur(10px);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px; /* tighter kern for logo */
    margin: 0;
    /* Multicolor stepped rainbow (old-school feel) */
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* ensure background-clip shows through */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, opacity 0.25s ease;
    animation: logo-rainbow 3s steps(7) infinite;
}

.logo h1:hover {
    transform: scale(1.05);
}

/* Desktop Menu - PROFESSIONAL LAYOUT */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem;
}

.desktop-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    yellow-space: nowrap;
}

.desktop-menu a i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.desktop-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.desktop-menu a:hover i {
    transform: scale(1.2);
}

/* Active State */
.desktop-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Underline Animation */
.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.desktop-menu a:hover::after {
    width: 80%;
}

/* Logout Button Styling */
.logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    border: none;
    color: yellow;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    yellow-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.logout-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.logout-btn:hover i {
    transform: rotate(180deg);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Mobile Social Icons - Desktop Version */
.mobile-social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-social-icons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hamburger - Hide on Desktop */
.hamburger {
    display: none;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Large Desktop */
@media (max-width: 1024px) {
    .hero {
        min-height: 60vh;
        padding: 60px 12px 40px 12px;
    }
    .hero-content {
        padding: 0 1.5rem;
    }
    .hero-content h1,
    .animated-title {
        font-size: 2.7rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 48vh;
        padding: 40px 6px 24px 6px;
    }
    .hero-content {
        padding: 0 0.5rem;
        border-radius: 18px;
    }
    .hero-content h1,
    .animated-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }
    .animated-title {
        gap: 0.04em;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 36vh;
        padding: 24px 2px 12px 2px;
    }
    .hero-content h1,
    .animated-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
}
    
    .desktop-menu {
        gap: 0.3rem;
    }
    
    .desktop-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

/* Mobile - Switch to hamburger menu */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-social-icons {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .header-container {
        padding: 0 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
}

/* =========================================
   ADDITIONAL EFFECTS FOR NAVBAR
   ========================================= */

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glass Morphism Effect */
.navbar {
    background: rgba(72, 52, 212, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth Transitions */
.desktop-menu a,
.logout-btn,
.mobile-social-icons a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Border Effect for Active Items */
.desktop-menu a.active {
    position: relative;
}

.desktop-menu a.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4834d4, #686de0);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.7;
}

/* Pulse Animation for Notifications */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

.desktop-menu a.has-notification {
    animation: pulse-glow 2s infinite;
    position: relative;
}

.desktop-menu a.has-notification::after {
    content: '●';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.6rem;
    color: #ff6b6b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =========================================
   NAVBAR RESPONSIVE FIX - PASTE DI BAWAH
   ========================================= */

/* Desktop Navbar - TAMPIL HANYA DI DESKTOP */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem;
}

.mobile-social-icons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Hamburger - SEMBUNYI DI DESKTOP */
.hamburger {
    display: none;
}

/* =========================================
   MOBILE STYLES (Max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* SEMBUNYIKAN DESKTOP MENU DI MOBILE */
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-social-icons {
        display: none !important;
    }
    
    /* TAMPILKAN HAMBURGER DI MOBILE */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        margin-left: auto;
    }
    
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* Animasi Hamburger */
    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* =========================================
   SIDEBAR MOBILE - PASTE INI JUGA
   ========================================= */
.sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(72, 52, 212, 0.95), rgba(104, 109, 224, 0.95));
    backdrop-filter: blur(10px);
    z-index: 1111; /* must be above overlay so clicks reach sidebar */
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.sidebar.active {
    left: 0;
    display: block;
}

.sidebar-header h2 {
    /* Replace yellow text with the same multicolor treatment as the header logo */
    font-size: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1.2px; /* adjusted kerning for sidebar title */
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-rainbow 3s steps(7) infinite;
}

.close-sidebar {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4b6cb7;
    transform: translateX(5px);
}

.sidebar-nav a i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sidebar-footer .social-links a {
    color: #fff;
    font-size: 1.3rem;
}

/* Overlay untuk sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100; /* below sidebar but above page content */
    display: none;
    pointer-events: none; /* only catch events when active */
}

.sidebar-overlay.active {
    display: block;
    pointer-events: auto;
}

/* === QUICK FIX: Navbar & Hero Tidak Overlap, Layering Rapi, Anchor Scroll Aman === */
:root {
  --header-height: 70px; /* Pastikan sama dengan tinggi navbar */
}

/* Offset scroll agar anchor link tidak tertutup navbar */
html {
  scroll-padding-top: var(--header-height);
}

/* Setiap section, hero, dsb. tidak tertutup navbar saat di-scroll */
section, .hero, header, .products {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

/* Hero section punya padding-top agar tidak tertutup navbar */
.hero {
  padding-top: calc(var(--header-height) + 20px);
}

/* Hero content selalu di atas wave/overlay */
.hero-content {
  z-index: 5 !important;
  position: relative;
}

/* Wave di bawah hero content */
.wave-container,
.wave {
  z-index: 2 !important;
}

/* ==================================================
   Desktop: Make navbar horizontally scrollable/draggable
   ================================================== */
.desktop-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* ie 10+ */
    yellow-space: nowrap;
    gap: 0.6rem;
}
.desktop-menu::-webkit-scrollbar { display: none; }
.desktop-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    font-size: 1.05rem;
    flex: 0 0 auto; /* prevent shrinking */
    yellow-space: nowrap;
}

/* Make the whole nav feel draggable */
.desktop-menu { cursor: grab; }
.desktop-menu:active { cursor: grabbing; }

/* ==================================================
   Section headers - bigger, centered, premium look
   ================================================== */
section h2,
.products h2,
.features h2,
.testimonials h2,
.contact h2 {
    display: inline-block;
    margin: 0 auto 1.6rem auto;
    padding: 0.9rem 1.6rem;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    color: #ffffff;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 10px 30px rgba(8,10,25,0.45);
    border: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0.6px;
}

/* Add breathing space for sections so header/panel stands out */
section { padding-top: 80px; padding-bottom: 80px; }

/* ==================================================
   Sidebar (mobile) - larger, grouped and clearer
   ================================================== */
.sidebar {
    width: 85%;
    max-width: 360px;
    padding: 18px 0 28px 0;
}
.sidebar-header h2 { font-size: 1.6rem; letter-spacing: 0.6px; }
.sidebar-nav ul { padding: 8px 0; }
.sidebar-nav li { border-top: 1px solid rgba(255,255,255,0.04); }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    font-size: 1.05rem;
    color: #fff;
}
.sidebar-nav a i { font-size: 1.2rem; width: 26px; text-align: center; }
.sidebar-logout .logout-btn { padding: 14px; font-size: 1rem; border-radius: 12px; }
.sidebar-footer { padding-top: 14px; }

/* Ensure overlay visible when active and above everything except navbar */
.sidebar-overlay { z-index: 1100; }

/* Small devices tweak */
@media (max-width: 480px) {
    section h2,
    .products h2,
    .features h2 {
        font-size: 1.6rem;
        padding: 0.6rem 1rem;
        border-radius: 10px;
    }
    .desktop-menu a { padding: 0.7rem 1rem; font-size: 0.95rem; }
}

/* ==================================================
   Unified section headings & hero h1 sizing
   - Center and tidy section headings
   - Make hero h1 match products h2 size
   ================================================== */
.section-heading,
.products h2,
.features h2,
.testimonials h2,
.contact h2 {
    display: block;
    text-align: center;
    margin: 0 auto 1.6rem auto;
    padding: 0;
    background: transparent !important; /* remove pill backgrounds for clean look */
    box-shadow: none !important;
    border: none !important;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.6px;
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* consistent size */
}

/* Ensure hero title matches section heading size and is centered */
.hero-content h1,
.hero .animated-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
    text-align: center !important;
    margin: 0.6rem auto 1rem auto !important;
    letter-spacing: 1.8px;
    line-height: 1.05;
}

/* Slight spacing tweak for smaller screens */
@media (max-width: 768px) {
    .section-heading,
    .products h2,
    .features h2,
    .testimonials h2,
    .contact h2,
    .hero-content h1 {
        font-size: clamp(1.4rem, 4vw, 1.8rem) !important;
        margin-bottom: 1rem;
    }
}

/* ==================================================
   Desktop-specific: smooth logo rainbow + tidy header
   - Make header logo and sidebar title use the same smooth rainbow
   - Prevent wrapping and keep header layout ordered on wide screens
   ================================================== */
@media (min-width: 769px) {
    /* Smooth continuous rainbow (same for logo + sidebar) */
    @keyframes logo-smooth {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto; /* avoid shrinking */
    }

    .logo h1 {
        yellow-space: nowrap;          /* keep logo on one line */
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 360px;            /* prevents overflow with long label */
        letter-spacing: 1px;         /* tidy kern */
        background-size: 200% 100%;
        animation: logo-smooth 6s linear infinite;
    }

    /* Sidebar title uses same smooth animation and keeps letters tidy */
    .sidebar-header h2 {
        yellow-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 260px;
        letter-spacing: 1px;
        background-size: 200% 100%;
        animation: logo-smooth 6s linear infinite;
    }

    /* Keep desktop menu from crowding the logo: allow it to flex and scroll if necessary */
    .desktop-menu {
        display: flex;
        gap: 0.6rem;
        margin-left: 1rem;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0; /* allow flex child to shrink properly */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar but keep scrollability */
    .desktop-menu::-webkit-scrollbar { height: 6px; }
    .desktop-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 6px; }
}

/* =========================================
   ACCORDION MENU STYLES - SIDEBAR MOBILE
   ========================================= */

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 5px 0;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.accordion-header i:first-child {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: #4b6cb7;
}

.accordion-header span {
    flex: 1;
    font-size: 0.95rem;
}

.accordion-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: #4b6cb7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-content li {
    list-style: none;
    margin: 0;
}

.accordion-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.accordion-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #4b6cb7;
    color: #fff;
    transform: translateX(3px);
}

.accordion-content a i {
    margin-right: 12px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
    color: #6a3093;
}

.accordion-content a::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Active state for accordion header */
.accordion-item.active .accordion-header {
    background: rgba(75, 108, 183, 0.15);
    border-left: 3px solid #4b6cb7;
    border-radius: 8px 8px 0 0;
}

/* Animation for accordion items */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item.active .accordion-content a {
    animation: slideDown 0.3s ease forwards;
}

.accordion-content a:nth-child(1) { animation-delay: 0.1s; }
.accordion-content a:nth-child(2) { animation-delay: 0.2s; }
.accordion-content a:nth-child(3) { animation-delay: 0.3s; }

/* Ensure proper spacing with existing sidebar styles */
.sidebar-nav ul li {
    margin: 0;
}

.sidebar-nav a {
    margin: 0;
}

/* =========================================
   FIXED ACCORDION STYLES - IMPROVED RESPONSIVENESS
   ========================================= */

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    gap: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 5px 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

/* Improved touch targets for mobile */
.accordion-header {
    min-height: 50px; /* Minimum touch target size */
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.accordion-header:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px) scale(0.98);
}

.accordion-header i:first-child {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: #4b6cb7;
    flex-shrink: 0;
}

.accordion-header span {
    flex: 1;
    font-size: 0.95rem;
    pointer-events: none;
}

.accordion-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    pointer-events: none;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: #4b6cb7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Increased for multiple items */
}

.accordion-content li {
    list-style: none;
    margin: 0;
}

.accordion-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    min-height: 44px; /* Better touch target */
    box-sizing: border-box;
}

.accordion-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #4b6cb7;
    color: #fff;
    transform: translateX(3px);
}

.accordion-content a:active {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px) scale(0.98);
}

.accordion-content a i {
    margin-right: 12px;
    font-size: 1rem;
    width: 16px;
    text-align: center;
    color: #6a3093;
    flex-shrink: 0;
}

.accordion-content a::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Active state for accordion header */
.accordion-item.active .accordion-header {
    background: rgba(75, 108, 183, 0.15);
    border-left: 3px solid #4b6cb7;
    border-radius: 8px 8px 0 0;
}

/* Animation for accordion items */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item.active .accordion-content a {
    animation: slideDown 0.3s ease forwards;
}

.accordion-content a:nth-child(1) { animation-delay: 0.1s; }
.accordion-content a:nth-child(2) { animation-delay: 0.2s; }
.accordion-content a:nth-child(3) { animation-delay: 0.3s; }
.accordion-content a:nth-child(4) { animation-delay: 0.4s; }

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .accordion-header {
        padding: 16px 15px;
        min-height: 54px; /* Larger touch target on mobile */
    }
    
    .accordion-content a {
        padding: 14px 15px 14px 45px;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    /* Better touch feedback */
    .accordion-header:active {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* High DPI screen improvements */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .accordion-header {
        border-width: 0.5px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .accordion-content {
        transition: none;
    }
    
    .accordion-content a {
        animation: none !important;
    }
}

/* =========================================
   UNIVERSAL ACTIVE STATES
   ========================================= */

.accordion-content a.active,
.sidebar-nav a.active {
    background: rgba(75, 108, 183, 0.2) !important;
    border-left: 3px solid #4b6cb7 !important;
    color: #fff !important;
}

.accordion-content a.active i,
.sidebar-nav a.active i {
    color: #4b6cb7 !important;
}

/* Desktop menu active state */
.desktop-menu a.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
}

/* =========================================
   SUPER SIMPLE ACCORDION STYLES - 100% WORK
   ========================================= */

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: yellow;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin: 5px 0;
    gap: 12px;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
    color: #4b6cb7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0,0,0,0.1);
}

.accordion-item.active .accordion-content {
    max-height: 500px; /* Sesuaikan dengan jumlah item */
}

.accordion-content li {
    list-style: none;
    margin: 0;
}

.accordion-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    border-left: 3px solid transparent;
}

.accordion-content a:hover {
    background: rgba(255,255,255,0.05);
    border-left-color: #4b6cb7;
    color: yellow;
}

/* Active state */
.accordion-item.active .accordion-header {
    background: rgba(75, 108, 183, 0.15);
    border-left: 3px solid #4b6cb7;
}

/* =========================================
   SIDEBAR & ACCORDION FIXED STYLES
   ========================================= */

/* SIDEBAR BASIC STYLES */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(72, 52, 212, 0.95), rgba(104, 109, 224, 0.95));
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* HAMBURGER ANIMATION */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: yellow;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ACCORDION STYLES */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: yellow;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 5px 0;
    gap: 12px;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.accordion-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px 12px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.accordion-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: yellow;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .sidebar {
        width: 85%;
        max-width: 300px;
    }
}

/* ===== TESTIMONIAL STATS ===== */

.testimonial-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.rating-box,
.sold-box {
  background: rgba(255,255,255,0.06);
  padding: 14px 22px;
  border-radius: 14px;
  color: #fff;
  text-align: center;
}

.stars {
  font-size: 1.3rem;
  color: #facc15; /* kuning bintang */
  letter-spacing: 2px;
}

.rating-text {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
}

.sold-count {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #a5b4fc;
}

.sold-text {
  display: block;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* MOBILE */
@media (max-width: 768px) {
  .testimonial-stats {
    gap: 16px;
  }
}

/* ===============================
   SOCIAL PROOF FINAL SYSTEM
================================ */
/* ===============================
   TESTIMONIAL – TEMA YOGI STORE
================================ */

/* =====================================
   YOGI STORE – TESTIMONIAL v10.2 (VVIP)
===================================== */

.ys-testimonial {
  padding: 70px 20px;
  background: linear-gradient(
    180deg,
    #6b21a8,
    #5b21b6,
    #312e81
  );
  color: #ffffff;
  text-align: center;
}

.ys-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* STAT GRID */
.ys-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.ys-card {
  background: rgba(255,255,255,0.16);
  padding: 18px 14px;
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.ys-card strong {
  font-size: 1.9rem;
  color: #e0e7ff;
}

.ys-card span {
  display: block;
  font-size: 0.85rem;
  opacity: 0.9;
}

.ys-stars {
  font-size: 1.3rem;
  color: #fde047;
}

/* STATUS BAR */
.ys-status {
  margin: 12px auto 20px;
  max-width: 900px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(255,255,255,0.18);
  border-radius: 18px;
}

.ys-status-item {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* DOT (TANPA MERAH) */
.ys-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

.ys-dot.online { background: #22c55e; }
.ys-dot.active { background: #38bdf8; }
.ys-dot.visit  { background: #a78bfa; }
.ys-dot.live   { background: #34d399; }

@keyframes pulse {
  0% { opacity: 1 }
  50% { opacity: .4 }
  100% { opacity: 1 }
}

/* LIVE BAR */
.ys-live {
  margin: 10px auto 22px;
  padding: 12px 16px;
  max-width: 900px;
  background: rgba(255,255,255,0.16);
  border-radius: 16px;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* TESTIMONI CARD */
.ys-testimonial-card {
  max-width: 620px;
  margin: auto;
  background: rgba(255,255,255,0.22);
  padding: 28px 26px;
  border-radius: 22px;
}

.ys-testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.ys-user {
  margin-top: 18px;
}

.ys-user strong {
  display: block;
  font-size: 1rem;
}

.ys-user span {
  font-size: 0.8rem;
  opacity: 0.85;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

/* KIRI */
.sidebar-left h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* KANAN */
.sidebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-login {
  color: #e0e7ff;
  font-size: 13px;
  text-decoration: none;
}

.sidebar-signup {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.close-sidebar {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
}

/* FIX HILANGKAN BACKGROUND PUTIH */
body {
    background: #0a0c1a url('images/login.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
}

#main-content {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.message, .toast, .notification, .alert {
    display: none !important;
}
