:root {
  --main-color: #141b4d;
  --secondary-color: #001082;
  --accent-color: #485fff;
  --extra-color: #d5daff;
  --text: #333;
  --main-grey: #e8eef4;
  --main-white: #f9f9f9;
  --main-red: #de0017;
  --accent-red: #ff1931;
  --main-green: #008b24;
  --accent-green: #00be31;
  --base-1: #fff;
  --base-2: #000;
}
:root.dark-mode {
  --main-color: #0d1238;
  --secondary-color: #001082;
  --accent-color: #485fff;
  --extra-color: #d5daff;
  --text: #e6e9f2;
  --main-grey: #1c1f2e;
  --main-white: #121420;
  --main-red: #de0017;
  --accent-red: #ff1931;
  --main-green: #008b24;
  --accent-green: #00be31;
  --base-1: #1a1d2b;
  --base-2: #ffffff;
}

/* General Styles */
* {
  overscroll-behavior: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--main-white);
  color: var(--text);
}

body::-webkit-scrollbar {
  display: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); */
  /* z-index: 100; */
  background-color: var(--main-color);
}

.logo-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.school-logo {
  height: 50px;
  width: auto;
  cursor: pointer;
}

.corp-logo {
  margin-right: 10px;
  height: 40px;
  width: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  .school-logo {
    height: 40px;
  }
  .corp-logo {
    height: 36px;
  }
}

@media (max-width: 480px) {
  .school-logo {
    height: 32px;
  }
  .corp-logo {
    height: 32px;
  }
}

/* Navigation Bar */
.navbar {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  z-index: 100;
  position: sticky;
  top: 0;
  background-color: var(--main-color);
  padding: 0;
  color: #fff;
}

.navbar ul {
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  padding: 0 20px;
}

/* .navbar li {
  margin: 0;
} */

.navbar a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 25px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}
.navbar a:hover {
  background-color: var(--secondary-color);
}

.navbar a.active {
  background-color: var(--main-red);
}
.navbar a.active:hover {
  background-color: var(--accent-red);
}

.theme-btn {
  background: none;
  color: var(--base-1);
  padding: 0px 12px;
  cursor: pointer;
  font-size: 20px;
  border: none;
  margin-left: auto;
}

.theme-btn:hover {
  background-color: var(--secondary-color);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    var(--main-color) 10%,
    var(--secondary-color) 100%
  );
  color: var(--white);
  border-radius: 8px;
  margin-bottom: 50px;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Project Section */
.project-section {
  margin-bottom: 50px;
}

.project-section h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 25px;
  border-bottom: 3px solid var(--main-red);
  padding-bottom: 10px;
}

.section-content {
  background-color: var(--base-1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.section-content ul {
  margin-left: 30px;
  margin-top: 15px;
}

.section-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.tech-item {
  background-color: var(--main-grey);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-red);
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.tech-item h3 {
  color: var(--accent-color);
  margin-bottom: 10px;
}

.tech-item p {
  color: var(--text);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
  justify-items: center;
}

.team-member {
  background-color: var(--base-1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  padding: 18px 16px 24px;
  max-width: 320px;
  width: 100%;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-photo {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width cover photo (use class "member-photo cover") */
.member-photo.cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

/* Headshot / avatar (use class "member-photo headshot") */
.member-photo.headshot {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 6px;
}

.team-member h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin: 20px 20px 5px 20px;
}

.member-role {
  color: var(--accent-red);
  font-weight: 600;
  margin: 5px 20px;
  font-size: 0.95rem;
}

.member-bio {
  padding: 0 20px 20px 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer {
  margin: 0;
  padding: 0;
}

footer img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .project-section h2 {
    font-size: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section-content {
    padding: 20px;
  }
}
