* { box-sizing: border-box; }

:root {
  --ink: #15151a;
  --soft-ink: #3f414a;
  --muted: #777b87;
  --paper: #fbfaf8;
  --paper-2: #f5f1ec;
  --card: rgba(255,255,255,.82);
  --line: rgba(20,20,24,.12);
  --violet: #7a76d9;
  --violet-2: #c6bfff;
  --peach: #f0a78b;
  --rose: #eaa7c7;
  --navy: #101522;
  --green: #5c765d;
  --shadow: 0 24px 70px rgba(35, 35, 45, .10);
  --radius: 28px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 8%, rgba(198,191,255,.36), transparent 26%),
    radial-gradient(circle at 100% 82%, rgba(240,167,139,.28), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f7f4f2 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.pointer { cursor: pointer; }
.hideAll { display: none; }

.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255,255,255,.40);
  border-left: 1px solid rgba(255,255,255,.65);
  border-right: 1px solid rgba(255,255,255,.65);
}

.site-header {
  min-height: 86px;
  padding: 22px 7vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.74);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: -0.08em;
  font-weight: 500;
}
.brand-divider { height: 26px; width: 1px; background: var(--line); }
.brand-text { font-weight: 780; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 38px; }
.main-nav button {
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  font-size: 15px;
  font-weight: 720;
  padding: 10px 0;
  position: relative;
}
.main-nav button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  transition: width .25s ease;
}
.main-nav button:hover::after { width: 100%; }
.header-cta {
  justify-self: end;
  min-width: 142px;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 760;
  box-shadow: 0 14px 35px rgba(16,21,34,.16);
}
.header-cta span { margin-left: 8px; }

main { padding: 0 7vw 34px; }
.hero-section {
  min-height: 520px;
  padding: 42px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .76fr);
  align-items: center;
  gap: clamp(30px, 4vw, 64px);
  position: relative;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 7% -12% auto auto;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(122,118,217,.18), transparent 70%);
  pointer-events: none;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10.5px;
  font-weight: 820;
}

.hero-name {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.hero-name strong {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--violet), #9f78df, var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.35vw, 62px);
  line-height: .99;
  letter-spacing: -.06em;
  font-weight: 500;
}
.hero-title span {
  display: block;
  opacity: 0;
  transform: translateY(22px);
  animation: titleRise .72s cubic-bezier(.2,.9,.2,1) forwards;
}
.hero-title span:nth-child(1) { animation-delay: .12s; }
.hero-title span:nth-child(2) { animation-delay: .24s; }
.hero-title span:nth-child(3) { animation-delay: .36s; }
.hero-title span:nth-child(4) { animation-delay: .48s; }
.hero-title em {
  font-style: italic;
  background: linear-gradient(90deg, var(--violet), #b575de, var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-intro {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--soft-ink);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.56;
}
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.primary-btn, .secondary-btn, .text-btn, #send-form, .back-to-projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  font-weight: 780;
  cursor: pointer;
}
.primary-btn {
  background: var(--navy);
  color: #fff;
  padding: 13px 20px;
  box-shadow: 0 16px 40px rgba(16,21,34,.16);
}
.secondary-btn {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 21px;
}
.text-btn { background: transparent; color: var(--soft-ink); padding: 10px 4px; }

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.hero-blob {
  position: absolute;
  width: min(315px, 74%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.85), transparent 22%),
    linear-gradient(145deg, rgba(122,118,217,.52), rgba(240,167,139,.46));
  filter: blur(.1px);
  transform: translate(18px, 8px);
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: min(285px, 74%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.72);
}
.floating-card {
  position: absolute;
  z-index: 3;
  left: 2%; top: 36%;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(34,35,48,.10);
  backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 14px 18px;
  display: grid;
  gap: 8px;
  min-width: 132px;
  animation: floaty 5.4s ease-in-out infinite;
}
.floating-card strong { font-weight: 800; }
.floating-card span { color: var(--muted); font-size: 13px; }
.stamp {
  position: absolute;
  z-index: 3;
  right: 8%; bottom: 10%;
  width: 84px; height: 84px;
  border: 1px solid rgba(122,118,217,.30);
  background: rgba(255,255,255,.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--violet);
  font-size: 8.5px;
  line-height: 1.35;
  letter-spacing: .18em;
  font-weight: 800;
  animation: slowSpin 18s linear infinite;
}

.animate-rise { opacity: 0; transform: translateY(18px); animation: fadeRise .7s ease forwards; }
.delay-1 { animation-delay: .20s; }
.delay-3 { animation-delay: .58s; }
.delay-4 { animation-delay: .72s; }
.animate-image { opacity: 0; transform: translateX(22px) scale(.98); animation: imageIn .85s ease .38s forwards; }

.projects-section { padding: 48px 0 28px; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-top h2, .skills-heading h2, .about-card-large h2, .resume-card h2, .contact-footer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 500;
}
.section-link { border: 0; background: transparent; color: var(--soft-ink); font-weight: 760; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.project-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(22,22,27,.10);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 52px rgba(30,31,42,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.project-card:hover { transform: translateY(-7px); box-shadow: 0 26px 78px rgba(30,31,42,.13); border-color: rgba(122,118,217,.32); }
.project-thumb { width: 100%; height: 225px; object-fit: cover; background: #eee; }
.project-body { min-height: 174px; padding: 22px 64px 24px 24px; position: relative; }
.project-body p { margin: 0 0 12px; color: var(--violet); font-size: 12px; font-weight: 820; }
.project-body h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.035em; font-weight: 790; }
.project-body span { display: block; color: var(--muted); font-size: 15px; line-height: 1.5; }
.project-body button { position: absolute; right: 22px; bottom: 24px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); }

.skills-strip, .about-card-large, .resume-card, .contact-footer {
  border: 1px solid rgba(22,22,27,.10);
  background: rgba(255,255,255,.74);
  box-shadow: 0 20px 60px rgba(30,31,42,.06);
  border-radius: var(--radius);
}
.skills-strip { padding: 36px; margin: 44px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; align-items: center; }
.skills-heading .section-kicker { margin-bottom: 14px; }
.skill-panels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.skill-panel { padding: 24px; border-radius: 22px; background: rgba(245,241,236,.70); border: 1px solid rgba(22,22,27,.08); }
.skill-panel h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 24px; }
.skill-panel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tool-row span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--violet); }

.about-resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 42px; }
.about-card-large, .resume-card { padding: 40px; }
.about-card-large p:not(.section-kicker), .resume-card small, .contact-details p { color: var(--muted); line-height: 1.7; }
.about-card-large p:not(.section-kicker) { font-size: 16px; }
.about-card-large .secondary-btn { margin-top: 18px; }
.resume-list { display: grid; gap: 14px; margin: 24px 0 28px; }
.resume-list div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(245,241,236,.62); border: 1px solid rgba(22,22,27,.08); }
.resume-list span { color: var(--violet); font-weight: 850; }
.resume-list strong { display: block; margin-bottom: 4px; }
.resume-list small { grid-column: 2; font-size: 13px; }
.resume-download { width: max-content; }

.contact-footer { padding: 38px; display: grid; grid-template-columns: .85fr .55fr .75fr; gap: 28px; align-items: start; margin-bottom: 28px; background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(245,241,236,.76)); }
.contact-details { padding-top: 34px; }
.contact-mini-form form { display: grid; gap: 10px; }
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(122,118,217,.55); box-shadow: 0 0 0 4px rgba(122,118,217,.10); }
#send-form { width: 100%; background: var(--navy); color: #fff; padding: 14px 18px; }
.response-container { display: none; margin-top: 12px; padding: 14px; border-radius: 14px; background: #eef8ed; color: #2f653c; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 7vw 34px; color: var(--muted); border-top: 1px solid var(--line); }

.project-page { max-width: 1120px; margin: 48px auto; padding: 42px; border-radius: 30px; background: rgba(255,255,255,.82); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: default !important; }
.back-to-projects { margin-bottom: 28px; background: var(--navy); color: #fff; padding: 13px 18px; }
.project-wrapper { cursor: default; }
.project-wrapper h1 { margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.project-wrapper .project-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.project-wrapper .project-meta span { padding: 9px 12px; border-radius: 999px; background: rgba(122,118,217,.10); color: var(--violet); font-size: 13px; font-weight: 760; }
.case-hero { display: grid; grid-template-columns: 1fr .82fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.case-summary { color: var(--soft-ink); font-size: 18px; line-height: 1.7; }
.project-image { width: 100%; border-radius: 24px; box-shadow: 0 16px 44px rgba(30,31,42,.09); border: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 28px 0; }
.case-block { padding: 24px; border-radius: 22px; background: rgba(245,241,236,.64); border: 1px solid rgba(22,22,27,.08); }
.case-block h2 { margin: 0 0 12px; font-size: 20px; font-weight: 830; }
.case-block p, .case-block li { color: var(--muted); line-height: 1.65; font-size: 15px; }
.case-block ul { padding-left: 18px; margin: 0; }
.full-width { grid-column: 1 / -1; }

@keyframes titleRise { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRise { to { opacity: 1; transform: translateY(0); } }
@keyframes imageIn { to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr; align-items: start; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; gap: 20px; }
  .header-cta { justify-self: start; }
  .hero-section { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-visual { min-height: 430px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .skills-strip, .contact-footer, .case-hero { grid-template-columns: 1fr; }
  .skill-panels { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header, main, .site-footer { padding-left: 22px; padding-right: 22px; }
  
  .hero-name { font-size: clamp(28px, 8vw, 40px); line-height: 1.03; }
  .hero-title { font-size: clamp(34px, 10.5vw, 48px); line-height: 1; max-width: 100%; }
  .hero-section { min-height: auto; padding-top: 34px; padding-bottom: 22px; }
  .hero-visual { min-height: 340px; }
  .hero-photo { width: min(255px, 72%); }
  .hero-blob { width: min(285px, 74%); }
  .floating-card { left: 0; top: 42%; }
  .stamp { width: 92px; height: 92px; font-size: 8px; right: 2%; }
  .project-grid, .about-resume-grid, .case-grid { grid-template-columns: 1fr; }
  .project-thumb { height: 190px; }
  .skills-strip, .about-card-large, .resume-card, .contact-footer, .project-page { padding: 24px; border-radius: 22px; }
  .site-footer { flex-direction: column; }
}


/* ===== FINAL CLEANUP: resume only in hero, stronger case-study polish ===== */
.resume-hero-btn { text-decoration: none; }
.about-only { margin: 44px 0 42px; max-width: 980px; }
.about-only h2 { max-width: 650px; }
.about-only p:not(.section-kicker) { max-width: 760px; }
.project-card { cursor: pointer; }
.project-card:focus-within, .project-card:hover { outline: none; }
.project-wrapper .project-image { max-height: 420px; object-fit: cover; }
.case-block strong { color: var(--ink); }
.case-note { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: rgba(122,118,217,.08); color: var(--soft-ink); line-height: 1.65; }
@media (max-width: 760px) {
  .hero-actions { gap: 12px; }
  .primary-btn, .text-btn { width: 100%; max-width: 280px; }
  .main-nav { width: 100%; }
  .main-nav button { font-size: 14px; }
  .project-wrapper h1 { font-size: clamp(34px, 11vw, 46px); }
  .case-summary { font-size: 16px; }
}
