/* Bitpanda Colors */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&display=swap');
@font-face {
  font-family: 'Euclid Square';
  src: url('../fonts/EuclidSquare-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Bitpanda Compressed';
  src: url('../fonts/BitpandaCompressed_Desktop-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

:root {
  --panda-green: #103e36;
  --panda-green-dark: #103e36;
  --panda-black: #1a1a1a;
  --panda-white: #ffffff;
  --panda-grey: #f8f9fa;
  --panda-grey-dark: #6c757d;
  --panda-gradient: linear-gradient(180deg, rgb(16, 62, 54) 0%, rgb(0, 0, 0) 100%);
  --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 16px 60px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

/* Body spacing to account for sticky header */
body {
  font-family: 'Inter', sans-serif;
  line-height: 140%; 
  color: var(--panda-black); 
  background-color: var(--panda-white);
  font-size: 12pt;
  font-weight: 400;
  padding-top: 90px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header - Only the main navigation header */
body > header { 
  background: rgb(16, 24, 24);
  color: var(--panda-white); 
  padding: 1.5rem 2rem; 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.logo { 
  max-width: 24px; 
  height: auto;
}

.site-title {
  font-size: 2rem;
  font-weight: 400;
  color: var(--panda-white);
  font-family: 'Euclid Square', sans-serif;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  border-radius: 8px;
  margin: 0 0.25rem;
}

.nav-link:hover {
  color: var(--panda-white);
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: var(--panda-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Main */
main { 
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--panda-white);
}

/* Content container for sections after hero */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero { 
  text-align: center; 
  padding: 6rem 2rem; 
  background: linear-gradient(90deg, rgb(16, 62, 54) 0%, rgb(0, 0, 0) 100%);
  margin-bottom: 4rem;
  margin-top: -90px;
  padding-top: calc(6rem + 90px);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 { 
  font-family: 'Bitpanda Compressed Bold', 'Bitpanda Compressed', sans-serif;
  font-weight: 700 !important;
  font-size: 110px !important;
  line-height: 0.8;
  letter-spacing: normal !important;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--panda-white);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

.hero p { 
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 125%;
  color: var(--panda-white);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.btn { 
  display: inline-block; 
  padding: 1rem 2.5rem; 
  background: transparent;
  color: var(--panda-white); 
  text-decoration: none; 
  border-radius: 100px; 
  font-weight: 400;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn:hover { 
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--panda-white);
}

.btn:active {
  transform: translateY(0);
}

/* Sections */
section { 
  margin: 0; 
  padding: 5rem 0;
  scroll-margin-top: 80px; /* This accounts for the fixed header */
}

section h2 { 
  font-family: 'Bitpanda Compressed', sans-serif;
  font-size: clamp(24pt, 8vw, 48pt); /* At least 2x body copy (12pt) */
  margin-top: 3rem;
  margin-bottom: 3rem; 
  text-align: center; 
  font-weight: 700;
  line-height: 80%;
  color: var(--panda-green);
  text-transform: uppercase;
}

/* Cards Grid */
.cards { 
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem; 
  margin-top: 3rem;
}

/* Carousel styles */
.carousel {
  position: relative;
  margin-top: 2rem;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem * 2) / 3); /* exactly 3 cards visible with 2 gaps */
  gap: 2rem;
  overflow-x: hidden; /* hide during animated scrolls to avoid weirdbars */
  scroll-snap-type: x mandatory;
  padding: 0; /* no arrow padding needed */
  /* Hide scrollbar across browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.carousel-track::-webkit-scrollbar { display: none; } /* WebKit */

.carousel-item { scroll-snap-align: start; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(16, 62, 54, 0.25);
  border: none; cursor: pointer;
}
.carousel-dot.active { background: var(--panda-green); }

.see-all { text-align: center; margin-top: 1.5rem; }

.card { 
  background: #f3f3f2; 
  padding: 2rem; 
  border-radius: 24px; 
  box-shadow: var(--shadow-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

.card::before { display: none; }

.card:hover { 
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.card h3 { 
  font-family: 'Bitpanda Compressed', sans-serif;
  font-size: clamp(24pt, 5vw, 40pt);
  margin-bottom: 1rem; 
  color: var(--panda-green);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}


.card .meta { 
  font-size: 0.9rem; 
  color: var(--panda-grey-dark); 
  margin-top: 1rem;
  font-weight: 500;
}

.card p {
  color: var(--panda-grey-dark);
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 140%;
}

.card .btn {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
}

/* Make the entire card clickable using an overlay link */
.post-card { position: relative; min-height: 600px; max-height: 600px; display: flex; flex-direction: column; }
.post-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card .card-body,
.post-card .card-image { position: relative; z-index: 2; }
.post-card .card-actions .btn { position: relative; z-index: 3; }

/* Vertical post-style card (image on top) */
.post-card {
  display: flex;
  flex-direction: column;
}

.post-card .card-image {
  overflow: hidden;
  border-radius: 24px 24px 0 0; /* visually match card top corners */
  /* Bleed the image fully over card padding and 1px border */
  margin-top: calc(-2rem - 1px);
  margin-right: calc(-2rem - 1px);
  margin-bottom: 1rem;
  margin-left: calc(-2rem - 1px);
  aspect-ratio: 16/9;
  position: relative;
  background: #eaeaea; /* neutral fallback to unify letterboxing before load */
}

.post-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card .card-body {
  display: grid;
  /* Reserve room for exactly 2 lines of header while keeping constant card height */
  grid-template-rows: 70px 52px 1fr 56px; /* title (exactly 2 lines), meta, description, button */
  gap: 0.4rem;
  min-height: 1px;
  flex: 1 1 auto; /* fill remaining height so buttons align */
}

/* Card title styling to match design reference */
.post-card .card-title {
  font-family: 'Bitpanda Compressed', sans-serif;
  font-size: 32px;
  color: var(--panda-green);
  font-weight: 700;
  line-height: 1.1; /* increased for better truncation calculation */
  text-transform: uppercase;
  margin: 0; /* reduce extra gap below title */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* limit to 2 lines max */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* show ellipsis when clamped */
  /* Modern CSS line-clamp for better browser support */
  line-clamp: 2;
  /* Ensure the container properly clips content */
  max-height: 70px; /* matches the grid row height */
  word-wrap: break-word;
}

.post-card .card-meta {
  display: grid;
  grid-template-rows: auto auto; /* labels then date */
  align-content: start;
  gap: 0.35rem;
  margin: 0;
}

.labels { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 0.4rem; 
  align-items: center;
  margin-bottom: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 24px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 2px; /* Space for subtle scroll indicator */
}

.labels::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Removed fade effect - cleaner appearance */


.post-card .card-description {
  color: var(--panda-green);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 6; /* keep height consistent */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Modern CSS line-clamp for better browser support */
  line-clamp: 6;
  /* Ensure proper height calculation and clipping */
  max-height: calc(1.4em * 6); /* 6 lines * line-height */
  word-wrap: break-word;
}

.post-card .card-actions { align-self: end; height: 56px; display: flex; align-items: center; }

.label {
  background: rgba(16, 62, 54, 0.08);
  color: var(--panda-green);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  cursor: default;
}

/* Clean hover effect without weird cursors */
.label:hover {
  background: rgba(16, 62, 54, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16, 62, 54, 0.1);
}

/* Responsive label sizing */
@media (max-width: 768px) {
  .label {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}

.date {
  color: var(--panda-grey-dark);
  font-size: 0.9rem;
}

/* Product-style card layout */
.product-card {
  position: relative;
  display: block;
  min-height: 520px;
}

.product-card .card-content {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  z-index: 1;
}

.product-card .card-title {
  margin-bottom: 1rem;
}

.product-card .card-description {
  font-size: 1.125rem;
  line-height: 140%;
}

.product-card .card-actions {
  margin-top: 0.75rem;
}

.product-card .card-media {
  position: absolute;
  right: -2rem; /* bleed over card padding to reach the edge */
  bottom: -2rem; /* bleed over bottom padding */
  width: 65%;
  height: 85%;
  display: flex;
  align-items: end;
  justify-content: center;
  pointer-events: none;
}

.product-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Experiment Page */
.experiment-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 2rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0 2rem 0;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: var(--panda-grey-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--panda-green);
}

.breadcrumb-separator {
  color: var(--panda-grey-dark);
}

.breadcrumb-current {
  color: var(--panda-black);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.experiment {
  background: var(--panda-white);
  border-radius: 20px;
  overflow: hidden;
}

.experiment-header { 
  text-align: left; 
  padding: 2rem 2rem 1rem 2rem;
  background: transparent;
  position: relative;
}

/* Full-bleed hero image inside the header */
.experiment-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.experiment-header::before { display: none; }

.experiment-hero-wrap {
  margin: 1rem 0 0 0;
  padding: 0;
}

.experiment-hero-block {
  width: 100%;
  max-height: 500px;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
}

.experiment-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0 1rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.experiment-tag {
  background: var(--panda-gradient);
  color: var(--panda-white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experiment-date {
  color: var(--panda-grey-dark);
  font-weight: 500;
  font-size: 1rem;
}

.experiment-title { 
  font-family: 'Bitpanda Compressed', sans-serif;
  font-size: 80px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #00392c;
  line-height: 0.8;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.experiment-excerpt {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 23px;
  color: rgb(16, 62, 54);
  margin-top: 40px;
  line-height: 125%;
  border-left: 5px solid rgb(16, 62, 54);
  padding-left: 20px;
  position: relative;
  z-index: 1;
}

.experiment-content { 
  padding: 0;
}

.content-wrapper {
  padding: 3rem;
}

  .experiment-content h1 { 
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    color: #00392c;
    font-weight: 900;
    line-height: 0.9;
    position: relative;
    padding-bottom: 0.5rem;
  }

  .experiment-content h2 { 
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    color: #00392c;
    font-weight: 700;
    line-height: 0.9;
    position: relative;
  }

  .experiment-content h3 { 
    font-family: 'Inter', sans-serif;
    font-size: 25px;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    color: #00392c;
    font-weight: 700;
    line-height: 0.9;
    position: relative;
  }



.experiment-content p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 140%;
  margin-bottom: 1.5rem;
  color: var(--panda-black);
}

.experiment-content p:first-of-type {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 140%;
  color: var(--panda-black);
}

.experiment-content ul,
.experiment-content ol {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 140%;
  color: var(--panda-black);
  margin-bottom: 1.5rem;
}

.experiment-content li {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12pt;
  line-height: 140%;
  color: var(--panda-black);
  margin-bottom: 0.5rem;
}

.experiment-footer {
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.back-to-experiments {
  flex: 1;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--panda-green);
  color: var(--panda-green);
  padding: 0.8rem 2rem;
}

.btn-outline:hover {
  background: var(--panda-green);
  color: var(--panda-white);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--panda-green);
  color: var(--panda-white);
  border: 2px solid var(--panda-green);
  text-decoration: none;
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: transparent;
  color: var(--panda-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.experiment-share {
  text-align: right;
}

.experiment-share h4 {
  margin-bottom: 1rem;
  color: var(--panda-black);
  font-size: 1rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panda-green);
  color: white;
  text-decoration: none;
  border: 2px solid var(--panda-green);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.share-btn svg {
  flex-shrink: 0;
  color: white;
}

.share-btn:hover {
  background: white;
  color: var(--panda-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.share-btn:hover svg {
  color: var(--panda-green);
}

/* Remove individual platform colors since we're using uniform green */
.share-twitter,
.share-facebook,
.share-linkedin {
  background: var(--panda-green);
  color: white;
  border-color: var(--panda-green);
}

.share-twitter:hover,
.share-facebook:hover,
.share-linkedin:hover {
  background: white;
  color: var(--panda-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* About Section - Homepage */
#about {
  background: #f4f4f4;
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 15vw 0;
  margin-bottom: 0;
  margin-top: 0;
}

#about h2,
#about p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

#about h2 {
  margin-bottom: 2rem;
}

#about p {
  margin-bottom: 1.5rem;
}

#about p:last-of-type {
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  #about h2,
  #about p {
    padding: 0 1rem;
  }
}

#about p {
  font-family: Inter;
  font-size: 12pt !important;
  line-height: 1.4;
  letter-spacing: normal !important;
  text-transform: none;
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
  color: #000000;
  padding: 0 2rem;
}

#about .btn {
  margin-top: 1rem;
}

/* About Page - Dedicated */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 0;
}

.about-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.about-title {
  font-family: 'Bitpanda Compressed', sans-serif;
  font-size: clamp(48px, 8vw, 48pt);
  font-weight: 700;
  color: var(--panda-green);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.about-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  color: var(--panda-grey-dark);
  line-height: 1.4;
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-page .about-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  color: #00392c;
  font-weight: 700;
  line-height: 0.9;
  position: relative;
  text-align: center;
  text-transform: none;
}

.about-section p {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--panda-black);
  margin-bottom: 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.approach-card {
  background: var(--panda-grey);
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid var(--panda-green);
}

.approach-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--panda-green);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.approach-card p {
  font-size: 1rem;
  color: var(--panda-grey-dark);
  margin: 0;
}

blockquote {
  border-left: 4px solid var(--panda-green);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--panda-grey);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--panda-green);
  line-height: 1.5;
}

.about-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer */
footer { 
  background: var(--panda-black); 
  color: var(--panda-white); 
  padding: 3rem 2rem; 
  text-align: center;
}

footer ul { 
  list-style: none; 
  display: flex; 
  justify-content: center; 
  gap: 2.5rem;
  flex-wrap: wrap;
}

footer a { 
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none; 
  transition: color 0.3s ease;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  display: inline-block;
}

footer a:hover { 
  color: #2cec9a;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .hero { 
    padding: 4rem 1rem;
    padding-top: calc(4rem + 90px);
    border-radius: 0;
    margin-left: -50vw;
    margin-right: -50vw;
    left: 50%;
    right: 50%;
    width: 100vw;
    position: relative;
  }
  
  .hero h1 {
    font-size: 90px !important;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .nav-links {
    gap: 1rem;
    justify-content: center;
  }
  
  /* Reduce excessive spacing on mobile */
  section {
    padding: 2.5rem 0;
  }
  
  section h2 {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  /* Make experiments section spacing match about section */
  #experiments {
    padding-top: 0;
    margin-top: 0;
  }
  
  /* Fix header overlap on content pages - minimal spacing like homepage */
  .content-container section {
    padding-top: calc(1rem + 90px);
  }
  
  .cards { grid-template-columns: 1fr; gap: 1.5rem; }
  
  /* Mobile carousel - full width cards with manual scroll positions */
  .carousel-track {
    grid-auto-columns: 100%; /* Full width cards */
    gap: 1rem;
    overflow-x: auto; /* Allow scrolling for carousel functionality */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  .carousel-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  
  .carousel-item {
    scroll-snap-align: start;
  }
  
  /* Ensure dots are visible on mobile - override JS that hides them for <=3 items */
  #experiments-dots {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
  }
  
  .carousel-dots {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
  }
  
  .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(16, 62, 54, 0.25);
    border: none;
    cursor: pointer;
  }
  
  .carousel-dot.active {
    background: var(--panda-green);
  }
  
  /* Mobile carousel script fix */
  @media (max-width: 768px) {
    .carousel-track {
      scroll-behavior: smooth;
    }
  }
  
  .post-card {
    min-height: 500px;
    max-height: 500px;
  }
  
  .post-card .card-title {
    font-size: 28px;
    line-height: 1.0;
    max-height: none;
  }
  
  .post-card .card-description {
    font-size: 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.4em * 3);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  
  .post-card .card-image { 
    margin: -2rem -2rem 1rem -2rem; 
    aspect-ratio: 16/9;
  }
  
  .post-card .card-body {
    grid-template-rows: auto auto 1fr auto;
    gap: 0.75rem;
  }
  
  .post-card .card-title {
    font-size: 28px;
    line-height: 1.0;
    max-height: none;
  }
  
  .post-card .card-description {
    font-size: 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.4em * 3);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }

  .product-card {
    min-height: 420px;
  }
  .product-card .card-content {
    max-width: 100%;
  }
  .product-card .card-media {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 1rem;
    pointer-events: auto;
  }
  .product-card .card-media img {
    width: 100%;
    height: auto;
  }
  
  .card {
    padding: 2rem;
  }
  
  footer ul { 
    flex-direction: column; 
    gap: 1.5rem; 
  }
  
  main {
    padding: 0 1rem;
  }
  
  .experiment-content {
    padding: 0 1rem;
  }

}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
    padding-top: calc(3rem + 90px);
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .post-card .card-image { 
    margin: -1.5rem -1.5rem 1rem -1.5rem;
  }
  
  .post-card .card-title {
    font-size: 26px;
  }
  
  .post-card .card-description {
    font-size: 16px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(1.4em * 3);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  
  section {
    padding: 2rem 0;
    margin: 0;
  }
  
  section h2 {
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  
  /* Make experiments section spacing match about section */
  #experiments {
    padding-top: 0;
    margin-top: 0;
  }
  
  /* Fix header overlap on content pages - minimal spacing like homepage */
  .content-container section {
    padding-top: calc(0.5rem + 90px);
  }
}

/* Responsive for experiment page */
@media (max-width: 768px) {
  .experiment-page {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }
  
  .experiment-title {
    padding: 0 0.5rem;
    margin: 0 0 2rem 0;
    font-size: 55px;
  }
  
  .experiment-header {
    padding: 3rem 0.5rem;
    margin: 0;
  }
  
  .content-wrapper {
    padding: 2rem;
  }
  
  .experiment-footer {
    padding: 2rem;
    flex-direction: column;
    text-align: center;
  }
  
  .experiment-share {
    text-align: center;
  }
  
  .share-buttons {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .share-btn {
    width: 40px;
    height: 40px;
  }
  
  .experiment-meta {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  /* Scale text sizes proportionally to mobile title */
  .experiment-tag {
    font-size: 0.9rem;
  }
  
  .experiment-date {
    font-size: 0.9rem;
  }
  
  .experiment-excerpt {
    font-size: 16px;
  }
  
  .experiment-content h1 {
    font-size: 28px;
  }
  
  .experiment-content h2 {
    font-size: 22px;
  }
  
  .experiment-content h3 {
    font-size: 17px;
  }
  
  .about-page {
    padding: calc(2rem + 90px) 1rem 2rem 1rem;
  }
  
  /* Smaller breadcrumb truncation on mobile */
  .breadcrumb-current {
    max-width: 200px;
  }
  
  .about-hero {
    margin-bottom: 3rem;
  }
  
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .approach-card {
    padding: 1.5rem;
  }
  
  .about-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .experiment-header {
    padding: 2rem 0.25rem;
    margin: 0;
  }
  
  .content-wrapper {
    padding: 1.5rem;
  }
  
  .experiment-footer {
    padding: 1.5rem;
  }
  
  .share-buttons {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .share-btn {
    width: 36px;
    height: 36px;
  }
  
  .share-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .about-page {
    padding: calc(2rem + 90px) 1.5rem 1.5rem 1.5rem;
  }
  
  .experiment-page {
    padding: 1rem 0.25rem;
    max-width: 100%;
  }
  
  .experiment-title {
    padding: 0 0.25rem;
    margin: 0 0 2rem 0;
    font-size: 55px;
  }
  
  /* Scale text sizes proportionally to mobile title */
  .experiment-tag {
    font-size: 0.9rem;
  }
  
  .experiment-date {
    font-size: 0.9rem;
  }
  
  .experiment-excerpt {
    font-size: 16px;
  }
  
  .experiment-content h1 {
    font-size: 28px;
  }
  
  .experiment-content h2 {
    font-size: 22px;
  }
  
  .experiment-content h3 {
    font-size: 17px;
  }
  
  /* Even smaller breadcrumb truncation on small mobile */
  .breadcrumb-current {
    max-width: 150px;
  }
  
  .about-content {
    gap: 2rem;
  }
  
  .about-page .about-section h2 {
    font-size: 28px;
  }
  
  .about-section p {
    font-size: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
} 

/* Selection styles */
.hero ::selection {
  background-color: var(--panda-white);
  color: var(--panda-green);
}

.hero ::-moz-selection {
  background-color: var(--panda-white);
  color: var(--panda-green);
}

/* Default selection styles for rest of the site */
::selection {
  background-color: var(--panda-green);
  color: var(--panda-white);
}

::-moz-selection {
  background-color: var(--panda-green);
  color: var(--panda-white);
} 