:root {
  --bg: #0f0f0f;
  --text: #dbdbdb;
  --accent: #a08963;
  --highlight: #c9b194;
  --card-bg: #1a1a1a;
}

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

main {
  flex-grow: 1;
  padding: 140px 50px 100px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background-color: rgba(0, 0, 0, 0.25);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  filter: brightness(200%);
}

.logo h1 {
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--highlight);
}

/* ===== Nav Bar ===== */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--highlight);
  text-shadow: 0 0 6px rgba(201, 177, 148, 0.6);
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  cursor: pointer;
  z-index: 200;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Team Section ===== */
.team-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Team Cards ===== */
.team-card {
  background: var(--card-bg);
  padding: 50px 40px;
  border-radius: 16px;
  border: 1px solid rgba(192, 177, 148, 0.1);
  box-shadow: 0 0 25px rgba(160, 137, 99, 0.1);
  max-width: 400px;
  flex: 1 1 300px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  height: auto;
  min-height: 480px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.team-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--highlight);
  margin-bottom: 20px;
}

.team-card h2 {
  color: var(--highlight);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.team-card h4 {
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.team-card p {
  color: #bcbcbc;
  line-height: 1.7;
  margin-bottom: 25px;
}

/* ===== Socials ===== */
.team-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
}

.team-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, filter 0.3s;
}

.team-socials a svg {
  width: 28px;
  height: 28px;
  stroke: var(--highlight);
  transition: 0.3s;
}

.team-socials a:hover svg {
  stroke: var(--text);
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(201, 177, 148, 0.6));
}

/* ===== Footer ===== */
footer {
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto; /* ensures footer stays at bottom */
}

footer .socials {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .socials a {
  color: var(--highlight);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

footer .socials a:hover {
  color: var(--text);
  transform: scale(1.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 240px;
    height: 100vh;
    background-color: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 25px;
    padding: 40px 20px;
    transition: right 0.4s ease;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  /* Fix spacing on mobile */
  main {
    padding: 120px 20px 180px; /* extra bottom padding */
  }

  .team-section {
    gap: 40px;
  }

  .team-card {
    max-width: 90%;
    flex: 1 1 100%;
    min-height: auto;
  }
}
