:root {
  --primary: #4285F4;
  --dark: #202124;
  --light: #f8f9fa;
  --gray: #5f6368;
  --transition: all 0.3s ease-in-out;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* BARU: Style untuk #opening-sequence */
#opening-sequence {
  position: fixed; /* Memastikan section ini menutupi seluruh layar jika diperlukan */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000; /* Pastikan di atas .page-content yang mungkin punya z-index sendiri */
}

/* Konten utama sekarang awalnya tersembunyi */
.page-content {
  opacity: 0;
  visibility: hidden;
  /* Transisi akan dikontrol oleh class .visible */
}

/* BARU: Class untuk menampilkan .page-content dengan transisi */
.page-content.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease-in-out;
}


/* Gaya untuk Popup Selamat Datang */
.welcome-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* background-color: rgba(32, 33, 36, 0.85); DIHAPUS SESUAI PERMINTAAN */
  z-index: 3020; /* Di atas #nextcubes-section (jika ada, diatur di nextcube.css) di dalam #opening-sequence */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.welcome-popup.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; 
}

.welcome-popup-content {
  background-color: transparent; /* Latar belakang transparan */
  color: var(--dark); 
  padding: 40px 50px;
  border-radius: 15px;
  border: none; /* Border dihilangkan */
  transform: scale(0.9);
  opacity: 0;
  animation: popup-appear 0.5s 0.2s forwards ease-out;
  position: relative; 
  pointer-events: auto; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  box-shadow: none; /* Box-shadow dihilangkan */
}

@keyframes popup-appear {
  to { transform: scale(1); opacity: 1; }
}
.welcome-text-atas { 
  font-size: 1.8rem; 
  margin: 0; 
  color: var(--light); /* Warna teks diubah menjadi terang untuk kontras */
  text-align: center; 
}
.welcome-logo { 
  height: 50px; 
  margin: 20px 0; 
  /* filter: brightness(1.1); Dihapus */
}

#welcomeOkBtn { 
  background-color: var(--primary); 
  min-width: 150px; 
  margin-top: 25px; 
  /* Teks tombol (putih) sudah diatur oleh .hero-cta di hero.css */
} 
#welcomeOkBtn::before { content: '\f04b'; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 10px; }

/* Gaya Header Disederhanakan & Animasi Baru */
.main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(32, 33, 36, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1000; /* z-index standar untuk header di dalam .page-content */
  /* Padding dihilangkan, diatur oleh anak-anaknya */
}

.header-container {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 30px; 
  position: relative; 
  min-height: 42px; 
}

.logo {
  position: absolute; 
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              position 0s linear 0.7s; 
  z-index: 10; 
}
.logo img { 
  height: 42px; 
  display: block; 
}

.logo.final-logo-state { 
  position: relative; 
  left: 0;
  top: 0; 
  transform: translate(0, 0); 
}

.header-slogan {
  display: flex;
  align-items: center;
  gap: 10px; 
  color: var(--light);
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px); 
  transition: opacity 0.5s ease-out 0.6s, 
              transform 0.5s ease-out 0.6s, 
              visibility 0s linear 1.1s; 
  margin-left: auto; 
}

.header-slogan.final-slogan-state { 
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.header-slogan img {
  max-width: 135px; 
}

.header-slogan span {
  font-size: 2rem; 
  font-weight: 300;
}

/* Elegant Language Switcher */
.language-switcher {
  position: relative;
  margin-left: 20px;
}

.language-switcher__button {
  background-color: transparent;
  border: 1px solid var(--gray);
  border-radius: 5px;
  color: var(--light);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.language-switcher__button:hover,
.language-switcher__button:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--light);
  outline: none;
}

.language-switcher__button .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.language-switcher__button[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.language-switcher__options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: rgba(40, 41, 45, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray);
  border-radius: 5px;
  list-style: none;
  padding: 5px;
  margin: 0;
  min-width: 100%;
  width: max-content;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.language-switcher__options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.language-switcher__options li {
  margin: 0;
  padding: 0;
}

.language-option {
  background: none;
  border: none;
  color: var(--light);
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.language-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-option.active {
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(66, 133, 244, 0.15);
}

/* NEW: Utility Bar Styles (Moved from hero.css) */
.utility-bar-container {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  color: white;
  display: flex;
  justify-content: center;

  /* Animation */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0s linear 0.5s;
}

.page-content.visible .utility-bar-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 1.5s;
}

.utility-bar-wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.utility-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.utility-bar-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.utility-bar-button {
  background-color: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.utility-bar-button:hover {
  background-color: #5a95f5;
  transform: translateY(-2px);
}

/* NEW: Dropdown Styles */
.utility-bar-item.interactive {
    position: relative;
}

.utility-dropdown-btn {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.utility-dropdown-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.utility-dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(40, 41, 45, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 8px;
    min-width: 250px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.utility-dropdown-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.utility-dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.utility-dropdown-content li a {
    display: block;
    padding: 8px 12px;
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.utility-dropdown-content li a:hover {
    background-color: rgba(66, 133, 244, 0.2);
}

/* Menyesuaikan z-index #hero untuk skema baru di dalam .page-content */
#hero {
  z-index: 10; /* z-index dasar untuk section hero */
  position: relative; /* Diperlukan untuk stacking context anak-anaknya seperti .lego-models-container */
}

/* Footer Styles */
.main-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--dark); /* Base background, specific sections can override */
  color: var(--light);
  z-index: 2000; 
  transform: translateX(-100%); 
  opacity: 0; 
  pointer-events: none;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  padding: 0; /* Reset padding, new sections will handle it */
  max-height: 70vh; /* Make the footer scrollable if content exceeds viewport height */
  overflow-y: auto;
  overflow-x: hidden; /* Prevent horizontal scroll from content like map at certain widths */
}

.main-footer.visible {
  transform: translateX(0); 
  opacity: 1;
  pointer-events: auto;
}

.footer-top {
  background-color: var(--dark); 
  color: var(--light);
  padding: 40px 0;
}

.footer-top .container, .footer-bottom .container { /* Common container for footer sections */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-about .logo-footer {
  max-width: 200px; 
  height: auto;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(248, 249, 250, 0.85);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--light);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-nav-list, .footer-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li a, .footer-services-list li a {
  color: rgba(248, 249, 250, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.8;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block; /* Allows padding-left to work as expected */
}

.footer-nav-list li a:hover, .footer-services-list li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact address p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 10px;
  color: rgba(248, 249, 250, 0.75);
  display: flex;
  align-items: flex-start; 
}

.footer-contact address p i {
  margin-right: 12px;
  margin-top: 4px; 
  color: var(--primary);
  width: 16px; 
  text-align: center;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.footer-bottom {
  background-color: #1a1a1a; 
  color: #ccc; 
  padding: 30px 0;
}

.map-container {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden; 
  border: 1px solid var(--gray);
}

.map-container iframe {
  display: block; 
  width: 100%; /* Ensure iframe takes full width of container */
  max-height: 300px; 
}

.footer-legal {
  text-align: center;
}

.copyright p {
  font-size: 0.85rem;
  margin-bottom: 15px;
  color: #aaa;
}
.copyright strong {
    color: var(--light);
}

.legal-links {
  margin-bottom: 15px;
}

.legal-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.8rem;
  margin: 0 10px;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--primary);
}

.footer-legal .disclaimer p { 
  font-size: 0.7rem; 
  line-height: 1.4;
  color: #888; 
}

.sup-small {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0; /* Prevent affecting line height if possible */
  position: relative; /* Allow fine-tuning if needed */
  top: -0.2em; /* Adjusts vertical position slightly */
}


/* Tombol Toggle Footer BARU */
#footerToggleButton {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 60px; 
  height: 60px; 
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0; 
  cursor: pointer;
  z-index: 2050; 
  display: flex;
  justify-content: center;
  align-items: center;
}

#footerToggleButton img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

#footerToggleButton:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for new footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Allow slightly larger items before stacking to 1 column */
    }
}

@media (max-width: 768px) {
  .header-slogan {
    display: none; /* Hide slogan on smaller screens */
  }
  .language-switcher {
    margin-left: auto; /* Push switcher to the right when slogan is hidden */
  }
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 25px;
  }
  .footer-links h3, .footer-services h3, .footer-contact h3 {
    font-size: 1.1rem;
  }
  .footer-top {
    padding: 30px 0;
  }
  .footer-bottom {
    padding: 20px 0;
  }
  .map-container iframe {
    max-height: 250px;
  }
  .footer-about, .footer-links, .footer-services, .footer-contact {
      text-align: left; /* Keep left align for content within columns */
  }
   .footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
      left: 0; /* Keep underline aligned left */
      transform: translateX(0);
  }
}

@media (max-width: 576px) { /* Changed from 480px for better breakpoint */
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on very small screens */
        gap: 20px;
    }
    .footer-about, .footer-links, .footer-services, .footer-contact {
        text-align: center; /* Center content when stacked */
    }
    .footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact address p {
        justify-content: center; 
        padding: 0 10px; /* Add some padding so text is not edge-to-edge */
    }
     .footer-contact address p i {
        margin-top: 5px; 
    }
    .legal-links a {
        display: block;
        margin: 8px 0; /* Increased margin for better touch targets */
    }
    .footer-top .container, .footer-bottom .container {
        padding: 0 20px; /* Reduce padding on smallest screens */
    }
}

/* --- Start of Merged nextcube.css content --- */
#nextcubes-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    overflow: hidden;
    z-index: 10; /* Di bawah popup (3020) tapi di atas page-content (default) */
    opacity: 1; /* Terlihat secara default */
    visibility: visible;
    transition: opacity 0.5s ease-out 0.7s, visibility 0s linear 1.2s; /* Transisi keluar untuk section */
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.parallax-bricks-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 5px;
    box-sizing: border-box;
}

.parallax-brick {
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform-origin: center bottom;
    margin: 3px;
}

@keyframes brick-entry-animation {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes brick-exit-animation {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(60px) scale(0.7);
    }
}

.parallax-brick.layer-1 { 
    width: 25%;
    animation: brick-entry-animation 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards; 
    z-index: 1; 
}
.parallax-brick.layer-2 { 
    width: 25%;
    animation: brick-entry-animation 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.25s forwards; 
    z-index: 2; 
}
.parallax-brick.layer-3 { 
    width: 25%;
    animation: brick-entry-animation 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards; 
    z-index: 3; 
}
.parallax-brick.layer-4 { 
    width: 25%;
    animation: brick-entry-animation 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s forwards; 
    z-index: 4; 
}

#nextcubes-section.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-out 0.7s, visibility 0s linear 1.2s; 
}

#nextcubes-section.is-hiding .parallax-brick.layer-1 { animation: brick-exit-animation 0.5s ease-in-out 0s forwards; }
#nextcubes-section.is-hiding .parallax-brick.layer-2 { animation: brick-exit-animation 0.5s ease-in-out 0.1s forwards; }
#nextcubes-section.is-hiding .parallax-brick.layer-3 { animation: brick-exit-animation 0.5s ease-in-out 0.2s forwards; }
#nextcubes-section.is-hiding .parallax-brick.layer-4 { animation: brick-exit-animation 0.5s ease-in-out 0.3s forwards; }
/* --- End of Merged nextcube.css content --- */

/* --- Font Awesome Path Fix --- */
/* Overrides the default @font-face paths in all.min.css to point to the correct /assets/fonts/ directory. */
/* This is loaded last to ensure it takes precedence without modifying the original Font Awesome file. */

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/fa-brands-400.woff2") format("woff2"), url("../assets/fonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/fa-regular-400.woff2") format("woff2"), url("../assets/fonts/fa-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../assets/fonts/fa-solid-900.woff2") format("woff2"), url("../assets/fonts/fa-solid-900.ttf") format("truetype");
}

/* V4 Compatibility Overrides */
@font-face {
  font-family: 'FontAwesome';
  font-display: block;
  src: url("../assets/fonts/fa-solid-900.woff2") format("woff2"), url("../assets/fonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: 'FontAwesome';
  font-display: block;
  src: url("../assets/fonts/fa-brands-400.woff2") format("woff2"), url("../assets/fonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: 'FontAwesome';
  font-display: block;
  src: url("../assets/fonts/fa-regular-400.woff2") format("woff2"), url("../assets/fonts/fa-regular-400.ttf") format("truetype");
  unicode-range: u+f003,u+f006,u+f014,u+f016-f017,u+f01a-f01b,u+f01d,u+f022,u+f03e,u+f044,u+f046,u+f05c-f05d,u+f06e,u+f070,u+f087-f088,u+f08a,u+f094,u+f096-f097,u+f09d,u+f0a0,u+f0a2,u+f0a4-f0a7,u+f0c5,u+f0c7,u+f0e5-f0e6,u+f0eb,u+f0f6-f0f8,u+f10c,u+f114-f115,u+f118-f11a,u+f11c-f11d,u+f133,u+f147,u+f14e,u+f150-f152,u+f185-f186,u+f18e,u+f190-f192,u+f196,u+f1c1-f1c9,u+f1d9,u+f1db,u+f1e3,u+f1ea,u+f1f7,u+f1f9,u+f20a,u+f247-f248,u+f24a,u+f24d,u+f255-f25b,u+f25d,u+f271-f274,u+f278,u+f27b,u+f28c,u+f28e,u+f29c,u+f2b5,u+f2b7,u+f2ba,u+f2bc,u+f2be,u+f2c0-f2c1,u+f2c3,u+f2d0,u+f2d2,u+f2d4,u+f2dc;
}

@font-face {
  font-family: 'FontAwesome';
  font-display: block;
  src: url("../assets/fonts/fa-v4compatibility.woff2") format("woff2"), url("../assets/fonts/fa-v4compatibility.ttf") format("truetype");
  unicode-range: u+f041,u+f047,u+f065-f066,u+f07d-f07e,u+f080,u+f08b,u+f08e,u+f090,u+f09a,u+f0ac,u+f0ae,u+f0b2,u+f0d0,u+f0d6,u+f0e4,u+f0ec,u+f10a-f10b,u+f123,u+f13e,u+f148-f149,u+f14c,u+f156,u+f15e,u+f160-f161,u+f163,u+f175-f178,u+f195,u+f1f8,u+f219,u+f27a;
}