:root {
  --ink: #101219;
  --muted: #77745d;
  --cream: #fffdf5;
  --butter: #fff8a8;
  --butter-deep: #f6ec78;
  --lavender: #b9b0f5;
  --lavender-deep: #5f5a72;
  --paper: #fffdf4;
  --shadow: 0 28px 70px rgba(40, 37, 18, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(22px, 7vw, 116px);
  background: rgba(255, 253, 245, 0.94);
  border-bottom: 1px solid rgba(16, 18, 25, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links a {
  font-size: 22px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 5vw, 78px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 34px clamp(18px, 6vw, 118px) 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(#fffdf8 0 22%, #fff8a8 22% 100%);
}

.hero-card {
  position: relative;
  width: min(100%, 1740px);
  min-height: min(72vh, 740px);
  padding: clamp(28px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.yellow-hero-card::before {
  content: "";
  position: absolute;
  inset: 6% -8% 0;
  z-index: -1;
  background: var(--butter);
  border-radius: 50% 50% 0 0 / 72% 72% 0 0;
}

.hero-title-lockup {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.portfolio-word {
  margin: 0 auto;
  width: 100%;
  color: var(--ink);
  font-size: clamp(62px, 10.8vw, 164px);
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  font-weight: 950;
  text-transform: uppercase;
}

.signature-name {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-4deg);
  z-index: 3;
  width: max-content;
  margin: 0;
  color: #fffdf7;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(34px, 5.5vw, 86px);
  line-height: 0.9;
  font-weight: 400;
  text-shadow: 0 3px 0 rgba(16, 18, 25, 0.22), 0 18px 36px rgba(16, 18, 25, 0.22);
  animation: nameFloat 4.4s ease-in-out infinite;
}

.hero-meta-line {
  width: min(46vw, 520px);
  height: 3px;
  margin-top: 48px;
  background: var(--ink);
  position: relative;
  justify-self: start;
  margin-left: 6%;
  animation: lineDrift 5.2s ease-in-out infinite;
}

.hero-meta-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.year-pill {
  margin: -42px 7% 0 auto;
  padding: 12px 38px;
  border-radius: 999px;
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow);
  animation: softFloat 5.5s ease-in-out infinite;
}

.hero-contact-strip {
  display: none;
  position: absolute;
  left: clamp(24px, 10vw, 170px);
  right: clamp(24px, 10vw, 170px);
  bottom: clamp(28px, 5vw, 76px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-contact-strip a,
.connect-actions a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 650;
  color: rgba(16, 18, 25, 0.82);
}

.hero-contact-strip span:last-child,
.connect-actions span:last-child {
  overflow-wrap: anywhere;
}

.icon-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #11131a;
  color: #fff;
  font-weight: 850;
  text-transform: lowercase;
  box-shadow: 0 12px 30px rgba(24, 21, 37, 0.2);
}

.sparkle {
  position: absolute;
  width: clamp(30px, 5vw, 86px);
  aspect-ratio: 1;
  background: #11131a;
  clip-path: polygon(50% 0, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0 50%, 39% 36%);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  animation: sparklePulse 3.8s ease-in-out infinite;
}

.sparkle-one {
  left: 8%;
  top: 36%;
}

.sparkle-two {
  left: 39%;
  bottom: 22%;
  transform: scale(0.82);
  animation-delay: 0.55s;
}

.sparkle-three {
  right: 21%;
  top: 17%;
  transform: scale(0.9);
  animation-delay: 1s;
}

.sparkle-four {
  right: 27%;
  top: 32%;
  transform: scale(0.75);
  animation-delay: 1.45s;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  place-items: center;
  color: rgba(75, 70, 45, 0.76);
  font-size: 13px;
  text-align: center;
}

.scroll-cue span {
  width: 1px;
  height: 22px;
  background: currentColor;
}

.section-band {
  padding: clamp(72px, 9vw, 124px) clamp(22px, 7vw, 116px);
  background: var(--butter);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.78fr);
  gap: clamp(42px, 9vw, 130px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-copy h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading h2,
.connect-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-copy h2 {
  position: relative;
  max-width: 720px;
}

.intro-copy h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 70px;
  left: -46px;
  bottom: -42px;
  border-left: 2px solid #11131a;
  border-bottom: 2px solid #11131a;
  border-radius: 0 0 0 70px;
  transform: rotate(-14deg);
}

.intro-copy h2 span,
.section-heading h2,
.connect-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.intro-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 38px 0 28px;
  font-size: clamp(16px, 1.45vw, 20px);
}

.search-pill {
  width: min(100%, 430px);
  min-height: 68px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #fffdf7;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
  font-weight: 650;
}

.about-resume {
  margin-top: 18px;
}

.about-social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.about-social-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #11131a;
  background: rgba(255, 253, 247, 0.7);
  border: 1px solid rgba(17, 19, 26, 0.22);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.about-social-links a:hover,
.about-social-links a:focus-visible {
  transform: translateY(-3px);
  background: #fffdf7;
  box-shadow: 0 14px 28px rgba(24, 21, 37, 0.16);
  outline: none;
}

.about-social-links svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.search-pill span {
  width: 22px;
  height: 22px;
  border: 2px solid #979797;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-pill span::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  right: -7px;
  bottom: 0;
  background: #979797;
  transform: rotate(45deg);
}

.profile-card {
  position: relative;
  max-width: 500px;
  margin-inline: auto;
  background: #fffdf7;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.profile-art {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #11131a;
}

.photo-drop {
  width: 100%;
  height: 100%;
  min-height: 292px;
  overflow: hidden;
}

.photo-drop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 24%;
}

.profile-details h3 {
  margin: 24px 0 8px;
  font-size: 25px;
}

.profile-details h3 span,
.location,
.profile-details p:last-child {
  color: #878787;
}

.location {
  margin: 0 0 16px;
  font-weight: 650;
}

.profile-details p:last-child {
  margin: 0;
}

.skills,
.experience {
  background: #fffdf7;
}

.section-heading {
  max-width: 980px;
  margin-bottom: clamp(34px, 6vw, 68px);
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.github-explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 16px 34px rgba(24, 21, 37, 0.16);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-grid article,
.project-card,
.achievement-panel,
.timeline article,
.connect-panel {
  border: 1px solid rgba(16, 18, 25, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 18px 45px rgba(34, 31, 14, 0.08);
}

.skill-grid article {
  min-height: 178px;
  padding: 28px;
  overflow: hidden;
}

.skill-grid article:nth-child(1) {
  background: #fff8a8;
}

.skill-grid article:nth-child(2) {
  background: #b9b0f5;
}

.skill-grid article:nth-child(3) {
  background: #b7ead6;
}

.skill-grid article:nth-child(4) {
  background: #ffd6a5;
}

.skill-grid article:nth-child(5) {
  background: #f8b9c4;
}

.skill-grid article:nth-child(6) {
  background: #b9d8ff;
}

.skill-grid h3,
.project-card h3,
.timeline h3,
.achievement-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.5vw, 34px);
}

.skill-grid p,
.project-card p,
.timeline li,
.achievement-panel li {
  color: #514f42;
  font-size: 16px;
}

.project-stack {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 180px minmax(190px, 0.32fr) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
}

.project-shot {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(16, 18, 25, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffdf7;
  box-shadow: 0 16px 34px rgba(24, 21, 37, 0.12);
}

.project-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.project-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.project-card p {
  margin: 0;
}

.project-card a,
.resume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.recognition {
  background: var(--butter);
}

.recognition-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.recognition-card {
  display: grid;
  grid-template-rows: minmax(180px, 1fr) auto;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(16, 18, 25, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 18px 45px rgba(34, 31, 14, 0.08);
}

.recognition-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.recognition-card strong {
  min-height: 28px;
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 20px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article,
.achievement-panel {
  padding: 30px;
}

.internship-slot {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 248, 168, 0.52), rgba(185, 176, 245, 0.3)),
    rgba(255, 253, 247, 0.92);
}

.timeline p {
  margin: 0 0 10px;
  color: #8c854f;
  font-weight: 850;
}

.timeline span {
  display: block;
  margin-bottom: 18px;
  color: #514f42;
  font-weight: 700;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.achievement-panel {
  position: sticky;
  top: 102px;
}

.achievement-panel ul {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.connect {
  min-height: 92vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 253, 247, 0.9) 0 28%, transparent 28.2%),
    var(--butter);
}

.connect-panel {
  width: min(100%, 1120px);
  padding: clamp(34px, 7vw, 90px);
  background: var(--lavender);
  box-shadow: 0 24px 26px rgba(21, 18, 32, 0.2);
}

.connect-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.connect-actions a {
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fffdf7;
}

.section-band,
.profile-card,
.skill-grid article,
.project-card,
.recognition-card,
.timeline article,
.achievement-panel,
.connect-panel {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.25s ease;
}

.section-band.is-visible,
.profile-card.is-visible,
.skill-grid article.is-visible,
.project-card.is-visible,
.recognition-card.is-visible,
.timeline article.is-visible,
.achievement-panel.is-visible,
.connect-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-grid article:hover,
.project-card:hover,
.recognition-card:hover,
.timeline article:hover,
.profile-card:hover,
.connect-actions a:hover,
.resume-button:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(34, 31, 14, 0.15);
}

@keyframes nameFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-4deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 12px)) rotate(-2deg);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes lineDrift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(14px);
  }
}

@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0.82;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 253, 247, 0.9));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .section-band,
  .profile-card,
  .skill-grid article,
  .project-card,
  .recognition-card,
  .timeline article,
  .achievement-panel,
  .connect-panel {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 24px;
  }

  .nav-links {
    gap: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card {
    min-height: 620px;
  }

  .hero-contact-strip,
  .connect-actions,
  .skill-grid,
  .project-card,
  .recognition-chart,
  .timeline-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    align-items: start;
  }

  .section-heading.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .achievement-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    padding-top: 2px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-card {
    min-height: 560px;
    padding: 22px;
  }

  .portfolio-word {
    font-size: clamp(42px, 14.5vw, 58px);
  }

  .signature-name {
    top: 40%;
    font-size: clamp(25px, 9vw, 40px);
  }

  .hero-meta-line {
    width: min(72%, 250px);
    margin-top: 30px;
    margin-left: 0;
    justify-self: center;
  }

  .year-pill {
    margin: 18px auto 0;
    padding: 10px 24px;
    font-size: clamp(34px, 12vw, 48px);
  }

  .icon-badge {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .intro-copy h2::after {
    display: none;
  }

  .profile-card {
    padding: 18px;
  }

  .profile-art {
    min-height: 250px;
  }

  .section-heading.compact {
    display: flex;
  }

  .recognition-card {
    grid-template-rows: minmax(150px, 1fr) auto;
  }

  .recognition-card img {
    min-height: 150px;
  }

  .connect-panel {
    padding: 28px;
  }
}
