/* ==================== VARIABEL & RESET ==================== */
:root {
    /* Default Theme (Dark) */
    --bg: #0a0a0f;
    --bg-secondary: #12121a;
    --fg: #fafafa;
    --fg-muted: #8a8a9a;
    --accent: #ff5722;
    --accent-light: #ff8a50;
    --card: #1a1a24;
    --border: #2a2a36;
    --gradient-1: #ff5722;
    --gradient-2: #ff9800;
    --orb-color: rgba(255, 87, 34, 0.15);
}

/* ==================== LIGHT THEME OVERRIDES ==================== */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --fg: #121212;
    --fg-muted: #5a5a5a;
    --card: #ffffff;
    --border: #e0e0e0;
    --orb-color: rgba(255, 87, 34, 0.08);
}

[data-theme="light"] .bg-atmosphere {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 87, 34, 0.08), transparent);
}

[data-theme="light"] .grid-pattern {
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

[data-theme="light"] .orb { opacity: 0.3; }

[data-theme="light"] .nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .service-card::before {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
}

[data-theme="light"] .stat-card:hover,
[data-theme="light"] .service-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* ==================== UTILITIES ==================== */
.max-w-7xl { max-width: 80rem; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.text-muted { color: var(--fg-muted); }
.text-center { text-align: center; }
.grid { display: grid; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.hidden { display: none; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==================== BACKGROUND ATMOSPHERE ==================== */
.bg-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 87, 34, 0.15), transparent),
        var(--bg);
    transition: background 0.5s ease;
}

.grid-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    transition: background-image 0.5s ease;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    background: var(--accent);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.orb-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--gradient-2); bottom: 20%; left: -150px; animation-delay: -7s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* ==================== TYPOGRAPHY ==================== */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ==================== NAVIGATION ==================== */
/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* Diubah ke angka sangat tinggi agar selalu di paling atas */
    padding: 1.5rem 2rem;
    transition: all 0.4s ease;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
    color: var(--fg);
}

.nav-link {
    position: relative;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ==================== THEME TOGGLE BUTTON ==================== */
.theme-toggle {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--fg);
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(15deg);
}

/* Hide Moon in Dark Mode (Show Sun) */
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }

/* Hide Sun in Light Mode (Show Moon) */
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ==================== HAMBURGER & MOBILE MENU ==================== */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001; /* Lebih tinggi dari nav */
    position: relative;
}
.hamburger span {
    width: 28px; height: 2px;
    background: var(--fg);
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 100; /* Z-index lebih rendah dari nav */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Tidak bisa diklik saat tertutup */
}
.mobile-menu.active {
    transform: translateX(0);
    pointer-events: auto; /* Bisa diklik saat terbuka */
    opacity: 1;
}
.mobile-menu a {
    font-size: 2rem;
    color: var(--fg);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(255, 87, 34, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 87, 34, 0.1);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-large {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
.btn-whatsapp-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -10px rgba(37, 211, 102, 0.5);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}
.hero-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.hero-desc {
    color: var(--fg-muted);
    font-size: 1.125rem;
    max-width: 500px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}
.stat-card p { color: var(--fg-muted); font-size: 0.875rem; }

/* ==================== SERVICE & CATALOG CARDS ==================== */
.service-card, .catalog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card {
    padding: 2rem;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.3);
}

.service-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Catalog Specific */
.catalog-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    justify-content: center;
}
.filter-tab {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-tab:hover { border-color: var(--accent); color: var(--fg); }
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.catalog-card {
    display: flex;
    flex-direction: column;
}
.catalog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -20px rgba(255, 87, 34, 0.2);
}

.catalog-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.catalog-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.catalog-card:hover .catalog-image { transform: scale(1.1); }

.catalog-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.catalog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.catalog-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.catalog-price { font-size: 1.125rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }

.catalog-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}
.catalog-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--fg-muted);
    font-size: 0.875rem;
}

/* ==================== PORTFOLIO ==================== */
.portfolio-item {
    position: relative;
    border-radius: none;
    overflow: hidden;
    height: 300px;
}
.portfolio-item img {
    width: auto; height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,15,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* ==================== TEAM SECTION ==================== */
.team-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.team-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
}

.team-card:hover .team-image-wrapper {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.1);
}

.team-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--fg);
}

.team-role {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==================== TESTIMONIAL SECTION ==================== */
.testimonial-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.testimonial-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -20px rgba(255, 87, 34, 0.15);
}

/* Tanda kutip besar di background */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

.stars {
    color: #fbbf24; /* Warna emas untuk bintang */
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--fg-muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.author-name {
    font-weight: 700;
    color: var(--fg);
    font-size: 1rem;
    margin-bottom: 0.125rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .stat-number { font-size: 2rem; }
    .catalog-image-wrapper { height: 180px; }
}

/* ==================== FIX: NAVIGATION LAYOUT ==================== */
.nav .flex.items-center.gap-4 {
    position: relative;
    z-index: 10;
}

/* Pastikan hamburger tampil di mobile */
@media (max-width: 767px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 10001;
        position: relative;
        padding: 10px;
        margin: -10px; /* Membuat area klik lebih besar */
    }
    
    .hamburger span {
        display: block;
        width: 28px;
        height: 2px;
        background: var(--fg);
        transition: all 0.3s ease;
    }
    
    /* Sembunyikan tombol yang tidak perlu di mobile */
    .btn-primary.hidden.md\:inline-flex {
        display: none !important;
    }
}

/* Pastikan di desktop hamburger tersembunyi */
@media (min-width: 768px) {
    .hamburger {
        display: none !important;
    }
}