@font-face {
  font-family: "Morside";
  src: url("lib/font/Morside.otf") format("opentype");
}

body {
  background-color: black;
  margin: 0;
  padding: 0px;
  font-family: "Morside", Arial, sans-serif;
}

/* ===== GITHUB PFP ===== */
.github-pfp {
  width: 34px;
  height: 34px;
  position: relative;
  left: -15px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.github-pfp:hover {
  transform: scale(2.2) translateX(8px) translateY(8px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 90;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand {
  font-family: "Morside", Arial, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: "Morside", Arial, sans-serif;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.5px;
  padding: 6px 2px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #ffffff;
}

/* ===== FIXED BACKGROUND + SCROLL ZOOM ===== */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/bg-city-sea.jpg") center/cover no-repeat;
  transform: scale(1);
  transition: transform 0.2s linear;
  z-index: -1;
}

.bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* ===== ROOM BACKGROUND (muncul setelah fade) ===== */
.bg-room {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/bg-room.jpg") center/cover no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  will-change: opacity;
}

/* ===== HERO / TITLE ===== */
.hero {
  position: relative;
  min-height: 200vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* posisikan konten lebih ke atas */
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10vh; /* tarik konten (judul + sosial) lebih ke atas */
  margin-bottom: 130vh;
}

.hero h3 {
  text-align: center;
  margin: 0 0 28px;
  font-family: "Morside", Arial, sans-serif;
  font-size: 8vw;
  font-weight: normal;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  opacity: 1;
  will-change: opacity;
}

/* ===== SOCIAL LINKS (di bawah teks welcome) ===== */
.social-links {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  width: fit-content;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.18);
}

/* Warna brand per platform saat hover */
.btn-wa:hover {
  color: #25d366;
  border-color: #25d366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-gh:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.btn-tt:hover {
  color: #69c9ce;
  border-color: #69c9ce;
  box-shadow: 0 6px 18px rgba(105, 201, 206, 0.35);
}

.btn-pi:hover {
  color: #e60023;
  border-color: #e60023;
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.35);
}
