/* ===== Reset & Font ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(90deg, #FF6600, #ffb703);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  width: 50px;
}
/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 76vh; /* tinggi 76% dari viewport */
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* video menutupi area tanpa distorsi */
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* overlay agar teks lebih terbaca */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 20px;
}

.hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 900px;
  margin: auto;
  line-height: 1.5;
}

/* ===== Responsif untuk Mobile ===== */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }
}

/* ===== Company Name Animasi ===== */
.company-name {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.8rem);
  background: linear-gradient(90deg, #000, #fff, #FFD700, #000);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShift 6s infinite linear;
  text-transform: uppercase;
}

@keyframes goldShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 480px) {
  .company-name {
    font-size: clamp(0.9rem, 5vw, 1.4rem);
    text-align: center;
  }
}

/* ===== Navigation ===== */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: #004aad;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
}

nav ul li a.active {
  border-bottom: 2px solid #222;
  padding-bottom: 2px;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  position: relative;
  z-index: 300;
}

/* ===== Produk ===== */
.produk {
  padding: 60px 20px;
}

.produk h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  color: #222;
  text-align: center;
  margin-bottom: 40px;
}

.produk-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1100px;
  margin: auto;
}

.produk-item {
  background: linear-gradient(135deg, #FF6600, #ffb703);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  flex: 1 1 250px;
  color: #222;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.produk-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.produk-item h3 {
  font-family: 'Exo 2', sans-serif;
  margin-bottom: 12px;
  color: #004aad;
}

.produk-item p {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== Tombol Daftar Sekarang===== */

.daftar-btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  border-radius: 12px;
  margin-top: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.daftar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,123,255,0.7), 0 0 35px rgba(0,86,179,0.5);
}


@keyframes pulseGold {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 165, 0, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 200, 50, 0.9), 0 0 45px rgba(255, 140, 0, 0.7); }
}
@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(90deg, #FF6600, #ffb703);
  color: #fff;
}

/* ===== Popup Form ===== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.popup-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.popup-form {
  background: linear-gradient(135deg, #cc6e00, #e0a12b);
  padding: 25px 30px;
  border-radius: 15px;
  max-width: 420px;
  width: 100%;
  color: #fff;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  animation: popupFade 0.3s ease;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  transition: transform 0.2s;
}
.popup-close:hover { transform: scale(1.2); }

.popup-form h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 700;
}

.popup-form label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #333;
}

.popup-form input:focus,
.popup-form textarea:focus {
  box-shadow: 0 0 0 2px #fff inset;
}

.popup-form button {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: #fffbea;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.popup-form button:hover {
  background: #1ebe5b;
  transform: scale(1.05);
}

/* ===== Loader Google-style ===== */
.loader-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #4285F4;
  border-right-color: #EA4335;
  border-bottom-color: #FBBC05;
  border-left-color: #34A853;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* ===== Custom Upload KTP ===== */
#ktp { display: none; }

.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  cursor: pointer;
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.custom-file-upload i {
  font-size: 1.2rem;
}

.custom-file-upload:hover {
  background: linear-gradient(135deg, #FFB703, #FF6600);
  box-shadow: 0 4px 15px rgba(255,165,0,0.6);
  transform: translateY(-2px);
}

/* ===== Responsive Nav (Slide Right) ===== */
@media (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: 0;
    right: -220px;
    width: 220px;
    height: 100%;
    background: linear-gradient(180deg, #FF6600, #2c2c2c);
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 200;
  }

  #nav-menu.active { right: 0; }

  #nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #nav-menu ul li a {
    display: block;
    padding: 10px;
    font-size: 1rem;
    color: #fff;
  }

  .menu-toggle { display: block; }
}


/* Kontak & Map Wrapper - Centered & Equal Height */
.contact-map-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;              
  justify-content: center; /* center horizontal */
  align-items: stretch;    /* pastikan kedua card sama tinggi */
  margin: 40px auto;       
}

/* Setiap card fleksibel dan responsif */
.contact-map-wrapper .produk-item {
  flex: 1 1 500px;         /* lebar dasar */
  min-height: 400px;
  margin-bottom: 20px;     
  display: flex;           /* jadikan flex container */
  flex-direction: column;  /* agar iframe bisa stretch */
}

/* Map card iframe */
.map-card iframe {
  flex: 1;                 /* iframe mengambil seluruh tinggi card */
  width: 100%;
  border: none;
  display: block;
}



/*tombol daftar segera _index */
.paket-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  margin-top: 30px;
  cursor: pointer;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #000;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e65100, #bf360c); /* oranye tua */
  transition: all 0.3s ease;
  animation: pulse 2s infinite ease-in-out; /* denyut besar */
}

.paket-btn i {
  font-size: 1.2rem;
  z-index: 1;
}

/* Efek kilau */
.paket-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
}

.paket-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Animasi kilau */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* Animasi denyut */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
/* Effek Animasi Logo Fajarnet*/

.logo-img {
  width: 180px; /* atur sesuai kebutuhan */
  position: relative;
  display: inline-block;
  animation: pulse 2s infinite ease-in-out;
}

/* wrapper efek kilau */
.logo-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  pointer-events: none;
}


/* ===== POPUP PROMO ===== */
.promo-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* overlay transparan */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* paling depan */
  animation: fadeIn 0.4s ease-in-out;
}

.promo-content {
  background: #e65100; /* Oren tua */
  color: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  animation: slideDown 0.5s ease;
  font-family: 'Exo 2', sans-serif;
}

.promo-content h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.promo-content p {
  font-size: 1rem;
  line-height: 1.6;
}


/* Harga lama */
.old-price {
  text-decoration: line-through double;
  color: #d32f2f;
  font-weight: bold;
  margin-right: 5px;
}

/* Harga baru dengan efek berdenyut */
.new-price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #e65100; /* default oren tua */
  animation: pulseColor 1.5s infinite;
}

/* Animasi berdenyut dengan kombinasi warna */
@keyframes pulseColor {
  0% {
    color: #e65100; /* oren tua */
    transform: scale(1);
  }
      30% {
    color: #3357FF; /* oren shopee */
    transform: scale(1.2);
  }
  
  50% {
    color: #ff5722; /* oren shopee */
    transform: scale(1.2);
  }

  100% {
    color: #ffffff; /* putih */
    transform: scale(1);
  }
}




.promo-content .highlight {
  display: inline-block;
  font-weight: bold;
  background: #fff;            /* Putih */
  color: #e65100;              /* Oren tua untuk teks */
  padding: 6px 12px;
  border-radius: 8px;
  margin: 8px 0;
  border: 2px solid #e65100;   /* Garis oren tua */
}

.promo-btn {
  margin-top: 20px;
  background: #ff5722;           /* Oren Shopee */
  color: #fff;                   /* Teks putih */
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: 2px solid #bf360c;     /* Oren tua kehitaman */
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.promo-btn:hover {
  background: #e64a19;           /* Lebih gelap saat hover */
  border-color: #8d2c0c;         /* Border makin pekat */
  transform: scale(1.05);
}
/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideDown {
  from {transform: translateY(-30px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

