/* ── VARIABLES ── */
:root {
  --bg-color: #050505;
  --text-main: #f5f5f5;
  --text-muted: #888;
  --text-dim: #555;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.3);
  --accent: #fff;
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Lenis recommended CSS */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* ── AMBIENT BACKGROUND ── */
.ambient-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-blob {
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(100, 100, 100, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, 15%) scale(1.1); }
}

/* ── TOP BAR ── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
  z-index: 100;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.top-bar__left, .top-bar__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-dot {
  width: 4px; height: 4px;
  background: var(--border-color);
  border-radius: 50%;
}
.text-green { color: #88ffaa; }
.hover-white { transition: color 0.3s ease; }
.hover-white:hover { color: var(--accent); }

@media (max-width: 768px) {
  .top-bar { padding: 0.75rem 1rem; }
  .desktop-only { display: none; }
}

/* ── MINIMAL NAV ── */
.nav {
  position: absolute;
  top: 50px; left: 0; right: 0;
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 90;
  mix-blend-mode: difference;
}
.nav__brand {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__link {
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}
.nav__link:hover { opacity: 0.6; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10vh 5vw;
  position: relative;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  flex-shrink: 0;
}
.headline-mask {
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.headline-line {
  display: block;
  transform: translateY(110%);
}

.hero__sub-wrap {
  max-width: 450px;
  padding-bottom: 1rem;
}
.hero__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem; right: 5vw;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--border-color);
}

/* ── SECTIONS ── */
.section {
  padding: 8rem 0;
}
.section--light {
  background-color: #0a0a0a;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.section__header-wide {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-left: 2vw;
}
.section__title-small {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ── WORK LIST (TYPOGRAPHIC ROWS) ── */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-row {
  display: flex;
  flex-direction: column;
  padding: 3rem 2vw;
  border-top: 1px solid var(--border-color);
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.work-row:last-child {
  border-bottom: 1px solid var(--border-color);
}
.work-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
  .work-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }
}

.work-row__left {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.work-row__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.work-row__tags {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.work-row__right {
  flex: 1;
  position: relative;
  padding-right: 8rem;
}
.work-row__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-row:hover .work-row__title {
  transform: translateX(1rem);
}

.work-row__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
}

.work-row__links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: transparent;
}
.work-btn i {
  font-size: 1.1rem;
}
.work-btn:hover {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
}

/* ── TECH STACK ── */
.giant-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  text-transform: lowercase;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tech-box {
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  aspect-ratio: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}
.tech-box:hover {
  background: var(--text-main);
  color: var(--bg-color);
}
.tech-box__icon {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--text-dim);
  transition: transform 0.4s ease, color 0.4s ease;
}
.tech-box:hover .tech-box__icon {
  transform: translateY(-10px) scale(1.1);
  color: var(--bg-color);
}
.tech-box__label {
  position: absolute;
  bottom: 1.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}
.tech-box:hover .tech-box__label {
  opacity: 1;
  transform: translateY(0);
}

.skills-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .skills-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .skills-detail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.detail-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── LIST LAYOUT (EDUCATION/CERTS) ── */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
}
@media (min-width: 1024px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.list-container {
  display: flex;
  flex-direction: column;
}
.list-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.list-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.list-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-main);
}
.list-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.list-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}
.list-block--hover {
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.list-block--hover:hover {
  background: rgba(255,255,255,0.02);
  padding-left: 1rem;
  border-bottom-color: var(--border-hover);
}

/* ── FOOTER ── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 4rem 5vw;
  border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__brand {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  color: var(--text-dim);
}
.footer-icon {
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer__right a:hover .footer-icon {
  color: var(--text-main);
  transform: translateY(-2px);
}
