 /* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f172a;
  color: white;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* HEADER - Recruiter Magnet */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  border-bottom: 2px solid #38bdf8;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: #94a3b8;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tagline small {
  font-size: 1rem;
  opacity: 0.8;
}

.tagline a {
  color: #38bdf8;
  text-decoration: none;
}

.tagline a:hover {
  text-decoration: underline;
}

/* CONTROLS & FILTERS */
.controls {
  text-align: center;
  margin: 2rem 1rem;
}

.controls button,
.filter-btn {
  padding: 0.75rem 1.5rem;
  margin: 0.25rem;
  background: #38bdf8;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.controls button:hover,
.filter-btn:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.filters {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn.active {
  background: #0ea5e9 !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  transform: translateY(-2px);
}

/* INTRO */
.intro {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.intro h2 {
  color: #38bdf8;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* MAIN GRID */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* LAB CARDS */
.lab {
  display: flex;
  flex-direction: column;
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards ease-out;
  height: 100%;
}

.lab:nth-child(odd) { animation-delay: 0.1s; }
.lab:nth-child(even) { animation-delay: 0.2s; }

.lab:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

/* FILTER ANIMATIONS */
.lab.filtered-out {
  opacity: 0 !important;
  transform: translateY(20px);
  height: 0;
  overflow: hidden;
  margin: 0;
  animation-play-state: paused;
}

.lab:not(.filtered-out) {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

/* IMAGES - Full Cover */
.lab-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.lab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  display: block;
}

.lab:hover img {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.05);
}

.lab-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(56, 189, 248, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lab:hover .lab-image::after {
  opacity: 1;
}

/* LAB CONTENT */
.lab-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lab-content h3 {
  color: #38bdf8;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.lab-content ul {
  list-style: none;
}

.lab-content li {
  background: #0f172a;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-left: 4px solid #38bdf8;
  border-radius: 0 6px 6px 0;
  transition: background 0.3s ease;
}

.lab-content li:hover {
  background: #1e293b;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: #020617;
  margin-top: 4rem;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* LIGHT MODE */
.light-mode {
  background: white;
  color: black;
}

.light-mode .lab {
  background: #f8fafc;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.light-mode header {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom-color: #0ea5e9;
}

.light-mode .tagline {
  color: #64748b;
}

.light-mode .intro h2 {
  color: #0ea5e9;
}

.light-mode .lab-content h3 {
  color: #0ea5e9;
}

.light-mode .lab-content li {
  background: #e2e8f0;
  border-left-color: #0ea5e9;
}

.light-mode .lab-content li:hover {
  background: #cbd5e1;
}

.light-mode footer {
  background: #f1f5f9;
}

.light-mode footer a {
  color: #0ea5e9;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  header {
    padding: 2rem 1rem;
  }
  
  .filters {
    flex-direction: column;
    align-items: center;
  }
}