:root {
  --bg: #ffffff;
  --text: #111;
  --card: #ffffff;
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
  --accent: #6c5ce7;
}

.dark {
  --bg: #0f0f0f;
  --text: #f4f4f4;
  --card: #151515;
  --shadow: 0 10px 30px rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  padding-top: 120px;
}

.section {
  max-width: 1150px;
  margin: 60px auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: 140px;
}

.header-pill {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 1150px);
  z-index: 9999;
  pointer-events: auto;
}

.pill-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 64px;
  background: linear-gradient(180deg, #eef8ff, #f6fbff);
  border-radius: 999px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.dark .pill-inner {
  background: linear-gradient(180deg, #2a3138, #23272b);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.pill-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
  z-index: 2;
}

.pill-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.pill-nav a {
  text-decoration: none;
  color: rgba(12, 14, 20, 0.78);
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.dark .pill-nav a {
  color: rgba(248, 248, 248, 0.9);
}

.pill-nav a:hover {
  transform: translateY(-2px);
  color: var(--accent);
}

.pill-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #ffffff;
  color: transparent;
  text-shadow: 0 0 0 #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pill-btn:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dark .pill-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: transparent;
  text-shadow: 0 0 0 white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.dark .pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(-15deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.hero {
  width: 100%;
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 960px;
}

.hero h1 span {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 8px 0 26px;
  opacity: 0.85;
  max-width: 820px;
}

.social-icons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}

.icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}

.icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.icon:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.fb:hover { background: #1877f2; color: #fff; }
.ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }
.yt:hover { background: #ff0000; color: #fff; }
.gh:hover { background: #24292f; color: #fff; }
.dc:hover { background: #5865f2; color: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, auto));
  gap: 26px;
  justify-content: center;
}

/* ——————————————————————————————
   ANIMASI SUDAH FIX – SEMUA SAMA
—————————————————————————————— */

.gallery-item {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 0;
  width: fit-content;
  height: auto;
  margin: auto;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.gallery-item.appear {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer {
  margin-top: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.05));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.footer-content p {
  opacity: 0.6;
  font-size: 14px;
  margin-bottom: 30px;
  max-width: 600px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-bottom {
  width: 100%;
  max-width: 800px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  font-size: 12px;
  opacity: 0.4;
  margin: 0;
}

@media (max-width: 900px) {
  .pill-inner { padding: 0 20px; }
  .hero { padding: 40px 18px; }
}

@media (max-width: 768px) {
  .pill-nav { display: none; }
  body { padding-top: 100px; }
}
