/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  background: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.btn-primary {
  background-color: #ffffff;
  color: #03224c;
}

.btn-primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #03224c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: white;
  padding: 12px 30px;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}

.learn-more-btn:hover {
  background: white;
  color: #00224d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.contact-us-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #00224d;
  padding: 12px 30px;
  border: 2px solid white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
}

.contact-us-btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* ===== BANNER (FOTO TANPA OVERLAY) ===== */
.banner {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Diubah dari center ke flex-start */
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  color: white;
  text-align: left;
  margin-left: 5%; /* Tambahkan margin kiri */
}

.banner-left {
  width: 100%;
  text-align: left;
}

.banner-left h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 30px;
}

/* ===== BANNER BUTTONS ===== */
.banner-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ===== ALERTS ===== */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
  padding: 80px 0;
  background: #ffffff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  display: flex;
  padding: 50px;
  box-shadow: 0px 5px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}

.left {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.left img {
  width: 80%;
  opacity: 0.8;
  border-radius: 8px;
}

.right {
  width: 50%;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right h2 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #00224d;
  font-weight: 700;
}

.required {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 25px;
}

/* ===== FORM STYLES ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form label {
  font-weight: 600;
  color: #00224d;
  font-size: 0.95rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: #00224d;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 34, 77, 0.1);
}

form textarea {
  height: 120px;
  resize: vertical;
  min-height: 100px;
}

.btn {
  width: 100%;
  padding: 16px;
  background: #0a2345;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.btn:hover {
  background: #081a33;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(10, 35, 69, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.contact-info-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.contact-info-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-info-header h2 {
  font-size: 2.5rem;
  color: #00224d;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-info-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.contact-info-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 3rem;
  color: #00224d;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  color: #00224d;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-info-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-link {
  color: #00224d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffcc00;
}

/* ===== MAP SECTION ===== */
.map-section {
  padding: 0;
  background: #ffffff;
}

.map-container {
  width: 100%;
  height: 500px;
  background: #f8f9fa;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  background-color: #03224c;
  color: #fff;
  padding: 80px 5% 0;
  overflow: hidden;
  position: relative;
}

.hero-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  min-height: 80vh;
}

.hero-text {
  flex: 1.1;
  min-width: 300px;
  padding-bottom: 80px;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e6f0;
  margin-bottom: 30px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0.9;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 450px;
  margin-bottom: 0;
}

.circle-bg {
  display: none;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  z-index: 2;
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.slide-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-animation.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-animation.animate .slide-left,
.slide-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-animation.animate .slide-right,
.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-animation.animate .slide-up,
.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Animation delays */
.slide-animation.animate .slide-left:nth-child(1) { transition-delay: 0.1s; }
.slide-animation.animate .slide-left:nth-child(2) { transition-delay: 0.2s; }
.slide-animation.animate .slide-left:nth-child(3) { transition-delay: 0.3s; }

.slide-animation.animate .slide-right:nth-child(1) { transition-delay: 0.1s; }
.slide-animation.animate .slide-right:nth-child(2) { transition-delay: 0.2s; }
.slide-animation.animate .slide-right:nth-child(3) { transition-delay: 0.3s; }

.slide-animation.animate .slide-up:nth-child(1) { transition-delay: 0.1s; }
.slide-animation.animate .slide-up:nth-child(2) { transition-delay: 0.2s; }
.slide-animation.animate .slide-up:nth-child(3) { transition-delay: 0.3s; }
.slide-animation.animate .slide-up:nth-child(4) { transition-delay: 0.4s; }

/* Contact info card animations */
.contact-info-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.contact-info-card.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================== */
/* ===== MONITOR 24 INCI OPTIMIZATIONS ===== */
/* ========================================== */

@media (min-width: 1400px) {
  /* ===== GLOBAL IMPROVEMENTS ===== */
  body {
    font-size: 18px;
    line-height: 1.7;
  }
  
  /* ===== BANNER SECTION - PERBAIKAN UTAMA ===== */
  .banner-content {
    max-width: 1600px;
    text-align: left;
    width: 50%; /* UBAH: Lebar konten menjadi 50% dari banner */
    padding: 0 5%;
    margin-left: 5%; /* Tetap ada margin kiri */
  }
  
  .banner-left {
    width: 100%;
  }
  
  .banner-left h1 {
    font-size: 4rem; /* Sedikit lebih kecil dari sebelumnya */
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: left;
    max-width: 100%;
    width: 100%;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    padding-right: 0;
  }
  
  .banner-left p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
    max-width: 100%;
    width: 100%;
    padding-right: 0;
  }
  
  .learn-more-btn,
  .contact-us-btn {
    padding: 16px 35px;
    font-size: 1.2rem;
    min-height: 55px;
  }
  
  /* ===== CONTACT FORM SECTION ===== */
  .contact-form-section {
    padding: 120px 0;
  }
  
  .container {
    max-width: 1600px;
    padding: 70px;
    border-radius: 16px;
  }
  
  .right h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .required {
    font-size: 1.1rem;
    margin-bottom: 35px;
  }
  
  form {
    gap: 25px;
  }
  
  form label {
    font-size: 1.1rem;
  }
  
  form input,
  form textarea,
  form select {
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 8px;
  }
  
  form textarea {
    height: 150px;
    min-height: 120px;
  }
  
  .btn {
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    margin-top: 15px;
  }
  
  /* ===== CONTACT INFO SECTION ===== */
  .contact-info-section {
    padding: 120px 0;
  }
  
  .contact-info-container {
    max-width: 1600px;
  }
  
  .contact-info-header {
    margin-bottom: 80px;
  }
  
  .contact-info-header h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
  }
  
  .contact-info-header p {
    font-size: 1.3rem;
    max-width: 800px;
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
  }
  
  .contact-info-card {
    padding: 50px 40px;
    border-radius: 16px;
  }
  
  .contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  }
  
  .contact-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
  }
  
  .contact-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .contact-info-card p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  /* ===== MAP SECTION ===== */
  .map-container {
    height: 600px;
  }
  
  /* ===== HERO SECTION ===== */
  .hero-container {
    max-width: 1600px;
    gap: 60px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    max-width: 650px;
  }
  
  .btn-primary,
  .btn-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
  }
  
  .hero-image img {
    max-width: 600px;
  }
}

/* ===== EXTRA LARGE MONITORS ===== */
@media (min-width: 1800px) {
  .banner-content {
    width: 45%; /* Sedikit lebih sempit untuk monitor sangat besar */
  }
  
  .banner-left h1 {
    font-size: 4.5rem;
  }
  
  .banner-left p {
    font-size: 1.4rem;
  }
  
  .learn-more-btn,
  .contact-us-btn {
    padding: 18px 40px;
    font-size: 1.3rem;
  }
  
  .container {
    max-width: 1800px;
  }
  
  .right h2 {
    font-size: 2.8rem;
  }
  
  .contact-info-container {
    max-width: 1800px;
  }
  
  .contact-info-header h2 {
    font-size: 3.5rem;
  }
  
  .contact-info-header p {
    font-size: 1.4rem;
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
  }
  
  .contact-info-card h3 {
    font-size: 1.8rem;
  }
  
  .contact-info-card p {
    font-size: 1.3rem;
  }
  
  .map-container {
    height: 700px;
  }
  
  .hero-container {
    max-width: 1800px;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1399px) {
  /* Untuk layar di bawah 1400px, banner content kembali ke ukuran normal */
  .banner-content {
    width: 90%;
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .banner-left h1 {
    font-size: 2.5rem;
  }
  
  .contact-info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 1024px) {
  .banner-left h1 {
    font-size: 2.3rem;
  }
  
  .container {
    padding: 40px;
  }
  
  .right h2 {
    font-size: 1.8rem;
  }
  
  .contact-info-header h2 {
    font-size: 2.2rem;
  }
  
  /* Hero section adjustments */
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .hero-image {
    margin-bottom: 0;
    min-height: 300px;
    width: 100%;
  }

  .hero-image img {
    max-width: 400px;
    width: 100%;
  }

  .hero-text {
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* ===== MOBILE OPTIMIZATION (768px and below) ===== */
@media (max-width: 768px) {
  /* Banner improvements */
  .banner {
    height: 70vh;
    min-height: 500px;
    justify-content: center; /* Kembali ke center di mobile */
  }
  
  .banner-content {
    width: 90%;
    margin-left: 0; /* Hapus margin kiri di mobile */
    text-align: center; /* Teks menjadi center di mobile */
  }
  
  .banner-left h1 {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .banner-left p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 25px;
  }
  
  .banner-buttons {
    justify-content: center;
    gap: 15px;
  }
  
  /* Contact form mobile */
  .contact-form-section {
    padding: 60px 0;
  }
  
  .container {
    flex-direction: column;
    padding: 30px 20px;
    width: 95%;
  }
  
  .left, .right {
    width: 100%;
    padding: 0;
  }
  
  .left {
    margin-bottom: 30px;
    order: 2;
  }
  
  .right {
    order: 1;
    padding-left: 0;
  }
  
  .right h2 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .required {
    text-align: center;
  }
  
  form {
    gap: 15px;
  }
  
  form input,
  form textarea,
  form select {
    padding: 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Contact info mobile */
  .contact-info-section {
    padding: 60px 0;
  }
  
  .contact-info-header {
    margin-bottom: 40px;
  }
  
  .contact-info-header h2 {
    font-size: 2rem;
  }
  
  .contact-info-header p {
    font-size: 1rem;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-info-card {
    padding: 30px 25px;
  }
  
  .contact-info-card h3 {
    font-size: 1.3rem;
  }
  
  /* Map mobile */
  .map-container {
    height: 400px;
  }
  
  /* Hero section mobile */
  .hero-section {
    padding: 60px 15px 0;
  }
  
  .hero-container {
    min-height: auto;
  }
  
  .hero-text {
    padding-bottom: 40px;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }
  
  .hero-text p {
    font-size: 0.95rem;
    margin: 0 auto 25px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .btn-primary, 
  .btn-secondary {
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 14px 20px;
  }
  
  .hero-image {
    min-height: 250px;
    margin-bottom: 30px;
  }
  
  .hero-image img {
    max-width: 300px;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .learn-more-btn,
  .contact-us-btn,
  .btn-primary, 
  .btn-secondary,
  .btn {
    min-height: 44px; /* Minimum touch target size */
  }
  
  /* Remove hover effects on touch devices */
  .contact-info-card:hover {
    transform: none;
  }
  
  .learn-more-btn:hover,
  .contact-us-btn:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn:hover {
    transform: none;
  }
}

/* Prevent horizontal scroll and improve performance */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Improve scrolling performance on mobile */
* {
  -webkit-overflow-scrolling: touch;
}

/* Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Loading state for images */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.loaded {
  opacity: 1;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .slide-animation {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .slide-left,
  .slide-right,
  .slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .contact-info-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}