/* RESET & GLOBAL SETTINGS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background-color: #fdfdfd;
  color: #333;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #FF8225;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #000000;
  transition: color 0.3s;
}

.checkout-button {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.checkout-button:hover {
  background-color: #45a049;
}

nav a:hover {
  color: #FF8225;
}

.button {
  background-color: #ff8426;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  margin: 20px;
  background-color: #FF8225;
  color: #fff;
  border-radius: 20px;
  min-height: 300px;
}

.hero-left {
  flex: 1;
}

.hero-left h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-left p {
  max-width: 500px;
  margin-bottom: 20px;
}

.read-more {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.hero-right {
  width: 50%;
}

.gambar-kanan {
  position: absolute;
  right: 10%; /* menjorok keluar ke kanan */
  top: 80px;
  height: 50%; /* lebih tinggi dari container */
  width: 35%;
  object-fit: cover;
}


/* Logo kiri */
.logo-kiri {
  width: 150px;
  margin-bottom: 20px;
}



.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card {
  background-color: #f8f8f8;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-weight: 500;
}
/* PROJECT SAMPLE SECTION */
.project-section {
  background-color: #ffa366;
  padding: 3rem 1rem;
  border-radius: 30px 30px 0 0;
  max-width: 1300px;
  margin: 2rem auto 0;
}

.project-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #000000;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.project-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 0.5rem;
}

.project-card img {
  width: 100%;
  border-radius: 10px;
  height: auto;
}

.project-card p {
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}
 
/* pricing */
.pricing {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.section-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.card h3 {
  font-size: 1.1em;
  margin-top: 15px;
}

.card p {
  font-size: 0.95em;
  margin: 10px 0;
}

.button {
  background-color: #605678;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.button:hover {
  background-color: #555;
}

/* PRICING SECTION */
.pricing {
  margin: 40px 20px;
}

.pricing .section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-grid .card {
  padding: 12px;
  font-size: 0.85em;
  max-width: 220px;
  margin: 0 auto;
}
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


.pricing-grid .card img {
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.pricing-grid .card h3 {
  font-size: 1em;
  margin-top: 10px;
}

.pricing-grid .card p {
  font-size: 0.85em;
  margin: 8px 0;
}

.pricing-grid .checkout-button,

.pricing-grid .button {
  font-size: 12px;
  padding: 6px 10px;
}.pricing .card:nth-child(1) { background-color: #FFE0B2; }
.pricing .card:nth-child(2) { background-color: #FFCCBC; }
.pricing .card:nth-child(3) { background-color: #C8E6C9; }
.pricing .card:nth-child(4) { background-color: #B3E5FC; }
.pricing .card:nth-child(5) { background-color: #D1C4E9; }
.pricing .card:nth-child(6) { background-color: #FFF9C4; }

/* TESTIMONIALS SECTION */
.testimonials {
  background-color: #FF8225;
  padding: 40px 20px;
  color: #000;
  font-family: Arial, sans-serif;
  border-radius: 16px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.window-buttons {
  display: flex;
  gap: 5px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.testimonial-header h2 {
  font-size: 20px;
  font-weight: bold;
}

.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-icon {
  background-color: #F47521;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.testimonial-icon.blue {
  background-color: #0174BE;
}

.testimonial-icon.dark {
  background-color: #373A40;
}

.testimonial-info .testimonial-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.stars {
  color: orange;
  font-size: 14px;
  margin-left: 5px;
}


/* FOOTER */
.footer {
  background-color: transparent;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 1rem;
  color: #000000;
  border-top: 4px solid #ff9966;
}

/* MODAL KERANJANG */
/* MODAL KERANJANG - REVISED */
#cartModal {
  display: none; /* default, shown with JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000; /* memastikan di atas header, dll */
}

.modal-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto; /* biar bisa discroll jika item banyak */
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  position: relative;
}

.modal-content h2 {
  margin-bottom: 15px;
}

#cartItems {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

#cartItems li {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

#checkoutBtn, .close-btn {
  margin-top: 10px;
  width: 100%;
}

/* ------------------------------------------------------------------------ */
.login-container {
  width: 300px;
  margin: 100px auto;
  padding: 30px;
  background: #f1f1f1;
  border-radius: 10px;
  text-align: center;
}
.login-container h2 {
  margin-bottom: 20px;
}
.login-container input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
}
.login-container .button {
  width: 100%;
  padding: 10px;
  background-color: #373A40;
  color: white;
  border: none;
  border-radius: 5px;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content-img {
  margin: auto;
  background: white;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  text-align: center;
  animation: zoomIn 0.3s ease;
}

.modal-content-img img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-img-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}
