/* GLOBAL VARIABLES */
:root {
  --primary-color: #3a2a1a;
  --secondary-color: #bfa67a;
  --background-color: #f4f1ea;
  --color-textb: #000000;
  --color-textw: #ffffff;
  --font-family: "Playfair Display", serif;
  --overlay-color: rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--color-textb);
  overflow-x: hidden;
}

/* GLOBAL COMPONENTS */
.btn {
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.btn:last-child {
  border: 2px solid var(--color-textw);
  color: var(--color-textw);
}

.btn:last-child:hover {
  background-color: var(--color-textw);
  color: var(--primary-color);
}

.btn:first-child {
  background-color: var(--primary-color);
  color: var(--color-textw);
  border: 2px solid var(--primary-color);
}

.btn:first-child:hover {
  opacity: 0.7;
}

section {
  padding: 80px 60px;
}

section h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

section p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.content-section {
  background-color: #fff;
}

.content-section.alt-bg {
  background-color: var(--background-color);
}

.page-header {
  padding: 160px 20px 60px 20px;
  background-color: var(--primary-color);
  color: var(--color-textw);
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.page-header p {
  color: var(--secondary-color);
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.feature-list {
  list-style: none;
  margin: 30px auto;
  padding: 0;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-list li {
  font-size: 19px;
  color: var(--primary-color);
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  width: 100%;
}

.feature-list li::before {
  content: "•";
  color: var(--secondary-color);
  font-size: 28px;
  position: absolute;
  left: 0;
  top: -6px;
  font-weight: bold;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--overlay-color);
  backdrop-filter: blur(10px);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.navbar::after {
  content: "";
  flex: 1;
}

.logo {
  flex: 1;
}

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-textw);
  text-decoration: none;
  font-family: var(--font-family);
}

.navbar nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.navbar nav ul li a {
  color: var(--color-textw);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: var(--secondary-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  flex: 1;
  align-items: flex-end;
}

.hamburger img {
  width: 30px;
  height: 24px;
  transition: all 0.3s ease;
}

/* HOME PAGE */
.home-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: url("assets/prambanan.jpg") center/cover no-repeat;
}

.home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
  z-index: 1;
}

.home-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  color: var(--color-textw);
}

.home-text h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
  min-height: 160px;
}

.typewriter {
  border-right: 3px solid var(--secondary-color);
  padding-right: 5px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--secondary-color);
  }
}

.home-text p {
  font-size: 22px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--color-textw);
}

.home-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.highlights-section {
  background-color: #fff;
  text-align: center;
  padding: 80px 60px;
}

.highlights-section h2 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.highlights-section ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.highlights-section ul li {
  font-size: 19px;
  color: var(--primary-color);
  position: relative;
  padding-left: 35px;
  text-align: left;
  width: 100%;
}

.highlights-section ul li::before {
  content: "•";
  color: var(--secondary-color);
  font-size: 28px;
  position: absolute;
  left: 0;
  top: -6px;
  font-weight: bold;
}

.gallery-container {
  max-width: 800px;
  margin: 0 auto;
}

.gallery-main {
  margin-bottom: 20px;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.gallery-thumbnails {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.gallery-thumbnails img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbnails img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.gallery-thumbnails img.active-thumb {
  opacity: 1;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

/* STORIES PAGE */
.timeline {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 4px solid var(--secondary-color);
  padding-top: 60px;
  position: relative;
}

.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-date {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
  font-size: 14px;
  margin-top: -10px;
}

.timeline-content {
  padding: 10px;
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-content p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.story-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  height: 100%;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-card h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.story-card p {
  color: #555;
  line-height: 1.6;
}

.story-card .feature-list {
  margin: 20px 0;
  padding: 0;
}

.story-card .feature-list li {
  font-size: 16px;
  text-align: left;
  color: #555;
  margin-bottom: 10px;
}

.story-card .feature-list li::before {
  color: var(--secondary-color);
  font-size: 20px;
}

/* VISIT PAGE */
.info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.info-card {
  background-color: #fff;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 200px;
  max-width: 280px;
  flex: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.info-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 24px;
}

.info-card p {
  margin: 0;
  color: var(--primary-color);
  font-weight: 500;
}

.map-container {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.map-container img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FOOTER */
footer {
  background-color: var(--primary-color);
  color: var(--color-textw);
  text-align: center;
  padding: 40px 20px;
  margin-top: 0;
}

footer p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #d7c4a3;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
}

.social-media a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-media img {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    border-top: none;
    border-left: 4px solid var(--secondary-color);
    padding-left: 40px;
    padding-top: 20px;
    gap: 30px;
  }

  .timeline-item {
    text-align: left;
  }

  .timeline-item::before {
    top: 5px;
    left: -46px;
    transform: none;
  }

  .timeline-date {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 15px 20px;
  }

  .hamburger {
    display: flex;
  }

  .navbar nav {
    position: static;
    transform: none;
  }

  .navbar nav ul {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(58, 42, 26, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .navbar nav ul.active {
    max-height: 500px;
    padding: 20px 20px 30px;
  }

  .navbar nav ul li {
    width: 100%;
    padding: 15px 0;
    text-align: center;
  }

  .navbar nav ul li a {
    display: block;
    font-size: 18px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .page-header p {
    font-size: 16px;
  }

  .home-section {
    padding: 120px 20px 80px;
  }

  .home-text h1 {
    font-size: 32px;
  }

  .home-text p {
    font-size: 16px;
  }

  .home-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 50px 20px;
  }

  .page-header {
    padding: 80px 20px 50px;
  }

  .gallery-thumbnails {
    gap: 10px;
  }

  .gallery-thumbnails img {
    width: 80px;
    height: 80px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -36px;
  }

  .timeline-content h3 {
    font-size: 16px;
  }

  .timeline-content p {
    font-size: 13px;
  }

  .story-card {
    padding: 30px 20px;
  }

  .story-card h2 {
    font-size: 20px;
  }

  footer {
    padding: 30px 20px;
  }

  footer p {
    font-size: 14px;
  }

  .social-media {
    gap: 20px;
  }

  .social-media img {
    width: 28px;
    height: 28px;
  }
}
