@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --bg-main: #FDFBF7; --bg-secondary: #FFFFFF; --heading-color: #0A1B14; 
    --text-main: #2C302E; --text-muted: #5C615E; --gold-primary: #B59352; 
    --box-dark: #0A1B14; --box-text: #FDFBF7; --nav-bg: rgba(253, 251, 247, 0.95); 
    --border-color: rgba(181, 147, 82, 0.25); --glow-color-1: rgba(181, 147, 82, 0.45); 
    --pattern-gold: rgba(181, 147, 82, 0.08); 
}

body.dark-theme {
    --bg-main: #0B0E0C; --bg-secondary: #111512; --heading-color: #FDFBF7; 
    --text-main: #D5D6D2; --text-muted: #9A9C9B; --gold-primary: #D4AF37; 
    --box-dark: #080A09; --box-text: #FDFBF7; --nav-bg: rgba(11, 14, 12, 0.95); 
    --border-color: rgba(212, 175, 55, 0.15); --glow-color-1: rgba(212, 175, 55, 0.15); 
    --pattern-gold: rgba(212, 175, 55, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html { font-size: 94%; } 
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); overflow-x: hidden; transition: background-color 0.5s ease, color 0.5s ease; font-weight: 300;}

/* Ambient Background */
.royal-glow { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -3; pointer-events: none; animation: floatRoyal 25s infinite alternate ease-in-out; transition: background 0.5s ease; }
.glow-1 { width: 45vw; height: 45vw; background: var(--glow-color-1); top: 10%; left: -10%; }

/* =========================================================
   BACKGROUND: TWINKLING NODES (Kedip Bergantian)
   ========================================================= */
/* Layer 1: Hanya GARIS Grid (Bergerak pelan, tidak berkedip) */
.stardust { 
    position: fixed; top: -50%; left: -50%; width: 200vw; height: 200vh; z-index: -2; pointer-events: none; 
    background-image: 
        linear-gradient(45deg, transparent calc(50% - 0.5px), var(--pattern-gold) calc(50% - 0.5px), var(--pattern-gold) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
        linear-gradient(-45deg, transparent calc(50% - 0.5px), var(--pattern-gold) calc(50% - 0.5px), var(--pattern-gold) calc(50% + 0.5px), transparent calc(50% + 0.5px));
    background-size: 100px 100px; 
    animation: driftPattern 80s linear infinite; 
}

/* Layer 2: Titik Kelompok A (Kedip Cepat) */
.stardust::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image: radial-gradient(circle at 0px 0px, var(--gold-primary) 1.2px, transparent 1.5px);
    background-size: 100px 100px;
    animation: twinkleFast 1.5s ease-in-out infinite alternate; 
}

/* Layer 3: Titik Kelompok B (Kedip Agak Lambat & Delay) */
.stardust::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background-image: radial-gradient(circle at 50px 50px, var(--gold-primary) 1.2px, transparent 1.5px);
    background-size: 100px 100px;
    animation: twinkleSlow 2.2s ease-in-out infinite alternate 0.5s; 
}

@keyframes twinkleFast { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes twinkleSlow { 0% { opacity: 0; } 100% { opacity: 0.8; } }
@keyframes driftPattern { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 100px); } }
@keyframes floatRoyal { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(5%, 10%) scale(1.1); } }

/* Cursor */
@media (pointer: fine) { body, a, button, input, textarea, .magnetic { cursor: none !important; } }
.cursor-gold { width: 8px; height: 8px; background: var(--gold-primary); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999999; transform: translate(-50%, -50%); transition: transform 0.1s ease, width 0.3s, height 0.3s; box-shadow: 0 0 10px rgba(181, 147, 82, 0.5); }
.cursor-hover { width: 40px !important; height: 40px !important; background: transparent !important; border: 1px solid var(--gold-primary); }

/* Typography */
h1, h2, h3, h4, .logo, .brand-small { font-family: 'Playfair Display', serif; }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--heading-color); font-weight: 500; line-height: 1.1; letter-spacing: -1px; transition: color 0.5s ease;}
.subtitle-gold { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 4px; color: var(--gold-primary); font-weight: 500; font-family: 'Inter', sans-serif;}
.italic-text { font-style: italic; font-weight: 400; }
.text-heading { color: var(--heading-color); } .text-gold { color: var(--gold-primary); }
.body-text { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); font-weight: 300; transition: color 0.5s ease;}

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; } .mt-2 { margin-top: 15px; } .mt-3 { margin-top: 25px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 60px;} .mb-4 { margin-bottom: 30px; } .mb-5 { margin-bottom: 50px; }
.section-spacing { margin-top: 100px; margin-bottom: 100px; } 
.gold-divider { width: 60px; height: 1px; background-color: var(--gold-primary); }
.center-div { margin-left: auto; margin-right: auto; }

/* Navbar */
.royal-nav { display: flex; justify-content: space-between; align-items: center; padding: 25px 5%; background: var(--nav-bg); backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 10000; transition: all 0.4s ease; border-bottom: 1px solid transparent; }
.royal-nav.scrolled { border-bottom: 1px solid var(--border-color); padding: 15px 5%;}
.logo { font-size: 1.8rem; font-weight: 600; color: var(--heading-color); transition: color 0.5s ease; letter-spacing: 1px;}
.nav-links { list-style: none; display: flex; gap: 40px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; transition: color 0.3s; position: relative;}
.nav-links a:hover { color: var(--gold-primary); }
#theme-toggle { background: transparent; border: none; font-size: 1.1rem; color: var(--heading-color); cursor: pointer; transition: color 0.3s; }
#theme-toggle:hover { color: var(--gold-primary); }
.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--heading-color); cursor: pointer; }

/* Buttons */
.btn-royal-solid { display: inline-block; padding: 14px 35px; background-color: var(--heading-color); color: var(--bg-main); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; border: 1px solid var(--heading-color); cursor: pointer; transition: all 0.4s ease; border-radius: 50px;}
.btn-royal-solid:hover { background-color: transparent; color: var(--heading-color); }
.btn-royal-outline { display: inline-block; padding: 10px 25px; background-color: transparent; color: var(--heading-color); text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; border: 1px solid var(--gold-primary); cursor: pointer; transition: all 0.4s ease; border-radius: 50px;}
.btn-royal-outline:hover, .nav-links a.btn-royal-outline:hover { background-color: var(--gold-primary) !important; color: var(--bg-main) !important; }
.btn-link { text-decoration: none; color: var(--gold-primary); font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; display: inline-flex; align-items: center; gap: 10px; transition: gap 0.3s ease; }
.btn-link:hover { gap: 15px; }
.magnetic { display: inline-block; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* Hero Section */
.hero { min-height: calc(100vh - 120px); position: relative; display: flex; align-items: center; margin-top: 0 !important; padding-top: 40px; padding-bottom: 40px;}
.hero-innovative-grid { position: relative; width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; }
.hero-left-content { grid-column: 1; display: flex; flex-direction: column; justify-content: center; z-index: 5; }
.hero-big-title h1 { font-family: 'Playfair Display', serif; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 0.9; color: var(--heading-color); letter-spacing: -2px; transition: color 0.5s ease; margin-bottom: 25px; }
.hero-description-box { max-width: 420px; }
.hero-image-right { grid-column: 2; display: flex; justify-content: flex-end; align-items: center; z-index: 1; height: 100%; padding-left: 20px; }
.floating-hero-image { animation: floatElement 6s ease-in-out infinite; }
@keyframes floatElement { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* FOCUS BRACKET FRAME */
.image-mask { width: 100%; max-width: 420px; aspect-ratio: 4/5; position: relative; padding: 14px; background: transparent; transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);}
.image-mask::before { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border: 1px solid var(--border-color); pointer-events: none; transition: all 0.6s ease;}
.image-mask::after { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient(var(--gold-primary), var(--gold-primary)) top left / 25px 2px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) top left / 2px 25px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) top right / 25px 2px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) top right / 2px 25px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) bottom left / 25px 2px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) bottom left / 2px 25px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) bottom right / 25px 2px no-repeat, linear-gradient(var(--gold-primary), var(--gold-primary)) bottom right / 2px 25px no-repeat; pointer-events: none; transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);}
.image-mask:hover { transform: translateY(-5px); }
.image-mask:hover::before { top: 10px; left: 10px; right: 10px; bottom: 10px; opacity: 0.5; }
.image-mask:hover::after { top: -10px; left: -10px; right: -10px; bottom: -10px; background-size: 35px 2px, 2px 35px, 35px 2px, 2px 35px, 35px 2px, 2px 35px, 35px 2px, 2px 35px; }
.image-mask img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); transition: filter 0.5s ease; -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%); mask-image: linear-gradient(to bottom, black 85%, transparent 100%);}
.image-mask:hover img { filter: grayscale(0%); }

/* Marquee */
.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 15px 0; background: var(--bg-secondary); }
.marquee-content { display: inline-block; animation: marquee 30s linear infinite; font-size: 0.9rem; font-weight: 400; letter-spacing: 6px; color: var(--gold-primary); font-family: 'Inter', sans-serif;}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Sticky Storytelling */
.sticky-layout { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; position: relative;}
.sticky-sidebar { width: 40%; position: sticky; top: 120px; }
.scroll-content { width: 55%; padding-top: 10px; }
.timeline { border-left: 1px solid var(--border-color); padding-left: 30px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 5px; width: 7px; height: 7px; background: var(--gold-primary); border-radius: 50%; }
.time-year { display: block; font-size: 0.75rem; letter-spacing: 2px; color: var(--gold-primary); margin-bottom: 5px; text-transform: uppercase; font-weight: 500;}
.time-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--heading-color); font-weight: 500; margin-bottom: 5px;}
.time-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6;}

/* Projects */
.innovative-gallery { display: flex; flex-direction: column; gap: 100px; margin-top: 40px; }
.project-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; position: relative; }
.project-row.reverse-row { grid-template-columns: 1.2fr 1fr; }
.project-row.reverse-row .project-info { grid-column: 2; grid-row: 1; padding-left: 30px;}
.project-row.reverse-row .project-visual { grid-column: 1; grid-row: 1; }
.project-number { position: absolute; top: -40px; left: 0; font-family: 'Playfair Display', serif; font-size: 12rem; font-weight: 600; color: var(--heading-color); opacity: 0.04; z-index: -1; line-height: 1; pointer-events: none;}
.project-row.reverse-row .project-number { left: auto; right: 0; }
.project-info { z-index: 2; }
.project-category { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold-primary); display: block; margin-bottom: 8px; font-weight: 500;}
.project-title { font-size: 2.5rem; color: var(--heading-color); font-weight: 500; margin-bottom: 15px;}
.project-visual { width: 100%; aspect-ratio: 1908 / 882; background: var(--bg-secondary); overflow: hidden; border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.05); z-index: 2; border: 1px solid var(--border-color);}
.project-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(10%); transition: transform 0.6s ease, filter 0.6s ease; }
.project-visual:hover .project-img { filter: grayscale(0%); transform: scale(1.03); }

/* Theme Image Swap */
.theme-img-dark { display: none; }
body.dark-theme .theme-img-light { display: none; }
body.dark-theme .theme-img-dark { display: block; }

/* Expertise Section */
.expertise-grid { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 40px 0; }
.expert-column { flex: 1; padding: 0 20px; }
.border-x { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.expert-column h4 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--heading-color); margin-bottom: 15px; font-weight: 500;}

/* Contact Box */
.contact-elegant-box { background: var(--box-dark); padding: 60px 8%; border-radius: 16px; transition: background 0.5s ease; border: 1px solid var(--border-color); }
.text-contrast-ivory { color: var(--box-text); transition: color 0.5s ease;}
.contact-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;}
.contact-link { color: var(--box-text); text-decoration: none; font-size: 1rem; display: flex; align-items: center; gap: 12px; margin-bottom: 15px; transition: color 0.3s;}
.contact-link:hover { color: var(--gold-primary); }
.minimal-form { display: flex; flex-direction: column; gap: 25px; }
.input-line { border-bottom: 1px solid rgba(181, 147, 82, 0.3); padding-bottom: 8px; }
.clean-input { width: 100%; border: none; background: transparent; font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--box-text); outline: none; }
textarea.clean-input { resize: vertical; min-height: 25px;}

/* Footer Satu Baris */
.royal-footer { padding: 40px 0; border-top: 1px solid var(--border-color); background: var(--bg-main); margin-top: 100px;}
.footer-simple-flex { display: flex; justify-content: space-between; align-items: center;}
.brand-small { font-weight: 600; color: var(--heading-color); margin-right: 15px; font-size: 1.1rem;}
.copyright-text { font-size: 0.85rem; color: var(--text-muted); }
.footer-simple-links { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; align-items: center;}
.social-icon { font-size: 1.4rem; color: var(--text-muted); transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-icon:hover { color: var(--gold-primary); transform: translateY(-4px); }

/* =========================================
   📱 MOBILE RESPONSIVE (BUG FIX TABRAKAN)
   ========================================= */
@media screen and (max-width: 992px) {
    .hero { padding-top: 40px; padding-bottom: 40px; align-items: flex-start;}
    .hero-innovative-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-left-content { grid-column: 1; order: 2; } 
    /* Font sedikit dikecilkan di mobile agar tidak sumpek */
    .hero-big-title h1 { font-size: clamp(3rem, 12vw, 4.5rem); margin-bottom: 20px; }
    .hero-description-box { margin: 0 auto; }
    .hero-image-right { grid-column: 1; order: 1; justify-content: center; padding-left: 0; } 
    
    /* FOTO HERO MOBILE DIKECILKAN DRASTIS */
    .image-mask { max-width: 220px; } 

    .sticky-layout { flex-direction: column; gap: 50px; }
    .sticky-sidebar, .scroll-content { width: 100%; position: relative; top: 0; }
    
    .innovative-gallery { gap: 80px; }

    /* PERBAIKAN TOTAL: PAKSA FLEXBOX AGAR TIDAK TABRAKAN DI MOBILE */
    .project-row, .project-row.reverse-row { 
        display: flex !important; 
        flex-direction: column; 
        gap: 30px; 
        text-align: center; 
    }
    
    .project-row .project-info,
    .project-row.reverse-row .project-info { 
        padding-left: 0; 
        order: 2; /* Teks selalu di bawah gambar */
        width: 100%;
    }
    
    .project-row .project-visual,
    .project-row.reverse-row .project-visual { 
        order: 1; /* Gambar selalu di atas teks */
        width: 100%;
    }
    
    /* Angka Raksasa ditata ulang */
    .project-number { 
        top: -40px; 
        left: 50%; 
        transform: translateX(-50%); 
        font-size: 7rem;
    }
    .project-row.reverse-row .project-number { 
        right: auto; 
        left: 50%;
        transform: translateX(-50%);
    }
    
    .expertise-grid { flex-direction: column; gap: 30px; border-bottom: none; padding: 20px 0;}
    .expert-column { padding: 0; }
    .border-x { border: none; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 30px 0;}
    .contact-flex { grid-template-columns: 1fr; gap: 40px; }

    .footer-simple-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-simple-links { justify-content: center; }
}

@media screen and (max-width: 768px) {
    .royal-nav { padding: 15px 5%; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--nav-bg); flex-direction: column; gap: 20px; padding: 30px; border-bottom: 1px solid var(--border-color); text-align: center;}
    .nav-links.active { display: flex; }
    .mobile-hide { display: none; }
    .mobile-menu-btn { display: block; }
    
    .section-spacing { margin-top: 60px; margin-bottom: 60px; }
    .contact-elegant-box { padding: 40px 20px; }
}