/* ==========================================================================
   PT. AMALIA GLOBAL SEJAHTERA (AGS)
   Ultra-Modern Minimalist Corporate Design System
   Palette: Corporate Blue (#0B3763), Warm Gold (#f0c04e / #ffdf9d), Soft Porcelain Surface (#faf8ff)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --navy-950: #061f38;
  --navy-900: #0B3763;
  --navy-800: #0f467d;
  --navy-700: #155799;
  
  --secondary: #0B3763;
  --secondary-container: #b3d1fd;
  --secondary-fixed: #d3e4ff;

  --gold-500: #f0c04e;
  --gold-400: #ffdf9d;
  --gold-gradient: linear-gradient(135deg, #ffdf9d 0%, #f0c04e 50%, #9B7216 100%);
  --gold-glow: rgba(240, 192, 78, 0.25);

  --surface: #faf8ff;
  --surface-lowest: #ffffff;
  --surface-low: #f2f3ff;
  --surface-high: #e2e7ff;
  --surface-highest: #dae2fd;

  --text-primary: #131b2e;
  --text-secondary: #44474c;
  --text-white: #ffffff;

  --max-width: 1280px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Material Symbols Outlined rendering fix */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   ORIGINAL PROJECT FLOATING MINIMALIST HEADER & NAVBAR
   (Preserved & perfectly harmonized with new styling)
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1.25rem;
  pointer-events: none;
}

.header-nav {
  pointer-events: auto;
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(218, 226, 253, 0.85);
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(11, 55, 99, 0.08);
  transition: var(--transition);
  position: relative;
}

.header-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(240, 192, 78, 0.35);
  box-shadow: 0 12px 36px rgba(11, 55, 99, 0.14);
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: var(--transition);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gold-500);
  border-radius: 2px;
}

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

/* Minimalist Sliding Language Switcher (iOS / macOS Segmented Style) */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #EEF2F6;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 3px;
  border-radius: 9999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  user-select: none;
  width: 72px;
  height: 32px;
}

.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 24px;
  background: var(--navy-900);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(11, 55, 99, 0.25);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.lang-switcher[data-active="en"] .lang-slider {
  transform: translateX(33px);
}

.lang-btn {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-secondary);
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.15s ease;
  letter-spacing: 0.5px;
  padding: 0;
  box-shadow: none !important;
}

.lang-btn:hover {
  color: var(--navy-900);
}

.lang-btn:active {
  transform: scale(0.92);
}

.lang-btn.active {
  color: #FFFFFF !important;
}

/* Button Primary Dark */
.btn-primary-dark {
  background: var(--navy-900);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(11, 55, 99, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-dark:hover {
  background: var(--navy-800);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 55, 99, 0.3);
}

.text-gold {
  color: var(--gold-500) !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--navy-900);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.4rem;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
  .header-wrapper {
    top: 0.75rem;
    padding: 0 0.85rem;
  }

  .header-nav {
    border-radius: 14px;
    padding: 0.55rem 1rem;
  }

  .brand-logo img {
    height: 32px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--surface-highest);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: 0 16px 40px rgba(11, 55, 99, 0.18);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0;
    width: 100%;
  }

  .mobile-nav-cta {
    display: flex !important;
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
}

/* Smooth Page Text Cross-fade Transition */
.i18n-transitioning {
  opacity: 0.4 !important;
  transform: translateY(-2px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.i18n-swapped {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* ==========================================================================
   PILLARS SHOWCASE & INTERACTIVE GALLERY
   ========================================================================== */
.unit-card-glow {
  box-shadow: 0 10px 30px rgba(11, 55, 99, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: var(--transition);
}

.unit-card-glow:hover {
  border-color: rgba(240, 192, 78, 0.5);
  box-shadow: 0 16px 40px rgba(11, 55, 99, 0.12), 0 0 20px rgba(240, 192, 78, 0.15);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #0b2542;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 55, 99, 0.18);
}

.gallery-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  background: linear-gradient(180deg, rgba(6, 31, 56, 0.05) 0%, rgba(6, 31, 56, 0.4) 50%, rgba(6, 31, 56, 0.95) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

