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

html, body {
  width: 100%;
  height: 100%;
  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;
}

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

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px);
  }
  70% {
    transform: scale(0.9) translateY(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #c8102e;
  }
  50% {
    text-shadow: 0 0 20px #c8102e, 0 0 30px #c8102e;
  }
  100% {
    text-shadow: 0 0 5px #c8102e;
  }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes underlineSlide {
  to {
    left: 0;
  }
}

/* SECTION STYLE WITH ANIMATIONS */
.section {
  padding: 60px 80px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section:nth-child(1) { animation-delay: 0.2s; }
.section:nth-child(2) { animation-delay: 0.4s; }
.section:nth-child(3) { animation-delay: 0.6s; }
.section:nth-child(4) { animation-delay: 0.8s; }
.section:nth-child(5) { animation-delay: 1.0s; }
.section:nth-child(6) { animation-delay: 1.2s; }

.section.dark {
  background: url('/image/bg\ home.png') center/cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Shine effect overlay untuk section dark */
.section.dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 4s ease-in-out infinite;
  z-index: 1;
}

/* Pastikan konten tetap di atas shine effect */
.section.dark > * {
  position: relative;
  z-index: 2;
}

.section.light {
  background: #fff;
  color: #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* HEADING STYLES WITH ANIMATIONS */
.section h1,
.section h2,
.section h3 {
  color: #c8102e;
  margin-bottom: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: normal;
}

/* Ukuran font heading */
.section h1 {
  font-size: 42px;
  animation: bounceIn 1s ease-out, glow 3s ease-in-out infinite alternate;
}

.section h2 {
  font-size: 42px;
  position: relative;
  overflow: hidden;
  animation: slideInLeft 0.8s ease-out;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c8102e, transparent);
  animation: underlineSlide 1.5s ease-out 0.8s forwards;
}

.section h3 {
  font-size: 28px;
  animation: slideInLeft 0.8s ease-out;
}

/* PARAGRAPH AND LIST STYLES WITH ANIMATIONS */
.section p,
.section li {
  max-width: 900px;
  line-height: 1.6;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  margin: 10px 0;
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease;
}

.section p:hover {
  transform: translateX(5px);
}

.section li {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
  transition: all 0.3s ease;
}

.section li:nth-child(1) { animation-delay: 0.2s; }
.section li:nth-child(2) { animation-delay: 0.4s; }
.section li:nth-child(3) { animation-delay: 0.6s; }
.section li:nth-child(4) { animation-delay: 0.8s; }

.section li:hover {
  transform: translateX(10px);
  color: #c8102e;
  font-weight: 500;
}

/* FLEX FOR LOGO SECTION WITH ANIMATIONS */
.flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.flex .text {
  flex: 2;
  text-align: left;
  animation: slideInLeft 1s ease-out 0.3s both;
}

.flex .image {
  flex: 1;
  text-align: right;
  animation: slideInRight 1s ease-out 0.5s both;
}

.flex .image img {
  max-width: 250px;
  height: auto;
  transition: all 0.4s ease;
  filter: drop-shadow(0 5px 15px rgba(200, 16, 46, 0.3));
}

.flex .image img:hover {
  transform: rotate(5deg) scale(1.1);
  filter: drop-shadow(0 10px 25px rgba(200, 16, 46, 0.5));
}

/* ALIGNMENT CONTROL WITH ANIMATIONS */
.align-left h1,
.align-left h2,
.align-left h3,
.align-left p,
.align-left li,
.align-left ul {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  animation: slideInLeft 0.8s ease-out;
}

.align-right h1,
.align-right h2,
.align-right h3,
.align-right p,
.align-right li,
.align-right ul {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
  animation: slideInRight 0.8s ease-out;
}

.align-center h1,
.align-center h2,
.align-center h3,
.align-center p,
.align-center li,
.align-center ul {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out;
}

/* KHUSUS UNTUK LIST DI SECTION CENTER - RATA TENGAH SEMPURNA */
.align-center ul {
  list-style: none !important;
  text-align: center;
  padding-left: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.align-center ul li {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
  position: relative;
}

/* LIST STYLE WITH ENHANCED ANIMATIONS */
.section ul {
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}

/* Pastikan semua list items muncul dengan animasi yang tepat */
.section ul li {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
  max-width: 900px;
  line-height: 1.6;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  margin: 10px 0;
  transition: all 0.3s ease;
}

/* Override untuk memastikan list misi muncul */
.section.align-center ul li {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.section.align-center ul li:nth-child(1) { animation-delay: 0.4s; }
.section.align-center ul li:nth-child(2) { animation-delay: 0.6s; }
.section.align-center ul li:nth-child(3) { animation-delay: 0.8s; }
.section.align-center ul li:nth-child(4) { animation-delay: 1.0s; }

/* Special styling untuk filosofi kerja list items */
.section ul li {
  position: relative;
  padding-left: 20px;
  transition: all 0.3s ease;
}

/* Efek hover untuk bold text dalam list */
.section ul li b {
  transition: color 0.3s ease;
}

.section ul li:hover b {
  color: #c8102e;
  text-shadow: 0 0 5px rgba(200, 16, 46, 0.3);
}

/* 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;
}

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

/* Tablet (lebar maksimal 1024px) */
@media (max-width: 1024px) {
  .section {
    padding: 50px 40px;
  }
  
  .hero-logo {
    max-width: 350px;
  }
  
  .intro p {
    font-size: 20px;
  }
  
  .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;
  }
  
  /* Section Styles */
  .section {
    padding: 40px 20px;
  }
  
  .flex {
    flex-direction: column;
    text-align: center;
  }
  
  .flex .text,
  .flex .image {
    flex: 1;
    text-align: center;
  }
  
  .align-right h1,
  .align-right h2,
  .align-right h3,
  .align-right p,
  .align-right li,
  .align-right ul {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
  }
  
  .section h1 {
    font-size: 36px;
  }
  
  .section h2 {
    font-size: 36px;
  }
  
  .section h3 {
    font-size: 24px;
  }
  
  /* 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) {
  .section {
    padding: 30px 15px;
  }
  
  .section h1 {
    font-size: 32px;
  }
  
  .section h2 {
    font-size: 32px;
  }
  
  .section h3 {
    font-size: 22px;
  }
  
  .section p,
  .section li {
    font-size: 14px;
  }
  
  .nav-left, .nav-right {
    padding: 15px;
  }
  
  .nav-right {
    top: 210px;
  }
  
  .flex .image img {
    max-width: 200px;
  }
}

/* SMOOTH SCROLLING ENHANCEMENT */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.section ul li {
  padding-left: 0;
  margin-left: 0;
}

.section.align-center ul {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.section.align-center ul li {
  display: block;
  margin: 5px auto;
}