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

:root {
  --bg: #fdf6ec;
  --surface: #ffffff;
  --border: #e8dcc8;
  --text: #1a1a1a;
  --text-muted: #7a6e5d;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(253, 246, 236, 0.95);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 0;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-photo {
  position: relative;
  z-index: 2;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 0 0 60px rgba(59, 130, 246, 0.15);
}

/* SECTIONS */
section {
  padding: 100px 0;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 48px;
}

/* TENTANG */
.tentang {
  background: var(--surface);
}

.tentang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.tentang-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: border-color 0.3s;
}

.tentang-card:hover {
  border-color: var(--accent);
}

.tentang-card .icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.tentang-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tentang-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color 0.3s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* DOKUMENTASI */
.dokumentasi {
  background: var(--surface);
}

/* ORGANISASI */
.organisasi {
  background: var(--bg);
}

/* SERTIFIKAT */
.sertifikat-section {
  background: var(--surface);
}

.sertifikat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.sertifikat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
}

.sertifikat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sertifikat-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* KONTAK */
.kontak {
  background: var(--bg);
}

.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.kontak-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
}

.kontak-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.kontak-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.kontak-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.kontak-card p {
  font-size: 1rem;
  font-weight: 500;
}

/* MOTIVASI */
.motivasi {
  background: var(--surface);
}

.motivasi-content {
  display: flex;
  align-items: center;
  gap: 48px;
}

.motivasi-text {
  flex: 1;
}

.motivasi-text h2 {
  margin-bottom: 24px;
}

.motivasi-text blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.motivasi-photo {
  flex: 0 0 350px;
}

.motivasi-photo img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s;
}

.motivasi-photo img:hover {
  transform: scale(1.02);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.2s;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* FADE IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-photo img {
    width: 200px;
    height: 200px;
  }

  .motivasi-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .motivasi-text blockquote {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .motivasi-photo {
    flex: none;
    width: 100%;
  }

  section {
    padding: 64px 0;
  }

  section h2 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sertifikat-grid {
    grid-template-columns: 1fr;
  }
}
