/* Global Variables & Design System */
:root {
  /* Palette */
  --color-white: #ffffff;
  --color-off-white: #f8f9fa;
  --color-slate: #334155;
  --color-slate-light: #64748b;
  --color-accent: #d9232d; /* Deep Swiss Red */
  --color-accent-dark: #b01d24;
  --color-teal: #0f766e; /* Neuroscience Teal */
  --color-black: #0f172a;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --blur-amount: 12px;

  /* Typography */
  --font-grotesque: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Lora", "Georgia", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Grid */
  --container-width: 1200px;
  --grid-gap: 2rem;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-off-white);
  color: var(--color-slate);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-grotesque);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* Buttons */
.btn-swiss {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-grotesque);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-swiss:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 35, 45, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-slate);
  color: var(--color-slate);
}

.btn-outline:hover {
  background: var(--color-slate);
  color: var(--color-white);
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: var(--spacing-md);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 999;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
  font-family: var(--font-grotesque);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav-item-rd,
  .nav-item-education {
    display: none;
  }

  .logo {
    display: block;
  }
}

/* Prevent nav movement on hover */
.main-nav:hover {
  transform: translateX(-50%);
}

/* Sticky Utility Bar */
.utility-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  font-family: var(--font-grotesque);
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-end;
}

.lang-switcher a {
  margin-left: 1rem;
  color: var(--color-slate-light);
  font-weight: 500;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--color-accent);
}

.logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.3);
  z-index: -1;
}

.hero-content h1 {
  font-size: 4rem;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

/* Formulation Section (Parallax) */
.split-layout {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.split-text {
  flex: 1;
}
.split-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.molecule-img {
  max-width: 80%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
  transition: transform 0.1s linear; /* Smooth parallax */
}

.icon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.icon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Regulatory (Accordion) */
.accordion-item {
  border-bottom: 1px solid #e2e8f0;
}

.accordion-header {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.2rem;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-slate-light);
}

.accordion-content p {
  padding-bottom: 1.5rem;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.badge:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(217, 35, 45, 0.05);
}

/* Labeling (Hotspots) */
.hotspot-container {
  position: relative;
  display: inline-block;
}

.hotspot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  animation: pulse 2s infinite;
}

.hotspot::after {
  content: "+";
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 14px;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 0.9rem;
  text-align: center;
}

.hotspot:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 140%;
}

/* White Label (Slider) */
.slider-container {
  overflow-x: auto;
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  cursor: grab;
  scrollbar-width: none; /* Hide scrollbar Firefox */
}
.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-item {
  min-width: 300px;
  flex-shrink: 0;
}

.slider-container:active {
  cursor: grabbing;
}

/* Launch (Timeline) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline-node:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-node:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-node.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-node::after {
  content: "";
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  z-index: 1;
  transition: border-color 0.3s ease;
}

.timeline-node:nth-child(odd)::after {
  right: -8px;
}
.timeline-node:nth-child(even)::after {
  left: -8px;
}

.timeline-node.visible::after {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

/* Lab Services (Bento Grid) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bento-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  color: white;
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: -1;
}

.bento-item:hover .bento-bg {
  transform: scale(1.1);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  transform: translateY(60%);
  transition: transform 0.3s ease;
}

.bento-item:hover .bento-content {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(217, 35, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 35, 45, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-node {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    text-align: left !important;
  }
  .timeline-node::after {
    left: 12px !important;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

/* Services Overview List */
.services-overview-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 992px) {
  .services-overview-list {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column; /* Fills columns first as requested (4 rows) */
  }
}

.service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  font-family: var(--font-grotesque);
  font-weight: 600;
  color: var(--color-black);
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.service-link i {
  font-size: 1.2rem;
  color: var(--color-slate-light);
  transition: color 0.3s ease;
}

.service-link:hover i {
  color: var(--color-accent);
}

/* Section 1: Formulation */
.asymmetrical-split {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.asymmetrical-split .split-text {
  flex: 0 0 40%;
}

.asymmetrical-split .split-visual {
  flex: 0 0 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.justified-text {
  text-align: justify;
}

.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-slate);
}

.styled-list li::before {
  content: "—"; /* Em-dash */
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.scrolly-list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scrolly-list li.visible {
  opacity: 1;
  transform: translateY(0);
}

.capsule-img {
  max-width: 80%;
  max-height: 500px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform 0.1s linear; /* Smooth rotation */
}

@media (max-width: 992px) {
  .asymmetrical-split {
    flex-direction: column;
  }
  .asymmetrical-split .split-text,
  .asymmetrical-split .split-visual {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* Section 2: Regulatory */
.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.accordion-item:hover {
  background-color: rgba(248, 250, 252, 0.5); /* Pale slate grey tint */
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-slate);
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--color-accent);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-slate-light);
  display: flex;
  align-items: center;
}

/* Section 3: Labeling */
.labeling-list {
  list-style: none;
  padding: 0;
}

.labeling-list li {
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-slate);
}

.labeling-list li:hover,
.labeling-list li.active {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--color-accent);
  transform: translateX(10px);
}

.labeling-list li i {
  font-size: 1.2rem;
  color: var(--color-slate-light);
}

.labeling-list li:hover i,
.labeling-list li.active i {
  color: var(--color-accent);
}

.hotspot-indicator {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 0 4px rgba(217, 35, 45, 0.3);
  pointer-events: none;
}

.hotspot-indicator.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.magnifier {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  background: white; /* Fallback */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.magnifier.active {
  opacity: 1;
  transform: scale(1);
}

/* Section 4: White Label */
.white-label-showcase {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating-card {
  min-width: 200px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.floating-card:hover {
  transform: translateY(-10px);
}

.floating-card h4 {
  font-size: 1rem;
  margin: 0.5rem 0 0.2rem 0;
}

.floating-card p {
  font-size: 0.8rem;
  color: var(--color-slate-light);
  margin: 0;
}

/* Section 5: Launch Timeline */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, #e2e8f0 0%, var(--color-accent) 100%);
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-empty,
.timeline-content {
  flex: 1;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  margin: 0 2rem;
  transition: all 0.3s ease;
}

.timeline-content {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: all 0.6s ease;
}

.timeline-content.left {
  text-align: right;
  transform: translateX(-30px);
}

.timeline-content.right {
  text-align: left;
  transform: translateX(30px);
}

.timeline-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-row:hover .timeline-dot {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
  .timeline-row {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  .timeline-dot {
    position: absolute;
    left: 12px;
    margin: 0;
  }
  .timeline-content {
    width: 100%;
    text-align: left !important;
    transform: translateX(0) !important;
  }
}

/* Section 6: Lab Services (Dark Mode) */
.bento-item.dark-mode {
  background: rgba(30, 41, 59, 0.8); /* Dark Slate */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.bento-item.dark-mode:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(15, 118, 110, 0.3); /* Teal Glow */
  transform: translateY(-5px);
}

.bento-item.dark-mode h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bento-item.dark-mode p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.bento-item.dark-mode .bento-content {
  position: relative;
  transform: none;
  background: none;
  width: 100%;
  padding: 0;
}

/* Section 7: Workshops */
.workshop-card {
  transition: transform 0.1s ease-out; /* Fast for tilt */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.workshop-card:hover {
  /* Tilt handled by JS, but add shadow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Section 8: Scientific Materials */
.materials-list {
  display: flex;
  flex-direction: column;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.material-item:hover {
  background: rgba(248, 250, 252, 0.5);
  padding-left: 2rem;
}

.material-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.material-info span {
  font-family: var(--font-grotesque);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-slate);
}

.material-arrow {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  color: var(--color-accent);
}

.material-item:hover .material-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Section */
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-visual {
  flex: 0 0 250px;
}

.contact-portrait {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-content {
  flex: 1;
}

.contact-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  position: relative;
  width: fit-content;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-black);
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--color-accent);
}

.copy-btn {
  background: transparent;
  color: var(--color-slate-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

.copy-feedback {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--color-black);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.bento-item.dark-mode {
  background: rgba(30, 41, 59, 0.8); /* Dark Slate */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

.bento-item.dark-mode:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(15, 118, 110, 0.3); /* Teal Glow */
  transform: translateY(-5px);
}

.bento-item.dark-mode h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bento-item.dark-mode p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.bento-item.dark-mode .bento-content {
  position: relative;
  transform: none;
  background: none;
  width: 100%;
  padding: 0;
}

/* Section 7: Workshops */
.workshop-card {
  transition: transform 0.1s ease-out; /* Fast for tilt */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.workshop-card:hover {
  /* Tilt handled by JS, but add shadow */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Section 8: Scientific Materials */
.materials-list {
  display: flex;
  flex-direction: column;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.material-item:hover {
  background: rgba(248, 250, 252, 0.5);
  padding-left: 2rem;
}

.material-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.material-info span {
  font-family: var(--font-grotesque);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--color-slate);
}

.material-arrow {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  color: var(--color-accent);
}

.material-item:hover .material-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact Section */
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-visual {
  flex: 0 0 250px;
}

.contact-portrait {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-bio {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-bio.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-content {
  flex: 1;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  background: white;
}

.message-group {
  position: relative;
}

.message-group textarea {
  padding-bottom: 3.5rem; /* Space for button */
  resize: vertical;
  min-height: 120px;
}

.send-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

/* Contact Options */
.contact-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem; /* Thinner padding */
  position: relative;
  flex: 1;
  min-width: 280px;
  justify-content: space-between;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem; /* Slightly smaller */
  font-weight: 600;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-accent);
}

.contact-text {
  font-size: 0.95rem;
  color: var(--color-slate);
  font-weight: 500;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
  color: white;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--color-slate-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--color-accent);
  color: white;
  transform: scale(1.1);
}

.copy-feedback {
  position: absolute;
  top: -35px;
  right: 0;
  background: var(--color-black);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-weight: 500;
  max-width: 350px;
}

.notification-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.notification-toast.success {
  border-left: 4px solid #25d366;
}

.notification-toast.success i {
  color: #25d366;
  font-size: 1.5rem;
}

.notification-toast.error {
  border-left: 4px solid var(--color-accent);
}

.notification-toast.error i {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.notification-content {
  display: flex;
  flex-direction: column;
}

.notification-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.notification-message {
  font-size: 0.85rem;
  color: var(--color-slate);
}

.copy-feedback.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* Section 7: Workshops */
/* Section 7: Workshops */
.workshop-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6rem; /* Increased spacing */
}

.workshop-item {
  display: flex; /* Flex layout for icon + text */
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* Hidden initially for animation */
  transform: translateY(20px);
}

.workshop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.workshop-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-right: 2rem; /* Increased space between icon and text */
  flex-shrink: 0; /* Prevent icon from shrinking */
  line-height: 1;
}

.workshop-content {
  flex: 1;
}

.workshop-item h4 {
  color: var(--color-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.workshop-item p {
  color: var(--color-slate);
  font-size: 0.95rem;
  margin: 0;
}

/* Staggered Animation Classes */
.workshop-item.animate {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
