/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* ===== Header Sticky ===== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
  backdrop-filter: blur(4px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #ccc;
}

/* Logo tengah */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.logo img {
  height: 80px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: translateX(-50%) scale(1.05);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url('assets/hero-5.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-top: 0;
  overflow: hidden;
  transition: transform 0.6s ease;
}
.hero:hover {
  transform: scale(1.02); /* efek zoom lembut */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* tetap gelap */
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease forwards;
}
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 54px);
  margin-bottom: 15px;
  font-weight: 700;
}
.hero-content p {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}
.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.hero-btn:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}

/* ===== Showcase Section ===== */
.showcase {
  position: relative;
  height: 80vh;
  background: url('assets/bg-2.CR2') center/cover no-repeat fixed; /* parallax ringan */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.showcase:hover {
  transform: scale(1.02);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* gelap elegan */
  backdrop-filter: blur(2px);
}

.showcase-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease forwards;
}
.showcase-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
}
.showcase-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
}
.showcase-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.showcase-btn:hover {
  background: #e6e6e6;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
    background: rgba(0,0,0,0.9);
  }
  .logo { position: static; transform: none; margin: 10px 0; }
  .logo img { height: 60px; }
  nav ul { flex-direction: column; gap: 10px; text-align: center; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p, .showcase-content p { font-size: 16px; }
}
/* ===== Typing Effect ===== */
#typing-text {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  display: inline-block;
  animation: blink-caret 0.8s step-end infinite;
}

/* Animasi kedipan kursor */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fff; }
}

/* Hilangkan cursor setelah selesai ngetik */
.cursor-hide {
  border-right: none;
}
/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url('assets/hero-5.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-top: 0;
  padding-top: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
}

/* ===== Typing Effect ===== */
#typing-text {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  display: inline-block;
  animation: blink-caret 0.8s step-end infinite;
  margin-bottom: 15px;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #fff; }
}

.cursor-hide {
  border-right: none;
}

/* ===== Hero Kedua (Batch Launch) ===== */
.hero-batch {
  position: relative;
  height: 100vh;
  background: url('assets/bg-2.CR2') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-batch .hero-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.hero-batch .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#typing-batch {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  display: inline-block;
  animation: blink-caret 0.8s step-end infinite;
  margin-bottom: 10px;
}

.launch-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

/* Rundown Timer */
.rundown {
  display: flex;
  gap: 20px;
}

.time-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px 20px;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.time-box:hover {
  transform: translateY(-5px);
}

.time-box span {
  font-size: 28px;
  font-weight: 700;
}

.time-box small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .rundown {
    gap: 10px;
  }

  .time-box {
    min-width: 60px;
    padding: 10px;
  }

  .time-box span {
    font-size: 22px;
  }
}
.hero-main {
  position: relative;
  height: 100vh;
  background: url('assets/hero-5.jpg') center/cover no-repeat; /* ganti sesuai gambarmu */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-main .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#typing-hero {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #fff;
  display: inline-block;
  animation: blink-caret 0.8s step-end infinite;

}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: white; }
}
/* ===== Footer ===== */
.footer {
  background: #000;
  color: #fff;
  padding: 40px 20px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #ccc;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
  color: #ccc;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-links {
    gap: 15px;
  }

  .footer-social a {
    font-size: 1.3rem;
  }

  .footer-logo img {
    height: 60px;
  }
}
/* ===== Mobile Responsive (≤768px) ===== */
@media (max-width: 768px) {
  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: rgba(0,0,0,0.95);
  }

  .nav-left ul,
  .nav-right ul {
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
  }

  .logo {
    position: static;
    transform: none;
    margin: 10px 0;
  }

  .logo img {
    height: 60px;
  }

  /* Hero Section */
  .hero-content {
    padding: 0 25px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Launch Section */
  .hero-batch .rundown {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-batch .time-box {
    min-width: 65px;
    padding: 8px;
  }

  .hero-batch .time-box span {
    font-size: 20px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-social {
    gap: 15px;
  }

  .footer-logo img {
    height: 55px;
  }
}

/* ===== Extra Small Screen (≤480px) ===== */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-btn {
    font-size: 13px;
    padding: 8px 18px;
  }

  .time-box {
    min-width: 55px;
    padding: 6px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
/* ===== Mobile Header ===== */
.nav-mobile {
  display: none;
  width: 100%;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.menu-toggle {
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
  transition: transform 0.3s;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

.user-icon {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

/* Dropdown menu mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  font-size: 16px;
  width: 100%;
  text-align: center;
  transition: background 0.3s;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive Header Switch ===== */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: flex;
  }

  .logo {
    position: static;
    transform: none;
  }

  body {
    padding-top: 70px; /* biar konten gak ketiban header */
  }
}
/* ===== FIX MOBILE MENU POSITION ===== */
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 70px; /* dulu 60px, tambahkan sedikit biar gak ketutupan */
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000; /* pastikan lebih tinggi dari header */

  }

  .mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 12px 0;
    font-size: 17px;
    width: 100%;
    text-align: center;
    transition: background 0.3s;
  }

  .mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu.show {
    display: flex;
  }

  /* Pastikan isi halaman tidak ketiban header */
  body {
    padding-top: 80px;
  }
}
