*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #FFFDF5;
  --ink: #000000;
  --accent: #FF6B6B;
  --secondary: #FFD93D;
  --muted: #C4B5FD;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-weight: 700;
  line-height: 1.6;
}

.pat-dots {
  background-image: radial-gradient(var(--ink) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

.pat-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, .07) 1px, transparent 1px);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.spin-slow { animation: spin-slow 12s linear infinite; }
.float { animation: float 3s ease-in-out infinite; }
.reveal { animation: reveal .55s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .spin-slow,
  .float,
  .reveal { animation: none !important; }
  .marquee-inner { animation: none !important; }
}

.marquee {
  overflow: hidden;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--secondary);
}

.marquee-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  padding: 12px 0;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.marquee-inner span {
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 4px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform .1s linear, box-shadow .1s linear;
}

.btn-primary {
  background: var(--accent);
  box-shadow: 6px 6px 0 0 var(--ink);
}

.btn-secondary {
  background: var(--secondary);
  box-shadow: 6px 6px 0 0 var(--ink);
}

.btn-outline {
  background: var(--white);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.btn:hover {
  filter: brightness(.92);
}

.card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 0 var(--ink);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  position: relative;
}

.sr {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.sr.visible {
  opacity: 1;
  transform: translateY(0);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 4px solid var(--ink);
  padding: 0 24px;
}

nav .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  background: var(--accent);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 4px 16px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
  transition: transform .1s, box-shadow .1s;
}

.logo:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 14px;
  border: 3px solid transparent;
  transition: all .1s linear;
}

.nav-links a:hover {
  background: var(--secondary);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
}

.hamburger {
  display: none;
  background: var(--secondary);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform .1s, box-shadow .1s;
}

.hamburger:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  border-top: 4px solid var(--ink);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
  border: 4px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 0 var(--ink);
  margin-bottom: 12px;
  transition: transform .1s, box-shadow .1s;
}

.mobile-menu a:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: var(--bg);
}

#hero .pat-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  background: var(--secondary);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 6px 18px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  transform: rotate(-2deg);
  margin-bottom: 24px;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.hero-name .stroke {
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
}

.hero-name .highlight {
  background: var(--accent);
  padding: 0 12px;
  display: inline-block;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  transform: rotate(1deg);
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.hero-desc {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-deco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.deco-box {
  width: 320px;
  height: 400px;
  border: 4px solid var(--ink);
  background: var(--muted);
  box-shadow: 12px 12px 0 0 var(--ink);
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.deco-box .pat-dots {
  position: absolute;
  inset: 0;
  opacity: .12;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 2;
}

.deco-badge-1 {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--secondary);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 8px 14px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  transform: rotate(6deg);
  z-index: 5;
}

.deco-badge-2 {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--accent);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transform: rotate(-4deg);
  z-index: 5;
}

.deco-star {
  position: absolute;
  top: 40px;
  left: -20px;
  font-size: 2.5rem;
  z-index: 5;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-desc { margin: 20px auto 0; }
  .hero-buttons { justify-content: center; }
  .hero-deco { min-height: 300px; }
  .deco-box { width: 260px; height: 300px; }
  .hero-label { margin: 0 auto 20px; }
}

#about {
  background: var(--white);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.section-tag {
  display: inline-block;
  background: var(--accent);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 6px 18px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  transform: rotate(-1deg);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .95;
  margin-bottom: 24px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 500;
}

.timeline {
  position: relative;
  padding-left: 36px;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--ink);
}

.tl-item {
  position: relative;
  margin-bottom: 28px;
}

.tl-dot {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 28px;
  height: 28px;
  border: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
}

.tl-dot.done { background: var(--accent); }
.tl-dot.work { background: var(--secondary); }
.tl-dot.edu { background: var(--muted); }

.tl-date {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 700;
  margin-bottom: 2px;
}

.tl-title { font-size: 1rem; font-weight: 700; }
.tl-sub { font-size: .85rem; font-weight: 500; }

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

#skills {
  background: var(--ink);
  color: var(--white);
}

#skills .section-tag {
  background: var(--secondary);
  color: var(--ink);
}

#skills .section-title {
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.skill-card {
  background: var(--bg);
  border: 4px solid var(--white);
  box-shadow: 8px 8px 0 0 var(--white);
  padding: 28px 24px;
  color: var(--ink);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 0 var(--white);
}

.skill-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.skill-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: .88rem;
  line-height: 1.6;
  font-weight: 500;
}

@media (max-width: 960px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
}

#certs {
  background: var(--secondary);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.cert-card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 0 var(--ink);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: 10px 10px 0 0 var(--ink);
}

.cert-icon {
  min-width: 52px;
  height: 52px;
  background: var(--muted);
  border: 4px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.cert-card h3 {
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cert-card p {
  font-size: .8rem;
  font-weight: 500;
  margin-top: 2px;
}

@media (max-width: 960px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .certs-grid { grid-template-columns: 1fr; }
}

#projects {
  background: var(--bg);
}

.projects-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.project-card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 0 var(--ink);
  overflow: hidden;
}

.project-card-header {
  background: var(--muted);
  border-bottom: 4px solid var(--ink);
  padding: 20px 24px;
  position: relative;
}

.project-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.project-card-body {
  padding: 24px;
}

.project-card-body p {
  font-size: .95rem;
  line-height: 1.7;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.feature-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.feature-dot.red { background: var(--accent); }
.feature-dot.yellow { background: var(--secondary); }
.feature-dot.purple { background: var(--muted); }

.project-aside {
  position: relative;
}

.code-block {
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--accent);
  padding: 24px;
  color: var(--accent);
  font-family: 'Space Grotesk', monospace;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
}

.code-block .comment { color: var(--muted); }
.code-block .keyword { color: var(--secondary); }
.code-block .string { color: var(--accent); }

@media (max-width: 768px) {
  .projects-inner { grid-template-columns: 1fr; }
}

footer {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--ink);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 4px solid var(--white);
  box-shadow: 4px 4px 0 0 var(--white);
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform .1s, box-shadow .1s, background .1s;
}

.footer-links a:hover {
  background: var(--accent);
}

.footer-links a:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, .2);
}

.star-svg {
  display: inline-block;
}
