/* Pixel Pilot - Simplified Retro Pixelated Theme */

/* Import Pixel Fonts */
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

:root {
  /* Simplified Retro Color Palette */
  --primary-color: #4ecca3; /* Main teal/green */
  --secondary-color: #1e6f5c; /* Darker teal/green */
  --accent-color: #eeeeee; /* Light gray for accents */
  --dark-color: #232931; /* Dark background */
  --darker-color: #0f1923; /* Even darker background */
  --light-color: #eeeeee; /* Light text */
  --header-color: #1e6f5c; /* Header background */
  --success-color: #4ecca3; /* Success messages */
  --warning-color: #ffd369; /* Warning messages */
  --error-color: #fc5185; /* Error messages */
  --border-color: #393e46; /* Border color */

  /* Pixel Border */
  --pixel-border: 4px solid var(--border-color);
  --pixel-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);

  --primary-color-rgb: 78, 204, 163; /* RGB values for #4ecca3 */
}

/* Replace fixed pixel units with relative units throughout the file */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "VT323", monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--light-color);
  background-color: var(--dark-color);
  background-image: url("/placeholder.svg?height=400&width=400");
  background-repeat: repeat;
  background-attachment: fixed;
  image-rendering: pixelated;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Pixelated Elements */
.pixel-box {
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  background-color: var(--darker-color);
  padding: 1.25rem;
  margin-bottom: 1.875rem;
  position: relative;
  image-rendering: pixelated;
}

.pixel-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Press Start 2P", cursive;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  text-shadow: 0.1875rem 0.1875rem 0 rgba(0, 0, 0, 0.5);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.5);
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover::after {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background-color: var(--accent-color);
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

/* Header */
header {
  background-color: var(--darker-color);
  border-bottom: var(--pixel-border);
  padding: 1.5rem 0; /* Increased from 1rem to 1.5rem */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem; /* Increased from 1rem to 1.5rem */
  transition: all 0.3s ease;
}

.logo h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem; /* Increased from 0.5rem to 0.75rem */
  color: var(--primary-color);
  text-shadow: 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 0.125rem;
  transition: all 0.3s ease;
}

.logo p {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0;
  transition: all 0.3s ease;
}

/* Compact Header Styles */
header.compact-header {
  padding: 0.75rem 0; /* Increased from 0.5rem to 0.75rem */
}

.compact-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compact-logo {
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
}

.compact-logo h1 {
  font-size: 1.75rem; /* Increased from 1.5rem to 1.75rem */
  margin-bottom: 0;
  margin-right: 1rem;
}

.compact-logo p {
  font-size: 1rem; /* Increased from 0.9rem to 1rem */
}

.compact-nav {
  margin-left: auto;
}

.compact-nav ul {
  margin-bottom: 0;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: all 0.3s ease;
}

nav ul li {
  margin: 0 0.3125rem;
  position: relative;
}

nav ul li a {
  display: block;
  padding: 0.875rem 0.9375rem; 
  color: var(--light-color);
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  text-transform: uppercase;
  border: 0.125rem solid transparent;
  transition: all 0.3s ease;
  margin: 0.25rem 0; /* Added margin between nav items */
}

nav ul li a:hover {
  color: var(--primary-color);
  border: 0.125rem solid var(--primary-color);
  box-shadow: 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.5);
}

nav ul li.active a {
  color: var(--accent-color);
  border: 0.125rem solid var(--primary-color);
  background-color: var(--secondary-color);
  box-shadow: 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.5);
}

nav ul li a:hover::after {
  display: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--darker-color);
  min-width: 12.5rem;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--light-color);
  padding: 0.75rem 1rem;
  display: block;
  font-size: 0.7rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 3rem 0;
  background-color: var(--darker-color);
  margin-bottom: 2rem;
  border-bottom: var(--pixel-border);
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=200&width=1200") center / cover;
  opacity: 0.1;
  z-index: -1;
  image-rendering: pixelated;
}

.page-header h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3rem;
  text-shadow: 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.7);
}

.page-header p {
  color: var(--light-color);
  font-size: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-intro h2 {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--secondary-color);
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  margin-bottom: 1.5rem;
}

.section-intro p {
  max-width: 65rem;
  margin: 0 auto;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* Cards and Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.card {
  background-color: var(--darker-color);
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  padding: 1.25rem;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: var(--primary-color);
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--darker-color);
  border: none;
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0.125rem solid var(--border-color);
  box-shadow: 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
  transform: translate(0.125rem, 0.125rem);
  box-shadow: 0.125rem 0.125rem 0 rgba(0, 0, 0, 0.5);
}

.btn:hover::after {
  display: none;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
  border: var(--pixel-border);
}

th,
td {
  padding: 0.75rem 0.9375rem;
  text-align: left;
  border-bottom: 0.125rem solid var(--border-color);
}

th {
  background-color: var(--secondary-color);
  color: var(--light-color);
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  text-transform: uppercase;
}

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Code Blocks */
.code-snippet {
  background-color: var(--darker-color);
  border: var(--pixel-border);
  padding: 1.25rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.code-snippet pre {
  font-family: "VT323", monospace;
  font-size: 1.1rem;
  color: var(--light-color);
}

.code-snippet code {
  display: block;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--darker-color);
  border-top: var(--pixel-border);
  padding: 3rem 0 1.5rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=200&width=1200") center / cover;
  opacity: 0.1;
  z-index: -1;
  image-rendering: pixelated;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.875rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 0.9375rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--border-color);
  color: var(--light-color);
  border: 0.125rem solid var(--border-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--darker-color);
  transform: translateY(-3px);
}

.social-icon:hover::after {
  display: none;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 0.125rem solid var(--border-color);
  font-size: 1rem;
}

/* Special Elements */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::after {
  content: "";
  position: absolute;
  width: 0.375rem;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -0.1875rem;
}

.timeline-item {
  padding: 0.625rem 2.5rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  background-color: var(--primary-color);
  border: 0.25rem solid var(--dark-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -0.875rem;
}

.timeline-item:nth-child(even)::after {
  left: -0.875rem;
}

.timeline-content {
  padding: 1.25rem;
  background-color: var(--darker-color);
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  position: relative;
}

.timeline-date {
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes pixel-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: pixel-fade-in 0.5s ease forwards;
}

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

  h2 {
    font-size: 1.7rem;
  }

  .timeline-container::after {
    left: 1.9375rem;
  }

  .timeline-item {
    padding-left: 4.375rem;
    padding-right: 1.5625rem;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 0.9375rem;
  }
}

@media (max-width: 48rem) {
  /* 768px */
  body {
    font-size: 1.125rem;
  }

  .logo h1 {
    font-size: 2rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 0.3125rem 0;
  }

  .dropdown-content {
    position: static;
    display: none;
    width: 100%;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

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


  /* Ensure compact header still works on mobile */
  .compact-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-logo {
    flex-direction: column;
    margin-bottom: 0.5rem;
  }

  .compact-logo h1 {
    font-size: 1.5rem;
    margin-right: 0;
    margin-bottom: 0.2rem;
  }

  .compact-nav {
    width: 100%;
  }
}

/* Special Classes */
.pixel-border {
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
}

.pixel-bg {
  background-color: var(--darker-color);
  border: var(--pixel-border);
  padding: 20px;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.rating {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
}

.rating.success {
  background-color: var(--success-color);
  color: var(--darker-color);
}

.rating.partial {
  background-color: var(--warning-color);
  color: var(--darker-color);
}

.rating.failure {
  background-color: var(--error-color);
  color: var(--light-color);
}

/* Pixelated Images */
.pixel-image {
  image-rendering: pixelated;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
}

/* Retro UI Elements */
.retro-window {
  border: var(--pixel-border);
  background-color: var(--darker-color);
  margin-bottom: 2rem;
  overflow: hidden;
}

.retro-window-header {
  background-color: var(--secondary-color);
  padding: 0.625rem 0.9375rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--pixel-border);
}

.retro-window-title {
  font-family: "Press Start 2P", cursive;
  font-size: 0.9rem;
  color: var(--light-color);
  margin: 0;
}

.retro-window-controls {
  display: flex;
  gap: 0.3125rem;
}

.retro-window-button {
  width: 0.9375rem;
  height: 0.9375rem;
  border: 0.125rem solid var(--border-color);
  cursor: pointer;
}

.retro-window-button.close {
  background-color: var(--error-color);
}

.retro-window-button.minimize {
  background-color: var(--warning-color);
}

.retro-window-button.maximize {
  background-color: var(--success-color);
}

.retro-window-content {
  padding: 1.25rem;
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Pixel Art Icons */
.pixel-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  margin-right: 10px;
  vertical-align: middle;
}

/* Retro Progress Bar */
.retro-progress {
  height: 20px;
  background-color: var(--darker-color);
  border: var(--pixel-border);
  margin-bottom: 1.5rem;
  position: relative;
}

.retro-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.retro-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  color: var(--light-color);
}

/* Retro Tabs */
.retro-tabs {
  display: flex;
  border-bottom: var(--pixel-border);
  margin-bottom: 2rem;
}

.retro-tab {
  padding: 0.625rem 1.25rem;
  background-color: var(--darker-color);
  border: var(--pixel-border);
  border-bottom: none;
  margin-right: 0.3125rem;
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
  color: var(--light-color);
  cursor: pointer;
}

.retro-tab.active {
  background-color: var(--primary-color);
  color: var(--darker-color);
  position: relative;
}

.retro-tab.active::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: var(--primary-color);
}

.retro-tab-content {
  display: none;
  padding: 1.25rem;
  background-color: var(--darker-color);
  border: var(--pixel-border);
  border-top: none;
}

.retro-tab-content.active {
  display: block;
}

/* Pixel Art Decorations */
.pixel-decoration {
  position: absolute;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: -1;
  opacity: 0.5;
}

/* Retro Alerts */
.retro-alert {
  padding: 0.9375rem;
  margin-bottom: 1.5rem;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  font-family: "Press Start 2P", cursive;
  font-size: 0.8rem;
}

.retro-alert.info {
  background-color: var(--secondary-color);
  color: var(--light-color);
}

.retro-alert.warning {
  background-color: var(--warning-color);
  color: var(--darker-color);
}

.retro-alert.error {
  background-color: var(--error-color);
  color: var(--light-color);
}

.retro-alert.success {
  background-color: var(--success-color);
  color: var(--darker-color);
}

/* Pixel Art Background Elements */
.pixel-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=200&width=400") repeat-x;
  opacity: 0.1;
  animation: clouds 60s linear infinite;
  z-index: -1;
  image-rendering: pixelated;
}

@keyframes clouds {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 1000px 0;
  }
}

.pixel-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("/placeholder.svg?height=200&width=400") repeat;
  opacity: 0.2;
  z-index: -1;
  image-rendering: pixelated;
}

/* Retro Loader */
.retro-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 4px solid var(--primary-color);
  border-radius: 0;
  animation: retro-spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes retro-spin {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pixel Art Dividers */
.pixel-divider {
  height: 0.5rem;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color) 16px,
    var(--secondary-color) 16px,
    var(--secondary-color) 32px
  );
  margin: 2rem 0;
  border: var(--pixel-border);
}

/* Terminal Effect */
.terminal-text {
  font-family: "VT323", monospace;
  color: var(--primary-color);
  background-color: var(--darker-color);
  padding: 1.25rem;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  position: relative;
  overflow: hidden;
}

.terminal-text::before {
  content: ">";
  position: absolute;
  left: 10px;
  color: var(--primary-color);
}

.terminal-text p {
  margin-left: 1.25rem;
}

/* CRT Effect */
.crt-effect {
  position: relative;
  overflow: hidden;
}

.crt-effect::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.crt-effect::after {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.54263;
  }
  90% {
    opacity: 0.33333;
  }
  95% {
    opacity: 0.76923;
  }
  100% {
    opacity: 0.54545;
  }
}

/* Scanline effect */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.3);
  z-index: 99;
  animation: scanline 6s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

/* Pixel Grid */
.pixel-grid {
  background-size: 20px 20px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.member-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.member-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: var(--border-color);
  color: var(--light-color);
  border: 0.125rem solid var(--border-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.member-social-link:hover {
  background-color: var(--primary-color);
  color: var(--darker-color);
  transform: translateY(-3px);
}

.member-social-link:hover::after {
  display: none;
}

/* Terminal Table Styles - Enhanced */
.terminal-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem 1.25rem; /* Match the left margin of terminal text */
  font-family: "VT323", monospace;
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
}

.terminal-text table th,
.terminal-text table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid var(--primary-color);
  position: relative;
}

.terminal-text table th {
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: bold;
  text-transform: uppercase;
}

.terminal-text table tr {
  position: relative;
}

.terminal-text table tr:before {
  content: ">";
  position: absolute;
  left: -1.25rem;
  color: var(--primary-color);
  opacity: 0.5;
}

.terminal-text table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.2);
}

.terminal-text table tr:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

/* Add a subtle CRT flicker to the table */
.terminal-text table {
  animation: terminal-flicker 0.3s infinite alternate;
}

@keyframes terminal-flicker {
  0% {
    opacity: 0.97;
  }
  100% {
    opacity: 1;
  }
}

/* Table row hover effect and popup */
.terminal-text table tr {
  cursor: pointer;
  position: relative;
}

.terminal-text table tr:hover {
  background-color: rgba(var(--primary-color-rgb), 0.2);
}

.row-details-popup {
  display: none;
  position: fixed;
  z-index: 1000;
  width: 90%;
  max-width: 800px;
  max-height: 80vh; /* Adjust this value based on your navbar height */
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  background-color: var(--darker-color);
  top: 20vh; /* Set this to be below your navbar height */
  left: 50%;
  transform: translateX(-50%); /* Only transform X, not Y */
  overflow: hidden;
}

.row-details-popup.active {
  display: block;
}

.popup-content {
  padding: 0;
  margin: 0;
  max-height: calc(80vh - 50px); /* Account for header height */
  overflow-y: auto; /* Add vertical scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--darker-color);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: var(--pixel-border);
  background-color: var(--secondary-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.popup-header h4 {
  margin: 0;
  color: var(--light-color);
  font-size: 1rem;
}

.close-popup {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-color);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--light-color);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-popup:hover {
  background-color: var(--primary-color);
  color: var(--darker-color);
}

.details-grid {
  padding: 1rem;
}

.details-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(var(--primary-color-rgb), 0.3);
  padding-bottom: 0.5rem;
}

.details-label {
  color: var(--primary-color);
  font-weight: bold;
}

.details-value {
  color: var(--light-color);
  white-space: pre-line;
}

/* Add modal overlay to prevent background interaction */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.modal-overlay.active {
  display: block;
}

/* Custom scrollbar for Webkit browsers */
.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: var(--darker-color);
}

.popup-content::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

/* Terminal effect for the popup */
.popup-content.terminal-text::before {
  display: none;
}

/* Add this to the end of your styles.css file */
.section-intro p {
  text-align: center;
}

/* Center align system design content */
.system-architecture p {
  text-align: center;
}

.system-architecture img,
.Design.Patterns img,
.packages-api img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.systemarchitecture p {
  text-align: center;
}

.systemarchitecture img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

html {
  scroll-padding-top: 0px; /* Adjust this value based on your navbar height */
}

/* For older browsers that don't support scroll-padding */
section[id] {
  padding-top: 0px;
  margin-top: 0px;
}