/* Reset default browser style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  will-change: transform, opacity;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* HEADER STYLES */
header {
  background: #000;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.nav-left, .nav-right {
  display: flex;
  gap: 30px;
  flex: 1;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  flex: 0 0 auto;
  margin: 0 20px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #c8102e;
}

.logo img {
  max-width: 180px;
  height: auto;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* SIMPLE KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* HERO */
.why-hero {
  background: url('/image/bg home.png') center/cover no-repeat;
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  padding: 80px 20px;
}

.why-hero h1 {
  color: #fff;
  font-size: 50px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* MAIN CONTAINER */
.why-container {
  background: #fff;
  padding: 60px 20px 0 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* SECTION BIASA */
.why-section {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.2s ease;
}

.why-section:nth-child(1) { animation-delay: 0.5s; }
.why-section:nth-child(2) { animation-delay: 0.6s; }
.why-section:nth-child(3) { animation-delay: 0.7s; }
.why-section:nth-child(4) { animation-delay: 0.8s; }

.why-section:hover {
  transform: translateY(-3px);
}

.why-section h2 {
  color: #c8102e;
  font-size: 35px;
  font-family: 'Bebas Neue', sans-serif;
  margin-bottom: 20px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.why-section h2:hover {
  color: #a00e26;
}

.why-section p {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  transition: color 0.3s ease;
}

.why-section:hover p {
  color: #000;
}

/* SECTION DARK (VALUE PROPOSITION & TARGET) */
.why-section.dark {
  background: url('/image/bg home.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-radius: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.3s ease;
}

.why-section.dark:hover {
  transform: scale(1.01);
}

.why-section.dark:last-child {
  padding-bottom: 80px;
}

.why-section.dark h2 {
  color: #c8102e;
  transition: text-shadow 0.3s ease;
}

.why-section.dark h2:hover {
  text-shadow: 0 0 10px rgba(200, 16, 46, 0.5);
}

.why-section.dark p {
  color: #eee;
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.why-section.dark:hover p {
  color: #fff;
}

/* SPLIT SECTION */
.why-split {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.why-split .col {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.3s ease;
}

.why-split .col:nth-child(1) { animation-delay: 0.7s; }
.why-split .col:nth-child(2) { animation-delay: 0.8s; }

.why-split .col:hover {
  transform: translateY(-5px);
}

.why-split h2 {
  color: #c8102e;
  font-size: 20px;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.why-split h2:hover {
  color: #a00e26;
}

.why-split p {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* FOOTER STYLES */
footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}
footer img {
  max-width: 160px;
  margin-bottom: 10px;
}
footer p {
  margin: 5px 0;
  font-family: 'Poppins', sans-serif;
}
.footer-left {
  flex: 1;
}
.footer-right {
  flex: 1;
  text-align: right;
}

/* Biar main content dorong footer ke bawah */
main {
  flex: 1;
}

/* Footer tetap di bawah */
footer {
  margin-top: auto;
}

/* TARGET section */
.why-section.dark.target-section {
  background: url('/image/bg home.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px 20px;
  margin: 0;
  border-radius: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.why-section.dark .content-right {
  max-width: 800px;
  margin-left: auto;
  margin-right: 70px;
  text-align: right;
  opacity: 0;
  animation: slideInRight 0.6s ease-out 1.0s forwards;
}

/* SECTION PENGEMBANGAN */
.why-section.development {
  text-align: left;
  max-width: 800px;
  margin: 0 20px 60px 40px;
  padding: 0;
  opacity: 0;
  animation: slideInLeft 0.6s ease-out 1.1s forwards;
  transition: transform 0.3s ease;
}

.why-section.development:hover {
  transform: translateX(5px);
}

.why-section.development h2 {
  color: #c8102e;
  font-size: 35px;
  margin-bottom: 20px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.why-section.development h2:hover {
  color: #a00e26;
}

.why-section.development p {
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.why-section.development:hover p {
  color: #000;
}

/* ===== MEDIA QUERIES UNTUK RESPONSIVITAS ===== */

/* Tablet (lebar maksimal 1024px) */
@media (max-width: 1024px) {
  .why-hero h1 {
    font-size: 40px;
  }
  
  .why-section h2 {
    font-size: 30px;
  }
  
  .why-section.development h2 {
    font-size: 30px;
  }
  
  .nav-left, .nav-right {
    gap: 20px;
  }
}

/* Mobile (lebar maksimal 768px) */
@media (max-width: 768px) {
  /* Header dan Navigasi */
  .nav-left, .nav-right {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    gap: 0;
  }
  
  .nav-left.active, .nav-right.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }
  
  .nav-left {
    top: 70px;
  }
  
  .nav-right {
    top: 220px;
  }
  
  .navbar a {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    display: block;
    text-align: center;
  }
  
  /* Tombol Burger */
  .burger-menu {
    display: block;
  }
  
  /* Atur ulang tata letak navbar untuk mobile */
  .navbar {
    justify-content: space-between;
  }
  
  .logo {
    margin: 0;
    order: -1;
  }
  
  .nav-left, .nav-right {
    flex: none;
  }
  
  /* Hero Section */
  .why-hero {
    padding: 60px 20px;
  }
  
  .why-hero h1 {
    font-size: 36px;
  }
  
  /* Main Container */
  .why-container {
    padding: 40px 15px 0 15px;
  }
  
  .why-section {
    margin-bottom: 40px;
  }
  
  .why-section h2 {
    font-size: 28px;
  }
  
  .why-section.development h2 {
    font-size: 28px;
  }
  
  .why-section.dark {
    padding: 40px 20px;
    margin-left: -20px;
    margin-right: -20px;
  }
  
  .why-section.development {
    margin: 0 15px 40px 15px;
    text-align: center;
  }
  
  .why-section.dark .content-right {
    margin-right: 20px;
    text-align: center;
  }
  
  .why-section.dark.target-section {
    padding: 40px 20px;
  }
  
  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 20px;
  }
  
  .footer-right {
    text-align: center;
    margin-top: 20px;
  }
  
  .footer-center {
    margin: 15px 0;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile Kecil (lebar maksimal 480px) */
@media (max-width: 480px) {
  .why-hero h1 {
    font-size: 32px;
  }
  
  .why-container {
    padding: 30px 10px 0 10px;
  }
  
  .why-section h2 {
    font-size: 24px;
  }
  
  .why-section.development h2 {
    font-size: 24px;
  }
  
  .why-section p {
    font-size: 14px;
  }
  
  .why-section.dark p {
    font-size: 14px;
  }
  
  .why-section.development p {
    font-size: 14px;
  }
  
  .why-section.dark .content-right {
    margin-right: 15px;
  }
  
  .nav-left, .nav-right {
    padding: 15px;
  }
  
  .nav-right {
    top: 210px;
  }
}

/* Performance optimizations */
.why-section,
.why-section.dark {
  backface-visibility: hidden;
  perspective: 1000px;
}