/* ========================================= CSS VARIABLES & RESET ========================================= */
:root {
  --primary-gold: #c2a68c;
  --accent-orange: #ff9644;
  --deep-brown: #562f00;
  --cream: #fffdf1;
  --text-dark: #333;
  --glass-bg: rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth; /* Added for elegant anchor link navigation */
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background-color: var(--cream);
  color: var(--text-dark);
}

/* ========================================= HEADER & NAVIGATION ========================================= */
header {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.logo {
  width: 300px;
  max-width: 80%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  animation: fadeInScale 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* Standard Top Navbar */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  z-index: 10;
  animation: slideDown 1s ease-out forwards;
}

.navbar ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-orange);
  border-bottom: 2px solid var(--accent-orange);
  transform: translateY(-3px);
}

/* Fixed Scrolling Sidebar Navbar */
.nav-toggle,
.nav-icon {
  display: none;
}

.navbar.scrolled {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 50px;
  padding: 20px 0;
  background: rgba(20, 10, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--primary-gold);
  border-left: none;
  border-radius: 0 15px 15px 0;
  z-index: 1000;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  animation: none;
}

.navbar.scrolled ul {
  flex-direction: column;
  gap: 0;
  padding-top: 15px;
  display: none;
}

.navbar.scrolled .nav-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  color: var(--primary-gold);
  width: 100%;
  cursor: pointer;
  outline: none;
}

.navbar.scrolled .nav-toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s ease;
}

.navbar.scrolled.expanded {
  width: 220px;
}

.navbar.scrolled.expanded ul {
  display: flex;
}

.navbar.scrolled.expanded .nav-toggle svg {
  transform: rotate(180deg);
}

.navbar.scrolled a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 14px;
  border-bottom: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar.scrolled a:hover {
  border-left: 3px solid var(--accent-orange);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(0);
  padding-left: 25px;
}

.navbar.scrolled .nav-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  flex-shrink: 0;
}

.nav-icon {
  filter: invert(1);
}

/* ========================================= GLOBAL UI COMPONENTS ========================================= */
main {
  position: relative;
}

.audio-toggle-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.audio-toggle-btn:hover {
  background: var(--primary-gold);
  color: var(--deep-brown);
  transform: scale(1.1);
}

/* ========================================= PAGE SECTIONS ========================================= */
/* About Section */
.about {
  position: relative;
  min-height: 100vh;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  overflow: hidden;
}

.about-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
  animation: slowPan 20s infinite alternate ease-in-out;
}

.about h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.about-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 50px;
}

.about-text {
  flex: 1 1 300px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition:
    transform 0.4s ease,
    background 0.4s ease;
}

.about-text:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.7);
}

.about-text h2 {
  color: var(--accent-orange);
  margin-bottom: 15px;
}
.about-text p {
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-btn {
  padding: 15px 40px;
  border: 2px solid var(--primary-gold);
  background: transparent;
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulseGlow 2.5s infinite;
}

.about-btn:hover {
  background: var(--primary-gold);
  color: var(--deep-brown);
  transform: scale(1.05);
}

/* Highlights Section */
.highlights {
  position: relative;
  padding: 100px 20px;
  background-color: var(--cream);
  overflow: hidden;
}

.highlights-bckg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.highlights-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(86, 47, 0, 0.15);
  border: 1px solid rgba(86, 47, 0, 0.1);
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
}
.highlight-card:nth-child(even) {
  flex-direction: row-reverse;
}

.img-wrapper {
  width: 50%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.highlight-card img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.highlight-card:hover img {
  transform: scale(1.08);
}

.card-txt {
  width: 50%;
  color: var(--deep-brown);
}
.card-txt h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--deep-brown);
  border-bottom: 2px solid var(--accent-orange);
  display: inline-block;
  padding-bottom: 5px;
}
.card-txt p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Info Section */
.info {
  padding: 80px 20px;
  background-color: var(--deep-brown);
  color: var(--cream);
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.info-cards {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--primary-gold);
}

.info-cards h3 {
  color: var(--accent-orange);
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.info-cards p,
.info-cards ul,
.info-cards details {
  margin-bottom: 15px;
  line-height: 1.6;
}
.info-cards ul {
  margin-left: 20px;
}
.info-cards summary {
  cursor: pointer;
  font-weight: bold;
  padding: 10px 0;
  color: var(--primary-gold);
  transition: color 0.3s;
}
.info-cards summary:hover {
  color: var(--accent-orange);
}
.info-cards table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.info-cards td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* News & Events Section */
.news_events {
  padding: 100px 20px;
  background: var(--cream);
  text-align: center;
}

.news_events h2 {
  font-size: 2.5rem;
  color: var(--deep-brown);
  margin-bottom: 40px;
}
.news-grid {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.news-item {
  flex: 1 1 300px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-10px);
}
.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-content {
  padding: 20px;
  text-align: left;
}
.news-content h4 {
  color: var(--deep-brown);
  margin-bottom: 10px;
}
.news-content a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
footer {
  background: #221200;
  color: var(--cream);
  text-align: center;
  padding: 30px 20px;
}
footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ========================================= RESPONSIVENESS (Media Queries) ========================================= */
@media (max-width: 1024px) {
  .highlight-card,
  .highlight-card:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  .img-wrapper,
  .card-txt {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .navbar ul {
    gap: 15px;
    padding: 0 10px;
  }
  .navbar a {
    font-size: 14px;
  }
  .logo {
    width: 200px;
  }
  .about h1 {
    margin-top: 50px;
  }
  .info-container {
    flex-direction: column;
  }
}

/* ========================================= ANIMATIONS ========================================= */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.6);
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }
  to {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 166, 140, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(194, 166, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(194, 166, 140, 0);
  }
}

@keyframes slowPan {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

@supports (animation-timeline: view()) {
  .about h1,
  .about-text,
  .highlight-card,
  .info-cards,
  .news-item {
    animation: revealOnScroll linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  @keyframes revealOnScroll {
    from {
      opacity: 0;
      transform: translateY(60px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
