/* ----------------------------------------
   Global Reset + Flex Layout for Footer
   ---------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212; /* very dark gray/near-black */
  color: #e0e0e0;            /* light gray text */
}

/* Make <main> grow so footer stays at bottom + add 20px gap from header */
main {
  flex: 1;
  padding-top: 20px; /* 20px space between header and main */
}

/* ----------------------------------------
   Container Utility
   ---------------------------------------- */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ----------------------------------------
   Navbar (Dark Blue Background)
   ---------------------------------------- */
.navbar {
  background-color: #001f3f; /* navy blue */
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: #cfd8e3;            /* slightly off-white */
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;            /* pure white on hover / active */
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
  background-color: #0a1f44; /* dark blue-grey */
  text-align: center;
  padding: 4rem 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #cfd8e3;
}

/* ----------------------------------------
   Pill-shaped Buttons
   ---------------------------------------- */
.btn {
  display: inline-block;
  background-color: #000000;       /* black */
  color: #ffffff;                  /* white text */
  padding: 0.75rem 1.5rem;
  border: 2px solid #ffffff;       /* white border */
  border-radius: 999px;            /* pill shape */
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: #ffffff;       /* invert on hover */
  color: #000000;                  /* black text */
}

/* ----------------------------------------
   Footer (Dark Blue Background)
   ---------------------------------------- */
footer {
  background-color: #001f3f; /* same navy blue as navbar */
  color: #cfd8e3;
  text-align: center;
  padding: 1rem 0;
}

/* ----------------------------------------
   Responsive Adjustments
   ---------------------------------------- */
@media (max-width: 600px) {
  .nav-links {
    display: none; /* hide nav links on very small screens */
  }
  .hero h1 {
    font-size: 2rem;
  }
}
/* NAVBAR THEME */
    .navbar {
      background-color: #000000; /* black */
      padding: 25px 0; /* 25px thicker */
      border-bottom: 2px solid #ffffff; /* white bottom border */
    }
    .navbar .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .logo img {
      height: 40px;
      vertical-align: middle;
      margin-right: 0.5rem;
    }
    .logo {
      color: #ffffff;
      font-size: 1.5rem;
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    .nav-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .nav-links a {
      color: #ffffff;
      text-decoration: none;
      padding: 0.3rem 0.5rem;
      border-radius: 6px;
      transition: background-color 0.2s;
    }
    .nav-links a:hover,
    .nav-links a.active {
      background-color: #333333;
    }
    /* Theme Dropdown */
    .theme-selector {
      background-color: #000000;
      border: 1px solid #ffffff;
      color: #ffffff;
      padding: 0.3rem;
      border-radius: 6px;
      margin-left: 1rem;
    }

    /* MAIN AREA THEME */
    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
      background-color: #121212; /* dark gray */
      color: #ffffff;
      transition: background-color 0.3s, filter 0.3s;
    }

    .eye-destroyer {
      filter: invert(1) hue-rotate(180deg);
    }
    main {
      flex: 1;
      padding-top: 20px;
    }
    .container {
      width: 90%;
      max-width: 1000px;
      margin: 0 auto;
    }
    .hero {
      background-color: #1e1e1e;
      text-align: center;
      padding: 4rem 1rem;
      margin-bottom: 2rem;
      border-radius: 8px;
      border: 2px solid #ffffff;
      animation: draw 0.6s ease-out;
    }
    @keyframes draw {
      from { transform: scale(0.8); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #ffffff;
    }
    .hero p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
      color: #ffffff;
    }
    .btn {
      display: inline-block;
      background-color: #000000;
      color: #ffffff;
      padding: 0.75rem 1.5rem;
      border: 2px solid #ffffff;
      border-radius: 999px;
      text-decoration: none;
      font-size: 1rem;
      transition: background-color 0.2s, color 0.2s;
    }
    .btn:hover {
      background-color: #ffffff;
      color: #000000;
    }

    /* PROJECTS SECTION STYLES */
    .projects-section {
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
    .projects-section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      text-align: center;
      color: #ffffff;
    }
    .card-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* updated width 350px */
      gap: 1rem;
      justify-items: center;
      justify-content: center;
    }
    .card {
      background-color: #1a1a1a;
      border-radius: 12px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
      overflow: hidden;
      transition: transform 0.2s;
      width: 400px; /* updated width */
      border: 2px solid #ffffff; /* white border */
    }
    .card:hover {
      transform: translateY(-5px);
    }
    .card img {
      width: 100%;
      height: 160px;
      object-fit: cover;
      border-bottom: 2px solid #ffffff;
    }
    .card-content {
      padding: 1rem;
    }
    .card-content h3 {
      margin-bottom: 0.5rem;
      font-size: 1.25rem;
      color: #00bfff;
      text-align: center;
    }
    .tags {
      margin-top: 0.5rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      justify-content: center;
    }
    .tags span {
      background-color: #004466;
      color: #ffffff;
      padding: 0.2rem 0.5rem;
      border-radius: 8px;
      font-size: 0.8rem;
      white-space: nowrap;
    }
    .links {
      margin-top: 0.7rem;
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      justify-content: center;
    }
    .links a {
      color: #ffffff;
      text-decoration: none;
      background-color: #000000;
      padding: 0.4rem 0.7rem;
      border-radius: 8px;
      font-size: 0.85rem;
      border: 1px solid #ffffff;
      transition: background-color 0.2s, color 0.2s;
    }
    .links a:hover {
      background-color: #ffffff;
      color: #000000;
    }
    /* EMPLOYEES SECTION STYLES */
    .employees-section {
      margin-top: 2rem;
      margin-bottom: 2rem;
    }
    .employees-section h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      text-align: center;
      color: #ffffff;
    }
    .employee-card {
      width: 250px;
      height: 250px;
      background-color: #2a2a2a;
      border-radius: 12px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0.5rem;
      transition: transform 0.2s;
      border: 2px solid #ffffff;
    }
    .employee-card:hover {
      transform: translateY(-5px);
    }
    .employee-card img {
      width: 90px; /* larger */
      height: 90px;
      object-fit: cover;
      border-radius: 50%;
      border: 3px solid #ffffff; /* white default, overwritten by JS if color */
      margin-bottom: 0.5rem;
    }
    .employee-card h3 {
      margin: 0.3rem 0;
      font-size: 1rem;
      color: #ffffff;
      text-align: center;
    }
    .employee-id {
      font-size: 0.8rem;
      color: #cfd8e3;
      margin-bottom: 0.3rem;
      text-align: center;
    }
    .employee-roles {
      text-align: center;
      margin-bottom: 0.3rem;
    }
    .employee-roles span {
      display: block;
      font-size: 0.8rem;
      color: #cfd8e3;
    }
    .employee-email {
      margin-top: auto;
      font-size: 0.75rem;
      color: #00bfff;
      text-decoration: none;
      word-break: break-all;
      text-align: center;
      padding-bottom: 0.3rem;
    }
    #projects.no-projects,
    #employees.no-employees {
      text-align: center;
      color: #ff6666;
      font-style: italic;
    }

    /* ABOUT US POPUP OVERLAY - fixed to viewport */
.aboutus-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Popup box remains centered via flex parent */
.aboutus-popup {
  background-color: #1e1e1e;
  border: 2px solid #ffffff;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80%;
  overflow: auto;
  position: relative;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  animation: popupFadeIn 0.2s ease-out;
  /* No need for top/left since parent flex centers it */
  z-index: 1001;
}

.aboutus-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.aboutus-popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #00bfff;
}
.aboutus-popup-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  padding: 0;
}
.aboutus-popup-close:hover {
  color: #ff6666;
}

.aboutus-popup-content {
  font-size: 1rem;
  line-height: 1.4;
}
.aboutus-popup-content pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#version-island {
  position: fixed;
  bottom: 8px;
  right: 8px;
  background: rgba(30, 30, 30, 0.7);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  z-index: 1000;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}
#version-island:hover {
  background: rgba(30, 30, 30, 0.9);
}
