/* Minimal Index Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

.minimal-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* Name Section */
.name-section {
  margin-bottom: 0;
}

.name {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 0 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.6s ease-out;
}

.name:hover {
  transform: translateY(-2px);
}

/* Info Section */
.info-section {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, max-height 0.6s ease-out, margin 0.6s ease-out;
}

.info-section.revealed {
  opacity: 1;
  transform: translateY(0);
  max-height: 160px;
  margin: 0.25rem 0 0.2rem 0;
}

.tagline {
  font-size: 0.9rem;
  margin: 0 0 0.2rem 0;
  color: #000000;
}

.reveal-toggle {
  font-size: 0.8rem;
  color: #000000;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.reveal-toggle:hover {
  opacity: 0.6;
}

/* Extended Info */
.extended-info {
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, max-height 0.6s ease-out, margin 0.6s ease-out;
}

.extended-info.revealed {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
  margin: 0.2rem 0 0.3rem 0;
}

.hobbies {
  font-size: 0.9rem;
  margin: 0 0 0.2rem 0;
  color: #000000;
}

.top-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.top-links a {
  color: #000000;
  text-decoration: underline;
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.top-links a:hover {
  opacity: 0.6;
}

/* Sections */
.projects-section,
.research-section,
.contact-section {
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.projects-section.revealed,
.research-section.revealed,
.contact-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  color: #000000;
}

/* Current page layout */
.current-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.current-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.back-link {
  text-decoration: none;
  color: #000000;
  letter-spacing: 0.02em;
}

.back-link:hover {
  opacity: 0.6;
}

.page-label {
  color: #6f6f6f;
  font-weight: 500;
}

.current-container main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.current-container section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.current-container section h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.current-container h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.lead {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  max-width: 560px;
}

.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.link-card {
  font-size: 0.95rem;
  text-decoration: underline;
  color: #000000;
}

.link-card:hover {
  opacity: 0.6;
}

.progress-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.progress-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

.progress-details.revealed {
  opacity: 1;
  transform: translateY(0);
  max-height: 800px;
  margin-top: 0.4rem;
  padding-bottom: 1rem;
}

.progress-link {
  font-size: 0.95rem;
  color: #000000;
  text-decoration: underline;
}

.progress-link:hover {
  opacity: 0.6;
}

.status-note {
  font-size: 1.1rem;
  color: #6f6f6f;
  font-weight: 500;
  padding-bottom: 0.8rem;
}

.video-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: #000000;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: opacity 0.2s ease;
}

.carousel-btn:hover {
  opacity: 0.6;
}

.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.video-container video {
  border-radius: 8px;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-title {
  margin: 0;
  font-size: 0.85rem;
  color: #6f6f6f;
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.projects-list a {
  color: #000000;
  text-decoration: underline;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.projects-list a:hover {
  opacity: 0.6;
}

/* Research Link */
.research-link {
  color: #000000;
  text-decoration: underline;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.research-link:hover {
  opacity: 0.6;
}

/* Contact Section */
.email-toggle {
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.email-toggle:hover {
  opacity: 0.6;
}

.email-reveal {
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s ease-out;
}

.email-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.email-reveal a {
  color: #000000;
  text-decoration: none;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.email-reveal a:hover {
  opacity: 0.6;
}

/* LeroCards Expandable Section */
.lero-section {
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  width: 100%;
}

.lero-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.lero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.lero-header:hover {
  opacity: 0.6;
}

.lero-header .section-title {
  margin: 0;
}

.lero-tagline {
  font-size: 0.8rem;
  color: #6f6f6f;
}

/* Container for the expandable canvas */
.lero-canvas-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.lero-canvas-container.expanded {
  max-height: 580px;
  opacity: 1;
  margin-top: 0.5rem;
}

/* Placeholder shown while iframe loads */
.lero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  background: #f5f3f0;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.lero-loading-text {
  font-size: 0.85rem;
  color: #6f6f6f;
}

/* The iframe itself */
.lero-iframe {
  width: 100%;
  height: 500px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  display: none;
  background: #f5f3f0;
}

.lero-iframe.loaded {
  display: block;
}

/* Links below canvas */
.lero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease;
}

.lero-links.visible {
  opacity: 1;
  max-height: 40px;
}

.lero-cta-link {
  color: #000000;
  text-decoration: underline;
  font-size: 0.8rem;
  transition: opacity 0.3s ease;
}

.lero-cta-link:hover {
  opacity: 0.6;
}

/* Wider canvas on larger screens */
@media (min-width: 768px) {
  .lero-canvas-container.expanded {
    max-height: 580px;
  }

  .lero-placeholder,
  .lero-iframe {
    height: 520px;
  }
}

@media (min-width: 1024px) {
  .lero-canvas-container.expanded {
    max-height: 650px;
  }

  .lero-placeholder,
  .lero-iframe {
    height: 590px;
  }
}

@media (min-width: 1400px) {
  .lero-canvas-container.expanded {
    max-height: 720px;
  }

  .lero-placeholder,
  .lero-iframe {
    height: 660px;
  }
}

/* Responsive */

@media (max-width: 768px) {
  .minimal-container {
    padding: 1rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .top-links {
    gap: 1.5rem;
  }
  
  .top-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .top-links {
    gap: 0.8rem;
  }

  .current-container {
    padding: 2rem 1.25rem 2.5rem;
  }

  .current-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .current-container main {
    gap: 1.8rem;
  }
}

/* Thesis page — keep it pure text */
.q {
  font-size: 0.95rem;
  margin: 0.2rem 0 0;
}

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

.links-row a {
  color: #000;
  text-decoration: underline;
  font-size: 0.95rem;
}

.links-row a:hover {
  opacity: 0.6;
}

/* Chapter heading doubles as the toggle — no separate click/hide text */
.ch h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.2rem 0 0 !important;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  transition: opacity 0.2s ease;
}

.ch h2:hover {
  opacity: 0.55;
}

.ch h2::after {
  content: "+";
  font-weight: 400;
  font-size: 0.9rem;
  color: #6f6f6f;
  transition: transform 0.25s ease;
  display: inline-block;
  width: 0.8rem;
  text-align: center;
}

.ch.open h2::after {
  content: "−";
}

.t-body {
  max-width: 600px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.ch.open .t-body {
  opacity: 1;
  margin-top: 0.6rem;
}

.t-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.8rem 0;
}

.t-body p.cap,
.t-body p.num {
  text-align: center;
  hyphens: none;
}

.t-body em {
  font-style: italic;
}

.t-body a {
  color: #000;
  text-decoration: underline;
}

.t-body a:hover {
  opacity: 0.6;
}

.t-body img {
  max-width: 100%;
  height: auto;
  margin: 0.4rem 0 0;
}

.t-body .cap {
  font-size: 0.8rem;
  color: #6f6f6f;
  margin: 0.3rem 0 1rem;
  line-height: 1.4;
}

.t-body .num {
  font-size: 0.88rem;
  margin: 0.15rem 0;
  color: #333;
  font-variant-numeric: tabular-nums;
}

.t-body .num em {
  color: #6f6f6f;
  font-size: 0.8rem;
}

/* Tabs — plain underlined text */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin: 0.6rem 0 !important;
}

.tab {
  font-size: 0.85rem;
  color: #6f6f6f;
  cursor: pointer;
  text-decoration: underline;
}

.tab:hover {
  color: #000;
}

.tab.active {
  color: #000;
  font-weight: 600;
}
