/* --- VARIABEL WARNA & FONT --- */
:root {
  --dark:    #0c1220;
  --dark-2:  #111827;
  --dark-3:  #1a2535;
  --gold:    #c8a96e;
  --gold-lt: #dfc18c;
  --text:    #8fa3b8;
  --white:   #f0ece4;
  --border:  rgba(200,169,110,0.12);
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body:    'DM Sans', sans-serif;
  --ease: cubic-bezier(0.4,0,0.2,1);
}

/* --- RESET DASAR --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* --- LAYOUT UTAMA --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}
section { padding: 110px 0; }

/* --- TIPOGRAFI --- */
h2 {
  font-family: var(--ff-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
h2 em { font-style: italic; color: var(--gold); }
h3 {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.25;
}
p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  font-weight: 300;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin: 0; }

/* --- TOMBOL --- */
.btn-primary {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--dark);
  transition: background 0.3s var(--ease);
}
.btn-primary:hover { background: var(--gold-lt); }

.btn-ghost {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 14px 36px;
  border: 1px solid rgba(240,236,228,0.2);
  color: var(--white);
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(200,169,110,0.35);
  color: var(--gold);
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-full { width: 100%; text-align: center; display: block; }

/* --- ANIMASI MUNCUL (REVEAL) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* --- HEADER & NAVIGASI --- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
#header.scrolled {
  background: rgba(12,18,32,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo-img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }

#nav { display: flex; gap: 32px; margin-left: auto; }
#nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #ffffff;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
#nav a:hover { color: var(--white); }
#nav a:hover::after { width: 100%; }

/* --- MOBILE NAV (MENU HAMBURGER) --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: all 0.3s;
}
.hamburger.active span:first-child { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:last-child  { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--dark-2);
  z-index: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 38px;
  font-weight: 300;
  color: var(--white);
  transition: color 0.25s;
}
.mobile-nav a:hover { color: var(--gold); }

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  /* Properti background diubah agar responsif dan halus saat transisi */
  background-image: url('../images/background1.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.4s ease, background-position 0.4s ease;
}
.hero-bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(12,18,32,0.92) 45%, rgba(12,18,32,0.55) 100%),
    linear-gradient(to top, rgba(12,18,32,0.6) 0%, transparent 50%);
}
.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--ff-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.03;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- STATISTIK HERO --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  border: 1px solid var(--border);
  width: fit-content;
  position: relative;
  z-index: 1;
  background: rgba(12,18,32,0.55);
  backdrop-filter: blur(8px);
  text-align: center;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  gap: 6px;
}
.stat-num {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 300;
}
.divider-v {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* --- ABOUT SECTION --- */
#about { background: var(--dark-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; }
.about-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.about-list li {
  font-size: 13px;
  color: var(--white);
  font-weight: 300;
  padding-left: 16px;
  position: relative;
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.about-box { position: relative; max-width: 340px; margin-left: auto; }
.about-box svg { width: 100%; display: block; border-top: 2px solid rgba(200,169,110,0.3); }

/* --- SERVICES SECTION --- */
#services { background: var(--dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--dark);
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s var(--ease);
}
.service-card:hover::after { height: 100%; }
.service-card:hover { background: var(--dark-3); }
.service-num {
  font-family: var(--ff-display);
  font-size: 52px;
  font-weight: 300;
  color: rgba(200,169,110,0.07);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
  transition: color 0.3s;
}
.service-card:hover .service-num { color: rgba(200,169,110,0.13); }
.service-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; font-size: 20px; }
.service-card p { font-size: 14px; line-height: 1.75; }

/* --- PROJECTS SECTION --- */
#projects { background: var(--dark-2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--dark-3);
  overflow: hidden;
  cursor: pointer;
}
.project-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
  position: relative;
}
.project-card:hover .project-img { transform: scale(1.03); }

/* Placeholder/Images */
.pi-1 { background: url('../images/modern-tropical1.png') center center / cover no-repeat }
.pi-2 { background: url('../images/Modern-tropical 2.jpg') center center / cover no-repeat }
.pi-3 { background: url('../images/modern-tropical3.png') center center / cover no-repeat}
.pi-4 { background: url('../images/modern-tropical4.png') center center / cover no-repeat }
.pi-5 { background: url('../images/bedroom2.jpg') center center / cover no-repeat; }

.project-card.wide { grid-column: span 2; }
.project-card.wide .project-img { aspect-ratio: 16/7; }
.project-img::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: rgba(200,169,110,0.03);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.project-info {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.project-info::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.project-card:hover .project-info::before { width: calc(100% - 48px); }
.project-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.project-info h3 { font-size: 17px; margin-bottom: 4px; }
.project-info p { font-size: 13px; }

/* --- CONTACT SECTION --- */
#contact { background: var(--dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-left h2 { margin-bottom: 16px; }
.contact-left > p { margin-bottom: 40px; }
.contact-info-list { display: flex; flex-direction: column; gap: 24px; }
.c-info { display: flex; gap: 16px; align-items: flex-start; }
.c-info svg {
  width: 18px; height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.c-info span { font-size: 14px; color: var(--text); font-weight: 300; line-height: 1.6; }

.contact-right {
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 44px;
}
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(200,169,110,0.1);
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  -webkit-appearance: none;
  resize: none;
  transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(240,236,228,0.2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(200,169,110,0.4); }
.field select option { background: var(--dark-2); }

/* --- FOOTER --- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding: 64px 0 48px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 20px;
}
.footer-brand > p { font-size: 14px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(240,236,228,0.06);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; }

/* --- BACK TO TOP --- */
.back-top {
  position: fixed;
  bottom: 36px; right: 36px;
  width: 42px; height: 42px;
  background: var(--dark-2);
  border: 1px solid rgba(200,169,110,0.25);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  z-index: 200;
}
.back-top.show { opacity: 1; transform: none; }
.back-top:hover { background: var(--gold); color: var(--dark); }

/* ============================================
   RESPONSIVE (MOBILE & TABLET)
   ============================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
  #header { padding: 0 24px; }
  #nav, .btn-outline { display: none; }
  .hamburger { display: flex; }
  
  #hero { padding: 100px 24px 60px; text-align: center; } /* Teks disesuaikan */
  .hero-content { margin: 0 auto; }
  .hero-btns { justify-content: center; }
  
  /* OVERRIDE BACKGROUND HERO KHUSUS MOBILE */
  .hero-bg-img {
    background-image: url('../images/DJI_20260311165231_0105_D.jpg');
    background-position: center top; 
  }

  /* Rata tengah untuk statistik di Mobile */
  .hero-stats { 
    flex-direction: column; 
    width: 100%; 
    margin: 40px auto 0;
  }
  .divider-v { width: 100%; height: 1px; }
  .hero-stat { padding: 24px; width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: span 1; }
  .project-card.wide .project-img { aspect-ratio: 4/3; }
  
  .contact-grid { grid-template-columns: 1fr; }
  .contact-right { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================
   BILINGUAL DROPDOWN & INSTAGRAM TWEAKS
   ============================================ */
.lang-switch {
  position: relative;
  margin-left: 20px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  z-index: 110;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.lang-current:hover {
  color: var(--gold);
}

.lang-current svg {
  transition: transform 0.3s ease;
  opacity: 0.8;
}

/* Animasi panah berputar saat menu di-hover */
.lang-switch:hover .lang-current svg {
  transform: rotate(180deg);
  color: var(--gold);
  opacity: 1;
}

/* Kotak dropdown disembunyikan secara default */
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-width: 65px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 120;
  margin-top: 5px;
  overflow: hidden;
}

/* Munculkan dropdown saat di-hover */
.lang-switch:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  text-align: center;
}

.lang-btn:hover {
  background: var(--dark-3);
  color: var(--white);
}

.lang-btn.active {
  color: var(--gold);
  font-weight: 600;
  background: rgba(200, 169, 110, 0.05);
}

/* Tambahan efek hover untuk link kontak (Instagram) */
.c-info a {
  font-size: 14px;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  transition: color 0.3s ease;
  text-decoration: none;
}
.c-info a:hover {
  color: var(--gold);
}

/* Responsif Mobile Language Switcher */
@media (max-width: 768px) {
  .lang-switch {
    margin-left: auto;
    margin-right: 16px;
  }
  .lang-dropdown {
    left: auto;
    right: 0;
    transform: translateY(10px);
  }
  .lang-switch:hover .lang-dropdown {
    transform: translateY(0);
  }
}
/* Styling link alamat dan telepon pada kontak */
.c-info a {
  font-size: 14px;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  transition: color 0.3s ease;
  text-decoration: none;
}

.c-info a:hover {
  color: var(--gold);
}