body {
  margin: 0;
  padding: 0;
}

/* ===== Navbar Interaktif ===== */
.navbar {
  background: #fff;
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-link:hover {
  color: #0d6efd;
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
#hero {
  min-height: 100vh; /* full tinggi layar */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f9ff 0%, #e6efff 100%);
  text-align: center;
  padding: 0 15px;
  padding-top: 70px; /* untuk menghindari ketimpa navbar */
  margin-bottom: 0; /* hilangkan celah putih bawah */
}

#hero h1 {
  animation: fadeDown 1s ease forwards;
  opacity: 0;
}

#hero h2 {
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

#hero .btn {
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
}

@keyframes fadeDown {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ===== Kartu Anggota ===== */
.member-card {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.member-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.member-card img {
  transition: transform 0.3s ease;
}

.member-card:hover img {
  transform: scale(1.1);
}

/* ===== Footer ===== */
.footer {
  background: #0b132b;
  color: #fff;
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer h6 {
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #0d6efd;
  margin-left: 5px;
}

.contact-info p {
  margin-bottom: 8px;
  color: #ddd;
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* Tambah animasi background footer */
.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13,110,253,0.15) 0%, transparent 70%);
  animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
  from {transform: rotate(0);}
  to {transform: rotate(360deg);}
}

/* ===== Anggota Section ===== */
#anggota {
  min-height: 100vh; /* supaya ada jeda penuh layar */
  margin-top: 0;     /* tidak nempel ke hero */
  padding-top: 80px; /* spasi konten biar rapi */
}

/* Awalnya sembunyikan anggota */
#anggota {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-in-out;
  visibility: hidden;
}

/* Saat sudah discroll, tampilkan */
#anggota.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Smooth scroll biar halus pas klik link */
html {
  scroll-behavior: smooth;
}

.member-card .card-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Avatar konsisten */
.member-card .avatar{
  width: 110px;
  height: 110px;
  object-fit: cover;
}

/* === Body card jadi kolom dan tombol “menempel” di bawah */
.member-card .card-body{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Judul punya tinggi minimum agar barisnya sama */
.member-card .name{
  line-height: 1.3;
  min-height: 2.6rem; /* kira-kira 2 baris judul */
  text-align: center;
}

/* === 1 baris potong ellipsis (semua browser) */
.member-card .one-line{
  width: 100%;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/* === 2 baris maksimum dgn fallback universal */
.member-card .two-lines{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* Chrome, Edge, Safari */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;     /* biar bisa wrap */
  word-wrap: break-word;   /* putus kata panjang */
  word-break: break-word;  /* untuk browser lain */
  line-height: 1.4;
  max-height: calc(1.4em * 2); /* fallback agar tidak lebih dari 2 baris */
}


/* === Pastikan kolom memaksa card full height */
#hasil > .col{ display: flex; }
#hasil > .col > .member-card{ width: 100%; }

/* (opsional) hover efek tetap halus */
.member-card{ transition: transform .2s ease, box-shadow .2s ease; }
.member-card:hover{ transform: translateY(-4px); }
