/* RESET & BOX SIZING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* IMPORT CUSTOM FONT (example) */
@font-face {
  font-family: 'ZZZ';
  src: url('../fonts/印品鸿蒙体.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: 'ZZZ', sans-serif;
  font-weight: bold;
}

/* BODY */
body {
  background: #141414;
  color: #e0e0e0;
  line-height: 1.6;
  transition: filter 0.5s ease;
}

/* DASHBOARD HEADER */
header {
  background: #0d0d1a;
  padding: 10px 20px;
}
.dashboard {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  color: orange;
  font-size: 28px;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 5px 10px;
  transition: background 0.3s;
}
nav ul li a.active,
nav ul li a:hover {
  background: violet;
  border-radius: 4px;
}

/* FOOTER */
footer {
  background: #0d0d1a;
  padding: 20px;
  text-align: center;
  color: #e0e0e0;
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #000;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.5s ease;
  cursor: pointer;
}
.hero:hover .hero-image {
  transform: scale(1.05);
}

/* ABOUT CONTENT */
.about-content {
  padding: 40px 20px;
  text-align: center;
  background: #141414;
}
.about-content h1 {
  font-size: 48px;
  color: orange;
  margin-bottom: 20px;
}
.about-content p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* TEAM CARDS SECTION */
.team-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  background: #0d0d1a;
  color: #e0e0e0;
}
.team-cards .card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #141414;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.team-cards .card:hover {
  transform: scale(1.05);
}
.team-cards .card a {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* CARD CONTENT LAYOUT */
.team-cards .card .card-content {
  display: flex;
  width: 100%;
  align-items: center;
  flex-direction: row;
}
.team-cards .card.alternate.reverse .card-content {
  flex-direction: row-reverse;
}
/* CARD IMAGE & INFO WIDTHS */
.team-cards .card .card-image {
  flex: 0 0 40%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.team-cards .card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-cards .card .card-info {
  flex: 0 0 60%;
  padding: 15px;
  text-align: left;
  position: relative;
}
/* PROFILE PIC CONTAINER */
.profile-pic-container {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 2px solid orange;
  border-radius: 4px;
  margin-bottom: 10px;
}
.profile-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* NORMAL: profile on top-right */
.team-cards .card.alternate .card-info .profile-pic-container {
  margin-left: auto;
}
/* REVERSE: profile on top-left */
.team-cards .card.alternate.reverse .card-info .profile-pic-container {
  margin-right: auto;
}
/* CARD INFO STYLING */
.team-cards .card .card-info h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: orange;
}
.team-cards .card .card-info p {
  font-size: 18px;
  color: #aaa;
}

/* ANIMATE ON SCROLL (Optional) */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* OVERLAY FOR DARKENING SCREEN */
#overlay {
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 10; /* On top of everything */
}
#overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 16s linear;
  background: black;
}

#video-container.active {
  opacity: 1;
  pointer-events: auto;
}

#fullscreen-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}