/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --maroon: #660300;
  --dark: #340705;
  --gold: #ffbf00;
  --light-gold: #ffdc73;
  --orange: #e95007;
  --text: #333;
}

/* Body */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Header */
header {
  background: #660300; /* Maroon */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  width: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 20px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff; /* Light Gold */
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #ffbf00; /* Gold */
}

.highlight {
  color: #fff; /* or any accent color you like */
  font-weight: bold;
  text-transform: uppercase;
}

/* Hero Section */
.acronym {
  font-size: 8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 220, 115, 0.6);
  animation: textFadeUp 1s ease forwards;

  display: inline-block;  
  text-align: center;
  letter-spacing: 30px;

  /* trik untuk koreksi spacing besar */
  transform: translateX(17.5px); /* setengah dari letter-spacing */
}

.acronym-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  animation: textFadeUp 1s ease forwards;
  animation-delay: 0.2s;
}

.hero {
  position: relative;
  height: 900px;
  background: var(--maroon);
  display: flex;
  justify-content: center;
  align-items: center;  /* biar konten ketengah vertikal */
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.hero::before {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  background: var(--orange);
  animation: float 12s infinite ease-in-out;
}
.hero::after {
  width: 350px;
  height: 350px;
  bottom: -100px;
  right: -100px;
  background: var(--gold);
  animation: float 15s infinite ease-in-out reverse;
}

/* Hero content wrapper */
.hero-content {
  display: flex;
  align-items: center;       /* sejajarkan konten secara vertikal */
  justify-content: center;   /* sejajarkan secara horizontal */
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;              /* isi penuh area hero */
  box-sizing: border-box;
}


/* Title fix */
.hero-text {
  animation: textFadeUp 1s ease forwards;
  animation-delay: 0.3s; /* sedikit delay biar smooth */
  opacity: 0;            /* awalnya hilang */
  flex: 1;   /* text takes half width */
  margin-bottom: 200px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--gold), var(--light-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* White highlight parts */
.hero-text h1 .highlight {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #fff;  /* pure white */
  color: #fff;                   /* fallback */
}

/* Hero image bigger with margin */
.hero-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin-bottom: 100px;
  flex-shrink: 0;
  animation: textFadeUp 1s ease forwards;
  animation-delay: 0.6s; /* muncul sedikit setelah text */
  opacity: 0;
  flex: 1;   /* image takes half width */
}

/* Responsive fix: allow wrap on smaller screens */
@media (max-width: 992px) {
  .hero-content {
    flex-wrap: wrap;      /* stack on small screens */
    justify-content: center;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1 {
    white-space: normal;  /* allow wrapping on smaller screens */
  }
}

/* Bigger hero image, stays beside text */
.hero-image {
  max-width: 500px;   /* tweak as needed */
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.hero-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--light-gold);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6), 4px 4px 12px rgba(0,0,0,0.4);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 4rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-text {
  text-align: center; /* center-kan isi di dalam hero-text */
}

.hero-text .btn {
  background: var(--gold);
  color: var(--dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 191, 0, 0.3);
  text-decoration: none;

  display: inline-block; /* biar width sesuai konten */
}

.hero-text .btn:hover {
  background: var(--light-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 220, 115, 0.4);
}

/* Floating & fade animations */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes textFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick Links */
.quick-links {
  background: #f4f6f9;
  padding: 50px 20px;
  text-align: center;
}

.quick-links h3 {
  font-size: 60px;
  font-weight:bold;
  margin-bottom: 20px;
  color: var(--maroon);
  text-align: center;
  margin: 50px 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 20px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.card:hover {
  background: var(--orange);
  color: #fff;
}

/* grid foto dokumentasi */
.dokumentasi {
  padding: 40px;
  text-align: center;
  margin-bottom: 60px; /* space tambahan bawah section */

}

.dokumentasi h1 {
  margin-bottom: 20px;
  font-size: 30px;
  color: #660300;
  text-align: center;

}

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 kolom */
  gap: 20px;               /* jarak antar foto */
  padding: 0 40px;         /* jarak kanan & kiri grid */
  box-sizing: border-box;  /* biar padding dihitung dalam lebar */
}

.grid-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  transform-origin: center center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3); /* bayangan lebih tebal ke bawah */
}

.grid-container img:hover {
  transform: scale(1.6);
  z-index: 5;
  position: relative;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4); /* lebih dramatis saat hover */
}

/* Atur origin untuk gambar di paling kiri */
.grid-container img:nth-child(4n+1):hover {
  transform-origin: left center;
}

/* Atur origin untuk gambar di paling kanan */
.grid-container img:nth-child(4n):hover {
  transform-origin: right center;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light-gold);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

footer a {
  color: var(--light-gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}
