@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.15); 
}

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.12);
}

* { 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); transition: background-color 0.4s ease, color 0.4s ease; font-weight: 300; position: relative;}

/* Animasi Background */
.royal-glow { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -3; pointer-events: none; animation: floatRoyal 20s 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%; }

.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; 
}
.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.5px, transparent 2px);
    background-size: 100px 100px;
    animation: twinkleFast 2s ease-in-out infinite alternate; 
}
.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.5px, transparent 2px);
    background-size: 100px 100px;
    animation: twinkleSlow 3s ease-in-out infinite alternate 1s; 
}

@keyframes twinkleFast { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes twinkleSlow { 0% { opacity: 0; } 100% { opacity: 0.7; } }
@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); } }

/* Custom Cursor */
@media (pointer: fine) { body, a, button, input, textarea { 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 { font-family: 'Playfair Display', serif; }
.italic-text { font-style: italic; font-weight: 400; }
.text-gold { color: var(--gold-primary); }
.body-text { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); font-weight: 300;}

.page-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--heading-color); font-weight: 500; line-height: 1.1; letter-spacing: -1px; transition: color 0.5s ease;}
.subtitle-gold { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold-primary); font-weight: 500; font-family: 'Inter', sans-serif; margin-bottom: 5px;}

/* Utilities */
.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; position: relative; z-index: 10;}
.pt-4 { padding-top: 15px;} 
.mt-auto { margin-top: auto;}
.text-center { text-align: center; }

/* Navbar (Sekarang isinya HANYA MENTOK KE KANAN) */
.royal-nav { 
    display: flex; 
    justify-content: flex-end; /* Memaksa isi merapat ke kanan */
    align-items: center; 
    padding: 25px 5%; 
    background: transparent; 
    position: relative; 
    z-index: 20; 
}
#theme-toggle { background: transparent; border: none; font-size: 1.2rem; color: var(--heading-color); cursor: none; transition: color 0.3s; }
#theme-toggle:hover { color: var(--gold-primary); }

/* Tombol Link */
.btn-link { text-decoration: none; color: var(--gold-primary); font-family: 'Playfair Display', serif; font-size: 1rem; font-style: italic; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s ease; }
.btn-link:hover { gap: 12px; }

/* Header Section Spacing */
.header-section {
    padding-top: 1vh; /* Jarak atas disesuaikan agar rapi tanpa navbar "Ink." */
    padding-bottom: 2vh;
}

/* =========================================================
   PROJECT SHOWCASE CARDS
   ========================================================= */
.showcase-section { 
    padding-bottom: 40px; 
}
.grid-3-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }

.elegant-card { background: var(--box-dark); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease; }
.elegant-card:hover { transform: translateY(-5px); border-color: var(--gold-primary); }

.card-visual { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.scale-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%); transition: transform 0.5s ease, filter 0.5s ease; }
.elegant-card:hover .scale-img { filter: grayscale(0%); transform: scale(1.05); }

.card-content { padding: 20px 15px; display: flex; flex-direction: column; flex-grow: 1; }
.project-category { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-primary); display: block; margin-bottom: 8px; font-weight: 500;}
.card-title { font-size: 1.3rem; color: var(--box-text); font-weight: 500; margin-bottom: 10px; font-family: 'Playfair Display', serif;}
.card-content .body-text { color: var(--text-muted); }
.small-text { font-size: 0.8rem; line-height: 1.5; }

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

/* =========================================================
   FOOTER SATU BARIS
   ========================================================= */
.royal-footer { 
    padding: 40px 0; 
    border-top: 1px solid var(--border-color); 
    background: var(--bg-main); 
    margin-top: 50px; 
}
.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 !important; 
    display: flex; 
    gap: 25px; 
    margin: 0; 
    padding: 0; 
    align-items: center;
}
.footer-simple-links li {
    list-style: none !important; 
}
.social-icon { 
    font-size: 1.4rem; 
    color: var(--text-muted); 
    transition: color 0.3s ease, transform 0.3s ease; 
    display: inline-block; 
    text-decoration: none;
    cursor: none;
}
.social-icon:hover { 
    color: var(--gold-primary); 
    transform: translateY(-4px); 
}

/* MOBILE RESPONSIVE */
@media screen and (max-width: 992px) {
    .grid-3-columns { grid-template-columns: 1fr; gap: 30px; }
    .footer-simple-flex { flex-direction: column; gap: 15px; text-align: center; }
}