/* Ensure the hero section properly contains the canvas */
.hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* TEMP FIX: Force visibility of all slide-in brand columns for testing */
.slide-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
}


body.nav-open {
  overflow-x: hidden;
}

.qr-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.qr-modal-content {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  width: 320px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-instagram {
  position: fixed;
  top: 10rem;
  right: 1rem;
  bottom: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.2s ease;
}

.floating-instagram:hover {
  transform: scale(1.1);
}

.floating-instagram svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.instagram-button {
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  display: inline-block;
}

.instagram-button:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

.dropdown-content {
  display: none;
  /* other styles you already have */
}

.dropdown:hover .dropdown-content {
  display: block;
}

#dotCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  display: block;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.icon-small {
  width: 15rem;
  height: auto;
}

.rotating-text-container {
  font-size: 2rem;
  font-weight: bold;
  color: #1F4180;
  display: flex;
  align-items: center;
}

.static-text {
  margin-right: 1rem;
}

.rotating-words {
  height: 2.5rem; /* Adjust based on font size */
  overflow: hidden;
  position: relative;
}

.rotating-words span {
  display: block;
  height: 2.5rem;
  line-height: 2.5rem;
  animation: rotateVertical 8s steps(4) infinite;
}

@keyframes rotateVertical {
  0% { transform: translateY(0); }
  25% { transform: translateY(-100%); }
  50% { transform: translateY(-200%); }
  75% { transform: translateY(-300%); }
  100% { transform: translateY(0); }
}

.brand-board {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  background: #e6f0ff;
  font-family: 'Montserrat', sans-serif;
}

.brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-family: 'Playfair Display', serif;
}

.brand-header p {
  font-size: 1.1rem;
  color:  #004080;
}

.brand-grid {
  display: flex;
  gap: 1rem;
  border-top: 5px solid  #004080;
  border-bottom: 5px solid  #004080;
  padding: 1.5rem 0;
}

.brand-col {
  flex: 1;
  text-align: center;
  border-left: 3px solid  #004080;
  padding: 0 1rem;
}

.brand-col:first-child {
  border-left: none;
}

.brand-col h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color:  #004080;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.brand-col img {
  max-width: 10rem;
  margin-bottom: 0.5rem;
}

.brand-col p {
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
}

.logo-variants img {
  display: block;
  margin: 0.5rem auto;
}

.rounded-icon {
  background: #000;
  border-radius: 12px;
  padding: 1rem;
  width: 8rem;
  height: auto;
  object-fit: contain;
}

.img-shadow {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.901);
  border-radius: 0px;
}

.coverage-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.coverage-slide-left,
.coverage-slide-right {
  opacity: 1;
  transform: translateX(0);
}

/* === Global Styles === */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #e6f0ff;
  color: #001f3f;
  overflow-x: hidden;
}

header {
  background: #004080;
  color: #fff;
  padding: 1rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: transform 0.2s;
}

.nav a:hover {
  transform: scale(1.1);
}

.nav img {
  height: 100px;
}

.nav-links a.active {
  font-weight: bold;
}

.nav-links a.active::after {
  width: 100%;
}

.hero {
  position: relative;
  max-width: 1600px;
  height: 400px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 2rem;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
}

/* === Slide Image Section === */
.slide-image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 3rem auto;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.8s cubic-bezier(.77,0,.18,1);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2rem;
}

.slide-image-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-image-section img {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.slide-image-desc {
  font-size: 1.1rem;
  color: #1F4180;
  font-weight: 600;
  max-width: 350px;
}

/* === Cards === */
.packages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: #E7F1FF;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #1e1e1e;
  color: white;
  overflow: hidden;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  text-decoration: none;
}

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

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  background: #1F4180;
  padding: 0.5rem;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

.card-location {
  background: #1e1e1e;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* === Fasilitas Image for Desktop === */
.fasilitas-img {
  max-width: 608px;
  max-height: auto;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin: 0;
  display: block;
}

/* === Responsive / Mobile Styles === */
@media (max-width: 768px) {
  .ig-link {
    font-size: 0.9rem;
    color: #004080;
    text-decoration: none;
    display: block;
    margin-top: 1rem;
  }

  .brand-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 3px solid #004080;
    border-bottom: 3px solid #004080;
    padding: 0%;
  }

  .brand-col {
    border-left: none !important;
    border-bottom: 2px solid #004080;
    padding-bottom: 1rem;
    text-align: center;
  }

  .brand-col:last-child {
    border-bottom: none;
  }

  .brand-col img {
    max-width: 5rem;
    margin-bottom: 0.5rem;
  }

  .brand-col p {
    font-size: 1rem;
  }

  .brand-col img {
    max-width: 100px;
    margin-bottom: 0.5rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  .nav img {
    height: 70px;
    margin-bottom: 0.5rem;
  }

  .nav a {
    margin: 0.25rem 0;
    display: inline-block;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .slide-image-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
    margin: 2rem 1rem;
  }

  .slide-image-section img {
    width: 100%;
    height: auto;
  }

  .slide-image-desc {
    max-width: 100%;
    font-size: 1rem;
  }

  #coverage {
    flex-direction: column;
  }

  #coverage img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }

  .packages {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .card {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }

  .card img {
    height: auto;
  }

  #contact h2 {
    font-size: 1.5rem;
  }

  #contact p {
    font-size: 0.95rem;
  }

  section > div[style*="display: flex"] {
    flex-direction: column-reverse !important;
    gap: 1rem !important;
  }

  section > div[style*="display: flex"] img {
    width: 100% !important;
    height: auto !important;
  }

  section > div[style*="display: flex"] > div {
    text-align: center !important;
  }

  .fasilitas-flex {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .fasilitas-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.901);
    margin: 0 auto;
    display: block;
  }

  .fasilitas-flex > div {
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .fasilitas-flex {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .fasilitas-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.901);
  }

  .fasilitas-flex > div {
    flex: 1;
    padding-right: 2rem;
    text-align: left;
  }

  /* === Animation Utility Classes === */
  .animate-slide-left {
    animation: slideInFromLeft 0.8s ease-out forwards;
  }

  .animate-slide-right {
    animation: slideInFromRight 0.8s ease-out forwards;
  }

  .animate-fade-in {
    animation: fadeInDown 0.8s ease-out forwards;
  }
}

html { scroll-behavior: smooth; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  background: #1F4180;
  color: white;
  padding: 2rem 1rem;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
}

/* Brand section scroll animation */
.slide-in {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease-out;
}
.brand-slide-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.brand-delay-1 {
  transition-delay: 0.2s;
}
.brand-delay-2 {
  transition-delay: 0.6s;
}
.brand-delay-3 {
  transition-delay: 1s;
}

@media (max-width: 400px) {
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    max-width: 100%;
    flex-wrap: wrap;
    word-break: break-word;
    box-sizing: border-box;
  }

  .nav-container {
    padding: 0.5rem 0.5rem;
  }

  .nav-links a,
  .dropdown-btn {
    font-size: 0.9rem;
  }

  .navbar img {
    height: 50px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .packages {
    padding: 1rem 0.5rem;
  }

  .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dropdown-content {
    font-size: 0.85rem;
  }

  .icon-small {
    width: 100%;
    max-width: 10rem;
    height: auto;
  }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
.coverage-hidden {
  opacity: 0;
}
.coverage-slide-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}
.coverage-slide-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

@media (max-width: 400px) {
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    width: 100%;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .nav-container {
    padding: 0.5rem 0.5rem;
  }

  .nav-links a,
  .dropdown-btn {
    font-size: 0.9rem;
  }

  .navbar img {
    height: 50px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .packages {
    padding: 1rem 0.5rem;
  }

  .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dropdown-content {
    font-size: 0.85rem;
  }

  .icon-small {
    width: 100%;
    max-width: 10rem;
    height: auto;
  }
}

.navbar {
  background: #0A0A23;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-container > img {
    height: 50px;
  }

  .mobile-ig-icon {
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .menu-toggle {
    order: 3;
  }
}

.logo {
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

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

.nav-links a,
.dropdown-btn {
  color: white;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0.5rem;
}

.nav-links a::after,
.dropdown-btn::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background: white;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.dropdown-btn:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  color: #004080;
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1rem;
  color: #004080;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background: #e6f2ff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  .menu-toggle {
    position: sticky;
    z-index: 1001;
    display: block;
    align-self: flex-end;
    margin-top: -50px; /* Move up by 8px, adjust as needed */
  }

  .nav-links {
    display: none;
    background: #0a0a239a;
    padding: 0.5rem 1rem;
    flex-direction: column ;
    width: 100%;
    margin-top: 1rem;
    align-items: center;
  }

  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 47px; /* Adjust based on navbar height */
    left: 0;
    right: 0;
    z-index: 1000;
  }

  body.nav-open .nav-links {
    display: flex;
    position: fixed;
  }

  .dropdown-content {
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    width: 100%;
    border-radius: 0;
    margin: 0;
  }
  .nav-ig {
    justify-content: center;
    flex-direction: row; /* Keep icon and text side by side */
  }

  .nav-ig img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 50%;
  }

  .nav-ig a {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    width: 100%;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .nav-container {
    padding: 0.5rem 0.5rem;
  }

  .nav-links a,
  .dropdown-btn {
    font-size: 0.9rem;
  }

  .navbar img {
    height: 50px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .packages {
    padding: 1rem 0.5rem;
  }

  .card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .dropdown-content {
    font-size: 0.85rem;
  }

  .icon-small {
    width: 100%;
    max-width: 10rem;
    height: auto;
  }
}

/* 🚫 Hide Floating Instagram Button on Mobile */
@media (max-width: 768px) {
  .floating-instagram {
    display: none !important;
  }
}

/* 📱 Show mobile IG icon on mobile only */
.mobile-ig-icon {
  display: none;
}
@media (max-width: 768px) {
  .mobile-ig-icon {
    display: block;
    position: absolute;
    top: 1rem;
    right: 3rem;
    z-index: 1001;
  }

  .mobile-ig-icon img {
    width: 30px;
    height: 30px;
  }

  .naga-logo{
    height: 40px !important;
  }
}

/* 🖥️ Desktop IG icon visible only on desktop */
.desktop-ig-icon {
  display: inline-block;
}
@media (max-width: 768px) {
  .desktop-ig-icon {
    display: none !important;
  }
}

.instagram-section {
  text-align: center;
  padding: 1rem 1rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.instagram-section h2 {
  font-size: 1.5rem;
  color: #1a3a8f;
  margin-bottom: 1rem;
}

.qr-image {
  width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.ig-link {
  font-size: 1rem;
  color: #e63946;
  font-weight: bold;
}
