:root {
  --bg-color: #f5f3ef;
  --text-color: #0f0f0f;
  --accent-color: #b4a078; /* muted gold */
  --highlight-color: #2e3b2f; /* luxury green */
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);

  --primary-font-family: 'DM Sans', sans-serif;
  --primary-font-weight: 300;
  --secondary-font-family: 'Barlow Condensed', sans-serif;
  --secondary-letter-spacing: 0.125em;
  --quote-font-family: 'Cormorant Garamond', serif;

  --dark-grey: 118 118 118;
  --pure-white: 255 255 255;
  --container: rgb(var(--dark-grey) / 0.3);
  --text: rgb(var(--pure-white));
  --dark-grey-hover: rgb(98 98 98); /* slightly darker for hover */
}

body {
  margin: 0;
  font-family: var(--primary-font-family);
  font-weight: var(--primary-font-weight);
  background-color: var(--bg-color);
  color: var(--text-color);
}

.logo {
  font-family: var(--secondary-font-family);
  letter-spacing: var(--secondary-letter-spacing);
  font-size: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--card-bg);
}


nav a {
  font-family: var(--quote-font-family); /* Cormorant Garamond */
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--card-bg);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

.hero-text h1 {
  font-family: var(--quote-font-family);
  font-size: 4rem;
  font-weight: 600;
  color: var(--card-bg);
}

.hero-text p {
  font-family: var(--primary-font-family);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--card-bg);
}

.hero-text h1,
.hero-text p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* subtle text shadow for readability */
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--highlight-color);
  color: var(--card-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* soft header shadow */
  transition: padding 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 2rem;
  background-color: rgba(11, 62, 39, 0.9); /* semi-transparent green when scrolled */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.hero {
  position: relative;
  text-align: center;
}

.hero img {
  width: 100%;
  height: auto;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  padding: 4rem 2rem;
}

.feature {
  padding: 2.5rem;
  background-color: var(--highlight-color); /* luxury green background */
  color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 18px var(--shadow); /* soft card shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); /* elevated shadow on hover */
}

.feature img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.feature h2 {
  font-family: var(--quote-font-family);
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.5px;
}

.feature p {
  font-family: var(--primary-font-family);
  font-size: 1rem;
  font-weight: 300;
  color: var(--card-bg);
  margin-bottom: 1rem;
}

.feature a {
  font-family: var(--primary-font-family);
  font-weight: 500;
  color: var(--accent-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.feature::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--accent-color); /* decorative divider */
  margin: 1.5rem auto 0;
  opacity: 0.4;
}

footer {
  background-color: var(--highlight-color);
  color: var(--card-bg);
  padding: 2rem;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.9rem;
}

footer p {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
}

.hero-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.golf-feature {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.golf-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.golf-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4); /* subtle overlay for readability */
  padding: 0 2rem;
}

.golf-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.golf-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.material-feature {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.material-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.material-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4); /* dark overlay for contrast */
  padding: 0 2rem;
}

.material-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.material-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.training-feature {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.training-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.training-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4); /* subtle overlay for contrast */
  padding: 0 2rem;
}

.training-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.training-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Section divider for visual separation */
.section-divider {
  height: 1px;
  background-color: var(--accent-color);
  margin: 4rem 0;
  opacity: 0.3;
}

/* Call-to-action button styling */
.cta-button {
  background-color: var(--container);
  color: var(--text);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 500;
  font-family: var(--primary-font-family);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover {
  background-color: var(--dark-grey-hover);
  color: var(--text);
}

/* Fade-in animation for scroll-triggered sections */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll offset to prevent sticky header overlap */
section {
  scroll-margin-top: 100px;
}

footer {
  scroll-margin-top: 100px;
}

/* hamburger menu */
/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--card-bg); /* mengikuti warna terang dari tema */
  transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
  nav#main-nav {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--highlight-color); /* luxury green dari root */
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px var(--shadow);
  }

  nav#main-nav.open {
    max-height: 320px;
  }

  nav#main-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 1rem;
  }

  nav#main-nav li {
    margin-bottom: 10px;
  }

  nav#main-nav a {
    font-family: var(--quote-font-family);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--card-bg); /* putih dari root */
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  nav#main-nav a:hover,
  nav#main-nav a.active {
    color: var(--accent-color); /* muted gold dari root */
  }

  .hamburger {
    display: flex;
  }

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: var(--highlight-color);
    color: var(--card-bg);
  }
}

.hamburger.open span {
  background-color: var(--accent-color);
}


/* Hero Section Image */
.hero-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Golf Feature Image */
.golf-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* Material Feature Image */
.material-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* Training Feature Image */
.training-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* Overlay Sections */
.golf-feature,
.material-feature,
.training-feature {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.golf-overlay,
.material-overlay,
.training-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text); /* previously #fff */
  background: var(--container); /* previously rgba(0, 0, 0, 0.4) */
  padding: 0 2rem;
}

.golf-overlay h2,
.material-overlay h2,
.training-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.golf-overlay p,
.material-overlay p,
.training-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: var(--text);
}

