/* RESET DASAR */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #ffffff;
  color: #333;
}

/* === VARIABEL WARNA === */
:root {
  --primary-color: #0066a2;
  --hover-color: #004f7a;
  --border-color: #0066a2;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --hero-highlight-color: #ffd700;
}

/* === NAVBAR === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 15px 60px;
  border-bottom: 3px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: auto;
}

.logo-text {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-grow: 1;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.login-btn {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.login-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
}

/* === HERO GALLERY === */
.hero-gallery {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  background-image: url("../image/background\ 3.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
  color: var(--hero-highlight-color);
}

.hero-tagline {
  font-size: 1.2em;
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* === GALLERY SECTION === */
.gallery-section {
  text-align: center;
  padding: 60px 30px;
  background: var(--light-bg);
}

.gallery-section h2 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-subtitle {
  color: #555;
  margin-bottom: 40px;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 102, 162, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 102, 162, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  position: relative;
}

.footer-logo {
  width: 50px;
  position: absolute;
  right: 40px;
  bottom: 10px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 115px;
    left: 0;
    width: 100%;
    height: 0;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: height 0.3s ease, padding 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    height: auto;
    max-height: 300px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-links a {
    padding: 12px 20px;
    display: block;
    text-align: left;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2em;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .footer-logo {
    position: static;
    margin-top: 10px;
  }
}
