/* ========================================
   Variables & Reset
   ======================================== */
:root {
  --bg: #080808;
  --bg-card: #0f0f0f;
  --bg-elevated: #141414;
  --white: #ffffff;
  --offwhite: #e8e8e8;
  --text: #7a7a7a;
  --text-muted: #444444;
  --accent: #E8723A;
  --accent-light: #f0935e;
  --accent-dim: rgba(232, 114, 58, 0.08);
  --accent-glow: rgba(232, 114, 58, 0.2);
  --lime: #c8e832;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-hero: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --sidebar-w: 380px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(232,114,58,0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========================================
   Layout — Sticky Sidebar + Scrollable Right
   ======================================== */
.layout {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* ========================================
   Sidebar (Left — sticky)
   ======================================== */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem;
  z-index: 10;
}

/* Subtle ambient glow in sidebar bg */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(232,114,58,0.06) 0%, transparent 65%);
  pointer-events: none;
}

/* ---- Profile Card ---- */
.profile-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 1.5rem;
  position: relative;
  width: 100%;
  max-width: 290px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  overflow: visible;
}

.profile-arc {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(232,114,58,0.6);
  border-radius: 50%;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 2;
  animation: arcRotate 50s linear infinite;
}

.profile-photo {
  margin-bottom: 1.25rem;
}

.profile-photo__bg {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #8b3a10 0%, #e87a3a 50%, #c0461a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 1;
}

.profile-photo__img.loaded {
  opacity: 1;
}

.profile-photo__img.loaded ~ .profile-photo__initials {
  opacity: 0;
}

.profile-photo__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
}

.profile-photo__initials {
  font-family: var(--font-hero);
  font-size: 5rem;
  color: rgba(0,0,0,0.15);
  letter-spacing: 6px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.profile-flame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 14px rgba(232,114,58,0.4);
}

.profile-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.profile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.profile-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(232,114,58,0.08);
  transition: all 0.3s var(--ease);
}

.profile-social__link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232,114,58,0.3);
}

/* ========================================
   Content (Right — scrollable)
   ======================================== */
.content {
  flex: 1;
  min-width: 0;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 5.5rem 4.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.section--hero {
  border-top: none;
  padding-top: 7rem;
}

.section--contact {
  min-height: auto;
}

/* ---- Giant two-line section title ---- */
.section-title {
  margin-bottom: 3.5rem;
  line-height: 0.9;
}

.section-title__main {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 6vw, 7rem);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
}

.section-title__ghost {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(3.5rem, 6vw, 7rem);
  color: rgba(255,255,255,0.18);
  letter-spacing: 2px;
  line-height: 1;
}

/* ========================================
   Hero Section
   ======================================== */

/* Hero intro: title left, side panel right */
.hero-intro {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: flex-end;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.section--hero .section-title {
  margin-bottom: 0;
}

.section--hero .section-title__main,
.section--hero .section-title__ghost {
  font-size: clamp(4.5rem, 12vw, 15rem);
}

/* Side panel */
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
}

.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--offwhite);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  width: fit-content;
}

.hero-avail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulseGreen 2.2s ease-in-out infinite;
}

.hero-role-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.3s var(--ease);
}

.hero-role-card:hover {
  border-color: var(--border-hover);
}

.hero-role-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-role-card__company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.hero-role-card__title {
  font-size: 0.78rem;
  color: var(--text);
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  animation: subtleFloat 3s ease-in-out infinite;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-stat-num-wrap {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.hero-stat__num {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1.5;
}

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.service-card {
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 280px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.service-card:hover { transform: translateY(-4px); }

.service-card--orange {
  background: var(--accent);
  color: white;
}

.service-card--lime {
  background: var(--lime);
  color: #1a1a00;
}

.service-card__icon {
  opacity: 0.85;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.75;
  flex: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  color: white;
}

.service-card__tag--dark {
  background: rgba(0,0,0,0.12);
  color: #1a1a00;
}

.service-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  align-self: flex-end;
  transition: all 0.3s var(--ease);
}

.service-card__btn--dark {
  background: rgba(0,0,0,0.12);
  color: #1a1a00;
}

.service-card__btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translate(3px, -3px);
}

/* ========================================
   Projects — List rows with thumbnails
   ======================================== */
.project-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.project-row:first-child { border-top: 1px solid var(--border); }

.project-row:hover { padding-left: 0.5rem; }
.project-row:hover .project-row__arrow { opacity: 1; transform: translate(4px, -4px); }

.project-thumb {
  width: 220px;
  height: 145px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent);
}

.project-thumb--orange { background: linear-gradient(160deg, #7a2800 0%, #e87a3a 100%); }
.project-thumb--lime   { background: linear-gradient(160deg, #3a6000 0%, #a0d020 100%); }

.project-row__body { flex: 1; min-width: 0; }

.project-row__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-row__formerly {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text);
  font-style: italic;
}

.project-row__sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-row__pills span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.project-row__arrow {
  color: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

/* ========================================
   Experience — Flat rows
   ======================================== */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  transition: padding-left 0.3s var(--ease);
}

.exp-row:first-child { border-top: 1px solid var(--border); }
.exp-row:hover { padding-left: 0.5rem; }
.exp-row:hover .exp-row__arrow { opacity: 1; transform: translate(4px, -4px); }

.exp-row__body { flex: 1; }

.exp-row__company {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.exp-row__role {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.exp-row__desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 0.75rem;
}

.exp-row__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.exp-row__arrow {
  color: var(--accent);
  opacity: 0.35;
  flex-shrink: 0;
  margin-top: 0.4rem;
  transition: all 0.3s var(--ease);
}

/* ========================================
   Tech Stack — Animated Marquee Rows
   ======================================== */
.tech-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* Fade edges */
.tech-marquee::before,
.tech-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.tech-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.tech-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.tech-row {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.5rem 0;
}

.tech-row--left {
  animation: techScrollLeft 30s linear infinite;
}

.tech-row--right {
  animation: techScrollRight 28s linear infinite;
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.3s var(--ease);
}

.tech-card:hover {
  transform: translateY(-4px);
}

.tech-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.08) inset;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.tech-card__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  -webkit-user-drag: none;
}

/* Native full-color logo tiles — light/colored PNG backgrounds (Google ADK, Redis) */
.tech-card__logo--native {
  padding: 0;
  overflow: hidden;
  background: transparent !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.tech-card__logo--native img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  filter: none;
  border-radius: 18px;
}

/* Screen-blend tiles — dark PNG backgrounds (LlamaIndex, Strands, Langfuse)
   mix-blend-mode: screen turns black→transparent, logo graphic shows on tile color */
.tech-card__logo--screen {
  overflow: hidden;
}

.tech-card__logo--screen img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  filter: none;
  mix-blend-mode: screen;
  border-radius: 18px;
}

.tech-card:hover .tech-card__logo {
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.12) inset;
  transform: scale(1.05);
}

.tech-card__name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.tech-card:hover .tech-card__name {
  color: var(--offwhite);
}

/* ========================================
   Blog
   ======================================== */
.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.3s var(--ease);
  cursor: pointer;
}

.blog-row:first-child { border-top: 1px solid var(--border); }
.blog-row:hover { padding-left: 0.75rem; }
.blog-row:hover .blog-row__title { color: var(--accent); }
.blog-row:hover .blog-row__arrow { opacity: 1; transform: translate(4px, -4px); }

.blog-row__body { flex: 1; min-width: 0; }

.blog-row__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.blog-row__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,114,58,0.15);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
}

.blog-row__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  transition: color 0.3s;
  line-height: 1.35;
}

.blog-row__excerpt {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}

.blog-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.blog-row__date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.blog-row__read {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.blog-row__arrow {
  color: var(--accent);
  opacity: 0.35;
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  display: block;
  margin-top: 0.4rem;
}

/* ========================================
   Contact
   ======================================== */
.section--contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(232,114,58,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 10px rgba(232,114,58,0.15);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(232,114,58,0.4);
  background: var(--accent-light);
}

.btn--outline {
  border: 1.5px solid var(--border-hover);
  color: var(--offwhite);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn--large { padding: 1.1rem 2.5rem; font-size: 0.95rem; }
.btn:active { transform: scale(0.97); }

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2.5rem 4.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--accent); }

.footer__top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s var(--ease);
}
.footer__top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
