/* style.css — Jennifer A. Ayento Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg:        #faf9f7;
  --surface:   #ffffff;
  --surface-2: #f4f2ee;
  --border:    #e8e3da;
  --border-2:  #d0cac0;
  --amber:     #c97d2e;
  --amber-l:   #f5ead8;
  --amber-d:   #a0601e;
  --text:      #1a1714;
  --text-2:    #4a453e;
  --text-3:    #8a837a;
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', -apple-system, sans-serif;
  --r:         14px;
  --r-sm:      8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #131110;
    --surface:   #1c1916;
    --surface-2: #22201c;
    --border:    #2c2924;
    --border-2:  #3a3730;
    --amber:     #e09040;
    --amber-l:   #261e0e;
    --amber-d:   #f0a855;
    --text:      #ede9e2;
    --text-2:    #b0a89e;
    --text-3:    #6a6460;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.65; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber-d); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber-l); color: var(--amber-d); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--text); }
.nav-name .dot { color: var(--amber); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12.5px; font-weight: 500; letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-3); }
.nav-links a:hover { color: var(--amber); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 4px; }
.nav-mobile { display: none; flex-direction: column; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 14px clamp(16px, 4vw, 40px); font-size: 14px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--border); }
.nav-mobile a:hover { color: var(--amber); background: var(--surface-2); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px clamp(16px, 4vw, 40px) 60px;
  overflow: hidden;
}

/* background slideshow */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
  filter: brightness(0.45) saturate(0.8);
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.82) 100%);
}

/* hero card */
.hero-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  max-width: 560px; width: 100%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 48px);
  gap: 0;
}
@media (prefers-color-scheme: dark) {
  .hero-card { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.08); }
}

.hero-avatar {
  width: clamp(90px, 18vw, 120px);
  height: clamp(90px, 18vw, 120px);
  border-radius: 50%;
  object-fit: cover; object-position: top center;
  border: 3px solid var(--amber);
  margin-bottom: 16px;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 10px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700; color: #fff; line-height: 1.15;
  margin-bottom: 6px;
}
.hero-role {
  font-size: clamp(13px, 2vw, 15px); color: rgba(255,255,255,0.65);
  font-weight: 400; margin-bottom: 14px;
}
.hero-bio {
  font-size: clamp(13px, 1.8vw, 14.5px); color: rgba(255,255,255,0.55);
  line-height: 1.7; margin-bottom: 18px;
}
.hero-skill-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
  margin-bottom: 24px;
}
.hchip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--amber); border: 1px solid rgba(201,125,46,0.45);
  background: rgba(201,125,46,0.12);
  border-radius: 20px; padding: 4px 12px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(5px);} }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--amber); color: #fff;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--amber-d); color: #fff; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.75);
  padding: 10px 22px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* ── SECTION SCAFFOLD ── */
section { padding: clamp(60px, 10vw, 100px) 0; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
.sec-label::before { content:''; width: 26px; height: 1px; background: var(--amber); }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; color: var(--text); line-height: 1.2;
  margin-bottom: clamp(32px, 5vw, 52px);
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── ABOUT ── */
#about { border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { color: var(--text-2); font-size: 15.5px; line-height: 1.78; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.profile-card-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--border); }
.profile-card-info { padding: 16px; }
.profile-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.profile-row:last-child { border-bottom: none; }
.profile-row .key { color: var(--text-3); font-weight: 500; }
.profile-row .val { color: var(--text-2); text-align: right; }

/* ── SKILLS ── */
.skills-section { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
}
.skill-item { background: var(--surface); padding: clamp(20px, 3vw, 28px); transition: background 0.2s; }
.skill-item:hover { background: var(--amber-l); }
.skill-name { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.skill-bar { height: 3px; background: var(--border); border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: var(--amber); border-radius: 3px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; color: var(--text-3); font-weight: 500; border: 1px solid var(--border); border-radius: 20px; padding: 3px 9px; }

/* ── PROJECTS ── */
#projects { border-top: 1px solid var(--border); }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 28px; }
.project-card:last-child { margin-bottom: 0; }
.project-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.07); }

.project-top { display: grid; grid-template-columns: 1fr 1fr; min-height: 320px; }
@media (max-width: 700px) { .project-top { grid-template-columns: 1fr; min-height: auto; } }

.project-media-col { overflow: hidden; background: #0a0a0a; }
.project-media-col video, .project-media-col img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .project-media-col { min-height: 220px; } }

.atom-placeholder { background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.atom-inner { text-align: center; padding: 40px; }
.atom-icon { font-size: 56px; margin-bottom: 12px; }
.atom-label { font-size: 13px; color: var(--text-3); font-weight: 500; }

.project-info-col {
  padding: clamp(20px, 3vw, 32px);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 700px) { .project-info-col { border-left: none; border-top: 1px solid var(--border); } }

.project-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.project-status::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--amber); animation: pulse 2s infinite; }
.project-status.done { color: var(--text-3); }
.project-status.done::before { background: var(--text-3); animation: none; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

.project-title { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.2; }
.project-subtitle { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.project-desc { font-size: 14px; color: var(--text-2); line-height: 1.72; margin-bottom: 16px; }
.project-features { list-style: none; padding: 0; margin: 0; }
.project-features li { font-size: 13px; color: var(--text-2); padding: 6px 0 6px 18px; border-bottom: 1px solid var(--border); position: relative; }
.project-features li:last-child { border-bottom: none; }
.project-features li::before { content:'→'; color: var(--amber); position: absolute; left: 0; font-size: 12px; top: 7px; }

.screenshot-wrap { padding: clamp(16px, 2.5vw, 24px) clamp(16px, 2.5vw, 28px); border-top: 1px solid var(--border); }
.screenshot-label { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.screenshot-wrap img { border-radius: var(--r-sm); border: 1px solid var(--border); width: 100%; max-width: 520px; }

.project-bottom { border-top: 1px solid var(--border); padding: clamp(14px, 2vw, 18px) clamp(16px, 2.5vw, 28px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.stack-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.stack-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.4px; color: var(--amber-d); background: var(--amber-l); border-radius: 20px; padding: 4px 10px; }
@media (prefers-color-scheme: dark) { .stack-tag { color: var(--amber); } }
.dl-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 8px 14px; transition: all 0.2s; white-space: nowrap; }
.dl-btn:hover { color: var(--amber); border-color: var(--amber); }

/* ── CONTACT ── */
#contact { border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 60px); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-intro { font-size: 15.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.contact-item:last-child { border-bottom: none; }
.contact-item:hover .contact-val { color: var(--amber); }
.contact-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--amber-l); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.contact-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.contact-val { font-size: 14px; color: var(--text-2); word-break: break-all; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 14px; resize: vertical; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus { border-color: var(--amber); outline: none; }
.field textarea { min-height: 100px; }
.submit-btn { align-self: flex-start; cursor: pointer; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: clamp(20px, 3vw, 28px) 0 clamp(28px, 4vw, 44px); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3); }
footer em { font-style: normal; color: var(--amber); }
