/* ============================================================
   Portfolio layout — built on top of css/glass.css tokens/utilities.
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Blob field (decorative, behind hero)
   ============================================================ */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob-1 {
  width: 420px; height: 420px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, #ffe4d0, transparent 70%);
  animation: blob-drift-a 22s ease-in-out infinite;
}
.blob-2 {
  width: 380px; height: 380px;
  top: 40px; right: -100px;
  background: radial-gradient(circle, #d9ecff, transparent 70%);
  animation: blob-drift-b 26s ease-in-out infinite;
}
.blob-3 {
  width: 340px; height: 340px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle, #f0d7ff, transparent 70%);
  animation: blob-drift-c 24s ease-in-out infinite;
}
[data-theme="dark"] .blob-1 { background: radial-gradient(circle, #3b2a33, transparent 70%); }
[data-theme="dark"] .blob-2 { background: radial-gradient(circle, #213140, transparent 70%); }
[data-theme="dark"] .blob-3 { background: radial-gradient(circle, #2a2740, transparent 70%); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 16px;
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px 20px;
    border-radius: var(--radius-glass-sm);
    background: var(--cream-bg);
    box-shadow: var(--shadow-glass);
  }
  .nav-links.open a {
    padding: 10px 0;
    width: 100%;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream-bg);
}
[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #14110d;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--glass-stroke);
}

.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 120px;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.02em;
}

.hero-role {
  display: inline-block;
  margin: 22px 0 20px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
}

.hero-tagline {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   About
   ============================================================ */
.about-panel {
  padding: 44px;
  max-width: 780px;
  margin: 0 auto;
}
.about-panel p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.about-panel p:last-child { margin-bottom: 0; }
.about-panel strong { color: var(--ink); }

@media (max-width: 640px) {
  .about-panel { padding: 28px; }
}

/* ============================================================
   Work grid
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover {
  transform: translateY(-4px);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-faint);
  background: linear-gradient(135deg, var(--cream-bg-3), var(--cream-bg-2));
  border-bottom: 1px solid var(--glass-stroke);
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="dark"] .work-thumb {
  background: linear-gradient(135deg, #221d16, #1b1712);
}

.work-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-body h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.work-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-stroke);
  color: var(--ink-soft);
}

.work-link {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   How it's built — process steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.process-step {
  padding: 26px 24px;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.how-copy {
  max-width: 720px;
}
.how-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   Skills
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.skills-panel {
  padding: 32px;
}
.skills-panel h3 {
  font-size: 18px;
  margin-bottom: 18px;
}
.skills-panel .tag {
  margin: 0 8px 8px 0;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
}

/* ============================================================
   Contact
   ============================================================ */
.contact-panel {
  padding: 56px 44px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contact-panel h2 {
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 16px;
}
.contact-panel p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 32px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .contact-panel { padding: 36px 24px; }
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 40px 0 60px;
  text-align: center;
}
footer p {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 0;
}
