/* ===== Rapid Carrot — minimalist single-page portfolio ===== */

:root {
  --bg: #0e0e10;
  --bg-elev: #16161a;
  --fg: #f2f2f0;
  --muted: #8b8b90;
  --accent: #ff7a3d;      /* carrot */
  --accent-soft: rgba(255, 122, 61, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --maxw: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  min-height: 100vh;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Allow normal page scrolling between areas */
body { overflow: auto; }

/* ===== Progress bar (top) ===== */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  transition: width 0.6s var(--ease);
  z-index: 100;
}

/* ===== Sections (one per area) ===== */
.sections {
  width: 100%;
}

.section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 5vw;
  opacity: 1;
  transform: none;
  position: relative;
}

.section.is-active {
  opacity: 1;
  transform: none;
}

.section.is-prev {
  opacity: 1;
  transform: none;
}

.inner {
  width: 100%;
  max-width: var(--maxw);
  animation: rise 0.7s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Area header ===== */
.area-index {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.area-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.area-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

/* ===== Software bio ===== */
.bio {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #dcdcdc;
  max-width: 680px;
  margin-bottom: 2rem;
}
.bio + .bio { margin-top: 1rem; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-elev);
}

/* ===== Software projects ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.project-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.project-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.project-card a {
  color: var(--accent);
  text-decoration: none;
}
.project-card a:hover {
  text-decoration: underline;
}
.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dcdcdc;
  margin-bottom: 0.9rem;
}
.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tech {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
}
.upwork-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--accent);
  color: #1a1a1a;
  border-color: transparent;
}
.upwork-card .project-title {
  color: #1a1a1a;
  font-size: 1.3rem;
}
.upwork-card .project-desc {
  color: #2a2a2a;
  margin-bottom: 1rem;
}
.upwork-btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.upwork-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.media-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.media-card .media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.media-card .media-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card .media-wrap video[poster] {
  background: #000;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card .caption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.link-list {
  margin-top: 1.4rem;
}
.link-list .media-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-list .media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.link-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}
.link-list a:hover {
  text-decoration: underline;
}

.link-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.link-card img {
  display: block;
  width: 100%;
  height: auto;
}
.link-card .link-label {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.link-card:hover .link-label {
  text-decoration: underline;
}

/* Responsive embeds */
.embed-responsive {
  position: relative;
  width: 100%;
  height: 100%;
}
.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-card .media-wrap iframe[src*="bandcamp"] {
  position: static;
  width: 350px;
  height: 470px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}
.media-card .media-wrap:has(iframe[src*="bandcamp"]) {
  aspect-ratio: auto;
  height: auto;
  min-height: 490px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Coming soon placeholder ===== */
.coming-soon {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.coming-soon .glyph {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 1rem;
}

/* ===== Dot navigation ===== */
.nav {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 50;
}
.nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.nav button:hover { transform: scale(1.3); }
.nav button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
}
/* Tooltip label on hover */
.nav button::after {
  content: attr(data-label);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--fg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.nav button.is-active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


/* ===== Brand footer ===== */
.brand {
  position: fixed;
  right: 28px;
  bottom: 38px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 50;
}
.brand .dot { color: var(--accent); }

/* ===== Site footer ===== */
.site-footer {
  position: fixed;
  right: 28px;
  bottom: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  z-index: 50;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: var(--accent);
}

/* ===== Scroll hint on first area ===== */
.scroll-hint {
  position: fixed;
  right: 28px;
  bottom: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bob 1.8s ease-in-out infinite;
  z-index: 40;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-hint .arrow {
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .section { padding: 12vh 7vw; }
  .area-index { display: none; }
  .nav button::after { display: none; }
  .brand { right: auto; left: 7vw; top: 14px; bottom: auto; display: block; }
  .site-footer { right: 7vw; bottom: 16px; }
}
@media (max-width: 640px) {
  .nav { left: 14px; }
  .brand { right: auto; left: 7vw; top: 14px; bottom: auto; display: block; }
  .scroll-hint { display: none; }
  .media-grid, .project-grid { grid-template-columns: 1fr; }
  .site-footer { right: 6vw; bottom: 14px; }
}
