body {
  margin: 0;
  padding: 60px 0 0 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;             /* fixed height */
  box-sizing: border-box;   /* include padding inside height */
  padding: 0 2rem;          /* horizontal padding only */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}


nav .logo {
  font-weight: bold;
  width: 60px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

nav ul li {
  cursor: pointer;
  font-weight: 600;
  color: #333;
}

nav ul li a {
  text-decoration: none;
  color: inherit;
}

nav ul li a:hover {
  text-decoration: underline;
  color: #334;
}

.current {
  text-decoration: underline;
  color: #333;
}

/* Team section */
.teams {
  max-width: 2400px;
  margin: 0 auto;
  padding: 2rem 5vw;
}

.teams h2 {
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr); /* 2 columns per row */
}

.team-card {
  background-color: #ddd;
  height: 500px;
  display: flex; /* ✅ this enables flexbox */
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 10px;
  overflow: hidden; /* ensure image doesn't overflow corners */
  justify-content: flex-end; /* button at bottom */
  padding: 1rem;
}

.team-card button {
  bottom: 10px;
  padding: 0.3rem 0.6rem;
  background-color: steelblue;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.team-card button:hover {
  background-color:rgb(34, 83, 124)
}

.rl-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.rl-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}

.cs-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.cs-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}

.r6-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.r6-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}

.eafc-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.eafc-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}

.Fortnite-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.Fortnite-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}

.chess-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease; /* smooth zoom */
  z-index: 1;
}

.chess-image:hover {
  transform: scale(1.1); /* zoom in by 10% */
}


.team-text {
  position: absolute;   /* absolutely position text */
  top: 10px;           /* distance from top */
  left: 50%;           /* center horizontally */
  transform: translateX(-50%);
  z-index: 2;          /* above the image */
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 5px black;
  pointer-events: none; /* optional: let clicks pass through */
}
.team-card button a {
  text-decoration: none;
  color: inherit;
}