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

:root {
  --bg:          #eee9e3;
  --bg-card:     #e4dfd9;
  --bg-white:    #f7f4f0;
  --border:      #d8d2cb;
  --accent:      #f04923;
  --accent-dark: #c93a1a;
  --text:        #1a1714;
  --text-muted:  #6b6560;
  --radius:      20px;
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* subtle warm vignette, no gradients */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(240,73,35,0.06) 0%, transparent 70%);
}

/* hide unused orbs */
.hero__orb { display: none; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.hero__badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  background: var(--bg-white);
  animation: fadeDown 0.7s ease both;
}

.hero__name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.75rem;
  animation: fadeDown 0.7s 0.08s ease both;
  /* no gradient — just solid dark text with accent word via JS if needed */
}

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
  animation: fadeDown 0.7s 0.16s ease both;
}

.hero__bio {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  animation: fadeDown 0.7s 0.24s ease both;
}

.hero__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fadeDown 0.7s 0.32s ease both;
}

.skill-tag {
  padding: 0.35rem 0.9rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  animation: fadeDown 0.7s 0.4s ease both;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.hero__link--primary {
  background: var(--accent);
  color: #fff;
}
.hero__link--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.hero__link--secondary {
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-white);
}
.hero__link--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.hero__scroll-arrow {
  width: 18px; height: 18px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.7; }
  50%       { transform: rotate(45deg) translate(4px,4px); opacity: 0.3; }
}

/* ── TIMELINE SECTION ── */
.timeline-section {
  position: relative;
  padding: 6rem 1rem 8rem;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-label {
  text-align: center;
  margin-bottom: 4rem;
}
.timeline-label span {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
}

/* Center vertical line */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(240,73,35,0.3) 10%, rgba(240,73,35,0.3) 90%, transparent);
}

/* ── TIMELINE ENTRY ── */
.tl-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-entry.from-left,
.tl-entry.from-right { transform: translateY(28px); }
.tl-entry.visible    { opacity: 1; transform: translateY(0); }

/* Dot */
.tl-entry__dot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.35rem;
  grid-column: 2;
}
.tl-entry__dot::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  outline: 1.5px solid var(--accent);
  flex-shrink: 0;
  transition: outline-offset 0.2s;
}
.tl-entry:hover .tl-entry__dot::before {
  outline-offset: 2px;
}

/* Year */
.tl-entry__year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: var(--bg);
  padding: 0 0.3rem;
}

/* Card */
.tl-entry__card {
  grid-row: 1;
  padding: 1.4rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}
.tl-entry__card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.tl-entry--left .tl-entry__card {
  grid-column: 1;
  margin-right: 1.5rem;
  text-align: right;
}
.tl-entry--right .tl-entry__card {
  grid-column: 3;
  margin-left: 1.5rem;
  text-align: left;
}

.tl-entry__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.tl-entry__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.tl-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.tl-entry--left .tl-entry__tags  { justify-content: flex-end; }
.tl-entry--right .tl-entry__tags { justify-content: flex-start; }

.tl-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(240,73,35,0.07);
  color: var(--accent-dark);
  border: 1px solid rgba(240,73,35,0.18);
}

/* ── ENTRY LINK ── */
.tl-entry__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.15s, gap 0.15s;
}
.tl-entry__link:hover {
  color: var(--accent-dark);
  gap: 0.5rem;
}

/* ── IMAGE SIZES ── */
.tl-entry__image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}
.tl-entry__image--small  { max-height: 120px; }
.tl-entry__image--medium { max-height: 200px; }
.tl-entry__image--large  { max-height: 320px; }
.tl-entry__image--full   { max-height: none; }

/* ── PROJECTS SECTION ── */
.projects-section {
  padding: 6rem 1rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

/* Card */
.proj-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.2s, box-shadow 0.2s;
}
.proj-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.proj-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Carousel */
.proj-carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  overflow: hidden;
}

.proj-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.proj-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.proj-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when no images */
.proj-carousel--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-carousel--empty::after {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed var(--border);
}

/* Arrow buttons */
.proj-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  z-index: 2;
}
.proj-carousel__btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
}
.proj-carousel__btn--prev { left: 0.6rem; }
.proj-carousel__btn--next { right: 0.6rem; }

/* Dots */
.proj-carousel__dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}
.proj-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.proj-carousel__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Card body */
.proj-body {
  padding: 1.25rem;
}

.proj-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.proj-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.proj-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.proj-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .timeline::before { left: 20px; }

  .tl-entry {
    grid-template-columns: 40px 1fr;
  }
  .tl-entry__dot {
    grid-column: 1;
    padding-top: 1.1rem;
  }
  .tl-entry__year {
    left: 20px;
    transform: translateX(-50%);
  }
  .tl-entry--left .tl-entry__card,
  .tl-entry--right .tl-entry__card {
    grid-column: 2;
    margin-left: 0.75rem;
    margin-right: 0;
    text-align: left;
  }
  .tl-entry--left .tl-entry__tags,
  .tl-entry--right .tl-entry__tags {
    justify-content: flex-start;
  }
}
