@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Orbitron:wght@700;900&family=Poppins:wght@300;400;600&display=swap');

:root {
  --dark-blue: #0d1b2a;
  --mid-blue: #1b2d45;
  --light-blue: #00a6fb;
  --accent-orange: #ff9f1c;
  --text-light: #e0e1dd;
}

body {
  background-color: var(--dark-blue);
  color: var(--text-light);
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  margin: 0;
  overflow-x: hidden;
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-blue);
}
::-webkit-scrollbar-thumb {
  background: var(--mid-blue);
  border-radius: 10px;
  border: 2px solid var(--dark-blue);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}


.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 80px auto 50px;
  color: var(--light-blue);
}

h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: var(--light-blue);
  transition: color 0.3s ease;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-light);
}


nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
  box-sizing: border-box;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-image {
  height: 60px;
  width: auto;
}

.logo-text {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  color: var(--text-light);
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-brand:hover .logo-text {
  color: var(--light-blue);
}

.nav-links {
  display: flex;
  align-items: center; 
  gap: 30px;
  height: 100%;
}

.nav-link {
  color: var(--text-light);
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  padding: 5px 10px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--mid-blue);
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 1;
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 0; 
  border: 1px solid rgba(224, 225, 221, 0.1);
  top: 85%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, top 0.3s ease;
}

.dropdown-content a {
  color: var(--text-light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: rgba(0, 166, 251, 0.2);
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  top: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 5px;
  transition: all 0.3s linear;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.mobile-nav a {
  font-size: 2rem;
  color: var(--text-light);
  margin: 20px 0;
  font-family: 'Orbitron', sans-serif;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  line-height: 1.2;
  letter-spacing: -1.5px;

}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-size: 4.5rem;
  margin-bottom: 15px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  word-spacing: 12px;
}

.hero p {
  font-size: 1.4rem;
  color: rgba(224, 225, 221, 0.9);
  opacity: 0;
  animation: slideUp 1s ease-out 1s forwards;
  letter-spacing: .7px;
  word-spacing: 0px;

}

.hero-content p {
  line-height: 1.6;
  max-width: 650px;
  margin: 1rem auto 0;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 24px;
  height: 24px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(-45deg);
  animation: pulse 2s infinite;
  z-index: 2;
}

@keyframes pulse {
  0% { opacity: 0.5; transform: translateX(-50%) rotate(-45deg) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) rotate(-45deg) scale(1.1); }
  100% { opacity: 0.5; transform: translateX(-50%) rotate(-45deg) scale(1); }
}


.athlete-profiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.card-container {
  perspective: 1500px;
  flex: 1 1 250px;
  max-width: 280px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
  background: rgba(27, 45, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 166, 251, 0.3);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  position: relative;
  width: 100%;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(to right, var(--light-blue), var(--accent-orange)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 166, 251, 0.3), transparent 40%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.card:hover .card-glow {
  opacity: 1;
}

.card-content {
  padding: 25px;
  transform: translateZ(20px);
}



.card img {
  width: 40%;
  

  height: 250px; 

 
  object-fit: cover;
  border-bottom: none;
  border-right: 1px solid rgba(0, 166, 251, 0.2);
}

#lebron-img {object-position: 15% 50%;}
#ronaldo-img {object-position:65% 50%;}
#mikep-img {object-position:38% 50%;}

/* In your style.css file */

.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Default to 3 columns */
  gap: 30px;
  margin-bottom: 80px;
}

a.science-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.science-card {
  background: rgba(27, 45, 69, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- Hovers & Interactive States --- */
a.science-card-link:hover .science-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
a.science-card-link:hover .science-card::before {
  opacity: 1;
}
a.science-card-link:hover .science-card h3 {
  color: var(--accent-orange);
}
a.science-card-link:hover .science-card .science-card-glow {
  opacity: 1;
}

/* --- Card Content & Typography --- */
.science-card h3 {
  margin-top: 0;
  border-bottom: 2px solid rgba(0, 166, 251, 0.5);
  padding-bottom: 10px;
}
.science-card p {
  flex-grow: 1;
  color: rgba(224, 225, 221, 0.9);
}

/* --- "Featured" Card Rule --- */
.featured-card {
  grid-column: 1 / -1;
}

/* --- Responsive Layout for Tablets --- */
@media (max-width: 992px) {
  .science-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 768px) {
  .science-grid {
    grid-template-columns: 1fr;
  }
  .science-card-link:nth-child(-n+3) {
    grid-column: auto; /* Stop the featured cards from spanning */
  }
}


.athlete-page-header {
  padding-top: 120px;
  text-align: center;
  margin-bottom: 50px;
}

.athlete-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
}

.athlete-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin: 10px auto 0;
  color: var(--text-light);
  opacity: 0.9;
  text-align: center;
}

.topic-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 100px 0;
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.topic-section:nth-of-type(odd) {
  transform: translateX(-50px);
}

.topic-section:nth-of-type(even) {
  transform: translateX(50px);
}

.topic-section.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.topic-section.image-right .topic-image {
  grid-column: 2;
  grid-row: 1;
}
.topic-section.image-right .text-content {
  grid-column: 1;
  grid-row: 1;
}

.topic-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.topic-image:hover {
  transform: scale(1.03);
}

.text-content h3 {
  font-size: 2.2rem;
  margin-top: 0;
  border-bottom: 3px solid var(--accent-orange);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.8;
}

footer {
  text-align: center;
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(224, 225, 221, 0.2);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(224, 225, 221, 0.7);
}


.article-header-banner {
  width: 100%;
  height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 80px;
}

.article-header-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: var(--bg-image);
  filter: brightness(0.4);
  z-index: 1;
}

.article-header-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.article-header-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}

.article-header-content .article-summary {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 15px auto 0;
  opacity: 0.9;
}

.article-content-wrapper {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.article-body h2 {
  font-size: 2.2rem;
  text-align: left;
  color: var(--light-blue);
  margin-top: 50px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-orange);
  padding-bottom: 10px;
}

.article-body h3 {
  font-size: 1.6rem;
  color: var(--accent-orange);
  margin-top: 30px;
}

.article-body p, .article-body li {
  font-size: 1.1rem;
  line-height: 1.9;
}

.article-body ul {
  list-style-type: none;
  padding-left: 0;
}

.article-body li {
  padding-left: 1.5em;
  position: relative;
}

.article-body li::before {
  content: '■';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-size: 1.2em;
  line-height: 1;
}

.key-terms-section, .sources-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(224, 225, 221, 0.2);
  text-align: center;
}

.key-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.key-term-card {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-term-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.key-term-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent-orange);
  margin: 0 0 10px 0;
}

.key-term-card p {
  font-size: 1rem;
  margin: 0;
  color: rgba(224, 225, 221, 0.9);
}

.sources-list {
  display: inline-block;
  list-style-type: decimal;
  padding-left: 20px;
  max-width: 800px;
  margin: 0;
  text-align: left;
}

.sources-list li {
  margin-bottom: 25px;
  line-height: 1.6;
  color: rgba(224, 225, 221, 0.9);
}

.sources-list li a {
  font-weight: 600;
  word-break: break-all;
}


.quiz-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(224, 225, 221, 0.2);
  text-align: center;
}

.quiz-question {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: left;
}

.quiz-question p {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.quiz-question label {
  display: block;
  background-color: rgba(13, 27, 42, 0.7);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quiz-question label:hover {
  background-color: var(--dark-blue);
}

.quiz-question input[type="radio"] {
  margin-right: 10px;
}

#quiz-results {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  display: none;
}

#quiz-results.correct {
  background-color: rgba(25, 135, 84, 0.3);
  border: 1px solid #198754;
  color: #a3cfbb;
}

#quiz-results.incorrect {
  background-color: rgba(220, 53, 69, 0.3);
  border: 1px solid #dc3545;
  color: #f0b9c0;
}


.cta-section {
  text-align: center;
 max-width: 700px;  
  margin: 100px auto; 
  padding: 40px;     
  background: rgba(27, 45, 69, 0.5);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-section h2 {
  margin-top: 0;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 20px auto 30px;
  color: rgba(224, 225, 221, 0.9);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}


@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .article-header-content h1 { font-size: 2.5rem; }
  .athlete-title { font-size: 2.5rem; }
  
  .topic-section,
  .topic-section:nth-of-type(odd),
  .topic-section:nth-of-type(even) {
    grid-template-columns: 1fr;
    gap: 30px;
    transform: translateY(30px);
  }
  .topic-section.image-right .topic-image {
    grid-column: 1;
    grid-row: 1;
  }
  .topic-section.image-right .text-content {
    grid-column: 1;
    grid-row: 2;
  }
  .topic-section.is-visible {
    transform: translateY(0);
  }
}

.crispr-simulator-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(224, 225, 221, 0.2);
}

.simulator-wrapper {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 30px;
}

.dna-sequence-container {
  position: relative;
  background-color: var(--dark-blue);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 30px;
}

.dna-sequence-container p {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: var(--text-light);
}

#dna-sequence {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 2px;
  font-weight: bold;
}

.mutation {
  color: var(--accent-orange);
}

.cured {
  color: var(--light-blue);
}

.simulator-controls {
  text-align: center;
}

.simulator-controls p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.simulator-controls label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

#guide-rna-input {
  display: block;
  width: 80%;
  max-width: 300px;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 166, 251, 0.3);
  background-color: var(--dark-blue);
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
}

#simulator-message {
  margin-top: 20px;
  font-weight: bold;
  height: 20px;
}

#cas9-enzyme {
  position: absolute;
  top: 50%;
  left: -100px;
  width: 80px;
  height: 40px;
  transform: translateY(-50%);
  z-index: 5;
}

.enzyme-top, .enzyme-bottom {
  position: absolute;
  width: 100%;
  height: 18px;
  background: var(--light-blue);
  border-radius: 10px;
}

.enzyme-top { top: 0; }
.enzyme-bottom { bottom: 0; }

@keyframes float-over {
  to { left: calc(50% - 40px); }
}

@keyframes snip-effect {
  0% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 30px 15px var(--accent-orange); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes float-away {
  to { left: 110%; }
}


.hidden {
  display: none !important;
}

#mission-select-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

#case-files-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.case-file-card {
    background: var(--mid-blue);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.case-file-card h3 {
    margin-top: 0;
    color: var(--light-blue);
    font-size: 1.5rem;
}

.case-file-card p {
    margin: 5px 0 10px;
}

.case-file-card .difficulty {
    color: var(--accent-orange);
    font-weight: bold;
}

.case-file-card .objective {
    flex-grow: 1;
    color: rgba(224, 225, 221, 0.8);
}

.select-mission-btn {
    margin-top: 20px;
    align-self: center;
}


#crispr-simulator-section {
    margin-top: 40px;
    border-top: 1px solid rgba(224, 225, 221, 0.2);
    padding-top: 40px;
}

.holodeck-controls .button.hidden {
    display: none;
}

#back-to-menu-btn {
    background-color: #6c757d;
}

#back-to-menu-btn:hover {
    background-color: #5a6268;
}

.holodeck-panel.mission-panel p {
    font-size: 1rem;
    line-height: 1.6;
}

.holodeck-panel.mission-panel #mission-objective {
    font-style: italic;
    color: rgba(224, 225, 221, 0.9);
}

.mutation {
  color: var(--accent-orange);
  background-color: rgba(255, 159, 28, 0.15);
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}


.hidden {
  display: none !important;
}

#mission-select-section h2, #crispr-simulator-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

#case-files-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.case-file-card {
    background: var(--mid-blue);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.case-file-card h3 { margin-top: 0; color: var(--light-blue); font-size: 1.5rem; }
.case-file-card p { margin: 5px 0 10px; }
.case-file-card .difficulty { color: var(--accent-orange); font-weight: bold; }
.case-file-card .objective { flex-grow: 1; color: rgba(224, 225, 221, 0.8); }
.select-mission-btn { margin-top: 20px; align-self: center; }

#back-to-main-article-btn {
    display: block;
    margin: 40px auto 0;
    background-color: #6c757d;
}
#back-to-main-article-btn:hover { background-color: #5a6268; }

.holodeck-wrapper {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
  grid-template-areas: 
    "brief workspace"
    "log   workspace";
}

.mission-panel { grid-area: brief; }
.science-log { 
    grid-area: log; 
    display: flex;
    flex-direction: column;
}
.holodeck-workspace { 
    grid-area: workspace; 
    background-color: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holodeck-controls {
  text-align: center;
  margin-top: 20px;
}
.holodeck-controls .button.hidden {
    display: none;
}
.holodeck-panel.mission-panel p {
    font-size: 1rem;
    line-height: 1.6;
}

.dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 2px;
  font-weight: bold;
  position: relative;
  padding: 10px;
}
.dna-strand-container.melt #dna-strand {
  color: rgba(255, 255, 255, 0.4);
}
.mutation {
  color: var(--accent-orange);
  background-color: rgba(255, 159, 28, 0.15);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.dna-strand-container.cut .mutation {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.3);
}
.dna-strand-container.repaired .success-text {
  color: #198754;
  background-color: rgba(25, 135, 84, 0.3);
  padding: 0 4px;
  border-radius: 4px;
}

#pam-scanner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 60px;
  background: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange);
  transform: translateY(-50%);
  opacity: 0;
}
#pam-scanner.scanning { animation: scan 2s linear forwards; }
@keyframes scan {
  0% { left: 10%; opacity: 1; }
  90% { left: 65%; opacity: 1; }
  100% { left: 65%; opacity: 0; }
}

.pam-label {
    position: absolute;
    bottom: -15px;
    left: 65%;
    font-size: 1rem;
    color: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pam-label.visible { opacity: 1; }

#science-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  overflow-y: auto;
  height: 100%;
}
#science-log-list li {
  padding: 8px;
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
  transition: background-color 0.3s ease;
}
#science-log-list li.processing { color: #f0b9c0; }
#science-log-list li.success { color: #a3cfbb; }
#science-log-list li.error { color: #f0b9c0; }
#science-log-list li::before {
  margin-right: 10px;
  font-family: 'Orbitron', sans-serif;
}
#science-log-list li.pending::before { content: '»'; }
#science-log-list li.processing::before { content: '»'; animation: blink 1s infinite; }
#science-log-list li.success::before { content: '✓'; color: var(--light-blue); }
#science-log-list li.error::before { content: '✗'; color: var(--accent-orange); }
@keyframes blink { 50% { opacity: 0; } }

#cas9-enzyme-v2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 10;
}
#cas9-enzyme-v2.deploying { animation: deploy-cas9 2s forwards; }
@keyframes deploy-cas9 {
    from { transform: translate(-50%, -200%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1); }
}
#cas9-enzyme-v2.cutting .cas9-blade.top { animation: snip-top 0.3s forwards; }
#cas9-enzyme-v2.cutting .cas9-blade.bottom { animation: snip-bottom 0.3s forwards; }
#cas9-enzyme-v2.retracting { animation: retract-cas9 1.5s forwards; }
@keyframes retract-cas9 {
    to { transform: translate(-50%, -200%) scale(0); }
}

.cas9-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #6c757d;
    border-radius: 20px 20px 50% 50% / 20px 20px 30px 30px;
    border: 3px solid #495057;
}
.cas9-grna-port {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: var(--mid-blue);
    border: 2px solid var(--light-blue);
    border-radius: 5px;
}
.cas9-blade {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 60px;
    background: var(--light-blue);
    border: 2px solid #fff;
}
.cas9-blade.top {
    transform-origin: bottom right;
    transform: translateX(-100%) rotate(-25deg);
    border-radius: 10px 10px 0 0;
}
.cas9-blade.bottom {
    transform-origin: top right;
    transform: translateX(-100%) rotate(25deg);
    border-radius: 0 0 10px 10px;
}
@keyframes snip-top {
    50% { transform: translateX(-100%) rotate(5deg); }
    100% { transform: translateX(-100%) rotate(-25deg); }
}
@keyframes snip-bottom {
    50% { transform: translateX(-100%) rotate(-5deg); }
    100% { transform: translateX(-100%) rotate(25deg); }
}

#gRNA-strand {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 80px;
    height: 15px;
    background: repeating-linear-gradient(45deg, var(--accent-orange), var(--accent-orange) 5px, #ffbf6c 5px, #ffbf6c 10px);
    border-radius: 5px;
    transform: translateX(-50%);
    opacity: 0;
}
#gRNA-strand.loading { animation: load-grna 1.5s 1s forwards; }
@keyframes load-grna {
    0% { opacity: 0; top: -40px; }
    50% { opacity: 1; top: -40px; }
    100% { opacity: 1; top: -5px; }
}
#gRNA-strand.retracting { animation: retract-grna 1s forwards; }
@keyframes retract-grna {
    to { opacity: 0; top: -40px; }
}


#donor-template {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    background: rgba(25, 135, 84, 0.5);
    border: 1px solid #198754;
    color: #a3cfbb;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    opacity: 0;
    z-index: 20;
}
#donor-template.deploying { animation: deploy-donor 2s forwards; }
@keyframes deploy-donor {
    50% { opacity: 1; bottom: 45%; }
    100% { opacity: 0; bottom: 45%; }
}


.hidden {
  display: none !important;
}

#mission-select-section h2, #crispr-simulator-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

#case-files-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.case-file-card {
    background: var(--mid-blue);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.case-file-card h3 { margin-top: 0; color: var(--light-blue); font-size: 1.5rem; }
.case-file-card p { margin: 5px 0 10px; }
.case-file-card .difficulty { color: var(--accent-orange); font-weight: bold; }
.case-file-card .objective { flex-grow: 1; color: rgba(224, 225, 221, 0.8); }
.select-mission-btn { margin-top: 20px; align-self: center; }

#back-to-main-article-btn {
    display: block;
    margin: 40px auto 0;
    background-color: #6c757d;
}
#back-to-main-article-btn:hover { background-color: #5a6268; }

.holodeck-wrapper {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
  grid-template-areas: 
    "brief workspace"
    "log   workspace";
}

.mission-panel { grid-area: brief; }
.science-log { 
    grid-area: log; 
    display: flex;
    flex-direction: column;
}
.holodeck-workspace { 
    grid-area: workspace; 
    background-color: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holodeck-controls {
  text-align: center;
  margin-top: 20px;
}
.holodeck-controls .button.hidden {
    display: none;
}
.holodeck-panel.mission-panel p {
    font-size: 1rem;
    line-height: 1.6;
}

.dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 2px;
  font-weight: bold;
  position: relative;
  padding: 10px;
}
.dna-strand-container.melt #dna-strand {
  color: rgba(255, 255, 255, 0.4);
}
.mutation {
  color: var(--accent-orange);
  background-color: rgba(255, 159, 28, 0.15);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.dna-strand-container.cut .mutation {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.3);
}
.dna-strand-container.repaired .success-text {
  color: #198754;
  background-color: rgba(25, 135, 84, 0.3);
  padding: 0 4px;
  border-radius: 4px;
}

#pam-scanner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 60px;
  background: var(--accent-orange);
  box-shadow: 0 0 15px var(--accent-orange);
  transform: translateY(-50%);
  opacity: 0;
}
#pam-scanner.scanning { animation: scan 2s linear forwards; }
@keyframes scan {
  0% { left: 10%; opacity: 1; }
  90% { left: 65%; opacity: 1; }
  100% { left: 65%; opacity: 0; }
}

.pam-label {
    position: absolute;
    bottom: -15px;
    left: 65%;
    font-size: 1rem;
    color: var(--accent-orange);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.pam-label.visible { opacity: 1; }

#science-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  overflow-y: auto;
  height: 100%;
}
#science-log-list li {
  padding: 8px;
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
  transition: background-color 0.3s ease;
}
#science-log-list li.processing { color: #f0b9c0; }
#science-log-list li.success { color: #a3cfbb; }
#science-log-list li.error { color: #f0b9c0; }
#science-log-list li::before {
  margin-right: 10px;
  font-family: 'Orbitron', sans-serif;
}
#science-log-list li.pending::before { content: '»'; }
#science-log-list li.processing::before { content: '»'; animation: blink 1s infinite; }
#science-log-list li.success::before { content: '✓'; color: var(--light-blue); }
#science-log-list li.error::before { content: '✗'; color: var(--accent-orange); }
@keyframes blink { 50% { opacity: 0; } }

#cas9-enzyme-v2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 60px;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 10;
}
#cas9-enzyme-v2.deploying { animation: deploy-cas9 2s forwards; }
@keyframes deploy-cas9 {
    from { transform: translate(-50%, -200%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1); }
}
#cas9-enzyme-v2.cutting .cas9-blade.top { animation: snip-top 0.3s forwards; }
#cas9-enzyme-v2.cutting .cas9-blade.bottom { animation: snip-bottom 0.3s forwards; }
#cas9-enzyme-v2.retracting { animation: retract-cas9 1.5s forwards; }
@keyframes retract-cas9 {
    to { transform: translate(-50%, -200%) scale(0); }
}

.cas9-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #6c757d;
    border-radius: 20px 20px 50% 50% / 20px 20px 30px 30px;
    border: 3px solid #495057;
}
.cas9-grna-port {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: var(--mid-blue);
    border: 2px solid var(--light-blue);
    border-radius: 5px;
}
.cas9-blade {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 60px;
    background: var(--light-blue);
    border: 2px solid #fff;
}
.cas9-blade.top {
    transform-origin: bottom right;
    transform: translateX(-100%) rotate(-25deg);
    border-radius: 10px 10px 0 0;
}
.cas9-blade.bottom {
    transform-origin: top right;
    transform: translateX(-100%) rotate(25deg);
    border-radius: 0 0 10px 10px;
}
@keyframes snip-top {
    50% { transform: translateX(-100%) rotate(5deg); }
    100% { transform: translateX(-100%) rotate(-25deg); }
}
@keyframes snip-bottom {
    50% { transform: translateX(-100%) rotate(-5deg); }
    100% { transform: translateX(-100%) rotate(25deg); }
}

#gRNA-strand {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 80px;
    height: 15px;
    background: repeating-linear-gradient(45deg, var(--accent-orange), var(--accent-orange) 5px, #ffbf6c 5px, #ffbf6c 10px);
    border-radius: 5px;
    transform: translateX(-50%);
    opacity: 0;
}
#gRNA-strand.loading { animation: load-grna 1.5s 1s forwards; }
@keyframes load-grna {
    0% { opacity: 0; top: -40px; }
    50% { opacity: 1; top: -40px; }
    100% { opacity: 1; top: -5px; }
}
#gRNA-strand.retracting { animation: retract-grna 1s forwards; }
@keyframes retract-grna {
    to { opacity: 0; top: -40px; }
}


#donor-template {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    background: rgba(25, 135, 84, 0.5);
    border: 1px solid #198754;
    color: #a3cfbb;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    opacity: 0;
    z-index: 20;
}
#donor-template.deploying { animation: deploy-donor 2s forwards; }
@keyframes deploy-donor {
    50% { opacity: 1; bottom: 45%; }
    100% { opacity: 0; bottom: 45%; }
}


.hidden {
  display: none !important;
}

#mission-select-section h2, #crispr-simulator-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.case-file-card { }

.holodeck-wrapper {
  background: var(--mid-blue);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
  grid-template-areas: 
    "brief workspace"
    "log   workspace";
}

.mission-panel { grid-area: brief; }
.science-log { 
    grid-area: log; 
    display: flex;
    flex-direction: column;
    background: rgba(13, 27, 42, 0.5);
    padding: 15px;
    border-radius: 8px;
}
.holodeck-workspace { 
    grid-area: workspace; 
    background: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holodeck-controls {
  text-align: center;
  margin-top: 20px;
}

#dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  padding: 20px 10px;
  color: #fff;
}
.dna-strand-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-blue);
    transition: transform 0.5s ease-in-out;
}
.dna-strand-bg.dna-strand-bg-top { top: 0; }
.dna-strand-bg.dna-strand-bg-bottom { bottom: 0; }
#dna-strand-container.melt .dna-strand-bg-top { transform: translateY(-15px); }
#dna-strand-container.melt .dna-strand-bg-bottom { transform: translateY(15px); }
#dna-strand-container.cut { animation: flash-red 0.5s; }
@keyframes flash-red {
    50% { box-shadow: 0 0 25px 10px rgba(220, 53, 69, 0.7); }
}

.mutation { }

#science-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  overflow-y: auto;
  flex-grow: 1;
}
#science-log-list li {
  padding: 8px;
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
}
#science-log-list li.processing::before { content: '»'; animation: blink 1s infinite; color: var(--accent-orange); }
#science-log-list li.success::before { content: '✓'; color: var(--light-blue); }
#science-log-list li.error::before { content: '✗'; color: #dc3545; }


#cas9-enzyme-v3 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 50px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v3.deploying { animation: deploy-cas9-v3 1s forwards; }
@keyframes deploy-cas9-v3 {
    from { transform: translate(-50%, -250%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1.2); }
}
#cas9-enzyme-v3.cutting .cas9-blade.top { animation: snip-top-v3 0.4s ease-in-out; }
#cas9-enzyme-v3.cutting .cas9-blade.bottom { animation: snip-bottom-v3 0.4s ease-in-out; }
#cas9-enzyme-v3.retracting { animation: retract-cas9-v3 1.5s forwards; }
@keyframes retract-cas9-v3 {
    from { transform: translate(-50%, -50%) scale(1.2); }
    to { transform: translate(-50%, -250%) scale(0); }
}

.cas9-body {
    position: absolute;
    width: 100%; height: 100%;
    background: #6c757d;
    border: 3px solid #adb5bd;
    border-radius: 15px 15px 50% 50% / 15px 15px 25px 25px;
}
.cas9-glow {
    width: 100%; height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 15px 2px var(--light-blue);
    animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
    from { box-shadow: 0 0 10px 2px var(--light-blue); }
    to { box-shadow: 0 0 25px 5px var(--light-blue); }
}

.cas9-blade {
    position: absolute;
    width: 25px; height: 100%;
    background: #e9ecef;
    border: 2px solid #fff;
    left: -20px;
}
.cas9-blade.top {
    transform-origin: 100% 100%;
    transform: rotate(-30deg);
    border-radius: 10px 0 0 0;
}
.cas9-blade.bottom {
    transform-origin: 100% 0%;
    transform: rotate(30deg);
    border-radius: 0 0 0 10px;
}
@keyframes snip-top-v3 {
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-30deg); }
}
@keyframes snip-bottom-v3 {
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(30deg); }
}

#gRNA-strand {
}
#donor-template {
    position: absolute;
    bottom: 25%; left: 50%;
    transform: translate(-50%, 50px);
    opacity: 0;
    z-index: 20;
}
#donor-template.deploying { animation: deploy-donor-v3 2s forwards; }
@keyframes deploy-donor-v3 {
    30%, 70% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 0); }
}
#donor-template::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #198754;
    box-shadow: 0 0 15px 5px #198754;
    opacity: 0;
}
#donor-template.deploying::after { animation: repair-pulse 2s forwards; }
@keyframes repair-pulse {
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(5px);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
#mission-complete-screen:not(.hidden) {
    opacity: 1;
}
#completion-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0;
}
#completion-title.success { color: var(--light-blue); }
#completion-title.failure { color: var(--accent-orange); }
#completion-summary {
    font-size: 1.1rem;
    max-width: 80%;
    margin: 20px 0;
}
#next-mission-btn {
    margin-top: 20px;
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper { }

.holodeck-workspace { 
    grid-area: workspace; 
    background: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  padding: 20px 10px;
  color: #fff;
  z-index: 5;
}
.dna-strand-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-blue);
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}
.dna-strand-bg.dna-strand-bg-top { top: 10px; }
.dna-strand-bg.dna-strand-bg-bottom { bottom: 10px; }
#dna-strand-container.melt .dna-strand-bg-top { transform: translateY(-15px) scaleX(1.1); }
#dna-strand-container.melt .dna-strand-bg-bottom { transform: translateY(15px) scaleX(1.1); }
#dna-strand-container.cut { animation: flash-red 0.5s; }
@keyframes flash-red {
    50% { box-shadow: 0 0 25px 10px rgba(220, 53, 69, 0.7); }
}

#cas9-enzyme-v4 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v4.deploying { animation: deploy-cas9-v4 1s forwards; }
@keyframes deploy-cas9-v4 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v4.cutting .blade.top { animation: snip-top-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.cutting .blade.bottom { animation: snip-bottom-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.retracting { animation: retract-cas9-v4 1.5s forwards; }
@keyframes retract-cas9-v4 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, -250%) scale(0) rotate(45deg); }
}

.cas9-scissor {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.blade {
    position: absolute;
    width: 60%;
    height: 12px;
    background: linear-gradient(90deg, #e9ecef, #adb5bd);
    border: 1px solid #fff;
    left: 45%;
}
.blade.top { top: 20px; transform-origin: 100% 50%; transform: rotate(30deg); }
.blade.bottom { bottom: 20px; transform-origin: 100% 50%; transform: rotate(-30deg); }
.handle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid var(--accent-orange);
    left: 0;
}
.handle.top { top: 0; }
.handle.bottom { bottom: 0; }
@keyframes snip-top-v4 {
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(30deg); }
}
@keyframes snip-bottom-v4 {
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-30deg); }
}


#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mission-complete-screen.hidden { opacity: 0; pointer-events: none; }
.report-content {
    width: 90%;
    max-width: 600px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.5s ease-in-out;
}
#mission-complete-screen:not(.hidden) .report-content {
    transform: scale(1);
}
#completion-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px;
}
#completion-title.success { color: var(--light-blue); text-shadow: 0 0 10px var(--light-blue); }
#completion-title.failure { color: var(--accent-orange); text-shadow: 0 0 10px var(--accent-orange); }
.report-section {
    background: rgba(27, 45, 69, 0.7);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}
.report-section h4 {
    margin: 0 0 10px 0;
    font-family: "Montserrat", sans-serif;
    color: var(--light-blue);
    border-bottom: 1px solid rgba(0, 166, 251, 0.2);
    padding-bottom: 5px;
}
.report-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper { }

.holodeck-workspace { 
    grid-area: workspace; 
    background: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  padding: 20px 10px;
  color: #fff;
  z-index: 5;
}
.dna-strand-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-blue);
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}
.dna-strand-bg.dna-strand-bg-top { top: 10px; }
.dna-strand-bg.dna-strand-bg-bottom { bottom: 10px; }
#dna-strand-container.melt .dna-strand-bg-top { transform: translateY(-15px) scaleX(1.1); }
#dna-strand-container.melt .dna-strand-bg-bottom { transform: translateY(15px) scaleX(1.1); }
#dna-strand-container.cut { animation: flash-red 0.5s; }
@keyframes flash-red {
    50% { box-shadow: 0 0 25px 10px rgba(220, 53, 69, 0.7); }
}

#cas9-enzyme-v4 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v4.deploying { animation: deploy-cas9-v4 1s forwards; }
@keyframes deploy-cas9-v4 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v4.cutting .blade.top { animation: snip-top-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.cutting .blade.bottom { animation: snip-bottom-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.retracting { animation: retract-cas9-v4 1.5s forwards; }
@keyframes retract-cas9-v4 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, -250%) scale(0) rotate(45deg); }
}

.cas9-scissor {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.blade {
    position: absolute;
    width: 60%;
    height: 12px;
    background: linear-gradient(90deg, #e9ecef, #adb5bd);
    border: 1px solid #fff;
    left: 45%;
}
.blade.top { top: 20px; transform-origin: 100% 50%; transform: rotate(30deg); }
.blade.bottom { bottom: 20px; transform-origin: 100% 50%; transform: rotate(-30deg); }
.handle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid var(--accent-orange);
    left: 0;
}
.handle.top { top: 0; }
.handle.bottom { bottom: 0; }
@keyframes snip-top-v4 {
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(30deg); }
}
@keyframes snip-bottom-v4 {
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-30deg); }
}


#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mission-complete-screen.hidden { opacity: 0; pointer-events: none; }
.report-content {
    width: 90%;
    max-width: 600px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.5s ease-in-out;
}
#mission-complete-screen:not(.hidden) .report-content {
    transform: scale(1);
}
#completion-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px;
}
#completion-title.success { color: var(--light-blue); text-shadow: 0 0 10px var(--light-blue); }
#completion-title.failure { color: var(--accent-orange); text-shadow: 0 0 10px var(--accent-orange); }
.report-section {
    background: rgba(27, 45, 69, 0.7);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}
.report-section h4 {
    margin: 0 0 10px 0;
    font-family: "Montserrat", sans-serif;
    color: var(--light-blue);
    border-bottom: 1px solid rgba(0, 166, 251, 0.2);
    padding-bottom: 5px;
}
.report-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper { }

.holodeck-workspace { 
    grid-area: workspace; 
    background: var(--dark-blue);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dna-strand-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.8rem;
  font-weight: bold;
  position: relative;
  padding: 20px 10px;
  color: #fff;
  z-index: 5;
}
.dna-strand-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--light-blue);
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}
.dna-strand-bg.dna-strand-bg-top { top: 10px; }
.dna-strand-bg.dna-strand-bg-bottom { bottom: 10px; }
#dna-strand-container.melt .dna-strand-bg-top { transform: translateY(-15px) scaleX(1.1); }
#dna-strand-container.melt .dna-strand-bg-bottom { transform: translateY(15px) scaleX(1.1); }
#dna-strand-container.cut { animation: flash-red 0.5s; }
@keyframes flash-red {
    50% { box-shadow: 0 0 25px 10px rgba(220, 53, 69, 0.7); }
}

#cas9-enzyme-v4 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v4.deploying { animation: deploy-cas9-v4 1s forwards; }
@keyframes deploy-cas9-v4 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v4.cutting .blade.top { animation: snip-top-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.cutting .blade.bottom { animation: snip-bottom-v4 0.4s ease-in-out; }
#cas9-enzyme-v4.retracting { animation: retract-cas9-v4 1.5s forwards; }
@keyframes retract-cas9-v4 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, -250%) scale(0) rotate(45deg); }
}

.cas9-scissor {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}
.blade {
    position: absolute;
    width: 60%;
    height: 12px;
    background: linear-gradient(90deg, #e9ecef, #adb5bd);
    border: 1px solid #fff;
    left: 45%;
}
.blade.top { top: 20px; transform-origin: 100% 50%; transform: rotate(30deg); }
.blade.bottom { bottom: 20px; transform-origin: 100% 50%; transform: rotate(-30deg); }
.handle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid var(--accent-orange);
    left: 0;
}
.handle.top { top: 0; }
.handle.bottom { bottom: 0; }
@keyframes snip-top-v4 {
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(30deg); }
}
@keyframes snip-bottom-v4 {
    50% { transform: rotate(10deg); }
    100% { transform: rotate(-30deg); }
}


#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mission-complete-screen.hidden { opacity: 0; pointer-events: none; }
.report-content {
    width: 90%;
    max-width: 600px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.5s ease-in-out;
}
#mission-complete-screen:not(.hidden) .report-content {
    transform: scale(1);
}
#completion-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px;
}
#completion-title.success { color: var(--light-blue); text-shadow: 0 0 10px var(--light-blue); }
#completion-title.failure { color: var(--accent-orange); text-shadow: 0 0 10px var(--accent-orange); }
.report-section {
    background: rgba(27, 45, 69, 0.7);
    border: 1px solid rgba(0, 166, 251, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}
.report-section h4 {
    margin: 0 0 10px 0;
    font-family: "Montserrat", sans-serif;
    color: var(--light-blue);
    border-bottom: 1px solid rgba(0, 166, 251, 0.2);
    padding-bottom: 5px;
}
.report-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-workspace { 
    background: #0d1b2a;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pan-background 30s linear infinite;
}
@keyframes pan-background {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

#dna-strand-container.cut #cut-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    border-radius: 50%;
    box-shadow: 
      0 0 15px 5px #fff,
      0 0 25px 15px var(--accent-orange),
      0 0 35px 25px #dc3545;
    animation: particle-burst 0.5s ease-out forwards;
}
@keyframes particle-burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

#cas9-enzyme-v5 {
    position: absolute;
    top: 50%; left: 50%;
    width: 150px; height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v5.deploying { animation: deploy-cas9-v5 1s ease-out forwards; }
@keyframes deploy-cas9-v5 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v5.cutting .blade.top { animation: snip-top-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.cutting .blade.bottom { animation: snip-bottom-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.retracting { animation: retract-cas9-v5 1.5s ease-in forwards; }
@keyframes retract-cas9-v5 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, 250%) scale(0) rotate(45deg); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#mission-complete-screen:not(.hidden) { 
    opacity: 1; 
    pointer-events: all;
}

#completion-title, .report-section, .report-buttons {
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-workspace { 
    background: #0d1b2a;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pan-background 30s linear infinite;
}
@keyframes pan-background {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

#dna-strand-container.cut #cut-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    border-radius: 50%;
    box-shadow: 
      0 0 15px 5px #fff,
      0 0 25px 15px var(--accent-orange),
      0 0 35px 25px #dc3545;
    animation: particle-burst 0.5s ease-out forwards;
}
@keyframes particle-burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

#cas9-enzyme-v5 {
    position: absolute;
    top: 50%; left: 50%;
    width: 150px; height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v5.deploying { animation: deploy-cas9-v5 1s ease-out forwards; }
@keyframes deploy-cas9-v5 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v5.cutting .blade.top { animation: snip-top-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.cutting .blade.bottom { animation: snip-bottom-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.retracting { animation: retract-cas9-v5 1.5s ease-in forwards; }
@keyframes retract-cas9-v5 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, 250%) scale(0) rotate(45deg); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#mission-complete-screen:not(.hidden) { 
    opacity: 1; 
    pointer-events: all;
}

#completion-title, .report-section, .report-buttons {
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper {
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "brief workspace"
    "log   workspace"
    "comp  workspace";
}
.component-panel { 
    grid-area: comp;
    background: rgba(13, 27, 42, 0.5);
    padding: 15px;
    border-radius: 8px;
}
#component-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#component-list li {
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
    opacity: 0.5;
}
#component-list li.active {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(0, 166, 251, 0.1);
    box-shadow: inset 3px 0 0 var(--light-blue);
}


.holodeck-workspace { 
    background: #0d1b2a;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pan-background 30s linear infinite;
}
@keyframes pan-background {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

#dna-strand-container.cut #cut-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    border-radius: 50%;
    box-shadow: 
      0 0 15px 5px #fff,
      0 0 25px 15px #ff00ff,
      0 0 35px 25px #dc3545;
    animation: particle-burst 0.5s ease-out forwards;
}
@keyframes particle-burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

#cas9-enzyme-v5 {
    position: absolute;
    top: 50%; left: 50%;
    width: 150px; height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v5.deploying { animation: deploy-cas9-v5 1s ease-out forwards; }
@keyframes deploy-cas9-v5 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v5.cutting .blade.top { animation: snip-top-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.cutting .blade.bottom { animation: snip-bottom-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.retracting { animation: retract-cas9-v5 1.5s ease-in forwards; }
@keyframes retract-cas9-v5 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, 250%) scale(0) rotate(45deg); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#mission-complete-screen:not(.hidden) { 
    opacity: 1; 
    pointer-events: all;
}

#completion-title, .report-section, .report-buttons {
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper {
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "brief workspace"
    "log   workspace"
    "comp  workspace";
}
.component-panel { 
    grid-area: comp;
    background: rgba(13, 27, 42, 0.5);
    padding: 15px;
    border-radius: 8px;
}
#component-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#component-list li {
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
    opacity: 0.5;
}
#component-list li.active {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(0, 166, 251, 0.1);
    box-shadow: inset 3px 0 0 var(--light-blue);
}


.holodeck-workspace { 
    background: #0d1b2a;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pan-background 30s linear infinite;
}
@keyframes pan-background {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

#dna-strand-container.cut #cut-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    border-radius: 50%;
    box-shadow: 
      0 0 15px 5px #fff,
      0 0 25px 15px #ff00ff,
      0 0 35px 25px #dc3545;
    animation: particle-burst 0.5s ease-out forwards;
}
@keyframes particle-burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

#cas9-enzyme-v5 {
    position: absolute;
    top: 50%; left: 50%;
    width: 150px; height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v5.deploying { animation: deploy-cas9-v5 1s ease-out forwards; }
@keyframes deploy-cas9-v5 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v5.cutting .blade.top { animation: snip-top-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.cutting .blade.bottom { animation: snip-bottom-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.retracting { animation: retract-cas9-v5 1.5s ease-in forwards; }
@keyframes retract-cas9-v5 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, 250%) scale(0) rotate(45deg); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#mission-complete-screen:not(.hidden) { 
    opacity: 1; 
    pointer-events: all;
}

#completion-title, .report-section, .report-buttons {
}


.hidden {
  display: none !important;
}

#crispr-simulator-section h2 { }

.holodeck-wrapper {
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    "brief workspace"
    "log   workspace"
    "comp  workspace";
}
.component-panel { 
    grid-area: comp;
    background: rgba(13, 27, 42, 0.5);
    padding: 15px;
    border-radius: 8px;
}
#component-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#component-list li {
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
    opacity: 0.5;
}
#component-list li.active {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(0, 166, 251, 0.1);
    box-shadow: inset 3px 0 0 var(--light-blue);
}


.holodeck-workspace { 
    background: #0d1b2a;
    background-image: 
        linear-gradient(rgba(0, 166, 251, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 251, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: pan-background 30s linear infinite;
}
@keyframes pan-background {
    from { background-position: 0 0; }
    to { background-position: 300px 300px; }
}

#dna-strand-container.cut #cut-particles {
    position: absolute;
    top: 50%; left: 50%;
    width: 1px; height: 1px;
    border-radius: 50%;
    box-shadow: 
      0 0 15px 5px #fff,
      0 0 25px 15px #ff00ff,
      0 0 35px 25px #dc3545;
    animation: particle-burst 0.5s ease-out forwards;
}
@keyframes particle-burst {
    from { transform: scale(0); opacity: 1; }
    to { transform: scale(2); opacity: 0; }
}

#cas9-enzyme-v5 {
    position: absolute;
    top: 50%; left: 50%;
    width: 150px; height: 70px;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
}
#cas9-enzyme-v5.deploying { animation: deploy-cas9-v5 1s ease-out forwards; }
@keyframes deploy-cas9-v5 {
    from { transform: translate(-50%, -250%) scale(0) rotate(-45deg); }
    to { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}
#cas9-enzyme-v5.cutting .blade.top { animation: snip-top-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.cutting .blade.bottom { animation: snip-bottom-v5 0.4s ease-in-out; }
#cas9-enzyme-v5.retracting { animation: retract-cas9-v5 1.5s ease-in forwards; }
@keyframes retract-cas9-v5 {
    from { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    to { transform: translate(-50%, 250%) scale(0) rotate(45deg); }
}

#mission-complete-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#mission-complete-screen:not(.hidden) { 
    opacity: 1; 
    pointer-events: all;
}

#completion-title, .report-section, .report-buttons {
}


#cas9-enzyme-v5 .cas9-body {
    background: #c33c93;
    border-color: #e58bc5;
}

#cas9-enzyme-v5 .cas9-glow {
    box-shadow: 0 0 15px 2px #ff45d4, inset 0 0 10px #e58bc5;
    animation: pulse-glow-magenta 2s infinite alternate;
}
@keyframes pulse-glow-magenta {
    from { box-shadow: 0 0 10px 2px #ff45d4, inset 0 0 10px #e58bc5; }
    to { box-shadow: 0 0 25px 5px #ff45d4, inset 0 0 15px #e58bc5; }
}

#cas9-enzyme-v5 .handle {
    border-color: #ffc940;
}


#cas9-enzyme-v5:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    cursor: pointer;
}

#cas9-enzyme-v5 .handle:hover {
    filter: drop-shadow(0 0 10px rgba(255, 201, 64, 1));
}

#cas9-enzyme-v5 {
    transition: filter 0.3s ease-in-out;
}


#grna-rings-v5 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 70px;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
}

#grna-rings-v5 .handle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 8px solid #ffc940;
    left: 0;
    pointer-events: all;
    cursor: pointer;
    transition: filter 0.3s ease;
}
#grna-rings-v5 .handle:hover {
    filter: drop-shadow(0 0 10px #ffc940);
}
#grna-rings-v5 .handle.top { top: 0; }
#grna-rings-v5 .handle.bottom { bottom: 0; }

#grna-rings-v5.loading {
    animation: load-grna-v5 1s ease-in-out forwards;
}

@keyframes load-grna-v5 {
    from {
        transform: translate(-200%, -50%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

#grna-rings-v5.retracting {
    animation: retract-grna-v5 1.5s ease-in forwards;
}

@keyframes retract-grna-v5 {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: translate(150%, -50%);
        opacity: 0;
    }
}

#grna-rings-v5 {
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 70px;
    transform: translate(-50%, -50%);
    z-index: 11; 
    pointer-events: none; 
}


#completion-title.success {
    color: #28a745;
    text-shadow: 
        0 0 5px rgba(40, 167, 69, 0.8),
        0 0 10px rgba(40, 167, 69, 0.6),
        0 0 20px rgba(40, 167, 69, 0.4),
        0 0 40px rgba(40, 167, 69, 0.2);
}

#completion-title.failure {
    color: #dc3545;
    text-shadow: 
        0 0 5px rgba(220, 53, 69, 0.8),
        0 0 10px rgba(220, 53, 69, 0.6),
        0 0 20px rgba(220, 53, 69, 0.4),
        0 0 40px rgba(220, 53, 69, 0.2);
}

.report-buttons .button {
    background-color: var(--mid-blue);
    color: var(--text-light);
    border: 1px solid var(--light-blue);
}

.report-buttons .button:hover {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    box-shadow: 0 0 15px var(--light-blue);
}


nav {
    transition: top 0.3s ease-in-out;
}

.nav-up {
    top: -100px;
}



.interactive-3d-section {
    margin: 80px 0;
    text-align: center;
}

.interactive-3d-section h3 {
    font-size: 2.2rem;
    color: var(--light-blue);
    margin-bottom: 15px;
}

#sarcomere-container {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: var(--mid-blue);
    border-radius: 12px;
    border: 1px solid rgba(0, 166, 251, 0.2);
    margin-top: 30px;
}

#3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.sarcomere-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(13, 27, 42, 0.7);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}




.sarcomere-model {
  margin: 2rem auto;
  text-align: center;
}

#3d-canvas {
  width: 100%;
  max-width: 700px;
  height: 400px;
  border-radius: 8px;
  background-color: #f0f0f0;
}

.viewer-controls {
  margin-top: 1rem;
}

.viewer-controls button {
  padding: 10px 20px;
  font-size: 16px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  transition: background-color 0.2s;
}

.viewer-controls button:hover {
  background-color: #e9e9e9;
}

.interactive-diagram {
 background-color: #1e293b;
 border-radius: 12px;
 padding: 3rem;
 margin: 2rem auto;
 max-width: 800px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.interactive-diagram h3 {
 color: #f9fafb;
 text-align: center;
 margin-bottom: 1.5rem;
 font-size: 2rem;
}

.interactive-diagram p {
 color: #d1d5db;
 text-align: center;
 margin-bottom: 2rem;
}

.diagram-controls {
 display: flex;
 justify-content: space-around;
 gap: 0.75rem;
 margin-bottom: 2.5rem;
 flex-wrap: wrap;
}

.control-btn {
 padding: 1rem 2rem;
 border: 2px solid #475569;
 background-color: #334155;
 color: #f9fafb;
 border-radius: 8px;
 cursor: pointer;
 transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
 font-weight: 600;
 font-size: 1rem;
 text-align: center;
}

.control-btn:hover {
 background-color: #0ea5e9;
 border-color: #0ea5e9;
}

.control-btn.active {
 background-color: #0ea5e9;
 border-color: #0ea5e9;
 color: #fff;
}

.diagram-content {
 margin-top: 1.5rem;
}

.content-panel {
 display: none;
 padding: 1.5rem;
 border-top: 1px solid #475569;
 text-align: left;
}

.content-panel.active {
 display: block;
}

.content-panel h4 {
 color: #0ea5e9;
 margin-bottom: 1rem;
 font-size: 1.5rem;
}

.content-panel p {
 color: #d1d5db;
 line-height: 1.6;
}
.content-panel img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  display: block;
  border-radius: 8px;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease-out;
}

.content-panel.active img {
  transform: scale(1);
  opacity: 1;
}

.content-panel img {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 1.5rem auto;
  border-radius: 8px;
  border: 2px solid #475569;
  background-color: #334155;
  padding: 0.5rem;

  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease-out;
}

.content-panel.active img {
  transform: scale(1);
  opacity: 1;
}




.card-container {
  max-width: 100%;
  width: 100%;
}

.card {
  display: flex;
  flex-direction: row;
  text-align: left;
  height: auto;
}

.nav-links .nav-link {
  transition: color 0.3s ease;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.nav-links .nav-link:hover {
  color: #00A6FB;
  border-bottom-color: #00A6FB;
}

/* =================================
   UNIFIED CARD STYLES
   ================================= */

/* --- Main Grid Containers --- */
.athlete-profiles,
.science-grid {
  display: grid;
  gap: 30px;
  margin-bottom: 80px;
}
.athlete-profiles {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.science-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* --- Card Link Wrappers --- */
a.card-container,
a.science-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* --- General Card Styling --- */
.card,
.science-card {
  background: rgba(27, 45, 69, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 166, 251, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Card Content --- */
.card-content,
.science-card-content { /* Assuming you might add this class later */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-content p,
.science-card p {
  flex-grow: 1;
}
.science-card h3 {
  margin-top: 0;
  border-bottom: 2px solid rgba(0, 166, 251, 0.5);
  padding-bottom: 10px;
}

/* In your style.css file */

.science-card blockquote {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-light);
  border-left: 3px solid var(--accent-orange);
  padding-left: 20px;
  margin: 10px 0 20px 0;
  font-style: italic;
}

.science-card p {
  flex-grow: 1; /* This remains to keep the cards aligned */
  color: rgba(224, 225, 221, 0.7); /* Faded slightly to contrast the quote */
}

/* --- Hover States --- */
a.card-container:hover .card,
a.science-card-link:hover .science-card {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 40%;
  object-fit: cover; 
  border-bottom: none;
  border-right: 1px solid rgba(0, 166, 251, 0.2);
}

.card-content {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.card-content p {
  flex-grow: 1;
}

a.card-container {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Add a hover effect to the entire card */
a.card-container:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
  /* In your style.css file */

nav {
  /* ... your other styles ... */
  height: 90px; /* Increased from 80px */
}

.logo-image {
  /* ... your other styles ... */
  height: 70px; /* Increased from 60px */
}

.nav-link {
  /* ... your other styles ... */
  font-size: 1.2rem; /* Increased from 1.1rem */
}

/* Add this to the bottom of your style.css file */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--accent-orange);
  color: var(--dark-blue);
  padding: 12px 25px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background-color: var(--text-light);
  transform: scale(1.05);
  box-shadow: 0 0 15px 5px rgba(255, 159, 28, 0.7);
}

/* =================================
   HOMEPAGE ATHLETE CARD OVERRIDES
   ================================= */

/* --- Grid Container on Homepage --- */
.athlete-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* --- Card Link Wrapper on Homepage --- */
a.card-container {
  text-decoration: none;
  color: inherit;
  display: flex; /* This is crucial for alignment */
}

/* --- Horizontal Card Layout --- */
.athlete-profiles .card {
  flex-direction: row; /* Overrides the default vertical direction */
  padding: 0; /* Remove padding to allow image to touch the edge */
}

/* --- Image in Horizontal Card --- */
.athlete-profiles .card img {
  width: 40%;
  object-fit: cover;
  border-radius: 12px 0 0 12px; 
  height: 100%;
}

/* --- Content in Horizontal Card --- */
.athlete-profiles .card .card-content {
  width: 60%;
  padding: 30px;
  box-sizing: border-box;
}

/* =================================
   QUIZ RESULTS STYLING
   ================================= */

.quiz-results {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  display: none; /* Hidden by default */
}

.quiz-results.correct {
  background-color: rgba(25, 135, 84, 0.3);
  border: 1px solid #198754;
  color: #a3cfbb;
}

.quiz-results.incorrect {
  background-color: rgba(220, 53, 69, 0.3);
  border: 1px solid #dc3545;
  color: #f0b9c0;
}
