/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #2d3748;
  line-height: 1.7;
  background-color: #ffffff;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HEADER
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 90px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  padding: 10px 22px;
  border-radius: 25px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* =========================
   MOBILE MENU BUTTON
========================= */
.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 35px;
  height: 35px;
}

.mobile-menu-btn i {
  font-size: 24px;
  color: #2d3748;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu-btn:hover i {
  color: #dc2626;
}

.mobile-menu-btn .close-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  color: #dc2626;
}

.mobile-menu-btn.active .hamburger-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.mobile-menu-btn.active .close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* =========================
   HERO & DEMO
========================= */
.hero,
.demo {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-bg-img,
.demo-bg-img {
  width: 100%;
  display: block;
}

/* =========================
   SECTION DIVIDER
========================= */
.section-divider {
  height: 0px;
  background: transparent;
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #1a202c;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #1a202c;
  margin-bottom: 50px;
  font-size: 16px;
  font-weight: 400;
}

/* =========================
   ABOUT
========================= */
.about-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08); /* merah soft */
}

.about-icon i {
  font-size: 18px;
  color: #dc2626; /* merah corporate */
}

.about {
  padding: 50px 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fffbeb 50%, #eff6ff 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
  align-items: start;
}

.about-card {
  background: #ffffff;
  padding: 35px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
}

.about-card.full-width {
  grid-column: 1 / -1;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 18px;
  margin: 0;
  color: #dc2626;
  font-weight: 600;
}

.about-card p {
  margin-bottom: 14px;
  color: #4a5568;
  line-height: 1.8;
  font-size: 14px;
  text-align: justify;
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* Mission List */
.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: #4a5568;
  line-height: 1.8;
  font-size: 14px;
  text-align: justify;
}

.mission-list li:last-child {
  margin-bottom: 0;
}

.mission-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #4a5568;
  border-radius: 50%;
}

/* =========================
   SERVICES
========================= */
.services {
  padding: 50px 0;
  background: linear-gradient(135deg, #fef2f2 0%, #fef9c3 50%, #f0f9ff 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: #ffffff;
  padding: 32px 26px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #ddd;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08); /* merah soft */
  margin: 0 auto 20px
}

.feature-icon i {
  font-size: 18px;
  color: #dc2626; /* merah corporate */
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a202c;
  line-height: 1.4;
}

.feature-card p {
  font-size: 15px;
  color: #718096;
  line-height: 1.7;
  text-align: justify;
}

/* =========================
   CONTACT
========================= */

/* reCAPTCHA styling */
.g-recaptcha {
  transform: scale(0.95);
  transform-origin: 0 0;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .g-recaptcha {
    transform: scale(0.85);
  }
}

@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.75);
  }
}

.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #fff7ed 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a202c;
  font-weight: 600;
}

.contact-info .app-name {
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-info p {
  margin-bottom: 8px;
  color: #4a5568;
  line-height: 1.7;
  font-size: 15px;
}

.contact-info .address-title {
  margin-top: 18px;
  color: #1a202c;
  font-size: 15px;
}

.contact-info .contact-label {
  margin-top: 20px;
  color: #1a202c;
  font-size: 15px;
}

.contact-link {
  color: #dc2626;
  font-weight: 500;
  font-size: 15px;
}

.contact-link:hover {
  color: #991b1b;
  text-decoration: underline;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  color: #2d3748;
  font-size: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #dc2626;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  padding: 14px 35px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
  font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  height: 100%;
  min-height: 450px;
}

.contact-map iframe {
  display: block;
}

.contact-item {
    display: flex;
    align-items: baseline;  
    gap: 8px;               
}

.contact-item i {
    flex-shrink: 0;       
    font-size: 1.1em;     
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #f8f9fa;
  color: #4a5568;
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.social-links a:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
  border-color: #dc2626;
}

.social-links i {
  font-size: 18px;
  color: #4a5568;
  transition: color 0.3s ease;
}

.social-links a:hover i {
  color: #ffffff;
}

.copyright {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* =========================
   LOGO CLICKABLE
========================= */
.logo-link {
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

/* =========================
   FORM ERROR
========================= */
.error-message {
  display: block;
  color: #dc2626;
  font-size: 13px;
  margin-top: 5px;
  min-height: 18px;
  font-weight: 500;
}

.form-group input.valid ~ .error-message,
.form-group textarea.valid ~ .error-message {
  display: none;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.back-to-top i {
  font-size: 18px;
  color: #ffffff;
}

/* =========================
   MODAL CONFIRMATION
========================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

/* Close button (X) */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.modal-close:hover {
  background: #fee2e2;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  transition: color 0.3s ease;
}

.modal-close:hover svg {
  color: #dc2626;
}

.modal-header {
  padding: 25px 30px;
  padding-right: 55px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1a202c;
  font-weight: 600;
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  margin: 0;
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
}

.modal-footer {
  padding: 20px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
}

.btn-cancel,
.btn-confirm {
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.btn-cancel {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-cancel:hover {
  background: #cbd5e0;
}

.btn-confirm {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
  min-width: 150px;
}

.btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-confirm:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Button states */
.btn-confirm .btn-text,
.btn-confirm .btn-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-confirm.loading .btn-text {
  display: none;
}

.btn-confirm.loading .btn-spinner {
  display: flex !important;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  animation: rotate 1s linear infinite;
}

.spinner circle {
  stroke: #ffffff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* =========================
   SUCCESS MODAL
========================= */
.success-modal {
  text-align: center;
}

.success-body {
  padding: 40px 30px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #22c55e;
}

.success-icon svg {
  width: 45px;
  height: 45px;
  color: #22c55e;
}

.success-body h3 {
  font-size: 24px;
  color: #1a202c;
  font-weight: 600;
  margin: 0;
}

.success-body p {
  font-size: 16px;
  color: #4a5568;
  margin: 0;
}

.btn-close-success {
  width: 100%;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-close-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

/* =========================
   IMAGE FULLSCREEN MODAL
========================= */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.image-modal-close:hover {
  background: rgba(220, 38, 38, 0.9);
  transform: rotate(90deg);
}

.image-modal-close i {
  font-size: 22px;
  color: #ffffff;
}

/* Cursor pointer for clickable images on mobile */
@media (max-width: 992px) {
  .hero-img-clickable,
  .demo-img-clickable {
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .hero-img-clickable:active,
  .demo-img-clickable:active {
    opacity: 0.8;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .about-card.full-width {
    grid-column: 1;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-map {
    min-height: 400px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .header .container {
    height: 70px;
  }

  .logo-img {
    height: 70px;
  }

  .nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 220px;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    border-radius: 0 0 0 15px;
    padding: 10px;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    padding: 12px 20px;
    display: block;
    border-radius: 10px;
    width: 100%;
    font-size: 14px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .about,
  .services,
  .contact {
    padding: 60px 0;
  }

  .about-card {
    padding: 25px;
  }

  .about-card h3 {
    font-size: 17px;
  }

  .about-card p {
    font-size: 14px;
  }

  .mission-list li {
    font-size: 14px;
  }

  .contact-map {
    min-height: 350px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }

  .modal-content {
    width: 95%;
    margin: 0 15px;
  }

  .modal-header {
    padding: 20px 25px;
    padding-right: 55px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-body {
    padding: 25px;
  }

  .modal-body p {
    font-size: 15px;
  }

  .modal-footer {
    padding: 15px 25px;
    flex-direction: column;
  }

  .btn-cancel,
  .btn-confirm {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 28px 22px;
  }

  .feature-card h4 {
    font-size: 15px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .contact-map {
    min-height: 300px;
  }

  .section-title {
    font-size: 24px;
  }
}

/* =========================
   APP STORE BADGES
========================= */
.app-badges {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
  align-items: center;
}

.badge-link {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.badge-link:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge {
  height: 45px;
  width: auto;
  display: block;
}