/* ============================================
   PORTFOLIO WEBSITE - STYLES
   REVISIONS: Video gallery support, WhatsApp float fix,
              About contact detail (IG, TikTok, Maps, Email, WA),
              Video badge in portfolio card
   ============================================ */

/* CSS VARIABLES */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    --accent-color: #8b7355;
    --accent-hover: #a08468;
    --border-color: rgba(255, 255, 255, 0.1);
    --btn-bg: rgba(255, 255, 255, 0.08);
    --btn-border: rgba(255, 255, 255, 0.2);
    --btn-hover-bg: rgba(255, 255, 255, 0.15);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    --navbar-height: 70px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --btn-bg: rgba(0, 0, 0, 0.06);
    --btn-border: rgba(0, 0, 0, 0.2);
    --btn-hover-bg: rgba(0, 0, 0, 0.12);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

body.loading {
    overflow: hidden;
}

p, h1, h2, h3, h4, h5, h6, span, a, li, button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* IMAGE SECURITY */
img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.portfolio-card-image,
.hero-slide-image,
.gallery-image,
.lightbox-image {
    pointer-events: auto;
    cursor: pointer;
}

/* Watermark */
.gallery-item::after,
.portfolio-card::after {
    content: 'Nevermind.Visual';
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--spacing-2xl) 0;
    min-height: auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Animations */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* LOADING SCREEN */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 2rem;
    animation: fadeInScale 1s ease;
    pointer-events: auto;
}

.loading-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.loading-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.loading-spinner {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    animation: fadeIn 0.8s ease 0.6s both;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    animation: bounce 1.4s infinite ease-in-out;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
    height: 100%;
}

.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.brand:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: auto;
}

/* Dual Logo */
.brand-logo-dark { display: block; }
.brand-logo-light { display: none; }

[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }

.hero-logo-dark { display: block; }
.hero-logo-light { display: none; }

[data-theme="light"] .hero-logo-dark { display: none; }
[data-theme="light"] .hero-logo-light { display: block; }

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--btn-hover-bg);
    transform: rotate(15deg);
}

.theme-icon {
    width: 20px;
    height: 20px;
    pointer-events: none;
    stroke: var(--text-primary);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - var(--navbar-height));
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .brand-logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
}

/* ============================================
   WHATSAPP FLOAT - FIXED: Full button visible on desktop
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    height: 56px;
    /* FIXED: default width shows icon + text, not icon only */
    width: auto;
    min-width: 56px;
    background: #25D366;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px 0 14px;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-float:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: white;
    flex-shrink: 0;
    pointer-events: none;
}

.whatsapp-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        height: 50px;
        width: 50px;
        min-width: 50px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

/* ============================================
   HERO INTRO
   ============================================ */
.hero-intro-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 1rem 5rem;
}

.hero-intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-intro-logo {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 0rem;
    animation: fadeInScale 1s ease;
    pointer-events: auto;
}

.hero-intro-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-intro-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-intro-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-action-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem; 
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-ambil-hasil {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--btn-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-ambil-hasil:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.35);
}

.btn-ambil-hasil svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.btn-ambil-hasil:hover svg {
    transform: translateY(2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1s ease 1s both;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.scroll-indicator svg {
    animation: bounce-slow 2s infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-intro-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-intro-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-intro-tagline {
        font-size: 1rem;
    }
    
    .hero-intro-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-ambil-hasil {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* HERO SLIDER */
.hero-slider-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: all;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.6);
    transform: scale(1.1);
}

.hero-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
}

.hero-slide-image {
    aspect-ratio: 16/9;
    max-width: 70%;
    max-height: 60%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.hero-slide-image:hover {
    transform: scale(1.02);
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    color: #ffffff;
}

.slider-nav.prev { left: 2rem; }
.slider-nav.next { right: 2rem; }

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    pointer-events: none;
}

.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

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

.slider-indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 788px) {
    /* FIXED: height auto agar tidak ada ruang kosong di bawah konten */
    .hero-slider-section {
        height: auto;
    }

    .hero-slider-container,
    .hero-slider {
        height: auto;
    }

    /* Slide pakai display none/block (bukan opacity) agar height bisa flow */
    .hero-slide {
        position: relative;
        display: none;
        opacity: 1;
        transition: none;
    }

    .hero-slide.active {
        display: block;
    }

    .hero-slide-bg {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
    }

    .hero-slide-content {
        position: relative;
        padding: 1.25rem 1rem 1.75rem;
        height: auto;
        min-height: 0;
    }

    .hero-slide-image {
        aspect-ratio: 3/2;
        max-width: 92%;
        max-height: none;
        width: 92%;
        margin-bottom: 0.75rem;
    }
    
    .hero-slide-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
        margin-bottom: 0;
    }

    .slider-indicators {
        position: absolute;
        bottom: 0.4rem;
    }
    
    .slider-nav {
        display: none;
        width: 38px;
        height: 38px;
    }
    
    .slider-nav.prev { left: 0.75rem; }
    .slider-nav.next { right: 0.75rem; }
    
    .slider-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* SERVICES SECTION */
.services-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.service-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.service-category-btn {
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: var(--text-primary);
}

.service-category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.service-category-btn:hover .category-icon {
    filter: grayscale(0);
}

.service-category-btn h3 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-category-btn p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.pricing-philosophy {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.pricing-philosophy h3 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.pricing-philosophy p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* MODAL */
.service-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.service-detail-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content-about {
    max-width: 1000px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    color: var(--text-primary);
}

.modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-close svg {
    pointer-events: none;
    stroke: currentColor;
}

#serviceDetailContent {
    padding: 3rem;
}

.service-detail-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
}

.service-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.service-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.package-card {
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.package-name {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.package-price {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.package-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.package-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.package-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.package-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .service-category-btn {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .pricing-philosophy {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    #serviceDetailContent {
        padding: 2rem 1.5rem;
    }
    
    .service-packages {
        grid-template-columns: 1fr;
    }
    
    .service-detail-modal {
        padding: 1rem;
    }
}

/* PORTFOLIO SECTION */
.portfolio-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    background-color: var(--bg-secondary);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.05);
}

/* Video cover di portfolio card - tampil identik dengan img cover */
.portfolio-card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    pointer-events: none; /* klik diteruskan ke card, bukan video controls */
    display: block;
}

.portfolio-card:hover .portfolio-card-video {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.portfolio-card:hover .portfolio-card-overlay {
    transform: translateY(0);
}

.portfolio-card-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.portfolio-card-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Video badge on portfolio card */
.portfolio-video-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
}

.portfolio-video-badge svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    pointer-events: none;
}

/* CATEGORY DETAIL PAGE */
.category-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 5000;
    overflow-y: auto;
    display: none;
}

.category-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.category-header {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.back-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateX(-5px);
}

.back-button svg {
    pointer-events: none;
    stroke: currentColor;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
}

.category-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image.loaded {
    opacity: 1;
}

.gallery-item-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   VIDEO GALLERY - NEW
   ============================================ */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
}

.gallery-video {
    width: 100%;
    display: block;
    border-radius: 8px 8px 0 0;
    background: #000;
    max-height: 360px;
    outline: none;
}

/* Custom video controls color accent */
.gallery-video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
}

.video-title {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .gallery-video {
        max-height: 240px;
    }
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    color: #ffffff;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    stroke: #ffffff;
    pointer-events: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
}

.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    pointer-events: none;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 10002;
}

@media (max-width: 768px) {
    .lightbox { padding: 1rem; }
    .lightbox-close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-nav.prev { left: 1rem; }
    .lightbox-nav.next { right: 1rem; }
    .lightbox-nav svg { width: 20px; height: 20px; }
    .lightbox-image { max-width: 95%; max-height: 85%; }
    .lightbox-counter { bottom: 1rem; font-size: 0.8rem; padding: 0.5rem 1rem; }
}

/* ============================================
   ABOUT + CONTACT
   ============================================ */
.about-contact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.about-preview {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.about-preview-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 2rem 0;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.btn-view-more:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-section {
    margin-top: 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-color);
    pointer-events: none;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-cta-box {
    padding: 3rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-cta-box h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contact-cta-box p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   ABOUT DETAIL MODAL - INNER + CONTACT DETAIL
   ============================================ */
.about-modal-inner {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* About Contact Detail */
.about-contact-detail {
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.about-contact-title {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.about-contact-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.about-contact-link:hover {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Full-width link (Maps) */
.about-contact-link--full {
    grid-column: 1 / -1;
}

.about-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.about-contact-icon svg {
    pointer-events: none;
}

/* Color per platform */
.about-contact-icon--wa    { background: #25D366; }
.about-contact-icon--email { background: var(--accent-color); }
.about-contact-icon--ig    { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.about-contact-icon--tiktok { background: #010101; border: 1px solid rgba(255,255,255,0.15); }
.about-contact-icon--maps  { background: #4285F4; }

.about-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow: hidden;
}

.about-contact-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.about-contact-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 2rem;
}

.about-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.about-logo-dark  { display: block; }
.about-logo-light { display: none;  }

[data-theme="light"] .about-logo-dark  { display: none;  }
[data-theme="light"] .about-logo-light { display: block; }


.image-placeholder {
    width: 100%;
    max-width: 360px;
    height: 450px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-placeholder svg {
    stroke: var(--text-muted);
    pointer-events: none;
}

.image-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .about-modal-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .about-image {
        position: static;
        order: -1;
    }

    .about-image .image-placeholder {
        height: 240px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }

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

    .about-contact-link--full {
        grid-column: auto;
    }
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* RESPONSIVE PORTFOLIO GRID */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-header {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-title {
        font-size: 1.8rem;
        text-align: left;
        width: 100%;
    }
    
    .category-gallery {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 0.75rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}