:root {
  --primary-red: #c60000;
  --primary-black: #1a1a1a;
  --gold-accent: #ffc107;
  --text-grey: #6c757d;
  --brand-light: #f8f9fa;
}

/* 1. OPTIMASI SCROLL: Tambahkan scroll-behavior smooth */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--brand-light);
  color: var(--primary-black);
  overflow-x: hidden;
  /* Optimasi font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
}

/* Navbar */
.navbar {
  background-color: var(--primary-black);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    padding 0.3s ease,
    background-color 0.3s ease; /* Spesifik transisi */
  will-change: padding, background-color; /* Hint untuk browser */
}

.navbar-brand {
  color: white !important;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-accent) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  /* Background image inline style di HTML akan menimpa ini */
  color: white;
  padding: 140px 0 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;

  /* 2. OPTIMASI BACKGROUND: Default scroll (ringan) untuk mobile */
  background-attachment: scroll !important;
  background-position: center;
  background-size: cover;
}

/* Hanya gunakan fixed (parallax) di layar besar/desktop yang mumpuni */
@media (min-width: 992px) {
  .hero-section {
    background-attachment: fixed !important;
  }
}

.hero-poster {
  border: 4px solid var(--gold-accent);
  box-shadow: 0 0 30px rgba(198, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s;
}

.hero-poster:hover {
  transform: scale(1.02) rotate(1deg);
}

.event-title {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.event-subtitle {
  font-size: 1.4rem;
  color: var(--gold-accent);
  letter-spacing: 3px;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Countdown */
.countdown-container {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(198, 0, 0, 0.85);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  min-width: 90px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
  display: block;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Buttons Symmetry */
.hero-btn-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-btn {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 15px 20px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-btn-primary {
  background-color: var(--primary-red);
  color: white;
  border: 2px solid var(--primary-red);
  box-shadow: 0 4px 15px rgba(198, 0, 0, 0.4);
}

.hero-btn-primary:hover {
  background-color: #a30000;
  border-color: #a30000;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(198, 0, 0, 0.6);
}

.hero-btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.hero-btn-outline:hover {
  background-color: white;
  color: var(--primary-black);
  transform: translateY(-3px);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-black);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.section-title::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--gold-accent);
}

/* Info Cards */
.info-card {
  border: none;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  /* 3. OPTIMASI TRANSISI: Jangan gunakan 'all', sebutkan property spesifik */
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 25px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid transparent;
}

.info-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--primary-red);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.info-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(198, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background-color 0.3s ease;
}

.info-card:hover .info-icon-wrapper {
  background-color: var(--primary-red);
}

.info-icon {
  font-size: 2.5rem;
  color: var(--primary-red);
  transition: color 0.3s ease;
}

.info-card:hover .info-icon {
  color: white;
}

/* Feature Box Hover */
.feature-box {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  height: 100%;
  border: 1px solid #eee;
}
.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Optimasi untuk card hover */
  transform: translateZ(0);
}

.category-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  will-change: transform; /* Hint GPU */
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px;
  color: white;
}

.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-icon {
  font-size: 2rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #e9ecef;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--primary-red);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.timeline-container:hover::after {
  background-color: var(--primary-red);
  transform: scale(1.2);
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 25px;
  background-color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--primary-red);
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-date {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: inline-block;
  background: rgba(198, 0, 0, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
}

/* Mobile Timeline Adjustment */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-container::after {
    left: 21px;
  }
  .right {
    left: 0%;
  }
  .event-title {
    font-size: 2.5rem;
  }
  .hero-poster {
    margin-bottom: 30px;
    max-width: 80%;
  }
  .hero-btn {
    width: 100%;
  }
}

/* Footer */
footer {
  background-color: var(--primary-black);
  color: white;
  padding: 40px 0;
  text-align: center;
  position: relative;
}

/* 4. OPTIMASI ANIMASI SCROLL */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  /* Gunakan ease-out untuk masuk yang lebih natural */
  transition:
    transform 0.8s ease-out,
    opacity 0.8s ease-out;
  /* Beritahu browser properti ini akan berubah (Hardware Acceleration) */
  will-change: transform, opacity;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* Subtle Pattern Background */
.bg-pattern {
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: var(--brand-light);
}
