/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Inter', sans-serif;
  background: #0b0b0e;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================= WRAPPER ================= */
.portfolio-wrap {
  max-width: 860px;
  margin: auto;
  padding: 32px 18px 64px;
}

/* ================= HERO ================= */
.hero {
  text-align: center;
  margin-bottom: 52px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero p {
  font-size: 0.95rem;
  opacity: 0.65;
  max-width: 560px;
  margin: auto;
  line-height: 1.6;
}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline .line {
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(143,108,255,0.7),
    transparent
  );
  opacity: 0.4;
}

/* ================= NODE ================= */
.node {
  position: relative;
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
}

/* ================= DOT ================= */
.dot {
  width: 12px;
  height: 12px;
  margin-top: 10px;
  border-radius: 50%;
  background: #8f6cff;
  box-shadow: 0 0 18px rgba(143,108,255,0.9);
  flex-shrink: 0;
}

/* ================= CONTENT CARD ================= */
.content {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.content:hover {
  transform: translateX(6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

/* ================= HEADER ================= */
.header h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.header span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ================= TAGS ================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.tags span {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(143,108,255,0.15);
  border: 1px solid rgba(143,108,255,0.35);
  color: #d7ccff;
  letter-spacing: 0.3px;
}

/* ================= DESCRIPTION ================= */
.description p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.75;
}

/* Hidden paragraph */
.description .more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin-top 0.35s ease;
}

/* Expanded */
.expandable.active .description .more {
  max-height: 420px;
  opacity: 0.75;
  margin-top: 12px;
}

/* ================= TOGGLE ================= */
.toggle {
  margin-top: 14px;
  background: none;
  border: none;
  color: #8f6cff;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0;
}

.toggle:hover {
  text-decoration: underline;
}

/* ================= FOOTER ================= */
.philosophy {
  margin-top: 64px;
  text-align: center;
}

.philosophy p {
  font-size: 0.85rem;
  opacity: 0.45;
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}
