/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #faf9fd;
  color: #2c2c2c;
  line-height: 1.6;
}

/* ========== LINKS ========== */
a {
  color: #6a4cff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #4b32cc;
}

/* ========== HEADER & NAV ========== */
header {
  background: linear-gradient(135deg, #6a4cff, #9b7bff);
  padding: 1.2rem 0;
  color: #fff;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

nav {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

nav a {
  color: #fff;
  font-weight: 500;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========== MAIN LAYOUT ========== */
.container {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 1.2rem;
}

/* ========== SECTIONS ========== */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  border-left: 4px solid #6a4cff;
  padding-left: 0.6rem;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ========== MEMBER DETAIL ========== */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
}

.profile img {
  width: 100%;
  border-radius: 16px;
}

.profile h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* ========== GALLERY ========== */
.gallery-grid img {
  width: 100%;
  border-radius: 14px;
}

/* ========== FOOTER ========== */
footer {
  background: #f1effb;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 4rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .profile {
    grid-template-columns: 1fr;
  }

  nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
}
