:root {
  --color-dark-blue: #0A1F3E;
  --color-tech-gray: #2D3A4B;
  --color-bio-green: #4CAF50;
  --color-genetic-turquoise: #26A69A;  
  --color-biomolecular-red: #FF4444;   
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--color-dark-blue);
  color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.biotech-platform {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.platform-header {
  background: linear-gradient(to right, var(--color-dark-blue), var(--color-tech-gray));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--color-genetic-turquoise);
}

.tagline {
  margin: 0;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--color-biomolecular-red);
  font-weight: bold;
  opacity: 1;
}

.language-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.language-selector button {
  background-color: var(--color-genetic-turquoise);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  font-size: clamp(0.8rem, 2vw, 1rem);
}

.language-selector button:hover {
  background-color: var(--color-bio-green);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 1600px;
  margin: 0 auto;
  width: 95%;
}

.card {
  background: rgba(45, 58, 75, 0.7);
  border: 2px solid var(--color-genetic-turquoise);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 1.5rem);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 180px;
  justify-content: center;
  cursor: pointer;
}

.card-icon {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.card h3 {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin: 0.5rem 0;
  color: var(--color-genetic-turquoise);
}

.card p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  margin: 0;
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(38, 166, 154, 0.5);
}

.detail-panel {
  display: flex;
  height: 500px;
}

.left-panel {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgba(10, 31, 62, 0.8);
}

.central-panel {
  width: 70%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(45, 58, 75, 0.6);
}

.questions-header {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: 1rem;
  background: rgba(38, 166, 154, 0.1);
  border-radius: 8px;
}

.questions-header h3 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.question-item {
  margin: 0.5rem 0;
  padding: clamp(0.8rem, 2vw, 1rem);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.question-item:hover {
  background: rgba(38, 166, 154, 0.2);
  transform: translateX(5px);
}

.answer-container {
  padding: 2rem;
  height: 100%;
  animation: fadeIn 0.5s ease;
}

.answer-content {
  background: rgba(255,255,255,0.05);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 12px;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.answer-content h2 {
  color: var(--color-genetic-turquoise);
  margin-bottom: 20px;
}

.answer-container {
  height: auto;
  min-height: 200px;
}

.export-options {
  display: none;
}

.q-icon {
  transition: transform 0.2s ease;
}

.question-item:hover .q-icon {
  transform: translateX(5px);
}

.platform-footer {
  background: linear-gradient(to right, var(--color-tech-gray), var(--color-dark-blue));
  padding: 1rem;
  text-align: center;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: clamp(0.5rem, 2vw, 1rem);
}

.modal-container {
  background: var(--color-tech-gray);
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(38, 166, 154, 0.3);
  border: 1px solid var(--color-genetic-turquoise);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.modal-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.modal-questions {
  width: 30%;
  background: rgba(10, 31, 62, 0.95);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--color-genetic-turquoise);
  overflow-y: auto;
}

.modal-answer {
  width: 70%;
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: clamp(1rem, 3vw, 1.5rem);
  top: clamp(1rem, 3vw, 1.5rem);
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  width: clamp(30px, 5vw, 40px);
  height: clamp(30px, 5vw, 40px);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--color-genetic-turquoise);
  transform: rotate(180deg);
}

@media (max-width: 1400px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 992px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-questions,
  .modal-answer {
    width: 100%;
    height: 50%;
  }

  .modal-questions {
    border-right: none;
    border-bottom: 1px solid var(--color-genetic-turquoise);
  }
}

@media (max-width: 768px) {
  .platform-header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .brand-container {
    justify-content: center;
  }

  .language-selector {
    justify-content: center;
    width: 100%;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .modal-container {
    height: 95vh;
    width: 95%;
  }

  .question-item {
    font-size: 0.9rem;
  }

  .answer-content {
    font-size: 0.9rem;
  }

  .detail-panel {
    flex-direction: column;
    height: auto;
  }
  
  .left-panel, .central-panel {
    width: 100%;
  }

  .modal-content {
    flex-direction: column;
  }
  
  .modal-questions,
  .modal-answer {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .company-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text h1 {
    font-size: 1.2rem;
  }

  .cards-grid {
    gap: 0.8rem;
  }

  .card {
    min-height: 150px;
    padding: 1rem;
  }
}

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

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--color-genetic-turquoise);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-bio-green);
}

@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: var(--color-genetic-turquoise) rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
  }
}

.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--color-genetic-turquoise);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scroll-to-top:hover {
  background-color: var(--color-bio-green);
  transform: translateY(-3px);
}

.scroll-to-top.visible {
  display: flex;
}