@import url('https://fonts.googleapis.com/css2?family=Muli:wght@300;400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Muli', sans-serif; background: #000 url('https://carikapal.link/img/bg.jpg') center no-repeat fixed; background-size: cover; color: #FFF; line-height: 1.5; }

header {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-section a {
  display: block;
}

.logo-section img {
  height: 35px;
  width: auto;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: #d3caca;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: block;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.auth-buttons {
  display: flex;
  gap: 0.6rem;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-weight: bold; 
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

#btnLogin {
  background-image: linear-gradient(to bottom, #fffac1 0%, #f0d26c 100%);
  color: #000;
  border: 2px solid #000; 
}

#btnLogin:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#btnRegister {
  background-image: linear-gradient(to bottom, #fffac1 0%, #f0d26c 100%); 
  color: #000; 
  border: 2px solid #000;
}

#btnRegister:hover {
  background-image: linear-gradient(to bottom, #fffac1 0%, #f0d26c 100%);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

main { 
  margin-top: 70px; 
  padding: 0rem; 
  max-width: 1200px; 
  margin: 0px auto 0; 
}

section { 
  margin-bottom: 1.5rem; 
  background: rgba(0,0,0,0.7); 
  padding: 1.2rem; 
  border-radius: 6px; 
}

h2 { color: #D2B48C; margin-bottom: 0.8rem; font-size: 1.3rem; }
ul { list-style: disc; padding-left: 1.2rem; }

.pasaran-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); 
  gap: 1rem; 
}

.pasaran-item {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1.4rem;
  border-radius: 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pasaran-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pasaran-item:hover::before {
  opacity: 1;
}

.pasaran-item:hover {
  transform: translateY(-6px);
  border-color: #d4af37;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.pasaran-item strong {
  color: #ffd700;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.pasaran-item br + br,
.pasaran-item br {
  display: none; /* biar lebih rapi */
}

.pasaran-item a {
  display: block;
  margin-top: 0.8rem;
  background: linear-gradient(to right, #d4af37, #f1c40f);
  color: #000;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pasaran-item a:hover {
  background: transparent;
  color: #ffd700;
  outline: 2px solid #d4af37;
}
.carousel-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quick-links .fa {
  margin-right: 8px;
  width: 18px;
  color: #f5de83;
}

.quick-links {
  flex: 0 0 25%;
  background: rgba(0,0,0,0.7);
  padding: 1.2rem;
  border-radius: 6px;
}

.quick-links h3 {
  color: #D2B48C;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.quick-links ul {
  list-style: none;
  padding-left: 0;
}

.quick-links li {
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #554321;
}

.quick-links a {
  color: #d3caca;
  text-decoration: none;
  padding: 0.4rem;
  display: block;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.quick-links a:hover {
  background-color: rgba(210,180,140,0.2);
  color: #fff;
}

.carousel-container {
  flex: 0 0 75%;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 250px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  background: rgba(241, 196, 15, 0.8);
  color: #000;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 1rem;
  border-radius: 4px;
}

.carousel-btn:hover {
  background: #f1c40f;
}

.carousel-btn:first-child {
  left: 8px;
}

.carousel-btn:last-child {
  right: 8px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}

.carousel-indicator.active {
  background: #f1c40f;
}

footer { 
  background: #000; 
  color: #FFF; 
  text-align: center; 
  padding: 1rem; 
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 6px;
}

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); }
.modal-content { background: #000; margin: 10% auto; padding: 1.5rem; border: 2px solid #D2B48C; width: 90%; max-width: 350px; border-radius: 6px; }
.close { color: #FFF; float: right; font-size: 24px; cursor: pointer; }

.marquee-container {
  background-color: #6c562a;
  color: white;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  margin-top: 70px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 4px 4px;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 15px;
}

.marquee-content span {
  padding-right: 40px;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0.6rem 1rem;
  }
  
  .nav-menu {
    gap: 0.2rem;
  }
  
  .nav-menu a {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }
  
  .auth-btn {
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
  }
  
  .logo-section img {
    height: 30px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    order: 3;
    width: 100%;
    display: none;
    margin-top: 0.8rem;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-menu li {
    width: 100%;
    margin: 0;
  }
  
  .nav-menu a {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .auth-buttons {
    margin-left: auto;
  }
  
  .carousel-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .quick-links, .carousel-container {
    flex: 0 0 100%;
  }
  
  .carousel {
    height: 200px;
  }
  
  .nav-active {
    display: block;
  }
  
  main { padding: 0.8rem; } 
  .pasaran-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo-section img {
    height: 28px;
  }
  
  .auth-buttons {
    gap: 0.4rem;
  }
  
  .auth-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .carousel {
    height: 180px;
  }
  
  section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .pasaran-item {
    padding: 1rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

.modal-content {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 2px solid #d4af37;
  border-radius: 16px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
  overflow: hidden;
  position: relative;
  animation: slideUp 0.5s ease-out;
}

.modal-header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  background: linear-gradient(to bottom, #d4af37, #b8860b);
  color: #000;
  margin: -2px -2px 1.5rem -2px;
  border-radius: 14px 14px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.modal-header p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  background: rgba(255,255,255,0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
}

.close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.modal-form {
  padding: 0 1.8rem 1.8rem;
}

.input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 1.1rem;
  z-index: 2;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 46px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.modal-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #f1c40f, #d4af37);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.4s;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-btn:hover {
  background: linear-gradient(to right, #ffd700, #b8860b);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.modal-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #ccc;
}

.modal-footer a {
  color: #ffd700;
  font-weight: bold;
  text-decoration: none;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* Animasi */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-logo {
  text-align: center;
  margin: -30px auto 20px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.modal-logo img {
  width: 180px;
  height: auto;
  background: #000;
  padding: 12px 20px;
  border-radius: 50px;
  border: 4px solid #d4af37;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.6),
    0 0 30px rgba(212, 175, 55, 0.4);
  transition: all 0.4s ease;
}

.modal-logo img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.7),
    0 0 40px rgba(212, 175, 55, 0.6);
}