/* ===================== RESET & BASE ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    background-color: #E0E0E0; /* lab gray background */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.site-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: flex-start; /* allow content to stack from top */
}


/* ===================== BACKGROUND ===================== */

#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;  /* behind .grid */
  pointer-events: none;
  background-color: #e0e0e0; /* lab gray */
}


/* ===================== HEADER ===================== */
.site-header {
  width: 100%;
  text-align: center;
  margin: 40px auto 20px auto;
  z-index: 2;
  position: relative;
}

.site-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #1E3A8A; /* deep blue */
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* subtle shadow for readability */
}

.site-header p {
    color: #0D1F3C; /* dark navy/indigo – contrasts gray nicely */
    font-weight: 500; /* makes it more readable */
    font-size: 1.1rem; 
    text-shadow: 0 1px 2px rgba(255,255,255,0.2); /* subtle glow for separation */
}


/* ===================== GRID ===================== */
main.grid {
  flex: 1 0 auto; /* allow grid to grow and push footer down */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns on desktop */
  gap: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 1400px;
  justify-items: stretch;   /* stretch cards to fill each column */
}

/* Responsive behavior */
@media (max-width: 1024px) {
  main.grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 640px) {
  main.grid {
    grid-template-columns: 1fr; /* 1 column for phones */
  }
}

/* ===================== CARD ===================== */
.card {
  display: flex;               /* flex allows content alignment inside */
  flex-direction: column;
  background: rgba(20,20,40,0.7);
  border-radius: 12px;
  overflow: hidden;
  padding: 1rem;
  text-align: left;
  color: #ffffff;
  text-decoration: none;       /* remove underline if entire card is a link */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  background: rgba(30,58,138,0.8);
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.card-content {
  padding: 16px;
  color: #ffffff;
}

.card-content h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #ffffff;
}

.card-content p {
  font-size: 0.95rem;
  color: #ffffff;
}

.card-content a, .card a {
  color: #ffffff !important;
  text-decoration: none !important;
}

.card-content a:hover, .card a:hover {
  color: #FFD700 !important;
}


/* ===================== FOOTER ===================== */
footer {
    margin-top: auto;  /* push footer to bottom */
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #1E3A8A; 
    border-top: 2px solid #1E3A8A;
    background: rgba(255,255,255,0.15); /* slightly stronger for visibility */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15); /* floating effect */
    width: 100%;        /* make footer span full width */
    z-index: 3;         /* ensure above particle canvas */
    position: relative; /* keep in normal flow */
}



/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  main.grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
  }
}

@media (max-width: 640px) {
  main.grid {
    grid-template-columns: 1fr; /* 1 column for phones */
  }
}

