/* Global Visibility Rules - Ensure all elements are visible */
* {
    box-sizing: border-box;
}

/* Prevent scrolling issues - Ensure body and html can scroll */
html,
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure main content can scroll */
main,
#main-content {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure all buttons are visible */
button,
.btn,
.button,
a.btn,
a.button {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Ensure all images are visible */
img {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Ensure all sections are visible */
section,
.section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure navigation is visible */
nav,
.nav {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure nav-links are visible in mobile */
@media (max-width: 900px) {
    .nav-links {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        left: 0 !important;
        /* Pastikan menu muncul saat active */
        transform: translateX(0) !important;
        /* Pastikan tidak ada transform */
    }
}

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #121212;
    --accent-gold: #d4af37;
    --accent-blue: #2563eb;
    --accent-ai: #00f5ff;
    --text-primary: #f5f5f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-subtle: #27272a;
    --modal-overlay-bg: rgba(0, 0, 0, 0.85);
    --status-online: #00ff00;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-indigo: #6366f1;
    --accent-teal: #0d9488;
    --accent-orange: #f97316;
    --accent-cyan: #06b6d4;
    --accent-lime: #84cc16;
    --accent-emerald: #059669;
    --accent-violet: #7c3aed;
    --accent-fuchsia: #c026d3;
    --accent-rose: #e11d48;
    --accent-sky: #0ea5e9;
    --accent-amber: #f59e0b;
    --accent-yellow: #eab308;
    --accent-blue-ai: #3b82f6;
    --accent-gold-ai: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-border-hover: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    --glass-shadow-hover: rgba(0, 0, 0, 0.6);
    --button-bg: rgba(255, 255, 255, 0.2);
    --button-bg-hover: rgba(255, 255, 255, 0.3);
    --button-border: rgba(255, 255, 255, 0.3);
    --button-border-hover: rgba(255, 255, 255, 0.5);
    --input-bg: rgba(255, 255, 255, 0.2);
    --input-border: rgba(255, 255, 255, 0.3);
    --input-border-focus: rgba(255, 255, 255, 0.6);
    --theme-icon: '\f186';
    /* fa-moon */
}

/* Tema Terang */
[data-theme="light"] {
    --primary-dark: #f8fafc;
    --secondary-dark: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --border-subtle: #e2e8f0;
    --modal-overlay-bg: rgba(0, 0, 0, 0.6);
    --status-online: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 0, 0, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-shadow-hover: rgba(0, 0, 0, 0.15);
    --button-bg: rgba(0, 0, 0, 0.05);
    --button-bg-hover: rgba(0, 0, 0, 0.08);
    --button-border: rgba(0, 0, 0, 0.1);
    --button-border-hover: rgba(0, 0, 0, 0.2);
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-border-focus: rgba(59, 130, 246, 0.5);
    --theme-icon: '\f185';
    /* fa-sun */

    /* Menyesuaikan warna teks untuk kontras yang lebih baik */
    color: var(--text-primary);
}

/* Memastikan teks pada elemen-elemen tertentu terlihat jelas di tema terang */
[data-theme="light"] .section-title,
[data-theme="light"] .section-subtitle,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .review-text,
[data-theme="light"] .reviewer-name,
[data-theme="light"] .reviewer-position,
[data-theme="light"] .carousel-brand,
[data-theme="light"] .skill-category h3,
[data-theme="light"] .skill-item,
[data-theme="light"] .review-card,
[data-theme="light"] .slide,
[data-theme="light"] .section-header,
[data-theme="light"] .section-header *,
[data-theme="light"] .skill-category,
[data-theme="light"] .skill-category * {
    color: var(--text-primary) !important;
}

/* Menangani teks dengan style inline */
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:white"],
[data-theme="light"] [style*="color: rgba(255,255,255"] {
    color: var(--text-primary) !important;
}

/* Menangani teks dengan opacity */
[data-theme="light"] [style*="opacity:"] {
    opacity: 1 !important;
}

/* Menambahkan kontras untuk teks dengan bayangan di tema terang */
[data-theme="light"] h3[style*="text-shadow"],
[data-theme="light"] [style*="text-shadow"] {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3) !important;
    color: var(--text-primary) !important;
}

/* Menyesuaikan warna teks emas dan aksen di tema terang */
[data-theme="light"] [style*="color: var(--accent-gold)"],
[data-theme="light"] .accent-gold,
[data-theme="light"] .text-gold {
    color: #b78a2a !important;
}

/* Menangani teks dengan gaya inline */
[data-theme="light"] [style*="color: rgba(255, 255, 255, 0.9)"],
[data-theme="light"] [style*="color:rgba(255,255,255,0.9)"] {
    color: var(--text-primary) !important;
}

/* Memperbaiki kontras tombol carousel di tema terang */
[data-theme="light"] .carousel-controls,
[data-theme="light"] .carousel-controls i {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid var(--border-subtle) !important;
}

[data-theme="light"] .carousel-controls:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Menyesuaikan kontras teks untuk tema terang */
[data-theme="light"] .section-title,
[data-theme="light"] .section-subtitle,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary);
}

[data-theme="light"] .project-card,
[data-theme="light"] .ecosystem-category,
[data-theme="light"] .community-card,
[data-theme="light"] .skill-category {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
}

/* Mengatur teks di dalam kartu keahlian dan testimoni */
[data-theme="light"] .skill-category h3,
[data-theme="light"] .skill-item,
[data-theme="light"] .review-card,
[data-theme="light"] .review-text,
[data-theme="light"] .reviewer-name,
[data-theme="light"] .reviewer-position,
[data-theme="light"] .rating {
    color: #1a202c !important;
}

/* Memastikan kartu testimoni dan slide memiliki latar belakang putih di tema terang */
[data-theme="light"] .slide,
[data-theme="light"] .slide.active,
[data-theme="light"] .slide .review-card,
[data-theme="light"] .slide[style*="opacity: 1"] .review-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    color: #1a202c !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Default style untuk section header */
.section-header .section-title,
.section-header .section-subtitle {
    color: #1a202c !important;
}

/* Style untuk tema gelap */
[data-theme="dark"] .section-header .section-title,
[data-theme="dark"] .section-header .section-subtitle {
    color: #ffffff !important;
}

/* Style khusus untuk testimoni */
#testimonials .section-title,
#testimonials .section-subtitle,
#testimonials .carousel-brand {
    color: #ffffff !important;
}

/* Menu navigasi dan item menu */
.nav-links a,
.nav-links button,
.logo,
.menu-toggle {
    color: #ffffff !important;
}

/* Pastikan menu tetap putih di tema terang */
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-links button,
[data-theme="light"] .logo,
[data-theme="light"] .menu-toggle {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Style khusus untuk menu toggle di tema terang */
[data-theme="light"] .menu-toggle {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Memastikan avatar dan elemen lain di dalam kartu testimoni terlihat bagus */
[data-theme="light"] .review-card .avatar {
    border: 2px solid #e2e8f0 !important;
    background: white !important;
}

/* Memastikan rating bintang terlihat jelas */
[data-theme="light"] .rating {
    color: #f59e0b !important;
}

/* Memperbaiki border animasi di tema terang */
[data-theme="light"] .project-card-wrapper {
    background: transparent !important;
}

[data-theme="light"] .project-card-border {
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .animated-border {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .project-card:hover,
[data-theme="light"] .ecosystem-category:hover,
[data-theme="light"] .community-card:hover,
[data-theme="light"] .skill-category:hover {
    background: #ffffff !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

/* Gaya untuk logo di tema terang */
[data-theme="light"] .logo-item {
    background-color: #000000;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .logo-item img {
    filter: brightness(0) invert(1);
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

[data-theme="light"] .logo-item:hover img {
    transform: scale(1.1);
}

/* Floating Theme Toggle */
.floating-theme-toggle {
    position: fixed;
    left: 20px;
    bottom: 100px;
    /* Diubah dari 30px menjadi 100px - lebih mudah dijangkau */
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #333;
    opacity: 0.9;
}

[data-theme="dark"] .floating-theme-toggle {
    background: #333;
    border-color: white;
}

.floating-theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.theme-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Dark mode styles */
.floating-theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
    color: white;
}

.floating-theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(-90deg);
    color: #333;
}

/* Light mode styles */
[data-theme="light"] .floating-theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .floating-theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
    color: #333;
}

/* Circle background for icons */
.theme-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    z-index: 1;
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-icon-wrapper::before {
    background: white;
    border: 1px solid #333;
}

/* Animation for theme toggle */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.floating-theme-toggle:hover {
    animation: pulse 1.5s infinite;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Lazy Loading for Images - Ensure images are visible */
img[loading="lazy"] {
    opacity: 1 !important;
    transition: opacity 0.3s;
    visibility: visible !important;
    display: block !important;
}

img[loading="lazy"].loaded {
    opacity: 1 !important;
    visibility: visible !important;
}

/* All images should be visible by default */
img {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Profile images */
.profile-avatar img,
.profile-card img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* --- Language Switcher --- */
.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.language-btn.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.language-btn img {
    display: block;
    border-radius: 2px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 9998;
    padding: 1rem 0;
    transition: background 0.3s ease;
    overflow: visible;
    /* Memastikan menu mobile tidak terpotong */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100%;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
    margin: 0;
}

.logo span {
    color: var(--accent-gold);
}

.language-switcher {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.language-btn.active {
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.language-btn img {
    display: block;
    border-radius: 2px;
    width: 20px;
    height: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    /* Sedikit lebih besar untuk spacing yang lebih baik */
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    /* Prevent wrapping di desktop */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
    /* Prevent text wrapping */
    font-size: 0.95rem;
    /* Sedikit lebih kecil untuk lebih banyak ruang */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

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

.ai-status-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-ai);
    font-size: 0.85rem;
    opacity: 0.9;
    cursor: default;
    padding: 0.5rem 0.8rem;
    margin-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none;
    /* Sembunyi di desktop */
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Desktop: Pastikan hamburger tersembunyi dan nav-links visible */
@media (min-width: 901px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        left: auto !important;
        top: auto !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .nav-links li {
        width: auto !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .nav-links a {
        font-size: 0.95rem !important;
        padding-bottom: 4px !important;
    }
}

/* --- Responsive Styles --- */
/* Ubah breakpoint dari 1024px menjadi 900px */
@media (max-width: 900px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .logo-container {
        width: 100%;
        justify-content: space-between;
    }

    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-links {
        position: fixed !important;
        /* Pastikan fixed positioning */
        top: 70px !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: calc(100vh - 70px) !important;
        background: rgba(10, 10, 10, 0.98) !important;
        /* Background lebih solid untuk visibility */
        display: flex !important;
        /* Pastikan display flex */
        flex-direction: column !important;
        padding: 1.5rem 1rem !important;
        /* Kurangi padding untuk lebih compact */
        transition: left 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
        z-index: 10000 !important;
        /* Lebih tinggi dari nav dan overlay untuk visibility */
        backdrop-filter: blur(10px) !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5) !important;
        /* Shadow lebih kuat */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        visibility: visible !important;
        /* Pastikan visible */
        opacity: 1 !important;
        /* Pastikan opacity */
        margin: 0 !important;
        list-style: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        /* Border untuk visibility */
        pointer-events: auto !important;
        /* Pastikan menu bisa diklik */
    }

    .nav-links.active {
        left: 0 !important;
        /* Pastikan dengan !important */
        display: flex !important;
        /* Pastikan display flex saat active */
        visibility: visible !important;
        /* Pastikan visible saat active */
        opacity: 1 !important;
        /* Pastikan opacity saat active */
        position: fixed !important;
        /* Pastikan tetap fixed */
        transform: translateX(0) !important;
        /* Pastikan tidak ada transform yang menggeser */
        pointer-events: auto !important;
        /* Pastikan menu bisa diklik saat active */
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        margin: 0.25rem 0 !important;
        /* Kurangi spacing dari 0.5rem menjadi 0.25rem */
        padding: 0 !important;
        pointer-events: auto !important;
        /* Pastikan li bisa diklik */
    }

    .nav-links a {
        font-size: 1rem !important;
        /* Sedikit lebih kecil dari 1.1rem */
        padding: 0.5rem 0 !important;
        /* Kurangi spacing dari 0.75rem menjadi 0.5rem */
        display: block;
        width: 100%;
        line-height: 1.4 !important;
        /* Line height lebih compact */
        pointer-events: auto !important;
        /* Pastikan links bisa diklik */
        cursor: pointer !important;
        /* Pastikan cursor pointer */
        position: relative;
        z-index: 10001 !important;
        /* Lebih tinggi dari overlay untuk memastikan bisa diklik */
        color: var(--text-primary) !important;
        /* Pastikan warna text visible */
    }

    .nav-links a:hover {
        color: var(--accent-gold) !important;
        /* Hover effect */
        background: rgba(255, 255, 255, 0.05) !important;
        /* Subtle hover background */
    }

    .language-switcher {
        margin: 20px 0;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
        /* Tampilkan hanya di mobile/tablet */
    }

    .ai-status-item {
        border-left: none;
        margin-left: 0;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }

    /* Overlay untuk mobile menu - TIDAK menutupi menu area */
    /* Overlay hanya di area di luar menu (di belakang menu) */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998 !important;
        /* Lebih rendah dari menu (10000) - menu akan berada di atas */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-links.active::before {
        opacity: 1;
        pointer-events: all;
        /* Overlay di belakang menu - menu (z-index 10000) akan berada di atas overlay */
    }
}

/* Main Content */
.main {
    margin-top: 70px;
}

.container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem 0;
    background: radial-gradient(ellipse at top, var(--secondary-dark), var(--primary-dark) 70%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--accent-gold), #ffdf7c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-gold);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    outline: none;
}

.hero-cta-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;
}

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

.hero-cta-btn:hover {
    /* Transform akan di-handle oleh masing-masing button class */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-cta-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.hero-cta-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.hero-cta-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #f472b6);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: white;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3),
        0 0 20px rgba(236, 72, 153, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #db2777, #f43f5e);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-cta-primary:hover::after {
    left: 100%;
}

.hero-cta-secondary {
    background: linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4, #00f5ff);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3),
        0 0 20px rgba(6, 182, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-cta-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-cta-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb, #0891b2, #00d9ff);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-cta-secondary:hover::after {
    left: 100%;
}

.hero-cta-accent {
    background: linear-gradient(135deg, #d97706, #f59e0b, #fbbf24, #fcd34d);
    background-size: 200% 200%;
    animation: gradient-shift 3.5s ease infinite;
    color: #0a0a0a;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3),
        0 0 20px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-cta-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.hero-cta-accent:hover {
    background: linear-gradient(135deg, #b45309, #d97706, #f59e0b, #fbbf24);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5),
        0 0 40px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.hero-cta-accent:hover::after {
    left: 100%;
}

/* Gradient animation untuk efek bergerak */
@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-cta-tertiary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
}

.hero-cta-tertiary:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cta-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.cta-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.cta-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-cta-btn:hover .cta-arrow {
    transform: translateX(5px);
}

/* Responsive Hero CTA */
@media (max-width: 768px) {
    .hero-cta-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .hero-cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    .cta-icon {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-cta-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Keyframe Animations for Profile Card --- */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes breathe-glow {

    0%,
    50%,
    100% {
        opacity: 0.1;
    }

    /* Tetap dalam kondisi transparan lebih lama */
    75% {
        opacity: 0.5;
    }

    /* Puncak glow yang sangat tipis */
}

/* --- Profile Card Styles --- */
.profile-card {
    background: rgba(30, 30, 45, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Combined glass frame and glow border effect */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    border-radius: 36px;
    /* Glass frame gradient */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.25) 25%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.25) 75%,
            rgba(255, 255, 255, 0.6) 100%);
    /* Animated glow underneath glass */
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue), var(--accent-gold), var(--accent-ai));
    background-size: 300% 300%, 100% 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.4);
    animation:
        gradient-animation 15s linear infinite,
        breathe-glow 12s ease-in-out infinite;
    filter: blur(12px);
}

.profile-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    border-width: 5px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-card:hover::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.35) 25%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.35) 75%,
            rgba(255, 255, 255, 0.8) 100%), linear-gradient(135deg, var(--accent-ai), var(--accent-blue), var(--accent-gold), var(--accent-ai));
    background-size: 100% 100%, 400% 400%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.6);
    filter: blur(10px);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 4px;
    position: relative;
    overflow: hidden;
}

/* Glass frame effect for profile photo */
.profile-avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.1) 75%,
            rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    /* Memfokuskan pada bagian atas gambar */
    position: relative;
    z-index: 2;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.profile-avatar:hover::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.4);
}

.profile-avatar:hover img {
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1) contrast(1.05);
}

.profile-card h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 0 0;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sections - Default: All sections visible by default */
.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    display: block !important;
}

.section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero Section - Always visible */
#hero.hero,
#hero.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    display: block !important;
}

/* Profile Section - Ensure it's always visible */
#profil.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Trusted By Section - Ensure it's always visible */
#trusted-by.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Portfolio Section - Ensure it's always visible and scrollable */
#portofolio-ai.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure portfolio container doesn't block scrolling */
#portofolio-ai .container {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure projects grid doesn't block scrolling */
#portofolio-ai .projects-grid {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    align-items: stretch !important;
    /* Stretch untuk memastikan semua card sama tinggi */
}

/* Pastikan project-card-wrapper memotong animated-border tapi tidak mempengaruhi konten */
/* Teknik: overflow hidden pada wrapper, visible pada border container, mask CSS membuat border terlihat di semua sisi */
#portofolio-ai .project-card-wrapper {
    overflow: hidden !important;
    /* Potong animated-border yang lebih besar, mask CSS membuat border tetap terlihat di semua sisi */
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    height: 100% !important;
    /* Stretch ke tinggi grid */
    max-height: none !important;
    align-self: stretch !important;
    /* Stretch untuk memastikan semua card sama tinggi */
    display: flex !important;
    flex-direction: column !important;
}

/* Pastikan project-card (konten) tetap visible */
#portofolio-ai .project-card-wrapper>.project-card {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Pastikan project-card tidak memiliki scrollbar dan memiliki tinggi konsisten */
#portofolio-ai .project-card {
    overflow: visible !important;
    overflow-y: visible !important;
    height: 100% !important;
    /* Stretch ke tinggi wrapper */
    max-height: none !important;
    min-height: 450px !important;
    /* Min-height untuk konsistensi */
    flex: 1 1 auto !important;
    /* Flex grow untuk mengisi wrapper */
}

/* Pastikan project-description memiliki line-clamp untuk konsistensi */
#portofolio-ai .project-description {
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 6 !important;
    /* Maksimal 6 baris */
    line-clamp: 6 !important;
    /* Standard property untuk compatibility */
    -webkit-box-orient: vertical !important;
    text-overflow: ellipsis !important;
    max-height: calc(1.6em * 6) !important;
    /* 6 baris dengan line-height 1.6 */
}

/* Ecosystem Section - Ensure it's always visible */
#ecosystem.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Skills Section - Ensure it's always visible and scrollable */
#keahlian.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure skills container doesn't block scrolling */
#keahlian .container {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure skills grid doesn't block scrolling */
#keahlian .skills-grid {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    align-items: stretch !important;
    /* Stretch agar semua card sama tinggi */
}

/* Pastikan skill-category-wrapper memotong animated-border tapi tidak mempengaruhi konten */
/* Teknik: overflow hidden pada wrapper, visible pada border container, mask CSS membuat border terlihat di semua sisi */
#keahlian .project-card-wrapper {
    overflow: hidden !important;
    /* Potong animated-border yang lebih besar, mask CSS membuat border tetap terlihat di semua sisi */
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    height: 100% !important;
    /* Stretch ke tinggi grid */
    max-height: none !important;
    align-self: stretch !important;
    /* Stretch agar semua card sama tinggi */
}

/* Pastikan skill-category (konten) tetap visible */
#keahlian .project-card-wrapper>.skill-category {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: 100% !important;
    /* Stretch ke tinggi wrapper */
    display: flex !important;
    flex-direction: column !important;
}

/* Pastikan skill-category tidak memiliki scrollbar dan stretch ke tinggi wrapper */
#keahlian .skill-category {
    overflow: visible !important;
    overflow-y: visible !important;
    height: 100% !important;
    /* Stretch ke tinggi wrapper */
    max-height: none !important;
    min-height: auto !important;
}

/* Music Section - Ensure it's always visible */
#karya-musik.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Community Section - Ensure it's always visible and scrollable */
#komunitas.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure community container doesn't block scrolling */
#komunitas .container {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure community grid doesn't block scrolling */
#komunitas .community-grid {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    align-items: start !important;
    /* Pastikan card tidak dipaksa tinggi sama */
}

/* Pastikan community-card-wrapper memotong animated-border tapi tidak mempengaruhi konten */
/* Teknik: overflow hidden pada wrapper, visible pada border container, mask CSS membuat border terlihat di semua sisi */
#komunitas .project-card-wrapper {
    overflow: hidden !important;
    /* Potong animated-border yang lebih besar, mask CSS membuat border tetap terlihat di semua sisi */
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    align-self: start !important;
    /* Pastikan card tidak dipaksa tinggi sama */
}

/* Pastikan community-card (konten) tetap visible */
#komunitas .project-card-wrapper>.community-card {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

/* Pastikan community-card tidak memiliki scrollbar dan tidak dipaksa tinggi */
#komunitas .community-card {
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    /* Hapus height: 100% */
}

/* Pastikan community-card p tidak memiliki overflow hidden */
#komunitas .community-card p {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* Testimonials Section - Ensure it's always visible */
#testimonials.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Mission Statement Section */
.mission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    text-align: center;
}

.mission-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.mission-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mission-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Global Availability Section */
.global-availability {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(147, 51, 234, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    max-width: 700px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.availability-badge i {
    font-size: 1.2rem;
    color: #60a5fa;
}

.availability-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
}

.availability-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.availability-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.availability-tags .tag i {
    font-size: 0.85rem;
    color: var(--accent-gold);
}

/* Responsive for Global Availability */
@media (max-width: 768px) {
    .global-availability {
        padding: 1rem;
        margin-top: 0.75rem;
    }

    .availability-badge {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .availability-text {
        font-size: 0.95rem;
    }

    .availability-tags {
        gap: 0.5rem;
    }

    .availability-tags .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Mission Statement Section - Ensure visibility */
#mission-statement.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Articles Section - Ensure it's always visible */
#articles.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Contact Section - Ensure it's always visible */
#contact.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Realistic AI Section - Ensure it's always visible */
#realistic-ai.section {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Biography */
.biography-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.biography-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.biography-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Articles Section Styles */
/* Articles Carousel Container */
.articles-carousel-container {
    position: relative;
    margin-bottom: 3rem;
    /* Tidak perlu padding karena tombol sudah di bawah */
    padding: 0;
    width: 100%;
}

.articles-carousel-wrapper {
    overflow: hidden;
    /* HIDDEN untuk mencegah cards terlihat di luar */
    position: relative;
    border-radius: 16px;
    width: 100%;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    transition: transform 0.5s ease;
}

/* Infinite Carousel Mode - untuk menghemat ruang */
/* IMPORTANT: Override grid dengan flex untuk carousel - FORCE dengan !important */
.articles-grid.infinite-carousel-mode {
    display: flex !important;
    /* Force flex untuk override grid */
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 2rem;
    overflow-x: auto !important;
    /* Auto untuk bisa scroll infinite */
    overflow-y: hidden !important;
    /* Hidden untuk mencegah vertical scroll */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
    /* Firefox - hide scrollbar */
    -ms-overflow-style: none;
    /* IE/Edge */
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    /* Hapus margin bottom default */
    /* Pastikan semua card stretch dengan benar */
    align-items: stretch;
    flex-wrap: nowrap !important;
    /* Pastikan tidak wrap */
}

.articles-grid.infinite-carousel-mode::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.articles-grid.infinite-carousel-mode .article-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    /* Pastikan semua card sama tinggi */
    align-self: stretch;
}

/* Desktop: Show 2-3 cards at once (bukan semua) */
@media (min-width: 1025px) {
    .articles-grid.infinite-carousel-mode {
        justify-content: flex-start;
    }

    .articles-grid.infinite-carousel-mode .article-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        /* 3 cards visible */
        min-width: 350px;
        /* Minimum width */
        max-width: 400px;
        /* Maximum width untuk konsistensi */
        align-self: stretch;
    }
}

@media (min-width: 1400px) {
    .articles-grid.infinite-carousel-mode .article-card {
        flex: 0 0 calc(33.333% - 1.33rem);
        /* Tetap 3 cards, bukan 4 */
        min-width: 350px;
        max-width: 400px;
        align-self: stretch;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .articles-grid.infinite-carousel-mode .article-card {
        flex: 0 0 calc(50% - 1rem);
        /* 2 cards */
        align-self: stretch;
        /* Pastikan semua card sama tinggi */
    }
}

/* Legacy carousel-mode untuk backward compatibility */
.articles-grid.carousel-mode {
    display: flex;
    grid-template-columns: none;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.articles-grid.carousel-mode .article-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

/* Progress Bar & Counter Wrapper */
.carousel-progress-wrapper {
    margin: 2rem auto 1rem;
    max-width: 600px;
    padding: 0 1rem;
}

.carousel-counter {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.carousel-counter span {
    color: var(--accent-gold);
}

.carousel-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
}

.carousel-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-glow-start), var(--accent-gold));
    width: 0%;
    transition: width 4s linear;
    border-radius: 2px;
}

/* Navigation Wrapper - Container untuk tombol navigasi (tanpa dots) */
.carousel-navigation-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    /* Gap untuk 3 tombol */
    margin-top: 1.5rem;
    position: relative;
}

.carousel-controls {
    position: relative;
    /* Ubah dari absolute ke relative */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--primary-text);
    font-size: 1.5rem;
    /* Selalu visible, tidak perlu hover */
    opacity: 1;
    pointer-events: all;
}

.carousel-controls:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.carousel-pause-play {
    font-size: 1.2rem;
}

.carousel-pause-play .pause-icon,
.carousel-pause-play .play-icon {
    display: inline-block;
}

/* Speed Control - Single Toggle Button */
.carousel-speed-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.speed-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-label i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.speed-toggle-btn {
    width: 100%;
    min-width: 200px;
    height: 60px;
    background: var(--glass-bg);
    border: 2px solid var(--border-glow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.speed-toggle-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;
}

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

.speed-toggle-btn .speed-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    min-width: 24px;
}

.speed-toggle-btn .speed-text {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
    text-align: left;
}

.speed-toggle-btn .speed-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--glass-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    min-width: 35px;
    text-align: center;
    border: 1px solid var(--border-glow);
}

/* Speed-specific styling */
.speed-toggle-btn.speed-slow {
    border-color: #4a90e2;
}

.speed-toggle-btn.speed-slow:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(74, 144, 226, 0.1));
    border-color: #4a90e2;
    color: #4a90e2;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.25);
}

.speed-toggle-btn.speed-slow .speed-icon {
    color: #4a90e2;
}

.speed-toggle-btn.speed-normal {
    border-color: var(--accent-gold);
}

.speed-toggle-btn.speed-normal:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
}

.speed-toggle-btn.speed-normal .speed-icon {
    color: var(--accent-gold);
}

.speed-toggle-btn.speed-fast {
    border-color: #ff6b6b;
}

.speed-toggle-btn.speed-fast:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-color: #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.speed-toggle-btn.speed-fast .speed-icon {
    color: #ff6b6b;
}

/* Active state dengan animasi */
.speed-toggle-btn:active {
    transform: scale(0.95);
}

.speed-toggle-btn:hover {
    transform: translateY(-2px);
}

.speed-toggle-btn:hover .speed-icon {
    transform: rotate(15deg) scale(1.1);
}

/* .carousel-prev dan .carousel-next tidak memerlukan styling tambahan */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    /* Hapus margin karena sudah di wrapper */
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--accent-glow-start);
}

@media (max-width: 768px) {
    .articles-carousel-container {
        padding: 0;
        /* Hapus padding di mobile */
        overflow: hidden;
        /* Hidden untuk mencegah peek effect */
    }

    .articles-carousel-wrapper {
        overflow: hidden;
        /* Hidden untuk mencegah peek effect */
        padding: 0;
        /* No padding */
    }

    .carousel-navigation-wrapper {
        gap: 1rem;
        /* Kurangi gap di mobile */
        margin-top: 1.5rem;
    }

    .carousel-controls {
        width: 40px;
        /* Lebih kecil di mobile */
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-progress-wrapper {
        margin: 1.5rem auto 1rem;
        padding: 0 0.5rem;
    }

    .carousel-counter {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .carousel-navigation-wrapper {
        gap: 1rem;
        margin-top: 1rem;
    }

    .carousel-speed-control {
        max-width: 100%;
        padding: 0.75rem 1rem;
    }

    .speed-toggle-btn {
        min-width: 180px;
        height: 55px;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .speed-toggle-btn .speed-icon {
        font-size: 1.1rem;
    }

    .speed-toggle-btn .speed-text {
        font-size: 0.85rem;
    }

    .speed-toggle-btn .speed-indicator {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        min-width: 30px;
    }

    /* Mobile: Card selalu di tengah, 1 card penuh, tidak ada peek */
    .articles-grid.infinite-carousel-mode {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 5%;
        /* Padding kiri untuk center alignment */
        scroll-padding-right: 5%;
        /* Padding kanan untuk center alignment */
        overflow-x: auto;
        overflow-y: visible;
        padding: 0;
        gap: 1rem;
        /* Gap antar card */
    }

    .articles-grid.infinite-carousel-mode .article-card {
        flex: 0 0 90%;
        /* 90% width agar selalu di tengah dengan padding */
        max-width: 90%;
        scroll-snap-align: center;
        /* Center snap untuk selalu di tengah */
        margin: 0;
        /* No margin */
    }

    .articles-grid.carousel-mode {
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 5%;
        scroll-padding-right: 5%;
    }

    .articles-grid.carousel-mode .article-card {
        flex: 0 0 90%;
        max-width: 90%;
        scroll-snap-align: center;
    }
}

.article-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Flexbox untuk alignment tombol */
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Pastikan semua card sama tinggi */
    /* Pastikan card memiliki min-height untuk konsistensi */
    min-height: 520px;
    box-sizing: border-box;
    /* Font consistency dengan article content */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-gold);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    flex-shrink: 0;
    /* Jangan shrink image */
}

.article-card-category {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    /* Jangan shrink category */
    /* Font consistency dengan article content */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    /* Konsisten dengan spacing lain */
    margin-top: 0;
    color: var(--primary-text);
    /* Pastikan title memiliki tinggi konsisten */
    min-height: 3.5rem;
    /* ~2 lines */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
    /* Jangan shrink title */
    /* Font consistency dengan article title */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: var(--accent-gold);
}

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 0;
    /* Flex grow untuk mengisi ruang */
    flex-grow: 1;
    /* Pastikan excerpt memiliki tinggi konsisten */
    min-height: 4.8rem;
    /* ~3 lines dengan line-height 1.6 */
    display: -webkit-box;
    /* Font consistency dengan article content */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glow);
    flex-shrink: 0;
    /* Jangan shrink meta */
    /* Font consistency dengan article content */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-card-read-more {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    /* Push tombol ke bawah dengan margin-top auto */
    margin-top: auto;
    padding-top: 1rem;
    /* Font consistency dengan article content */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex-shrink: 0;
    /* Jangan shrink read-more button */
}

.article-card-read-more:hover {
    gap: 0.75rem;
}

/* Article Modal Overlay */
.article-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.article-modal-overlay.active {
    display: block;
}

.article-modal-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.article-modal-close {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    /* Pastikan lebih tinggi dari overlay */
    color: var(--primary-text) !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.article-modal-close:hover {
    background: var(--accent-gradient) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .article-modal-close {
        top: 1rem !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-full {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-text);
    line-height: 1.2;
    /* Font consistency */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Font consistency */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--primary-text);
    /* Font consistency */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-text);
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.article-toc {
    background: var(--glass-bg);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-toc h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.article-toc ol {
    margin: 0;
    padding-left: 1.5rem;
}

.article-toc a {
    color: var(--accent-gold);
    text-decoration: none;
}

.article-cta {
    background: var(--accent-gradient);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.article-cta h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--accent-glow-start);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glow);
}

.article-tags {
    margin-bottom: 1.5rem;
}

.article-tags a {
    display: inline-block;
    background: var(--glass-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
}

.article-author-box {
    display: flex;
    gap: 1.5rem;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.article-author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-box h4 {
    margin-bottom: 0.25rem;
}

.article-author-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glow);
}

.related-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
}

/* Related Articles Carousel */
.related-articles-carousel {
    position: relative;
    width: 100%;
}

.related-articles-carousel-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.related-articles-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.related-articles-carousel-track .related-article-card {
    flex: 0 0 100%;
    /* 1 card per slide */
    width: 100%;
    min-width: 0;
    /* Prevent overflow */
    box-sizing: border-box;
    /* Include padding in width */
}

.related-article-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-article-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
}

/* Related Articles Dots */
.related-articles-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.related-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

.related-dot:hover {
    background: var(--accent-glow-start);
}

/* Legacy grid untuk backward compatibility */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.related-article-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-article-card h4 a {
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-card h4 a:hover {
    color: var(--accent-gold);
}

.related-article-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Social Share Buttons */
.article-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--border-glow);
}

.article-share span {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-text);
    font-size: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #1a91da;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #006399;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #20ba5a;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn i {
    font-size: 1rem;
}

/* Breadcrumbs */
.article-breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem 0;
}

.article-breadcrumbs a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumbs a:hover {
    color: var(--accent-glow-start);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-full {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .related-articles-carousel-track .related-article-card {
        flex: 0 0 100%;
        /* Tetap 1 card per slide di mobile */
    }

    .share-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-right: 0.5rem;
    }

    .article-breadcrumbs {
        font-size: 0.85rem;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    align-items: stretch;
    /* Stretch untuk memastikan semua card sama tinggi */
}

@keyframes borderRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Parent container with padding for border */
.project-card-wrapper {
    position: relative;
    border-radius: 12px;
    background: transparent;
    padding: 1px;
    z-index: 0;
    overflow: visible;
    /* Visible untuk animasi border berkeliling, mask CSS mencegah scrollbar */
    height: 100%;
    /* Stretch ke tinggi grid */
    display: flex;
    flex-direction: column;
}

/* Border animation container */
.project-card-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 12px;
    z-index: 0;
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none !important;
    overflow: visible !important;
    /* Visible untuk animasi berkeliling, mask CSS mencegah scrollbar */
}

/* The actual animated border */
.animated-border {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: borderRotate 3s linear infinite;
    animation-delay: 0s;
    /* Pastikan semua start bersamaan */
    animation-fill-mode: both;
    /* Pastikan state awal konsisten */
    z-index: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    overflow: visible !important;
    /* Visible untuk animasi berkeliling, mask CSS mencegah scrollbar */
    pointer-events: none !important;
}

/* Gradient for the border */
.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            transparent 335deg,
            #3b82f6 345deg,
            #06b6d4 350deg,
            #8b5cf6 355deg,
            transparent 360deg);
    filter: brightness(1.5) saturate(1.5);
}

/* The card content */
.project-card {
    position: relative;
    background: rgba(18, 18, 18, 0.9);
    border-radius: 10px;
    /* Slightly smaller than wrapper */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    /* Konsistensi tinggi card untuk visual yang seimbang */
    height: 100%;
    /* Stretch ke tinggi wrapper */
    flex: 1 1 auto;
    /* Flex grow untuk mengisi wrapper */
    transition: all 0.3s ease;
    z-index: 1;
    margin: 2px;
    /* Creates space for the border */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible !important;
    overflow-y: visible !important;
    box-sizing: border-box;
    /* Pastikan padding termasuk dalam height */
}

/* Project Screenshot */
.project-screenshot {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

/* HAI Image Zoom - Perbesar gambar untuk zoom lebih dekat */
.project-screenshot-hai img {
    transform: scale(1.6);
    transform-origin: center center;
}

.project-card:hover .project-screenshot-hai img {
    transform: scale(1.65);
}

/* Responsive Screenshot */
@media (max-width: 768px) {
    .project-screenshot {
        height: 180px;
        margin-bottom: 1.25rem;
    }

    .project-card {
        min-height: 400px;
        /* Sedikit lebih kecil di mobile */
        padding: 1.5rem;
    }

    .project-description {
        margin-bottom: 1.25rem;
    }

    .project-link-section {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-screenshot {
        height: 190px;
    }

    .project-card {
        min-height: 430px;
    }
}

/* Hover effects */
.project-card-wrapper:hover .animated-border {
    opacity: 1;
    animation-duration: 4s;
}

.project-card-wrapper:hover .project-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Glow effect on hover */
.project-card-wrapper:hover .project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(59, 130, 246, 0.05));
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    color: var(--accent-gold);
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    /* Sedikit lebih besar untuk readability */
    margin-bottom: 1.5rem;
    /* Standarisasi spacing */
    flex-grow: 0;
    /* Changed from 1 to 0 to prevent forced expansion */
    flex-shrink: 1;
    /* Boleh shrink jika perlu */
    text-align: justify;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* Hidden untuk line-clamp */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    /* Maksimal 6 baris */
    line-clamp: 6;
    /* Standard property untuk compatibility */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 6);
    /* 6 baris dengan line-height 1.6 */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
    /* Hapus margin-top: auto untuk spacing konsisten */
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Project Link Section - Standarisasi link section */
.project-link-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link-section a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link-section a:hover {
    color: #3b82f6;
}

.project-link-section a i {
    font-size: 0.8rem;
}

.tech-tag {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    position: relative;
    z-index: 3;
}

/* Ecosystem Grid */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem 3rem;
}

.ecosystem-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.ecosystem-category ul {
    list-style: none;
}

.ecosystem-category li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.ecosystem-category li:before {
    content: "•";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 kolom untuk 6 card (2 baris x 3 kolom) */
    gap: 2rem;
    align-items: stretch;
    /* Stretch agar semua card sama tinggi */
    overflow: visible !important;
    overflow-y: visible !important;
}

.skill-category {
    background: rgba(18, 18, 18, 0.9);
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
    /* Stretch ke tinggi wrapper */
    min-height: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible !important;
    overflow-y: visible !important;
    display: flex;
    /* Flex untuk layout */
    flex-direction: column;
    /* Column layout */
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);

    /* Floating Title Styles */
    /* Moved the floating animation to the link instead */
    .ecosystem-category li a {
        animation: float 3s ease-in-out infinite;
    }

    .floating-title:hover {
        background: rgba(52, 152, 219, 0.2);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }

    .link-badge {
        display: inline-block;
        background: rgba(243, 156, 18, 0.2);
        color: #f39c12;
        font-size: 0.7em;
        padding: 2px 8px;
        border-radius: 12px;
        margin-left: 10px;
        font-weight: 600;
        border: 1px solid rgba(243, 156, 18, 0.3);
        animation: pulse 2s infinite;
    }

    @keyframes float {
        0% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-5px);
        }

        100% {
            transform: translateY(0px);
        }
    }

    @keyframes pulse {
        0% {
            opacity: 0.7;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.7;
        }
    }
}

.skill-category h3 {
    font-size: 1.1rem;
    /* Sedikit lebih kecil agar muat dalam satu baris */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    line-height: 1.3;
    white-space: nowrap;
    /* Mencegah text wrap, tetap sebaris */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Tampilkan ellipsis jika terlalu panjang */
}

.skill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
    /* Mengisi ruang tersedia di flex container */
}

.skill-item {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold);
    border: 2px solid var(--primary-dark);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content h3 span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* Discography */
.discography {
    max-width: 900px;
    margin: 4rem auto 0 auto;
}

.discography h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.discography-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
}

.discography-list li {
    background: var(--secondary-dark);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

/* Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
    /* Pastikan card tidak dipaksa tinggi sama */
    overflow: visible !important;
    overflow-y: visible !important;
}

.community-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background: var(--secondary-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: auto;
    /* Changed from 100% to auto to prevent forced height */
    min-height: auto;
    /* Ensure no min-height constraint */
    box-sizing: border-box;
    overflow: visible !important;
    overflow-y: visible !important;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.community-card p {
    color: var(--text-secondary);
    margin: 0.5rem 0 1.5rem;
    flex-grow: 0;
    /* Changed from 1 to 0 to prevent forced expansion */
    position: relative;
    z-index: 1;
    min-height: auto;
    /* Changed from 4rem to auto */
    line-height: 1.5;
    display: block;
    /* Changed from -webkit-box to block */
    overflow: visible !important;
    /* Changed from hidden to visible */
    overflow-y: visible !important;
    max-height: none !important;
    height: auto !important;
    text-overflow: clip;
    /* Changed from ellipsis to clip */
}

.community-links {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.community-links a {
    background: var(--border-subtle);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.community-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    max-width: 450px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    width: 40px;
    text-align: center;
}

.contact-details a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-gold);
}

.contact-details span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    display: inline-block !important;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-gold);
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Contact Grid - 2 Column Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    min-height: 100%;
}

.contact-info,
.donation-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    box-sizing: border-box;
}

.contact-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    display: none;
}

.donation-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.donation-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.donation-button {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.donation-button::before {
    display: none;
}

.donation-button:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

.donation-button:hover::before {
    display: none;
}

/* Ensure contact content is also flex */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-info .btn-primary {
    margin-top: auto;
    align-self: center;
}


.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent-gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.copyright {
    margin-top: 3rem;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.copyright-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright p {
    margin: 0.5rem 0;
}

/* Enhanced Footer Styles */
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.footer-column {
    min-width: 200px;
}

.footer-brand {
    max-width: 350px;
}

.footer-social .social-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--accent-gold);
}

.footer-links-list a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact a:hover {
    color: var(--accent-gold);
}

#close-policy-modal {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    color: var(--text-primary) !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

#close-policy-modal:hover {
    background: var(--accent-gradient) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    #close-policy-modal {
        top: 1rem !important;
        right: 1rem !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* --- Keyframe Animations --- */
@keyframes pulse-status {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes pulse-fab-gradient {
    0% {
        box-shadow:
            0 0 0 0 rgba(72, 0, 255, 0.6),
            0 0 0 4px rgba(0, 94, 255, 0.3),
            0 0 0 8px rgba(0, 150, 200, 0.2),
            0 4px 12px rgba(0, 0, 0, 0.25);
    }

    25% {
        box-shadow:
            0 0 0 2px rgba(0, 180, 255, 0.5),
            0 0 0 6px rgba(72, 0, 255, 0.4),
            0 0 0 12px rgba(0, 94, 255, 0.3),
            0 6px 18px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow:
            0 0 0 4px rgba(0, 150, 200, 0.6),
            0 0 0 8px rgba(0, 180, 255, 0.5),
            0 0 0 14px rgba(72, 0, 255, 0.3),
            0 8px 24px rgba(0, 0, 0, 0.4);
    }

    75% {
        box-shadow:
            0 0 0 6px rgba(0, 200, 255, 0.5),
            0 0 0 10px rgba(0, 150, 200, 0.4),
            0 0 0 16px rgba(0, 180, 255, 0.3),
            0 6px 20px rgba(0, 0, 0, 0.35);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(72, 0, 255, 0),
            0 0 0 0 rgba(0, 94, 255, 0),
            0 0 0 0 rgba(0, 150, 200, 0),
            0 4px 12px rgba(0, 0, 0, 0.25);
    }
}

/* --- Floating Action Button (FAB) Styles --- */
#fab-chat {
    position: fixed;
    bottom: 100px;
    /* Diubah dari 2rem (32px) menjadi 100px - lebih mudah dijangkau */
    right: 2rem;
    z-index: 10003;
    /* Higher than most elements but below modal */
    width: 60px;
    height: 60px;
    background:
        url('https://ik.imagekit.io/qdqj7urfv/orb-ai-artificial-intelligence-richkeyrick.gif?updatedAt=1759063215478'),
        linear-gradient(135deg,
            rgba(72, 0, 255, 0.9),
            rgba(0, 94, 255, 0.8),
            rgba(0, 150, 200, 0.7),
            rgba(0, 200, 255, 0.6));
    background-size: cover, 400% 400%;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    /* Ensure no pointer events blocked */
    pointer-events: auto;
    /* Ensure it's above all other elements */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Ultra-smooth, gentle animation */
    animation:
        gradient-animation 8s ease infinite,
        pulse-fab-gradient 6s ease-in-out infinite;
    animation-fill-mode: both;
    animation-play-state: running;
    animation-iteration-count: infinite;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease, filter 0.5s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#fab-chat:hover {
    transform: scale(1.2) translateY(-3px);
    animation-play-state: paused;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 30px rgba(72, 0, 255, 0.8),
        0 0 50px rgba(0, 180, 255, 0.6),
        0 0 70px rgba(0, 150, 200, 0.4),
        0 0 90px rgba(0, 200, 255, 0.3),
        0 15px 40px rgba(0, 0, 0, 0.6);
    background-size: cover, 800% 800%;
    filter: brightness(1.2) saturate(1.3);
}

@keyframes gradient-glow {
    0% {
        filter: brightness(1.2) saturate(1.3);
    }

    25% {
        filter: brightness(1.3) saturate(1.4);
    }

    50% {
        filter: brightness(1.4) saturate(1.5);
    }

    75% {
        filter: brightness(1.3) saturate(1.4);
    }

    100% {
        filter: brightness(1.2) saturate(1.3);
    }
}

#fab-chat:active {
    transform: scale(1.05) translateY(1px);
    transition: transform 0.1s ease;
    animation-play-state: paused;
}

.ai-icon {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 3;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 2px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#fab-chat:hover .ai-icon {
    text-shadow:
        0 1px 3px rgba(0, 180, 255, 0.9),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(72, 0, 255, 0.6),
        0 0 35px rgba(0, 150, 200, 0.4),
        0 0 45px rgba(0, 200, 255, 0.3);
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.4);
}

.ai-status {
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: #00ff00;
    border: 2px solid var(--primary-dark);
    border-radius: 50%;
}

/* --- NEW Testimonial Section --- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes border-spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

@keyframes pulse-indicator {

    0%,
    100% {
        transform: scale(1.4);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(120, 119, 198, 0.6);
    }

    50% {
        transform: scale(1.6);
        box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 32px rgba(120, 119, 198, 0.8);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#testimonials {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

#testimonial-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Di atas grid, di bawah konten */
    pointer-events: none;
    /* Memastikan tidak mengganggu interaksi */
}

#testimonials .container {
    position: relative;
    z-index: 2;
    /* Konten utama di atas canvas */
}

#testimonials .section-subtitle {
    font-weight: 300;
}

#testimonials .carousel-brand {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-style: italic;
    margin-top: 8px;
}

#testimonials::before {
    /* 3D Perspective Grid is back */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-bottom: 150%;
    transform: translate(-50%, -50%) perspective(500px) rotateX(60deg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: move-grid 20s linear infinite;
}

@keyframes move-grid {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -100px -100px;
    }
}

.carousel-container {
    max-width: 900px;
    position: relative;
    perspective: 1000px;
}

.carousel-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 550px;
    margin: auto;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    /* For 3D Tilt */
    transform-style: preserve-3d;
}

.carousel-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: conic-gradient(from var(--angle), #7877c6, #ff77c6, #7877c6);
    animation: border-spin 4s linear infinite;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.carousel-track-container {
    position: absolute;
    inset: 2px;
    /* This creates the border thickness */
    z-index: 9996;
    background: rgba(20, 22, 42, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 22px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-shrink: 0;
}

.review-card {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    padding: 0;
    text-align: center;
}

/* Staggered Animation for slide content */
.slide .avatar,
.slide .review-text,
.slide .rating,
.slide .reviewer-info {
    opacity: 0;
    transform: translateY(20px);
}

.slide.active .avatar {
    animation: slide-in 0.5s 0.2s ease forwards;
}

.slide.active .review-text {
    animation: slide-in 0.5s 0.3s ease forwards;
}

.slide.active .rating {
    animation: slide-in 0.5s 0.4s ease forwards;
}

.slide.active .reviewer-info {
    animation: slide-in 0.5s 0.5s ease forwards;
}

/* Fallback: Show first slide immediately */
.slide:first-child .avatar,
.slide:first-child .review-text,
.slide:first-child .rating,
.slide:first-child .reviewer-info {
    opacity: 1;
    transform: translateY(0);
}

.review-card .avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.review-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    /* Focus on the upper part of the image */
}

.review-text {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.rating {
    color: #FFD700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.reviewer-position {
    font-size: 0.9rem;
    font-weight: 300;
}

/* --- NEW Bottom Navigation Styles for Testimonials --- */
.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 9995;
}

.carousel-navigation .carousel-controls {
    position: static;
    transform: none;
    background: rgba(30, 30, 45, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-navigation .carousel-controls:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(120, 119, 198, 0.7);
}

.carousel-indicators {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.indicator.active {
    background: white;
    transform: scale(1.4);
    animation: pulse-indicator 2s infinite ease-in-out;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 24px rgba(120, 119, 198, 0.6);
}

/* Responsive Design */
/* Tablet - 2 kolom */
@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 kolom untuk tablet */
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1,
    .hero-subtitle,
    .hero-quote {
        max-width: 100%;
        padding-left: 0;
        border-left: none;
        text-align: center;
    }

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

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

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

@media (max-width: 768px) {

    /* Style untuk tombol toggle tema */
    .theme-toggle {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        font-size: 1.2rem;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        transition: all 0.3s ease;
        margin: 0 0.5rem;
    }

    .theme-toggle:hover {
        background: var(--button-bg-hover);
    }

    .theme-toggle i {
        transition: opacity 0.3s ease;
    }

    .theme-toggle .fa-moon {
        display: inline-block;
    }

    .theme-toggle .fa-sun {
        display: none;
    }

    [data-theme="light"] .theme-toggle .fa-moon {
        display: none;
    }

    [data-theme="light"] .theme-toggle .fa-sun {
        display: inline-block;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero {
        padding: 4rem 0 5rem 0;
    }

    .skills-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }

    .skill-list {
        grid-template-columns: 1fr;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Floating buttons positioning untuk mobile - optimal untuk thumb zone */
    .floating-theme-toggle {
        bottom: 60px;
        /* Lebih dekat ke bottom untuk mudah dijangkau */
        left: 1rem;
        /* Edge positioning untuk mudah dijangkau */
        width: 45px;
        /* Sedikit lebih kecil untuk mobile */
        height: 45px;
    }

    #fab-chat {
        width: 50px;
        height: 50px;
        bottom: 60px;
        /* Lebih dekat ke bottom, sejajar dengan theme toggle */
        right: 1rem;
        /* Edge positioning untuk mudah dijangkau */
    }

    #fab-chat:hover {
        transform: scale(1.25) translateY(-2px);
        box-shadow:
            0 0 20px rgba(72, 0, 255, 0.7),
            0 0 30px rgba(0, 180, 255, 0.9),
            0 0 40px rgba(0, 150, 200, 0.3),
            0 0 50px rgba(0, 200, 255, 0.2),
            0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .ai-icon {
        font-size: 1.5rem;
        min-width: 24px;
        min-height: 24px;
        transition: all 0.3s ease;
    }

    #fab-chat:hover .ai-icon {
        font-size: 1.6rem;
        min-width: 26px;
        min-height: 26px;
        text-shadow:
            0 1px 3px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(72, 0, 255, 0.8),
            0 0 35px rgba(0, 180, 255, 0.9);
    }

    .ai-status {
        width: 12px;
        height: 12px;
    }

    .carousel-title {
        font-size: 2.2rem;
    }

    .slide {
        flex-direction: column;
        padding: 20px;
        justify-content: center;
    }

    .review-card {
        max-width: 100%;
        height: auto;
        min-height: 350px;
    }

    .carousel-controls {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .carousel-wrapper {
        height: 550px;
    }
}

/* Animations */
@keyframes fadeIn {
    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);
    }
}

/* Background Animation - Enhanced Particles */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Realistic Fire Particles - Upward Movement Only */
.dot {
    position: absolute;
    background: radial-gradient(circle at center,
            rgba(255, 255, 0, 0.3) 0%,
            rgba(255, 200, 0, 0.27) 15%,
            rgba(255, 150, 0, 0.24) 30%,
            rgba(255, 100, 0, 0.18) 45%,
            rgba(255, 50, 0, 0.12) 60%,
            rgba(200, 30, 0, 0.06) 75%,
            rgba(150, 20, 0, 0.03) 90%,
            rgba(100, 10, 0, 0.015) 100%);
    border-radius: 50%;
    opacity: 0.3;
    animation: fire-upward-1 20s linear infinite;
    box-shadow:
        0 0 10px rgba(255, 150, 0, 0.24),
        0 0 20px rgba(255, 100, 0, 0.18),
        0 0 30px rgba(255, 50, 0, 0.12);
    filter: blur(0.5px);
}

.dot:nth-child(2n) {
    background: radial-gradient(circle at center,
            rgba(255, 240, 100, 0.285) 0%,
            rgba(255, 180, 50, 0.255) 15%,
            rgba(255, 120, 30, 0.225) 30%,
            rgba(255, 80, 20, 0.165) 45%,
            rgba(220, 60, 15, 0.105) 60%,
            rgba(180, 40, 10, 0.06) 75%,
            rgba(140, 30, 8, 0.03) 90%,
            rgba(100, 20, 5, 0.009) 100%);
    opacity: 0.3;
    animation: fire-upward-2 25s linear infinite;
    box-shadow:
        0 0 8px rgba(255, 180, 50, 0.27),
        0 0 18px rgba(255, 120, 30, 0.21),
        0 0 28px rgba(255, 80, 20, 0.15);
}

.dot:nth-child(3n) {
    background: radial-gradient(circle at center,
            rgba(255, 220, 150, 0.27) 0%,
            rgba(255, 160, 80, 0.24) 15%,
            rgba(255, 110, 50, 0.21) 30%,
            rgba(255, 70, 30, 0.15) 45%,
            rgba(220, 50, 20, 0.09) 60%,
            rgba(180, 35, 15, 0.045) 75%,
            rgba(140, 25, 10, 0.024) 90%,
            rgba(100, 15, 5, 0.006) 100%);
    opacity: 0.3;
    animation: fire-upward-3 30s linear infinite;
    box-shadow:
        0 0 12px rgba(255, 160, 80, 0.24),
        0 0 22px rgba(255, 110, 50, 0.18),
        0 0 32px rgba(255, 70, 30, 0.12);
}

.dot:nth-child(5n) {
    background: radial-gradient(circle at center,
            rgba(255, 200, 200, 0.255) 0%,
            rgba(255, 140, 120, 0.225) 15%,
            rgba(255, 90, 70, 0.195) 30%,
            rgba(255, 50, 40, 0.135) 45%,
            rgba(220, 30, 25, 0.075) 60%,
            rgba(180, 20, 15, 0.036) 75%,
            rgba(140, 15, 10, 0.018) 90%,
            rgba(100, 10, 5, 0.003) 100%);
    opacity: 0.3;
    animation: fire-upward-4 35s linear infinite;
    box-shadow:
        0 0 6px rgba(255, 140, 120, 0.27),
        0 0 16px rgba(255, 90, 70, 0.21),
        0 0 26px rgba(255, 50, 40, 0.15);
}

/* Enhanced particle sizes - Bigger and more prominent */
.dot.large {
    width: 18px;
    height: 18px;
    opacity: 0.3;
}

.dot.medium {
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.dot.small {
    width: 5px;
    height: 5px;
    opacity: 0.3;
}

/* Realistic upward fire movement - vertical only */
@keyframes fire-upward-1 {
    0% {
        transform: translateY(60vh) translateX(0vw) scale(1.0);
    }

    8.33% {
        transform: translateY(45vh) translateX(0.5vw) scale(1.02);
    }

    16.66% {
        transform: translateY(35vh) translateX(-0.3vw) scale(0.98);
    }

    25% {
        transform: translateY(25vh) translateX(0.2vw) scale(1.04);
    }

    33.33% {
        transform: translateY(15vh) translateX(-0.1vw) scale(0.96);
    }

    41.66% {
        transform: translateY(8vh) translateX(0.4vw) scale(1.02);
    }

    50% {
        transform: translateY(3vh) translateX(0vw) scale(1.0);
    }

    58.33% {
        transform: translateY(-2vh) translateX(-0.2vw) scale(1.02);
    }

    66.66% {
        transform: translateY(-8vh) translateX(0.3vw) scale(0.98);
    }

    75% {
        transform: translateY(-5vh) translateX(0vw) scale(1.0);
    }

    83.33% {
        transform: translateY(-10vh) translateX(0.1vw) scale(1.02);
    }

    91.66% {
        transform: translateY(-7vh) translateX(-0.3vw) scale(0.98);
    }

    100% {
        transform: translateY(-12vh) translateX(0vw) scale(1.0);
    }
}

@keyframes fire-upward-2 {
    0% {
        transform: translateY(70vh) translateX(0vw) scale(1.0);
    }

    8% {
        transform: translateY(55vh) translateX(0.8vw) scale(1.03);
    }

    16% {
        transform: translateY(40vh) translateX(-0.5vw) scale(0.97);
    }

    24% {
        transform: translateY(30vh) translateX(0.3vw) scale(1.05);
    }

    32% {
        transform: translateY(20vh) translateX(-0.2vw) scale(0.95);
    }

    40% {
        transform: translateY(12vh) translateX(0.6vw) scale(1.03);
    }

    48% {
        transform: translateY(5vh) translateX(0vw) scale(0.97);
    }

    56% {
        transform: translateY(-1vh) translateX(-0.4vw) scale(1.05);
    }

    64% {
        transform: translateY(-8vh) translateX(0.2vw) scale(1.0);
    }

    72% {
        transform: translateY(-12vh) translateX(0.5vw) scale(1.03);
    }

    80% {
        transform: translateY(-9vh) translateX(-0.3vw) scale(0.97);
    }

    88% {
        transform: translateY(-13vh) translateX(0.1vw) scale(1.0);
    }

    96% {
        transform: translateY(-11vh) translateX(0.4vw) scale(1.03);
    }

    100% {
        transform: translateY(-15vh) translateX(0vw) scale(1.0);
    }
}

@keyframes fire-upward-3 {
    0% {
        transform: translateY(65vh) translateX(0vw) scale(1.0);
    }

    7.69% {
        transform: translateY(52vh) translateX(-0.4vw) scale(1.04);
    }

    15.38% {
        transform: translateY(39vh) translateX(0.6vw) scale(0.96);
    }

    23.07% {
        transform: translateY(28vh) translateX(-0.2vw) scale(1.06);
    }

    30.76% {
        transform: translateY(18vh) translateX(0.3vw) scale(0.94);
    }

    38.45% {
        transform: translateY(10vh) translateX(-0.5vw) scale(1.04);
    }

    46.14% {
        transform: translateY(3vh) translateX(0.1vw) scale(0.96);
    }

    53.83% {
        transform: translateY(-3vh) translateX(0.4vw) scale(1.06);
    }

    61.52% {
        transform: translateY(-9vh) translateX(0vw) scale(1.0);
    }

    69.21% {
        transform: translateY(-13vh) translateX(-0.3vw) scale(1.04);
    }

    76.9% {
        transform: translateY(-11vh) translateX(0.2vw) scale(0.96);
    }

    84.59% {
        transform: translateY(-14vh) translateX(0.5vw) scale(1.0);
    }

    92.28% {
        transform: translateY(-10vh) translateX(-0.1vw) scale(1.04);
    }

    100% {
        transform: translateY(-12vh) translateX(0vw) scale(1.0);
    }
}

@keyframes fire-upward-4 {
    0% {
        transform: translateY(75vh) translateX(0vw) scale(1.0);
    }

    7.14% {
        transform: translateY(62vh) translateX(0.7vw) scale(1.03);
    }

    14.28% {
        transform: translateY(49vh) translateX(-0.3vw) scale(0.97);
    }

    21.42% {
        transform: translateY(36vh) translateX(0.5vw) scale(1.05);
    }

    28.56% {
        transform: translateY(25vh) translateX(-0.1vw) scale(0.95);
    }

    35.7% {
        transform: translateY(15vh) translateX(0.8vw) scale(1.03);
    }

    42.84% {
        transform: translateY(8vh) translateX(0vw) scale(0.97);
    }

    50% {
        transform: translateY(2vh) translateX(-0.4vw) scale(1.05);
    }

    57.14% {
        transform: translateY(-5vh) translateX(0.3vw) scale(1.0);
    }

    64.28% {
        transform: translateY(-11vh) translateX(0.6vw) scale(1.03);
    }

    71.42% {
        transform: translateY(-8vh) translateX(-0.2vw) scale(0.97);
    }

    78.56% {
        transform: translateY(-14vh) translateX(0.4vw) scale(1.0);
    }

    85.7% {
        transform: translateY(-12vh) translateX(-0.5vw) scale(1.03);
    }

    92.84% {
        transform: translateY(-16vh) translateX(0.1vw) scale(0.97);
    }

    100% {
        transform: translateY(-14vh) translateX(0vw) scale(1.0);
    }
}

/* AI Features Section */
.ai-features-section {
    position: relative;
    padding: 5rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.ai-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    z-index: -1;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-ai), var(--accent-blue));
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    animation: aiGlow 3s infinite;
}

@keyframes aiGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
    }

    100% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80px;
    padding: 10px;
    background: transparent;
    transition: all 0.3s ease;
    filter: grayscale(0%) brightness(1) contrast(1);
    box-sizing: border-box;
    perspective: 1000px;
    /* Untuk efek 3D flip */
    position: relative;
    overflow: hidden;
}

.logo-item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.logo-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.6s ease-in-out, box-shadow 0.3s ease;
    /* Tambahkan transisi untuk efek glow */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Sembunyikan sisi belakang gambar saat diputar */
}

.logo-item:hover img {
    transform: rotateY(360deg);
    /* Rotasi 360 derajat untuk efek flip yang kembali ke posisi semula */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    /* Efek glow putih tipis */
}

/* Garis bawah dengan animasi gradient */
.logo-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #7877c6, #ff77c6, #7877c6);
    background-size: 200% 100%;
    transition: width 0.3s ease;
    animation: gradient-move 3s linear infinite;
}

.logo-item:hover::after {
    width: 100%;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* QRIS Logo - Putih di dark mode, putih di light mode (karena background item hitam) */
.logo-qris img {
    filter: brightness(0) invert(1) !important;
    /* Putih di dark mode */
}

[data-theme="light"] .logo-qris img {
    filter: brightness(0) invert(1) !important;
    /* Tetap putih karena background logo-item hitam */
}

/* Social Share Button Styles */
.share-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
}

.share-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;
}

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

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.share-btn i {
    transition: transform 0.3s ease;
    margin-bottom: 8px;
}

.project-card:hover .project-icon {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) 1;
}

/* Instagram and TikTok special styling */
.instagram-share {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.tiktok-share {
    background: linear-gradient(45deg, #000000, #69c9d0, #ee1d52);
}

/* Copy link button */
.copy-link {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
}

/* Social Share Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

#social-share-modal .bg-gradient-to-br {
    animation: modalFadeIn 0.3s ease-out;
}

#social-share-modal.closing .bg-gradient-to-br {
    animation: modalFadeOut 0.3s ease-out forwards;
}

/* Social Share Modal Specific Styles */
#social-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#social-share-modal .bg-gradient-to-br {
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
}

#social-share-modal .p-6 {
    padding: 1.5rem;
}

#social-share-modal .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

#social-share-modal .flex {
    display: flex;
}

#social-share-modal .items-center {
    align-items: center;
}

#social-share-modal .justify-center {
    justify-content: center;
}

#social-share-modal .text-2xl {
    font-size: 1.5rem;
}

#social-share-modal .font-bold {
    font-weight: bold;
}

#social-share-modal .mb-4 {
    margin-bottom: 1rem;
}

#social-share-modal .mb-2 {
    margin-bottom: 0.5rem;
}

#social-share-modal .mb-6 {
    margin-bottom: 1.5rem;
}

#social-share-modal .mt-6 {
    margin-top: 1.5rem;
}

#social-share-modal .text-center {
    text-align: center;
}

#social-share-modal .text-lg {
    font-size: 1.125rem;
}

#social-share-modal .text-sm {
    font-size: 0.875rem;
}

#social-share-modal .font-medium {
    font-weight: 500;
}

#social-share-modal .font-semibold {
    font-weight: 600;
}

#social-share-modal .rounded-xl {
    border-radius: 0.75rem;
}

#social-share-modal .rounded-full {
    border-radius: 9999px;
}

#social-share-modal .p-4 {
    padding: 1rem;
}

#social-share-modal .w-10 {
    width: 2.5rem;
}

#social-share-modal .h-10 {
    height: 2.5rem;
}

#social-share-modal .flex-col {
    flex-direction: column;
}

#social-share-modal .transition-all {
    transition: all 0.3s ease;
}

#social-share-modal .duration-300 {
    transition-duration: 300ms;
}

#social-share-modal .hover\\:scale-105:hover {
    transform: scale(1.05);
}

#social-share-modal .hover\\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#social-share-modal .hover\\:bg-gray-600:hover {
    background-color: #4b5563;
}

#social-share-modal .text-white {
    color: white;
}

#social-share-modal .bg-gray-700 {
    background-color: #374151;
}

#social-share-modal .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#social-share-modal .animate-modal-fade-in {
    animation: modalFadeIn 0.5s ease-out;
}

#social-share-modal .text-gray-400 {
    color: #9ca3af;
}

#social-share-modal .text-gray-300 {
    color: #d1d5db;
}

#social-share-modal .bg-blue-600 {
    background-color: #2563eb;
}

#social-share-modal .hover\\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

#social-share-modal .bg-blue-400 {
    background-color: #60a5fa;
}

#social-share-modal .hover\\:bg-blue-500:hover {
    background-color: #3b82f6;
}

#social-share-modal .bg-green-500 {
    background-color: #10b981;
}

#social-share-modal .hover\\:bg-green-600:hover {
    background-color: #059669;
}

#social-share-modal .bg-blue-700 {
    background-color: #1d4ed8;
}

#social-share-modal .hover\\:bg-blue-800:hover {
    background-color: #1e40af;
}

#social-share-modal .bg-blue-500 {
    background-color: #3b82f6;
}

#social-share-modal .hover\\:bg-blue-600:hover {
    background-color: #2563eb;
}

#social-share-modal .bg-gray-600 {
    background-color: #4b5563;
}

#social-share-modal .hover\\:bg-gray-700:hover {
    background-color: #374151;
}

#social-share-modal .bg-gradient-to-r {
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

#social-share-modal .hover\\:from-purple-600:hover {
    background: linear-gradient(90deg, #c084fc, #e879f9);
}

#social-share-modal .hover\\:to-pink-600:hover {
    background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #c026d5, #db2777);
}

#social-share-modal .bg-black {
    background-color: #000;
}

#social-share-modal .hover\\:bg-gray-800:hover {
    background-color: #1f2937;
}

#social-share-modal .bg-orange-500 {
    background-color: #f97316;
}

#social-share-modal .hover\\:bg-orange-600:hover {
    background-color: #ea580c;
}

#social-share-modal .text-3xl {
    font-size: 1.875rem;
}



.logo-placeholder {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-ai), var(--accent-blue), var(--accent-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-animation 4s ease infinite;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Chat Modal Styles */
#chat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay-bg, rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(10px);
    z-index: 10004;
    /* Higher than everything else */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#chat-modal-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: radial-gradient(circle at center,
            rgba(0, 165, 79, 0.15) 0%,
            rgba(0, 0, 0, 0) 70%);
    transition: opacity 1s ease;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#chat-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#chat-modal-overlay.visible::before {
    animation: breatheGlow 24s ease-in-out infinite;
    opacity: 1;
    transition: background 1.5s ease-out, transform 1.5s ease-out, opacity 1.5s ease-out;
}

@keyframes breatheGlow {

    0%,
    100% {
        background: radial-gradient(circle at center,
                rgba(0, 165, 79, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    16.6% {
        background: radial-gradient(circle at center,
                rgba(50, 185, 100, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        opacity: 0.7;
    }

    33.2% {
        background: radial-gradient(circle at center,
                rgba(100, 100, 255, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 0.8;
    }

    49.8% {
        background: radial-gradient(circle at center,
                rgba(138, 43, 226, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        opacity: 0.9;
    }

    66.4% {
        background: radial-gradient(circle at center,
                rgba(153, 50, 204, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }

    83% {
        background: radial-gradient(circle at center,
                rgba(30, 144, 255, 0.15) 0%,
                rgba(0, 0, 0, 0) 70%);
        opacity: 0.7;
    }
}

#chat-modal {
    width: 90%;
    max-width: 550px;
    height: 75vh;
    max-height: 650px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10005;
    /* Higher than overlay */
    animation: fadeIn 0.4s ease-out;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
}

#chat-modal.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    border-bottom: 1px solid var(--glass-border, rgba(0, 245, 255, 0.2));
    position: relative;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-ai), var(--accent-blue), var(--accent-ai));
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header h3 span {
    color: var(--accent-ai);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.chat-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
}

/* Pastikan close button di chat header juga fixed saat scroll */
/* Desktop: Close button fixed position */
@media (min-width: 769px) {
    #chat-modal-overlay.visible #close-modal-btn {
        position: fixed !important;
        top: 2rem !important;
        right: 2rem !important;
        z-index: 10006 !important;
    }
}

@media (max-width: 768px) {

    /* Mobile: Close Button - Place inside header buttons on mobile */
    #chat-modal-overlay.visible #close-modal-btn {
        position: static !important;
        /* Remove absolute/fixed positioning */
        top: auto !important;
        right: auto !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        z-index: auto !important;
        margin: 0 !important;
    }

    /* Chat Modal Mobile Responsive - Full screen with safe area support */
    #chat-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        /* Dynamic viewport height for keyboard handling */
        max-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding-top: env(safe-area-inset-top) !important;
        /* iPhone notch support */
        padding-bottom: env(safe-area-inset-bottom) !important;
        /* iPhone home indicator */
        display: flex !important;
        flex-direction: column !important;
    }

    /* Header - Fixed height, no wrapping */
    .chat-header {
        padding: 0.75rem 1rem !important;
        padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
        gap: 0.5rem !important;
        min-height: 56px !important;
        /* Fixed minimum height */
        flex-shrink: 0 !important;
        /* Don't shrink */
    }

    .chat-header h3 {
        font-size: 0.95rem !important;
        flex: 1 1 auto !important;
        /* Allow growing and shrinking */
        min-width: 0 !important;
        /* Allow text truncation */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        /* Single line */
    }

    .chat-header-buttons {
        flex: 0 0 auto !important;
        /* Don't shrink */
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
        align-items: center !important;
    }

    /* Hide status indicator on mobile to save space */
    .ai-status-indicator {
        display: none !important;
    }

    #tts-btn {
        padding: 0.35rem !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
    }

    #tts-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Close button styling for mobile - inline with other buttons */
    #close-modal-btn {
        position: static !important;
        background: var(--glass-bg) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--border-glow) !important;
        border-radius: 8px !important;
        width: 36px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: var(--text-primary) !important;
        font-size: 1.2rem !important;
        line-height: 1 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    #close-modal-btn:hover {
        background: var(--accent-gradient) !important;
        color: white !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }

    /* Chat Box - Flexible, scrollable */
    .chat-box {
        flex: 1 1 auto !important;
        /* Take remaining space */
        min-height: 0 !important;
        /* Allow shrinking */
        padding: 0.75rem 0.5rem !important;
        /* Reduced horizontal padding */
        gap: 0.5rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* Smooth scrolling on iOS */
    }

    /* Messages - Consistent margins and alignment */
    .chat-message {
        padding: 0.75rem 0.875rem !important;
        max-width: 85% !important;
        /* Consistent max-width */
        margin: 0.4rem 0.5rem !important;
        /* Consistent margin */
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        /* Better readability */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .chat-message.user {
        margin-left: auto !important;
        /* Use auto instead of percentage */
        margin-right: 0.5rem !important;
        align-self: flex-end !important;
    }

    .chat-message.ai {
        margin-left: 0.5rem !important;
        margin-right: auto !important;
        /* Use auto instead of percentage */
        align-self: flex-start !important;
        /* Reduce floating animation on mobile for better performance */
        animation: floatBubbleMobile 4s ease-in-out infinite !important;
    }

    @keyframes floatBubbleMobile {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-3px);
        }
    }

    .chat-message .message-footer {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 0.5rem !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        /* Prevent wrapping */
    }

    .chat-message .message-time {
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    .chat-message .message-speaker-btn {
        width: 28px !important;
        /* Slightly larger for better touch */
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        flex-shrink: 0 !important;
    }

    .chat-message .message-speaker-btn svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* Input Area - Fixed at bottom, don't shrink */
    .chat-input-area {
        flex: 0 0 auto !important;
        /* Don't shrink */
        padding: 0.75rem !important;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
        display: flex !important;
        flex-direction: row !important;
        /* Explicit direction */
        align-items: flex-end !important;
        /* Align buttons to bottom */
        gap: 0.5rem !important;
    }

    #user-input {
        flex: 1 1 auto !important;
        /* Take available space */
        min-width: 0 !important;
        /* Allow shrinking */
        font-size: 0.9rem !important;
        padding: 0.7rem 0.9rem !important;
        min-height: 44px !important;
        /* iOS minimum touch target */
        max-height: 100px !important;
        /* Reduce max height on mobile */
        line-height: 1.4 !important;
    }

    .chat-input-buttons {
        flex: 0 0 auto !important;
        /* Don't shrink */
        display: flex !important;
        flex-direction: row !important;
        gap: 0.4rem !important;
        align-items: center !important;
        /* Center align buttons */
    }

    .chat-btn {
        width: 44px !important;
        /* iOS minimum touch target */
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }

    .chat-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Hide voice wave on mobile to save space */
    .voice-wave {
        display: none !important;
    }
}

@media (max-width: 480px) {

    /* Small Mobile - Even more compact */
    .chat-header {
        padding: 0.65rem 0.75rem !important;
        padding-top: max(0.65rem, env(safe-area-inset-top)) !important;
        min-height: 52px !important;
    }

    .chat-header h3 {
        font-size: 0.85rem !important;
    }

    #close-modal-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
    }

    #tts-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0.3rem !important;
    }

    .chat-box {
        padding: 0.65rem 0.4rem !important;
        gap: 0.4rem !important;
    }

    .chat-message {
        padding: 0.65rem 0.75rem !important;
        max-width: 88% !important;
        margin: 0.35rem 0.4rem !important;
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
    }

    .chat-message.user {
        margin-left: auto !important;
        margin-right: 0.4rem !important;
    }

    .chat-message.ai {
        margin-left: 0.4rem !important;
        margin-right: auto !important;
    }

    .chat-message .message-footer {
        margin-top: 0.4rem !important;
        gap: 0.4rem !important;
    }

    .chat-message .message-time {
        font-size: 0.65rem !important;
    }

    .chat-message .message-speaker-btn {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }

    .chat-message .message-speaker-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .chat-input-area {
        padding: 0.65rem !important;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
        gap: 0.4rem !important;
    }

    #user-input {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem !important;
        min-height: 40px !important;
        max-height: 90px !important;
    }

    .chat-input-buttons {
        gap: 0.35rem !important;
    }

    .chat-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .chat-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
}

.ai-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-ai);
    font-size: 0.85rem;
    opacity: 0.9;
    cursor: default;
    padding: 0.5rem 0.8rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.ai-status-indicator:hover {
    opacity: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--status-online, #00ff00);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

#tts-btn {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#tts-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-ai);
    transition: fill 0.3s ease;
}

#tts-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: scale(1.05);
}

#tts-btn.active {
    background: var(--accent-ai);
}

#tts-btn.active svg {
    fill: var(--primary-dark);
}

#close-modal-btn {
    position: fixed !important;
    top: 2rem !important;
    right: 2rem !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-glow) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10006 !important;
    /* Higher than chat modal z-index 10005 */
    color: var(--text-primary) !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

#close-modal-btn:hover {
    background: var(--accent-gradient) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    #close-modal-btn {
        position: static !important;
        /* Remove fixed positioning on mobile */
        top: auto !important;
        right: auto !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        border-radius: 8px !important;
        /* Square with rounded corners instead of circle */
    }
}

.chat-box {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

/* Light theme - Chat box background */
[data-theme="light"] .chat-box {
    background: rgba(255, 255, 255, 0.3);
}

.chat-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.6;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    margin: 0.75rem 1.5rem;
    word-wrap: break-word;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.chat-message .message-content {
    line-height: 1.7;
}

.chat-message .message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.chat-message .message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.chat-message .message-speaker-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.chat-message .message-speaker-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    color: var(--text-primary);
}

.chat-message .message-speaker-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-message .message-speaker-btn:active {
    transform: scale(0.95);
}

.chat-message.user .message-footer {
    justify-content: flex-end;
}

.chat-message.user .message-speaker-btn {
    display: none;
}

/* Message headers */
.chat-message .message-header {
    margin: 0.5rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.chat-message h1.message-header {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.chat-message h2.message-header {
    font-size: 1.3rem;
    margin: 0.9rem 0;
}

.chat-message h3.message-header {
    font-size: 1.1rem;
    margin: 0.8rem 0;
}

.chat-message h4 {
    font-size: 1rem;
    margin: 0.7rem 0;
}

.chat-message h5 {
    font-size: 0.9rem;
    margin: 0.6rem 0;
}

.chat-message h6 {
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

/* Lists */
.chat-message .message-list {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.chat-message ul,
.chat-message ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.chat-message li {
    margin: 0.3rem 0;
}

/* Code blocks */
.chat-message pre {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 0.8rem;
    margin: 0.8rem 0;
    overflow-x: auto;
}

.chat-message code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.chat-message pre code {
    background: transparent;
    padding: 0;
}

/* Blockquotes */
.chat-message blockquote {
    border-left: 3px solid var(--accent-gold);
    margin: 0.8rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Horizontal rule */
.chat-message .message-hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Images */
.chat-message .message-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Links */
.chat-message a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.chat-message a:hover {
    text-decoration: underline;
    color: var(--accent-ai);
}

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

.chat-message.user {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.6), rgba(30, 50, 80, 0.6));
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-left: 20%;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 500;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Light theme - subtle blue tint */
[data-theme="light"] .chat-message.user {
    background: linear-gradient(135deg, rgba(240, 245, 255, 0.8), rgba(230, 240, 255, 0.85));
    color: var(--text-primary);
    border: 1px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.chat-message.ai {
    background: linear-gradient(135deg, rgba(0, 10, 20, 0.5), rgba(0, 30, 50, 0.5));
    border: 1px solid rgba(0, 200, 255, 0.15);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 8px;
    border-top-left-radius: 4px;
    margin-right: 20%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Floating Animation */
    animation: floatBubble 3s ease-in-out infinite;
    position: relative;
}

/* Light theme - AI message styling */
[data-theme="light"] .chat-message.ai {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    border: 1px solid rgba(0, 200, 255, 0.3);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Light theme - Chat box background */
[data-theme="light"] .chat-box {
    background: rgba(255, 255, 255, 0.3);
}

/* Light theme - Chat header */
[data-theme="light"] .chat-header {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .chat-header h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .chat-header h3 span {
    color: var(--accent-blue) !important;
    text-shadow: none !important;
}

/* Light theme - TTS button */
[data-theme="light"] #tts-btn {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] #tts-btn svg {
    fill: var(--accent-blue) !important;
}

[data-theme="light"] #tts-btn:hover {
    background: rgba(59, 130, 246, 0.25) !important;
}

[data-theme="light"] #tts-btn.active {
    background: var(--accent-blue) !important;
}

[data-theme="light"] #tts-btn.active svg {
    fill: #ffffff !important;
}

/* Light theme - Close button */
[data-theme="light"] #close-modal-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] #close-modal-btn:hover {
    background: var(--accent-blue) !important;
    color: white !important;
    border-color: var(--accent-blue) !important;
}

/* Light theme - Chat buttons (mic, send) */
[data-theme="light"] .chat-btn {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

[data-theme="light"] .chat-btn svg {
    fill: var(--accent-blue) !important;
}

[data-theme="light"] .chat-btn:hover {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

[data-theme="light"] .chat-btn:hover svg {
    fill: #ffffff !important;
}

/* Light theme - Chat input area */
[data-theme="light"] .chat-input-area {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light theme - User input field */
[data-theme="light"] #user-input {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] #user-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] #user-input:disabled {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Light theme - Message time and footer */
[data-theme="light"] .message-time {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .message-footer {
    color: var(--text-secondary) !important;
}

/* Light theme - AI status indicator */
[data-theme="light"] .ai-status-indicator {
    border-left-color: rgba(0, 200, 255, 0.4) !important;
}

/* Light theme - Message speaker button */
[data-theme="light"] .chat-message .message-speaker-btn {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: var(--accent-blue) !important;
}

[data-theme="light"] .chat-message .message-speaker-btn:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

[data-theme="light"] .chat-message .message-speaker-btn svg {
    fill: var(--accent-blue) !important;
}

/* Floating animation for AI chat bubbles */
@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 245, 255, 0.1);
    }

    25% {
        transform: translateY(-3px) translateX(2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 245, 255, 0.15);
    }

    50% {
        transform: translateY(-5px) translateX(0px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 245, 255, 0.2);
    }

    75% {
        transform: translateY(-3px) translateX(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 245, 255, 0.15);
    }
}

/* Enhanced floating on hover */
.chat-message.ai:hover {
    animation: floatBubbleHover 2s ease-in-out infinite;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 245, 255, 0.25);
}

@keyframes floatBubbleHover {

    0%,
    100% {
        transform: translateY(-2px) translateX(0px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 245, 255, 0.25);
    }

    50% {
        transform: translateY(-6px) translateX(3px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 50px rgba(0, 245, 255, 0.3);
    }
}

.chat-message.loading {
    align-self: flex-start;
    color: var(--accent-ai);
    padding: 1rem 1.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.chat-message.loading .loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.persona-selection {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    padding: 1rem 0;
    animation: fadeIn 0.5s ease;
}

.persona-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.persona-btn:hover {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

.chat-input-area {
    display: flex;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    background: linear-gradient(135deg, var(--primary-dark), rgba(10, 10, 10, 0.9));
    gap: 1rem;
}

#user-input {
    flex-grow: 1;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    min-height: 50px;
    max-height: 120px;
}

#user-input:disabled {
    background-color: rgba(0, 0, 0, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

#user-input:focus {
    border-color: var(--accent-ai);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
}

.chat-input-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.chat-btn {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--text-primary);
    border: 1px solid rgba(0, 245, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-ai);
    transition: fill 0.3s ease;
}

.chat-btn:hover {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 245, 255, 0.3);
}

.chat-btn:hover svg {
    fill: var(--primary-dark);
}

#mic-btn.recording {
    background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
    animation: pulse-recording 1.5s infinite;
    border-color: #ff4d4d;
}

@keyframes pulse-recording {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

#send-btn {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
}

#send-btn svg {
    fill: var(--primary-dark);
}

#send-btn:hover {
    background: linear-gradient(135deg, #00d4e6, #1e40af);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

/* Voice Wave Animation */
.voice-wave {
    display: none;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
}

.voice-wave.active {
    display: flex;
}

.voice-wave span {
    width: 3px;
    height: 20px;
    background: var(--accent-ai);
    border-radius: 2px;
    animation: voice-wave 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) {
    animation-delay: 0s;
}

.voice-wave span:nth-child(2) {
    animation-delay: 0.1s;
}

.voice-wave span:nth-child(3) {
    animation-delay: 0.2s;
}

.voice-wave span:nth-child(4) {
    animation-delay: 0.3s;
}

.voice-wave span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes voice-wave {

    0%,
    40%,
    100% {
        transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
    }
}

/* AI Thinking Animation */
.ai-thinking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease;
}

.thinking-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-ai);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading dots animation */
@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.loading-dots {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.chat-message.loading .loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-ai);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-message.loading .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.chat-message.loading .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

/* Quick Action Cards - Contact, WhatsApp, Donation */
.quick-action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 0;
}

.quick-action-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-ai), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
}

.quick-action-card:hover::before {
    opacity: 1;
}

.quick-action-card .card-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quick-action-card .card-content {
    flex: 1;
}

.quick-action-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.quick-action-card .card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.quick-action-card .card-button {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0.5rem;
}

.quick-action-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
    background: linear-gradient(135deg, #00d4e6, #1e40af);
}

.quick-action-card .card-button:active {
    transform: translateY(0);
}

.quick-action-card.whatsapp-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(25, 128, 56, 0.1));
    border-color: rgba(37, 211, 102, 0.3);
}

.quick-action-card.whatsapp-card::before {
    background: linear-gradient(90deg, #25d366, #128c38);
}

.quick-action-card.whatsapp-card:hover {
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.quick-action-card.whatsapp-card .card-button {
    background: linear-gradient(135deg, #25d366, #128c38);
}

.quick-action-card.whatsapp-card .card-button:hover {
    background: linear-gradient(135deg, #2ee576, #1a9d47);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.quick-action-card.donation-card {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1), rgba(220, 38, 38, 0.1));
    border-color: rgba(255, 77, 77, 0.3);
}

.quick-action-card.donation-card::before {
    background: linear-gradient(90deg, #ff4d4d, #dc2626);
}

.quick-action-card.donation-card:hover {
    border-color: rgba(255, 77, 77, 0.5);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.2);
}

.quick-action-card.donation-card .card-button {
    background: linear-gradient(135deg, #ff4d4d, #dc2626);
}

.quick-action-card.donation-card .card-button:hover {
    background: linear-gradient(135deg, #ff6b6b, #ef4444);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

/* Contact Card */
.quick-action-card.contact-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(37, 99, 235, 0.1));
    border-color: rgba(0, 245, 255, 0.3);
}

.quick-action-card.contact-card::before {
    background: linear-gradient(90deg, #00f5ff, #2563eb);
}

.quick-action-card.contact-card:hover {
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
}

.quick-action-card.contact-card .card-button {
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
}

.quick-action-card.contact-card .card-button:hover {
    background: linear-gradient(135deg, #00d4e6, #3b82f6);
    box-shadow: 0 6px 20px rgba(0, 245, 255, 0.4);
}

/* Email Card */
.quick-action-card.email-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.quick-action-card.email-card::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.quick-action-card.email-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.quick-action-card.email-card .card-button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.quick-action-card.email-card .card-button:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Portfolio Card */
.quick-action-card.portfolio-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(124, 58, 237, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

.quick-action-card.portfolio-card::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.quick-action-card.portfolio-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.quick-action-card.portfolio-card .card-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.quick-action-card.portfolio-card .card-button:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Music Card */
.quick-action-card.music-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(219, 39, 119, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}

.quick-action-card.music-card::before {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

.quick-action-card.music-card:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);
}

.quick-action-card.music-card .card-button {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.quick-action-card.music-card .card-button:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* Image Creator Card */
.quick-action-card.image-creator-card {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(249, 115, 22, 0.1));
    border-color: rgba(251, 146, 60, 0.3);
}

.quick-action-card.image-creator-card::before {
    background: linear-gradient(90deg, #fb923c, #f97316);
}

.quick-action-card.image-creator-card:hover {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.2);
}

.quick-action-card.image-creator-card .card-button {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.quick-action-card.image-creator-card .card-button:hover {
    background: linear-gradient(135deg, #fdba74, #fb923c);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

/* Skills Card */
.quick-action-card.skills-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.quick-action-card.skills-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.quick-action-card.skills-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.quick-action-card.skills-card .card-button {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-action-card.skills-card .card-button:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* PerfectMe Card */
.quick-action-card.perfectme-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

.quick-action-card.perfectme-card::before {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.quick-action-card.perfectme-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.quick-action-card.perfectme-card .card-button {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.quick-action-card.perfectme-card .card-button:hover {
    background: linear-gradient(135deg, #c084fc, #a855f7);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Community Card */
.quick-action-card.community-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.1));
    border-color: rgba(14, 165, 233, 0.3);
}

.quick-action-card.community-card::before {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.quick-action-card.community-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.quick-action-card.community-card .card-button {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.quick-action-card.community-card .card-button:hover {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Articles Card */
.quick-action-card.articles-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.quick-action-card.articles-card::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.quick-action-card.articles-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.quick-action-card.articles-card .card-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quick-action-card.articles-card .card-button:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Mobile Responsive for Quick Action Cards */
@media (max-width: 768px) {
    .quick-action-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }

    .quick-action-card {
        padding: 1rem;
        gap: 0.6rem;
    }

    .quick-action-card .card-icon {
        font-size: 2rem;
    }

    .quick-action-card .card-title {
        font-size: 1rem;
    }

    .quick-action-card .card-description {
        font-size: 0.8rem;
    }

    .quick-action-card .card-button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .quick-action-cards {
        gap: 0.6rem;
        margin: 0.6rem 0;
    }

    .quick-action-card {
        padding: 0.875rem;
    }

    .quick-action-card .card-icon {
        font-size: 1.75rem;
    }

    .quick-action-card .card-title {
        font-size: 0.95rem;
    }

    .quick-action-card .card-description {
        font-size: 0.75rem;
    }

    .quick-action-card .card-button {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Profile Section with 3D Tilt Effect */
#profil {
    perspective: 1000px;
    overflow: visible;
}

#profil .container {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

#profil:hover .container {
    transform: rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
}

/* Smooth 3D Tilt Variables */
:root {
    --tiltX: 0deg;
    --tiltY: 0deg;
    --maxTilt: 15deg;
    --tiltSensitivity: 0.1;
}

/* Enhanced Profile Card Styling */
#profil .biography-text {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

#profil .biography-text p {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

#profil:hover .biography-text p {
    transform: translateZ(30px) scale(1.02);
}

/* 3D Depth Layers */
#profil .section-title {
    transform: translateZ(10px);
    transition: transform 0.3s ease;
}

#profil:hover .section-title {
    transform: translateZ(15px);
}

/* Nonaktifkan 3D effects pada mobile */
@media (max-width: 768px) {

    /* Nonaktifkan perspective dan 3D transforms */
    #profil {
        perspective: none;
        overflow: visible;
    }

    #profil .container,
    #profil .auto-tilt-container {
        transform-style: flat;
        animation: none !important;
        transform: none !important;
        transition: none;
        will-change: auto;
    }

    /* Reset semua 3D transforms pada mobile */
    #profil .biography-text {
        transform-style: flat;
    }

    #profil .biography-text p {
        transform: none !important;
    }

    #profil .section-title {
        transform: none !important;
    }

    /* Nonaktifkan hover effects di mobile */
    #profil:hover .container,
    #profil:hover .biography-text p,
    #profil:hover .section-title {
        transform: none !important;
    }
}

/* MODE 1: Sophisticated */
.sophisticated-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at center,
            rgba(0, 245, 255, 0.8) 0%,
            rgba(30, 64, 175, 0.4) 40%,
            rgba(0, 191, 255, 0.2) 70%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: sophisticatedShine 1s ease-out forwards;
    box-shadow:
        0 0 6px rgba(0, 245, 255, 0.4),
        0 0 12px rgba(30, 64, 175, 0.3),
        0 0 18px rgba(0, 191, 255, 0.2);
}

@keyframes sophisticatedShine {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    30% {
        transform: scale(1.5) rotate(90deg);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.4) rotate(270deg);
        opacity: 0;
    }
}

.sophisticated-ripple {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    animation: sophisticatedRipple 1.5s ease-out forwards;
    background: radial-gradient(circle at center,
            rgba(0, 245, 255, 0.08) 0%,
            rgba(30, 64, 175, 0.04) 30%,
            rgba(138, 43, 226, 0.02) 50%,
            transparent 100%);
}

@keyframes sophisticatedRipple {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
        border-color: rgba(0, 245, 255, 0.4);
    }

    50% {
        transform: scale(1.8);
        opacity: 0.3;
        border-color: rgba(30, 64, 175, 0.3);
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
        border-color: transparent;
    }
}

/* MODE 2: Elegant Multi-Star */
.elegant-star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at center,
            rgba(0, 245, 255, 0.9) 0%,
            rgba(30, 64, 175, 0.5) 40%,
            rgba(0, 191, 255, 0.3) 70%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: elegantSpread 2s ease-out forwards;
    box-shadow:
        0 0 4px rgba(0, 245, 255, 0.5),
        0 0 8px rgba(30, 64, 175, 0.3),
        0 0 12px rgba(0, 191, 255, 0.2);
}

@keyframes elegantSpread {
    0% {
        transform: scale(0) rotate(0deg) translate(0, 0);
        opacity: 0;
    }

    20% {
        transform: scale(1.2) rotate(72deg) translate(0, 0);
        opacity: 1;
    }

    60% {
        transform: scale(0.8) rotate(144deg) translate(var(--tx, 0px), var(--ty, 0px));
        opacity: 0.8;
    }

    100% {
        transform: scale(0.3) rotate(216deg) translate(var(--tx, 0px), var(--ty, 0px));
        opacity: 0;
    }
}

.elegant-ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    animation: elegantExpand 1.8s ease-out forwards;
    background: radial-gradient(circle at center,
            rgba(0, 245, 255, 0.06) 0%,
            rgba(30, 64, 175, 0.03) 30%,
            rgba(138, 43, 226, 0.015) 50%,
            transparent 100%);
}

@keyframes elegantExpand {
    0% {
        transform: scale(0.4);
        opacity: 0.6;
        border-color: rgba(0, 245, 255, 0.3);
    }

    40% {
        transform: scale(1.5);
        opacity: 0.4;
        border-color: rgba(30, 64, 175, 0.2);
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
        border-color: transparent;
    }
}

/* MODE 3: Rainbow Ultra */
.rainbow-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at center,
            hsl(var(--hue, 0), 95%, 75%) 0%,
            hsl(calc(var(--hue, 0) + 60), 85%, 65%) 35%,
            hsl(calc(var(--hue, 0) + 120), 75%, 55%) 65%,
            hsl(calc(var(--hue, 0) + 180), 65%, 45%) 85%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: rainbowScatter 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    box-shadow:
        0 0 4px hsl(var(--hue, 0), 95%, 75%),
        0 0 8px hsl(calc(var(--hue, 0) + 60), 85%, 65%),
        0 0 12px hsl(calc(var(--hue, 0) + 120), 75%, 55%),
        0 0 16px hsl(calc(var(--hue, 0) + 180), 65%, 45%);
    filter: blur(0.5px);
}

@keyframes rainbowScatter {
    0% {
        transform: scale(0) rotate(0deg) translate(0, 0);
        opacity: 0;
    }

    10% {
        transform: scale(2) rotate(45deg) translate(0, 0);
        opacity: 1;
    }

    40% {
        transform: scale(1.2) rotate(180deg) translate(var(--tx, 0px), var(--ty, 0px));
        opacity: 0.95;
    }

    70% {
        transform: scale(0.8) rotate(360deg) translate(calc(var(--tx, 0px) * 1.5), calc(var(--ty, 0px) * 1.5));
        opacity: 0.7;
    }

    100% {
        transform: scale(0.1) rotate(720deg) translate(calc(var(--tx, 0px) * 2), calc(var(--ty, 0px) * 2));
        opacity: 0;
    }
}

.rainbow-ripple {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    animation: rainbowPulse 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    background: conic-gradient(from 0deg at center,
            hsl(0, 95%, 75%) 0%,
            hsl(45, 95%, 75%) 15%,
            hsl(90, 95%, 75%) 30%,
            hsl(135, 95%, 75%) 45%,
            hsl(180, 95%, 75%) 60%,
            hsl(225, 95%, 75%) 75%,
            hsl(270, 95%, 75%) 90%,
            hsl(315, 95%, 75%) 100%);
    opacity: 0.8;
    filter: blur(1px);
}

@keyframes rainbowPulse {
    0% {
        transform: scale(0.2) rotate(0deg);
        opacity: 0.9;
        border-color: hsl(0, 95%, 75%);
    }

    25% {
        transform: scale(2) rotate(90deg);
        opacity: 0.6;
        border-color: hsl(120, 95%, 75%);
    }

    50% {
        transform: scale(3.5) rotate(180deg);
        opacity: 0.3;
        border-color: hsl(240, 95%, 75%);
    }

    100% {
        transform: scale(5) rotate(360deg);
        opacity: 0;
        border-color: transparent;
    }
}

/* MODE 4: Magical Sparkle */
.magical-star {
    position: absolute;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle at center,
            rgba(255, 215, 0, 0.9) 0%,
            rgba(255, 165, 0, 0.7) 30%,
            rgba(255, 69, 0, 0.5) 60%,
            rgba(255, 20, 147, 0.3) 80%,
            transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: magicalSparkle 2s ease-in-out forwards;
    box-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 16px rgba(255, 165, 0, 0.6),
        0 0 24px rgba(255, 69, 0, 0.4),
        0 0 32px rgba(255, 20, 147, 0.3),
        0 0 40px rgba(138, 43, 226, 0.2);
    filter: blur(0.3px) brightness(1.2);
}

@keyframes magicalSparkle {
    0% {
        transform: scale(0) rotate(0deg) translate(0, 0);
        opacity: 0;
    }

    15% {
        transform: scale(2.5) rotate(180deg) translate(0, 0);
        opacity: 1;
    }

    35% {
        transform: scale(1.8) rotate(360deg) translate(var(--tx, 0px), var(--ty, 0px));
        opacity: 0.9;
    }

    65% {
        transform: scale(1.2) rotate(540deg) translate(calc(var(--tx, 0px) * 1.3), calc(var(--ty, 0px) * 1.3));
        opacity: 0.6;
    }

    100% {
        transform: scale(0.3) rotate(900deg) translate(calc(var(--tx, 0px) * 1.8), calc(var(--ty, 0px) * 1.8));
        opacity: 0;
    }
}

.magical-ripple {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    animation: magicalPulse 2.2s ease-in-out forwards;
    background: radial-gradient(circle at center,
            rgba(255, 215, 0, 0.15) 0%,
            rgba(255, 165, 0, 0.1) 30%,
            rgba(255, 69, 0, 0.05) 60%,
            transparent 100%);
    filter: blur(0.8px);
}

@keyframes magicalPulse {
    0% {
        transform: scale(0.3) rotate(0deg);
        opacity: 0.8;
        border-color: rgba(255, 215, 0, 0.6);
    }

    30% {
        transform: scale(2.5) rotate(120deg);
        opacity: 0.5;
        border-color: rgba(255, 69, 0, 0.4);
    }

    60% {
        transform: scale(4) rotate(240deg);
        opacity: 0.2;
        border-color: rgba(255, 20, 147, 0.3);
    }

    100% {
        transform: scale(5.5) rotate(360deg);
        opacity: 0;
        border-color: transparent;
    }
}

/* ============================================
           PERFECTME SPOTLIGHT SECTION
           ============================================ */

#perfectme.perfectme-spotlight {
    padding: 3rem 0;
    position: relative;
    overflow: visible !important;
    /* Visible untuk animasi border berkeliling, mask CSS mencegah scrollbar */
    overflow-x: hidden !important;
    /* Hanya hidden horizontal untuk mencegah scrollbar horizontal */
}

/* Ensure PerfectMe container doesn't block animation */
#perfectme.perfectme-spotlight .container {
    overflow: visible !important;
    overflow-x: hidden !important;
}

.perfectme-hero-card-wrapper {
    position: relative;
    border-radius: 16px;
    background: transparent;
    padding: 1px;
    z-index: 0;
    overflow: hidden !important;
    /* Hidden untuk memotong animated-border yang lebih besar, mask CSS membuat border tetap terlihat di semua sisi */
    max-width: 1100px;
    margin: 0 auto;
}

.perfectme-hero-card {
    position: relative;
    background: rgba(18, 18, 18, 0.95);
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
    margin: 2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* PerfectMe Header */
.perfectme-header {
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    text-align: center;
}

.perfectme-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.perfectme-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.perfectme-title-section {
    flex: 1;
    text-align: center;
}

.perfectme-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.perfectme-tagline {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.5rem;
    text-align: center;
}

.perfectme-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-align: center;
}

.perfectme-comparison-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.9;
    text-align: center;
}

/* PerfectMe Sections */
.perfectme-section {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.perfectme-section-header {
    margin-bottom: 0.875rem;
    text-align: center;
}

.perfectme-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.perfectme-description {
    color: #b8b8c0;
    /* Improved contrast for better readability */
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
}

.perfectme-closing-text {
    color: #b8b8c0;
    /* Improved contrast for better readability */
    line-height: 1.5;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.perfectme-final-text {
    color: var(--accent-gold);
    line-height: 1.5;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Features List */
.perfectme-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

/* Desktop: 4 columns for features list */
@media (min-width: 1200px) {
    .perfectme-features-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet: 2 columns for features list */
@media (min-width: 769px) and (max-width: 1199px) {
    .perfectme-features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column for features list */
@media (max-width: 768px) {
    .perfectme-features-list {
        grid-template-columns: 1fr;
    }
}

.perfectme-feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.perfectme-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Features Carousel */
.perfectme-features-carousel-container {
    position: relative;
    margin-top: 0.875rem;
}

.perfectme-features-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.perfectme-features-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    outline: none;
}

.perfectme-features-carousel:focus {
    outline: 2px solid rgba(96, 165, 250, 0.4);
    outline-offset: 4px;
    border-radius: 12px;
}

.perfectme-features-carousel::-webkit-scrollbar {
    display: none;
}

.perfectme-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 0.5rem;
}

.perfectme-feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(96, 165, 250, 0.3);
}

.feature-card-number {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
    z-index: 3;
}

.feature-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.feature-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Carousel Navigation */
.perfectme-carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.perfectme-carousel-prev,
.perfectme-carousel-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.perfectme-carousel-prev:hover,
.perfectme-carousel-next:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    transform: scale(1.1);
}

.perfectme-carousel-prev:focus,
.perfectme-carousel-next:focus {
    outline: 2px solid rgba(96, 165, 250, 0.6);
    outline-offset: 2px;
}

.perfectme-carousel-prev:focus-visible,
.perfectme-carousel-next:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.8);
    outline-offset: 2px;
}

/* Comparison Table */
.perfectme-comparison-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
    box-sizing: border-box;
}

.perfectme-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Increased untuk kolom tambahan */
    table-layout: fixed;
    /* Fixed layout untuk kontrol width yang tepat */
}

.perfectme-comparison-table thead {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(139, 92, 246, 0.15));
}

.perfectme-comparison-table th {
    padding: 0.75rem 0.875rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.perfectme-comparison-table th.comparison-feature {
    color: var(--text-primary);
    width: 18%;
    text-align: left;
    font-weight: 700;
}

.perfectme-comparison-table th.comparison-linkedin {
    color: var(--text-secondary);
    width: 32%;
}

.perfectme-comparison-table th.comparison-perfectme {
    color: var(--accent-gold);
    width: 32%;
}

.perfectme-comparison-table th.comparison-rating {
    color: var(--text-primary);
    width: 18%;
    font-size: 0.9rem;
}

.rating-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.rating-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.rating-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Ensure td width matches th width */
.perfectme-comparison-table td.feature-name {
    width: 18%;
}

.perfectme-comparison-table td.comparison-cell.linkedin-cell {
    width: 32%;
}

.perfectme-comparison-table td.comparison-cell.perfectme-cell {
    width: 32%;
}

.perfectme-comparison-table td.rating-cell {
    width: 18%;
}

.platform-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.platform-name {
    font-size: 1rem;
    font-weight: 700;
}

.platform-score {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.platform-score.score-low {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.platform-score.score-high {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.perfectme-comparison-table td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.perfectme-comparison-table td.feature-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: left;
}

.comparison-cell {
    text-align: center;
}

.cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.status-icon.status-check {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.status-icon.status-x {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.cell-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.3;
    text-align: center;
}

.comparison-cell.perfectme-cell .cell-text {
    color: var(--text-primary);
    font-weight: 500;
}

.cell-score {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.cell-score.score-low {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.cell-score.score-high {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.comparison-cell.linkedin-cell {
    background: rgba(239, 68, 68, 0.05);
}

.comparison-cell.perfectme-cell {
    background: rgba(16, 185, 129, 0.05);
}

.perfectme-comparison-table tbody tr {
    transition: all 0.2s ease;
}

.perfectme-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.perfectme-comparison-table tbody tr:hover .linkedin-cell {
    background: rgba(239, 68, 68, 0.1);
}

.perfectme-comparison-table tbody tr:hover .perfectme-cell {
    background: rgba(16, 185, 129, 0.1);
}

.perfectme-comparison-table tfoot {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(139, 92, 246, 0.15));
}

.perfectme-comparison-table tfoot td {
    padding: 0.875rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border-top: 2px solid rgba(96, 165, 250, 0.3);
}

.total-label {
    text-align: left !important;
    color: var(--text-primary) !important;
    width: 18% !important;
}

.total-score {
    font-size: 1.1rem !important;
    width: 32% !important;
}

.rating-total {
    width: 18% !important;
}

/* Rating Cell Styling */
.rating-cell {
    text-align: center;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-content {
    padding: 0.5rem;
}

.rating-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
}

.rating-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.linkedin-rating .rating-label {
    color: #fca5a5;
}

.perfectme-rating .rating-label {
    color: #6ee7b7;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
}

.rating-stars .star {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

.rating-stars .star.filled {
    color: #fbbf24;
}

.linkedin-rating .rating-stars .star.filled {
    color: #f59e0b;
}

.perfectme-rating .rating-stars .star.filled {
    color: #10b981;
}

.rating-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.linkedin-rating .rating-value {
    color: #fca5a5;
}

.perfectme-rating .rating-value {
    color: #6ee7b7;
}

.rating-total {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-total .rating-stars .star.filled {
    color: #f59e0b;
}

.rating-total .linkedin-rating .rating-stars .star.filled {
    color: #f59e0b;
}

.rating-total .perfectme-rating .rating-stars .star.filled {
    color: #10b981;
}

.rating-total .rating-value {
    font-size: 0.75rem;
    font-weight: 700;
}

.rating-total .linkedin-rating .rating-value {
    color: #fca5a5;
    font-size: 0.8rem;
}

.rating-total .perfectme-rating .rating-value {
    color: #6ee7b7;
    font-size: 0.8rem;
}

.perfectme-comparison-table tbody tr:hover .rating-cell {
    background: rgba(255, 255, 255, 0.04);
}

/* CTA Button */
.perfectme-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.75rem;
}

.perfectme-cta-microcopy {
    color: #b8b8c0;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

.perfectme-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6, #ec4899);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
    position: relative;
    overflow: hidden;
    outline: none;
}

.perfectme-cta-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
}

.perfectme-cta-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

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

.perfectme-cta-button:hover::before {
    left: 100%;
}

.perfectme-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.5);
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    #perfectme.perfectme-spotlight {
        padding: 2.5rem 0;
    }

    .perfectme-hero-card {
        padding: 2rem 1.75rem;
        gap: 1.5rem;
    }

    .perfectme-title {
        font-size: 2rem;
    }

    .perfectme-tagline {
        font-size: 1.05rem;
    }

    .perfectme-subtitle {
        font-size: 0.95rem;
    }

    .perfectme-section-title {
        font-size: 1.3rem;
    }

    .perfectme-features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .perfectme-feature-item {
        padding: 0.6rem;
        font-size: 0.88rem;
    }

    .perfectme-feature-card {
        padding: 1.6rem;
        min-height: 260px;
    }

    .feature-card-title {
        font-size: 1.15rem;
    }

    .feature-card-description {
        font-size: 0.88rem;
    }

    .perfectme-comparison-table-wrapper {
        font-size: 0.9rem;
    }

    .perfectme-comparison-table th,
    .perfectme-comparison-table td {
        padding: 0.875rem 1rem;
    }

    .perfectme-comparison-table {
        min-width: 650px;
        /* Increased untuk kolom tambahan */
    }

    .perfectme-carousel-prev,
    .perfectme-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Responsive Design - Mobile (max-width: 768px) */
@media (max-width: 768px) {
    #perfectme.perfectme-spotlight {
        padding: 2rem 0;
    }

    .perfectme-hero-card-wrapper {
        max-width: 100%;
        margin: 0 1rem;
    }

    .perfectme-hero-card {
        padding: 1.75rem 1.25rem;
        gap: 1.5rem;
    }

    .perfectme-title-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .perfectme-icon {
        font-size: 1.75rem;
    }

    .perfectme-title {
        font-size: 1.75rem;
    }

    .perfectme-tagline {
        font-size: 1rem;
    }

    .perfectme-subtitle {
        font-size: 0.9rem;
    }

    .perfectme-comparison-text {
        font-size: 0.85rem;
    }

    .perfectme-section {
        margin-bottom: 1.25rem;
    }

    .perfectme-section-header {
        margin-bottom: 0.75rem;
    }

    .perfectme-section-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .perfectme-description {
        font-size: 0.9rem;
        margin-bottom: 0.875rem;
    }

    .perfectme-closing-text {
        font-size: 0.9rem;
    }

    .perfectme-final-text {
        font-size: 0.95rem;
        margin-top: 1rem;
    }

    .perfectme-features-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .perfectme-feature-item {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .feature-icon {
        font-size: 1.1rem;
    }

    .perfectme-features-carousel-container {
        margin-top: 1rem;
    }

    .perfectme-feature-card {
        padding: 1rem;
        min-height: auto;
    }

    .feature-card-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 10px;
        right: 15px;
    }

    .feature-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .perfectme-carousel-navigation {
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .perfectme-carousel-prev,
    .perfectme-carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .perfectme-comparison-table-wrapper {
        margin: 1rem 0;
        font-size: 0.85rem;
        -webkit-overflow-scrolling: touch;
    }

    .perfectme-comparison-table {
        min-width: 700px;
        /* Increased untuk kolom tambahan */
    }

    .perfectme-comparison-table th,
    .perfectme-comparison-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .perfectme-comparison-table th {
        font-size: 0.9rem;
    }

    .cell-content {
        gap: 0.4rem;
    }

    .status-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }

    .cell-text {
        font-size: 0.85rem;
    }

    .platform-score,
    .cell-score {
        font-size: 0.8rem;
        padding: 0.15rem 0.5rem;
    }

    .perfectme-cta-wrapper {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    .perfectme-cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .perfectme-cta-microcopy {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* Responsive Design - Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    #perfectme.perfectme-spotlight {
        padding: 1.5rem 0;
    }

    .perfectme-hero-card-wrapper {
        margin: 0 0.75rem;
    }

    .perfectme-hero-card {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .perfectme-title {
        font-size: 1.5rem;
    }

    .perfectme-tagline {
        font-size: 0.95rem;
    }

    .perfectme-subtitle {
        font-size: 0.85rem;
    }

    .perfectme-section-title {
        font-size: 1.1rem;
    }

    .perfectme-feature-card {
        padding: 1rem;
    }

    .feature-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card-description {
        font-size: 0.8rem;
    }

    .perfectme-comparison-table {
        min-width: 550px;
        /* Increased untuk kolom tambahan */
    }

    .perfectme-comparison-table th,
    .perfectme-comparison-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }

    .perfectme-carousel-prev,
    .perfectme-carousel-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* Responsive Design - Large Desktop (min-width: 1400px) */
@media (min-width: 1400px) {
    .perfectme-hero-card-wrapper {
        max-width: 1200px;
    }

    .perfectme-hero-card {
        padding: 3rem;
        gap: 2rem;
    }

    .perfectme-title {
        font-size: 2.5rem;
    }

    .perfectme-tagline {
        font-size: 1.2rem;
    }

    .perfectme-section-title {
        font-size: 1.5rem;
    }

    .perfectme-features-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Light Theme Support */
[data-theme="light"] .perfectme-hero-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .perfectme-title {
    background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .perfectme-feature-card,
[data-theme="light"] .perfectme-feature-item {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .perfectme-comparison-table {
    background: #ffffff !important;
}

[data-theme="light"] .perfectme-comparison-table th {
    background: #f1f5f9 !important;
    color: #1a202c !important;
}

[data-theme="light"] .perfectme-comparison-table td {
    color: #475569 !important;
}

/* ============================================
   CONTACT FORM MODAL STYLES
   ============================================ */

.contact-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.contact-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin: auto;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

[data-theme="light"] .contact-modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow, rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    color: var(--text-primary, #f5f5f5);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.contact-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.contact-modal-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    padding: 3rem 2.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.contact-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    }
}

.contact-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #f5f5f5);
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-modal-header p {
    color: var(--text-secondary, #a0a0a0);
    font-size: 0.95rem;
    margin: 0;
}

/* Form Preset Section */
.form-preset-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.1));
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.preset-btn {
    padding: 0.75rem 1rem;
    background: var(--card-bg, #1a1a1a);
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-primary, #f5f5f5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.preset-btn i {
    font-size: 1.2rem;
    color: #3b82f6;
}

.preset-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.preset-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Contact Form Styles */
.contact-form {
    padding: 2.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary, #f5f5f5);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-label i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 2px solid var(--input-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    color: var(--text-primary, #f5f5f5);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f5f5f5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Dropdown options styling */
.form-select option {
    background: var(--card-bg, #1a1a1a);
    color: var(--text-primary, #f5f5f5);
    padding: 0.75rem;
}

.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary, #f5f5f5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: var(--input-bg, rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.error {
    color: #ef4444;
}

.checkbox-group {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label a {
    color: #3b82f6;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #2563eb;
}

.form-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.form-message.info {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn-submit,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    flex: 1;
    justify-content: center;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--glass-bg, rgba(255, 255, 255, 0.1));
    color: var(--text-primary, #f5f5f5);
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.2));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.form-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a0a0a0);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-footer i {
    color: #3b82f6;
}

.form-footer strong {
    color: var(--text-primary, #f5f5f5);
}

/* Light theme support for form selects */
[data-theme="light"] .form-select {
    background: var(--input-bg, rgba(255, 255, 255, 0.95));
    color: var(--text-primary, #1a1a1a);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

[data-theme="light"] .form-select option {
    background: #ffffff;
    color: #1a1a1a;
}

[data-theme="light"] .form-select option:hover,
[data-theme="light"] .form-select option:focus,
[data-theme="light"] .form-select option:checked {
    background: rgba(59, 130, 246, 0.1);
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-modal {
        margin: 1rem;
        border-radius: 15px;
    }

    .contact-modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 480px) {
        .preset-buttons {
            grid-template-columns: 1fr;
        }
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-secondary {
        width: 100%;
    }

    .contact-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Update placeholder on language change */
[data-i18n-placeholder]::placeholder {
    transition: opacity 0.3s ease;
}

/* ============================================
   PHOTO GALLERY STYLES - Featured + Carousel
   ============================================ */

/* Photo Gallery Section */
#photo-gallery {
    position: relative;
    z-index: 1;
}

/* Featured Photo Section */
.photo-gallery-featured {
    margin-bottom: 2rem;
}

.featured-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-photo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.featured-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.featured-photo-wrapper:hover img {
    transform: scale(1.05);
}

.featured-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.featured-photo-wrapper:hover .featured-photo-overlay {
    opacity: 1;
}

.featured-photo-info {
    color: var(--text-primary);
    z-index: 3;
}

.featured-photo-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.featured-photo-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.9;
}

.featured-photo-expand {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.featured-photo-expand:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
}

/* Carousel Container */
.photo-gallery-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.photo-gallery-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.photo-gallery-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.photo-gallery-carousel::-webkit-scrollbar {
    height: 6px;
}

.photo-gallery-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.photo-gallery-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.photo-gallery-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Carousel Item */
.photo-carousel-item {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
    position: relative;
}

.photo-carousel-item:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.5);
}

.photo-carousel-item.active {
    opacity: 1;
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.photo-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Navigation */
.carousel-nav {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.carousel-nav:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Lightbox Styles */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-lightbox.active {
    display: flex;
    opacity: 1;
}

.photo-lightbox[aria-hidden="false"] {
    display: flex;
    opacity: 1;
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

/* Lightbox Container */
.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Content */
.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Lightbox Info */
.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    max-width: 600px;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.lightbox-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.5rem;
}

/* Lightbox Buttons */
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    font-size: 1.2rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-photo-wrapper {
        aspect-ratio: 4 / 3;
    }

    .featured-photo-overlay {
        padding: 1.5rem;
    }

    .featured-photo-info h3 {
        font-size: 1.25rem;
    }

    .featured-photo-info p {
        font-size: 0.9rem;
    }

    .photo-gallery-carousel-container {
        gap: 0.5rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .photo-carousel-item {
        flex: 0 0 100px;
        height: 100px;
    }

    .lightbox-container {
        max-width: 95vw;
        padding: 1rem;
    }

    .lightbox-content img {
        max-height: 70vh;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-info {
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .lightbox-info h3 {
        font-size: 1.25rem;
    }

    .lightbox-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .photo-carousel-item {
        flex: 0 0 80px;
        height: 80px;
    }

    .carousel-nav {
        display: none;
        /* Hide nav buttons on very small screens, use swipe */
    }
}

/* Light Theme Support */
[data-theme="light"] .featured-photo-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .photo-carousel-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .photo-carousel-item.active {
    border-color: var(--accent-blue, #3b82f6);
}

[data-theme="light"] .lightbox-overlay {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .lightbox-info h3 {
    color: var(--text-primary, #1a1a1a);
}

[data-theme="light"] .lightbox-info p {
    color: var(--text-secondary, #4a4a4a);
}

[data-theme="light"] .lightbox-close,
[data-theme="light"] .lightbox-nav {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary, #1a1a1a);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .lightbox-close:hover,
[data-theme="light"] .lightbox-nav:hover {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

/* ============================================
   CERTIFICATIONS SECTION - PREMIUM STYLING
   ============================================ */

.certifications-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.03), rgba(37, 99, 235, 0.03));
    overflow: hidden;
}

.certifications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.certifications-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header Enhancements */
.cert-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-ai);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: certBadgeGlow 3s ease-in-out infinite;
}

.cert-badge-icon {
    font-size: 1.2rem;
    animation: certIconFloat 2s ease-in-out infinite;
}

@keyframes certBadgeGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    }
}

@keyframes certIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.trust-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.cert-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
}

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

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

.cert-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-ai), var(--accent-blue), var(--accent-ai));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: certGradientMove 3s linear infinite;
}

.cert-card:hover::after {
    opacity: 1;
}

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

    100% {
        background-position: 200% 50%;
    }
}

.cert-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-ai);
    box-shadow:
        0 20px 40px rgba(0, 245, 255, 0.15),
        0 0 0 1px rgba(0, 245, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-card.premium {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(37, 99, 235, 0.05));
    border-color: rgba(0, 245, 255, 0.2);
}

.cert-card.premium:hover {
    box-shadow:
        0 25px 50px rgba(0, 245, 255, 0.2),
        0 0 0 1px rgba(0, 245, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Card Header */
.cert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    gap: 1rem;
    min-height: 140px;
}

.cert-provider-logo {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
    flex-shrink: 0;
}

.cert-card:hover .cert-provider-logo {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
}

/* Backdrop lebih terang untuk logo Google Cloud dan AWS agar teks lebih terlihat */
.cert-card[data-cert="google-cloud-ml"] .cert-provider-logo,
.cert-card[data-cert="aws-ml"] .cert-provider-logo {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

/* Hilangkan backdrop putih untuk Google Cloud karena gambar sudah putih */
.cert-card[data-cert="google-cloud-ml"] .cert-provider-logo {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
}

.cert-card[data-cert="google-cloud-ml"]:hover .cert-provider-logo,
.cert-card[data-cert="aws-ml"]:hover .cert-provider-logo {
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 24px rgba(0, 245, 255, 0.2);
}

/* Hilangkan backdrop putih saat hover untuk Google Cloud */
.cert-card[data-cert="google-cloud-ml"]:hover .cert-provider-logo {
    background: rgba(0, 0, 0, 0.15);
}

.cert-provider-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 100px;
    min-height: 60px;
    filter: grayscale(0%) brightness(1.05) contrast(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
    object-fit: contain;
}

.cert-card:hover .cert-provider-logo img {
    filter: grayscale(0%) brightness(1.15) contrast(1.2) drop-shadow(0 4px 12px rgba(0, 245, 255, 0.3));
    transform: scale(1.05);
}

/* Filter khusus untuk logo Google Cloud dan AWS agar teks lebih terlihat */
.cert-card[data-cert="google-cloud-ml"] .cert-provider-logo img,
.cert-card[data-cert="aws-ml"] .cert-provider-logo img {
    filter:
        grayscale(0%) brightness(1.2) contrast(1.3) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Filter khusus untuk Google Cloud - hilangkan glow putih dan kurangi brightness */
.cert-card[data-cert="google-cloud-ml"] .cert-provider-logo img {
    filter:
        grayscale(0%) brightness(1.0) contrast(1.2) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    mix-blend-mode: normal;
    transform: scale(1.2);
}

/* Perbesar logo AWS */
.cert-card[data-cert="aws-ml"] .cert-provider-logo img {
    transform: scale(1.2);
}

/* Perbesar logo NVIDIA */
.cert-card[data-cert="nvidia-dli"] .cert-provider-logo img {
    transform: scale(1.2);
}

/* Perbesar logo Azure */
.cert-card[data-cert="azure-ai"] .cert-provider-logo img {
    transform: scale(1.2);
}

.cert-card[data-cert="google-cloud-ml"]:hover .cert-provider-logo img,
.cert-card[data-cert="aws-ml"]:hover .cert-provider-logo img {
    filter:
        grayscale(0%) brightness(1.3) contrast(1.4) drop-shadow(0 4px 12px rgba(0, 245, 255, 0.3));
}

/* Filter hover khusus untuk Google Cloud - kurangi brightness untuk hilangkan glow */
.cert-card[data-cert="google-cloud-ml"]:hover .cert-provider-logo img {
    filter:
        grayscale(0%) brightness(1.05) contrast(1.3) drop-shadow(0 4px 12px rgba(0, 245, 255, 0.2));
    transform: scale(1.25);
}

/* Perbesar logo AWS saat hover */
.cert-card[data-cert="aws-ml"]:hover .cert-provider-logo img {
    transform: scale(1.25);
}

/* Perbesar logo NVIDIA saat hover */
.cert-card[data-cert="nvidia-dli"]:hover .cert-provider-logo img {
    transform: scale(1.25);
}

/* Perbesar logo Azure saat hover */
.cert-card[data-cert="azure-ai"]:hover .cert-provider-logo img {
    transform: scale(1.25);
}

.cert-verified-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
}

.verified-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green);
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Card Body */
.cert-card-body {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.cert-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cert-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
    min-height: 60px;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    margin-top: auto;
}

.cert-level {
    color: var(--accent-ai);
    font-weight: 600;
}

.cert-issuer {
    color: var(--text-secondary);
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* Card Footer */
.cert-card-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-tag {
    padding: 0.35rem 0.75rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-ai);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-tag {
    background: rgba(0, 245, 255, 0.15);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

/* Additional Credentials */
.additional-credentials {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.credentials-header {
    text-align: center;
    margin-bottom: 2rem;
}

.credentials-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-ai);
    transform: translateY(-4px);
}

.credential-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.credential-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.credential-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero Section Badge Integration */
.hero-certifications {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cert-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    align-items: stretch;
    max-width: 500px;
    margin: 0 auto;
}

.hero-cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 140px;
    cursor: pointer;
}

.hero-cert-badge:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-ai);
    box-shadow: 0 8px 24px rgba(0, 245, 255, 0.2);
}

.hero-cert-badge-image-wrapper {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.hero-cert-badge img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%) brightness(1.0) contrast(1.1);
    transition: all 0.3s ease;
}

.hero-cert-badge:hover img {
    filter: grayscale(0%) brightness(1.1) contrast(1.15);
    transform: scale(1.05);
}

.hero-cert-badge-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
    width: 100%;
    margin-top: auto;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-cert-badge:hover .hero-cert-badge-label {
    color: var(--accent-ai);
}

/* Footer Compact Badges */
.footer-certifications {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-cert-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-cert-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.footer-cert-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.footer-cert-badge:hover img {
    filter: grayscale(0%);
}

/* Trust Badges Enhanced Styling */
.trust-badge-secure {
    border-left: 3px solid var(--accent-green) !important;
}

.trust-badge-secure:hover {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: var(--accent-green) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.trust-badge-gdpr {
    border-left: 3px solid var(--accent-blue) !important;
}

.trust-badge-gdpr:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.trust-badge-safe {
    border-left: 3px solid var(--accent-gold) !important;
}

.trust-badge-safe:hover {
    background: rgba(234, 179, 8, 0.1) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.2);
}

.footer-cert-badge svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.footer-cert-badge:hover svg {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 1rem 0 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        align-items: stretch;
        /* Pastikan semua card stretch ke tinggi yang sama */
    }

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

    .cert-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: calc(100% - 2rem);
        width: calc(100% - 2rem);
        height: auto;
        min-height: 520px;
        /* Set minimum height yang konsisten */
        max-height: 600px;
        /* Set maximum height untuk konsistensi */
        scroll-snap-align: center;
        padding: 1.5rem;
        margin-right: 0;
        display: flex;
        flex-direction: column;
    }

    /* Pastikan header konsisten */
    .cert-card-header {
        min-height: 140px;
        max-height: 140px;
        flex-shrink: 0;
        margin-bottom: 1.25rem;
    }

    .cert-provider-logo {
        width: 120px;
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        padding: 14px;
        flex-shrink: 0;
    }

    .cert-provider-logo img {
        min-width: 80px;
        min-height: 50px;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Body harus fleksibel tapi terbatas */
    .cert-card-body {
        flex: 1 1 auto;
        min-height: 200px;
        max-height: 280px;
        display: flex;
        flex-direction: column;
        margin-bottom: 1.25rem;
        overflow: hidden;
        /* Prevent overflow */
    }

    /* Title konsisten */
    .cert-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        flex-shrink: 0;
        /* Limit title to 2-3 lines */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Description dengan line clamp untuk konsistensi */
    .cert-description {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        flex: 1 1 auto;
        min-height: 60px;
        max-height: 120px;
        /* Limit description height */
        overflow: hidden;
        /* Limit description to 4-5 lines */
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }

    /* Meta konsisten */
    .cert-meta {
        margin-top: auto;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    /* Footer konsisten di bawah */
    .cert-card-footer {
        margin-top: auto;
        padding-top: 1rem;
        flex-shrink: 0;
        min-height: 70px;
        /* Pastikan ada ruang untuk tags */
    }

    /* Tags - biarkan wrap natural tanpa overflow hidden */
    .cert-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        /* Hapus max-height dan overflow hidden - biarkan tags wrap secara natural */
        align-items: flex-start;
    }

    .cert-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
        flex-shrink: 0;
        white-space: nowrap;
        line-height: 1.4;
    }

    /* Section Header Mobile Optimizations */
    .certifications-section .cert-section-badge {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
        margin-bottom: 1rem;
    }

    .certifications-section .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .certifications-section .section-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .trust-item {
        font-size: 0.85rem;
        gap: 0.4rem;
        min-height: 44px;
        align-items: center;
    }

    .trust-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

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

    .hero-cert-badges {
        gap: 0.75rem;
        max-width: 100%;
    }

    .hero-cert-badge {
        min-width: auto;
        padding: 1rem 0.75rem;
        min-height: 120px;
    }

    .hero-cert-badge-image-wrapper {
        height: 70px;
        margin-bottom: 0.5rem;
    }

    .hero-cert-badge img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }

    /* Carousel Indicators for Certifications */
    .certifications-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .certifications-carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .certifications-carousel-dot.active {
        background: var(--accent-ai);
        width: 30px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    }

    .certifications-carousel-dot:hover {
        background: rgba(0, 245, 255, 0.6);
        transform: scale(1.2);
    }
}

/* Desktop - Hide indicators */
@media (min-width: 769px) {
    .certifications-carousel-indicators {
        display: none;
    }
}

@media (max-width: 480px) {
    .cert-card {
        min-height: 500px;
        max-height: 580px;
        padding: 1.25rem;
    }

    .cert-card-header {
        min-height: 120px;
        max-height: 120px;
        margin-bottom: 1rem;
    }

    .cert-provider-logo {
        width: 100px;
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        padding: 12px;
    }

    .cert-provider-logo img {
        min-width: 70px;
        min-height: 45px;
    }

    .cert-card-body {
        min-height: 180px;
        max-height: 260px;
    }

    .cert-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .cert-description {
        font-size: 0.8rem;
        max-height: 100px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .cert-card-footer {
        min-height: 65px;
        /* Ruang untuk tags di layar kecil */
    }

    .hero-cert-badges {
        gap: 0.5rem;
    }

    .hero-cert-badge {
        padding: 0.75rem 0.5rem;
        min-height: 110px;
    }

    .hero-cert-badge-image-wrapper {
        height: 60px;
        margin-bottom: 0.5rem;
    }

    .hero-cert-badge-label {
        font-size: 0.65rem;
    }

    /* Section Header Small Mobile Optimizations */
    .certifications-section .cert-section-badge {
        font-size: 0.7rem;
        padding: 0.5rem 0.875rem;
    }

    .certifications-section .section-title {
        font-size: 1.5rem;
        line-height: 1.15;
    }

    .certifications-section .section-subtitle {
        font-size: 0.85rem;
    }

    .trust-indicators {
        padding: 0.875rem;
        gap: 0.875rem;
    }
}

/* Light Theme Support */
[data-theme="light"] .certifications-section {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(37, 99, 235, 0.05));
}

[data-theme="light"] .cert-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cert-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cert-title {
    color: var(--text-primary);
}

[data-theme="light"] .cert-description {
    color: var(--text-secondary);
}

/* ============================================
   CERTIFICATIONS ENHANCEMENTS
   ============================================ */

/* Loading Skeleton for Logos */
.logo-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.cert-provider-logo {
    position: relative;
}

/* Tooltip Enhancement */
.cert-card {
    position: relative;
}

.cert-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.cert-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
}

.cert-card:hover .cert-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Micro-interactions - Entrance Animations */
@keyframes certCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cert-card {
    animation: certCardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.cert-card:nth-child(1) {
    animation-delay: 0s;
}

.cert-card:nth-child(2) {
    animation-delay: 0.1s;
}

.cert-card:nth-child(3) {
    animation-delay: 0.2s;
}

.cert-card:nth-child(4) {
    animation-delay: 0.3s;
}

.cert-card:nth-child(5) {
    animation-delay: 0.4s;
}

.cert-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Comparison Table Styles */
.cert-comparison-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Carousel indicators - hidden on desktop by default */
.cert-comparison-carousel-indicators {
    display: none;
}

.cert-comparison-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 12px;
}

.cert-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
}

.cert-comparison-table thead {
    background: rgba(0, 245, 255, 0.1);
    border-bottom: 2px solid rgba(0, 245, 255, 0.3);
}

.cert-comparison-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-ai);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cert-comparison-table th:nth-child(1) {
    width: 28%;
}

.cert-comparison-table th:nth-child(2) {
    width: 18%;
}

.cert-comparison-table th:nth-child(3) {
    width: 14%;
}

.cert-comparison-table th:nth-child(4) {
    width: 28%;
}

.cert-comparison-table th:nth-child(5) {
    width: 12%;
}

.cert-comparison-table th:last-child {
    border-right: none;
}

.cert-comparison-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.cert-comparison-table tbody tr:hover {
    background: rgba(0, 245, 255, 0.05);
    transform: scale(1.01);
}

.cert-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.cert-comparison-table td {
    padding: 1.25rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    word-wrap: break-word;
    overflow-wrap: break-word;
    vertical-align: top;
}

.cert-comparison-table td:last-child {
    border-right: none;
    text-align: center;
}

.cert-comparison-table td:first-child {
    font-weight: 600;
    color: var(--accent-gold);
}

.level-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.professional {
    background: rgba(0, 245, 255, 0.2);
    color: var(--accent-ai);
    border: 1px solid rgba(0, 245, 255, 0.4);
}

.level-badge.specialty {
    background: rgba(37, 99, 235, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.level-badge.associate {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.level-badge.advanced {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.level-badge.developer {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Testimonials Section */
.cert-testimonials-section {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .testimonials-grid {
        gap: 1.5rem;
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-ai), var(--accent-blue));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-ai);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.15);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    min-height: 0;
}

.testimonial-quote {
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-ai);
    opacity: 0.3;
    font-family: Georgia, serif;
    margin-bottom: 0.75rem;
    margin-top: -0.5rem;
    align-self: flex-start;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
    min-height: 120px;
}

.testimonial-author {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 1.75rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.2);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
}

.testimonial-avatar .avatar-fallback {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-ai), var(--accent-blue));
    color: white;
    z-index: 1;
    top: 0;
    left: 0;
}

.testimonial-avatar img[style*="display: none"]~.avatar-fallback {
    display: flex !important;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.25rem;
}

.testimonial-info h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: normal;
    line-height: 1.5;
}

/* Responsive Design for New Features */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cert-comparison-wrapper {
        overflow-x: visible;
        overflow-y: visible;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
    }

    .cert-comparison-table {
        display: block;
        min-width: auto;
        table-layout: auto;
        width: 100%;
    }

    .cert-comparison-table thead {
        display: none;
    }

    .cert-comparison-table tbody {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .cert-comparison-table tbody::-webkit-scrollbar {
        display: none;
    }

    .cert-comparison-table tbody tr {
        display: block;
        flex: 0 0 calc(100% - 2rem);
        min-width: calc(100% - 2rem);
        max-width: calc(100% - 2rem);
        scroll-snap-align: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.25rem;
        margin-bottom: 0;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .cert-comparison-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 245, 255, 0.1);
        border-color: var(--accent-ai);
    }

    .cert-comparison-table tbody td {
        display: block;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        font-size: 0.9rem;
    }

    .cert-comparison-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Label untuk setiap field */
    .cert-comparison-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--accent-ai);
        margin-bottom: 0.5rem;
    }

    /* Styling khusus untuk certification name */
    .cert-comparison-table tbody td:first-child {
        font-size: 1rem;
        font-weight: 600;
        color: var(--accent-gold);
        padding-bottom: 0.75rem;
        border-bottom: 2px solid rgba(0, 245, 255, 0.2);
        margin-bottom: 0.75rem;
    }

    .cert-comparison-table tbody td:first-child::before {
        margin-bottom: 0.75rem;
    }

    /* Styling untuk level badge */
    .cert-comparison-table tbody td:nth-child(3) {
        padding-top: 0.75rem;
    }

    .cert-comparison-table tbody td:nth-child(3) .level-badge {
        display: inline-block;
    }

    /* Carousel indicators untuk comparison table */
    .cert-comparison-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

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

    .cert-comparison-carousel-dot.active {
        background: var(--accent-ai);
        width: 24px;
        border-radius: 4px;
    }

    .cert-comparison-carousel-dot:hover {
        background: rgba(0, 245, 255, 0.6);
    }

    /* Carousel untuk testimonials di mobile */
    .testimonials-carousel-mobile {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.5rem;
        padding-bottom: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .testimonials-carousel-mobile::-webkit-scrollbar {
        display: none;
    }

    .testimonials-carousel-mobile .testimonial-card {
        flex: 0 0 calc(100% - 2rem);
        scroll-snap-align: center;
        min-width: calc(100% - 2rem);
        margin: 0;
        padding: 1.5rem 1.25rem;
        min-height: auto;
    }

    .testimonial-quote {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .testimonial-content p {
        min-height: auto;
        margin-bottom: 1rem;
    }

    .testimonial-author {
        gap: 1rem;
        padding-top: 1.25rem;
        align-items: center;
    }

    .testimonial-avatar {
        width: 56px;
        height: 56px;
        font-size: 1rem;
        border-width: 2px;
    }

    .testimonial-info {
        padding-top: 0;
        justify-content: center;
    }

    .testimonial-info h4 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    .testimonial-info p {
        font-size: 0.8rem;
    }

    /* Carousel indicators */
    .testimonials-carousel-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

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

    .testimonials-carousel-dot.active {
        background: var(--accent-ai);
        width: 24px;
        border-radius: 4px;
    }
}

@media (min-width: 769px) {
    .testimonials-carousel-indicators {
        display: none;
    }
}

/* Light Theme Support for New Features */
[data-theme="light"] .cert-comparison-section,
[data-theme="light"] .cert-testimonials-section {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cert-comparison-table {
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .cert-comparison-table thead {
    background: rgba(0, 245, 255, 0.15);
}

[data-theme="light"] .cert-comparison-table tbody tr:hover {
    background: rgba(0, 245, 255, 0.08);
}

[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}/* Back to Top Button */
.back-to-top {
    position: fixed;
    left: 20px;
    bottom: 30px;
    /* Below theme toggle (100px) */
    z-index: 9999;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
    color: #333;
}

[data-theme="dark"] .back-to-top {
    background: #333;
    border-color: white;
    color: white;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.visible:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 10px;
        /* Below mobile theme toggle (60px) */
        left: 1rem;
        width: 45px;
        height: 45px;
    }
}
