body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #f8fafc;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.card {
  background: rgba(255,255,255,0.1);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: 600px;
}

.docs-page {
  max-width: 820px;
  text-align: left;
  line-height: 1.6;
}

.docs-page .eyebrow {
  margin: 0 0 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 700;
}

.docs-page .subtitle,
.docs-page h1,
.docs-page h2,
.docs-page p {
  text-align: left;
}

.docs-page h1 {
  margin-bottom: 0.35rem;
}

.docs-page h2 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.1rem;
}

.docs-page ul,
.docs-page ol {
  margin: 0;
  padding-left: 1.25rem;
}

.docs-page li + li {
  margin-top: 0.35rem;
}

.docs-page .project-section {
  margin: 1rem 0 1.1rem;
}

.docs-page .reveal-controls {
  justify-content: flex-start;
  margin: 1rem 0 0.75rem;
}

.docs-page .reveal-card {
  max-width: 100%;
}

.docs-page .project-image {
  max-width: 420px;
  margin: 0;
}

.docs-page .switch-text {
  white-space: nowrap;
}

h1 {
  margin-top: 0;
}

.subtitle {
  color: #cbd5e1;
}

.project-section {
  margin: 1.2rem 0 1.5rem;
}

.reveal-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  color: #e2e8f0;
  font-weight: 600;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slider {
  position: relative;
  width: 46px;
  height: 26px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: background 0.3s ease;
}

.slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.switch input:checked + .slider {
  background: #38bdf8;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.reveal-button {
  border: 1px solid #38bdf8;
  background: transparent;
  color: #38bdf8;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reveal-button:hover {
  background: #38bdf8;
  color: white;
}

.reveal-card {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: all 0.55s ease;
}

.reveal-card.is-visible {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.7rem;
}

.project-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background: #38bdf8;
  color: white;
  text-decoration: none;
  border-radius: 999px;
}

/* Mobile / small-screen styles */
@media (max-width: 600px) {
  body {
    padding: 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #0b1220, #111827);
  }

  .card {
    width: 100%;
    max-width: 360px;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  }

  h1 {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .project-section {
    margin: 0.8rem 0 1rem;
  }

  .docs-page .reveal-controls {
    justify-content: stretch;
  }

  .docs-page .reveal-button,
  .docs-page .switch {
    width: 100%;
  }

  .docs-page .project-image {
    max-width: 100%;
  }

  .project-image {
    max-width: 100%;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
  }

  .reveal-controls {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .switch {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .slider {
    width: 40px;
    height: 22px;
  }

  .slider::before {
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
  }

  .reveal-button, .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }

  .pad {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pad .btn {
    flex: 1 1 45%;
    min-width: 120px;
  }
}
