:root {
  color-scheme: light;
  /* Mid-century modern color palette: mustard, teal, terracotta, warm neutrals */
  --bg: #faf8f3;
  --bg-alt: #f5f1e8;
  --card: rgba(255, 255, 255, 0.92);
  --card-border: rgba(45, 55, 72, 0.08);
  --text: #2d3748;
  --text-soft: #4a5568;
  --muted: #718096;
  
  /* Bold mid-century accent colors */
  --accent-mustard: #e9b44c;
  --accent-teal: #2c7a7b;
  --accent-coral: #ed8936;
  --accent-terracotta: #c05621;
  --accent-pink: #ed64a6;
  --accent-blue: #4299e1;
  
  /* Gradients for that eclectic vibe */
  --gradient-warm: linear-gradient(135deg, #fed7aa 0%, #fbd38d 50%, #e9b44c 100%);
  --gradient-cool: linear-gradient(135deg, #81e6d9 0%, #4fd1c5 50%, #38b2ac 100%);
  --gradient-sunset: linear-gradient(135deg, #fc8181 0%, #f56565 50%, #ed8936 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(233, 180, 76, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(44, 122, 123, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(237, 100, 166, 0.04) 0%, transparent 50%);
  min-height: 100vh;
}

/* Geometric pattern overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(90deg, rgba(45, 55, 72, 0.02) 0px, transparent 1px, transparent 40px, rgba(45, 55, 72, 0.02) 41px),
    repeating-linear-gradient(0deg, rgba(45, 55, 72, 0.02) 0px, transparent 1px, transparent 40px, rgba(45, 55, 72, 0.02) 41px);
  opacity: 0.4;
  z-index: 0;
}

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

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 80px;
  position: relative;
  z-index: 1;
}

/* HERO SECTION - Bold geometric design */
.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: 
    linear-gradient(165deg, 
      rgba(255, 255, 255, 0.95) 0%, 
      rgba(255, 252, 247, 0.9) 50%,
      rgba(253, 246, 235, 0.85) 100%
    );
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(45, 55, 72, 0.06);
}

/* Geometric shapes background */
.hero::after {
  content: "";
  position: absolute;
  inset: -100px auto auto -100px;
  width: 400px;
  height: 400px;
  background: 
    radial-gradient(circle at 30% 30%, var(--accent-coral), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--accent-teal), transparent 65%);
  opacity: 0.12;
  filter: blur(60px);
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-mustard), transparent 70%);
  opacity: 0.1;
  filter: blur(50px);
  z-index: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  padding: 12px 12px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--gradient-warm);
  box-shadow: 
    0 4px 16px rgba(233, 180, 76, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(233, 180, 76, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-soft);
  font-weight: 500;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px;
  height: 2px;
  background: var(--accent-teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 2;
  padding: 20px 12px 16px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-teal);
  display: inline-block;
  padding: 6px 16px;
  background: rgba(44, 122, 123, 0.08);
  border-radius: 999px;
}

/* Profile photo styling */
.profile-photo-wrapper {
  width: clamp(165px, 20vw, 235px);
  height: clamp(165px, 20vw, 235px);
  margin: 0 0 22px;
  transform: none;
  position: relative;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 4px solid white;
  box-shadow: 
    0 0 0 2px var(--accent-teal),
    0 8px 24px rgba(44, 122, 123, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 2px var(--accent-coral),
    0 12px 32px rgba(237, 132, 54, 0.35);
}

.profile-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-mustard) 0%, var(--accent-teal) 50%, var(--accent-coral) 100%);
  opacity: 0.15;
  z-index: -1;
  filter: blur(12px);
}

.hero-copy h1,
.section-heading h2,
.contact-card h2,
.panel-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  max-width: 12ch;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.hero-text {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover::before {
  opacity: 1;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.button-primary {
  color: white;
  background: var(--gradient-cool);
  box-shadow: 0 4px 16px rgba(44, 122, 123, 0.3);
}

.button-secondary {
  border: 2px solid var(--accent-coral);
  background: white;
  color: var(--accent-coral);
  box-shadow: 0 4px 16px rgba(237, 132, 54, 0.15);
}

.button-secondary:hover {
  background: var(--accent-coral);
  color: white;
}

/* Stats with geometric shapes */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.hero-stats div {
  position: relative;
  border-radius: var(--radius-md);
  background: white;
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(45, 55, 72, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Colorful geometric accents for each stat */
.hero-stats div:nth-child(1)::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 60px;
  height: 60px;
  background: var(--accent-mustard);
  opacity: 0.15;
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.hero-stats div:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 50px;
  height: 50px;
  background: var(--accent-teal);
  opacity: 0.15;
  border-radius: 0 var(--radius-md) 0 0;
  transform: translate(25%, -25%) rotate(45deg);
}

.hero-stats div:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 70px;
  height: 70px;
  background: var(--accent-coral);
  opacity: 0.12;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform: translate(35%, 35%);
}

.hero-stats strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  z-index: 1;
  font-family: "Fraunces", serif;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
}

/* Side panel with playful cards */
.hero-panel {
  display: grid;
  gap: 20px;
}

.glass-card {
  box-shadow: var(--shadow-md);
}

.panel-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(45, 55, 72, 0.06);
  position: relative;
  overflow: hidden;
}

.accent-card {
  background: 
    linear-gradient(135deg, 
      rgba(253, 230, 138, 0.3) 0%, 
      rgba(252, 211, 77, 0.2) 100%
    ),
    white;
  border: 1px solid var(--accent-mustard);
}

.accent-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  background: var(--accent-mustard);
  opacity: 0.08;
  border-radius: 50%;
}

.panel-label,
.project-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(44, 122, 123, 0.12);
  position: relative;
  z-index: 1;
}

.panel-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.panel-card p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
}

.mini-metric {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mini-metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-metric strong {
  font-size: 4rem;
  line-height: 0.8;
  font-family: "Fraunces", serif;
  font-weight: 700;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-chip-list span,
.project-meta span {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(45, 55, 72, 0.05);
  border: 1px solid rgba(45, 55, 72, 0.08);
  transition: all 0.2s ease;
}

.project-chip-list span:hover,
.project-meta span:hover {
  background: rgba(44, 122, 123, 0.1);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 80px 12px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

/* About section - colorful cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(45, 55, 72, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Different color accents for each card */
.about-card:nth-child(1) {
  border-top: 4px solid var(--accent-mustard);
}

.about-card:nth-child(1)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 80px;
  height: 80px;
  background: var(--accent-mustard);
  opacity: 0.08;
  border-radius: 0 0 100% 0;
}

.about-card:nth-child(2) {
  border-top: 4px solid var(--accent-teal);
}

.about-card:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 90px;
  height: 90px;
  background: var(--accent-teal);
  opacity: 0.08;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.about-card:nth-child(3) {
  border-top: 4px solid var(--accent-coral);
}

.about-card:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 70px;
  height: 70px;
  background: var(--accent-coral);
  opacity: 0.08;
  border-radius: 50%;
  transform: translate(-35%, 35%);
}

.about-card h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.about-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Skills section - geometric grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.skill-group {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(45, 55, 72, 0.08);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-group:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.skill-group:nth-child(1) {
  background: 
    linear-gradient(135deg, rgba(129, 230, 217, 0.08) 0%, transparent 60%),
    white;
}

.skill-group:nth-child(2) {
  background: 
    linear-gradient(135deg, rgba(252, 211, 77, 0.08) 0%, transparent 60%),
    white;
}

.skill-group:nth-child(3) {
  background: 
    linear-gradient(135deg, rgba(252, 129, 129, 0.08) 0%, transparent 60%),
    white;
}

.skill-group h3 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.skill-group ul {
  margin: 0;
  padding-left: 24px;
  color: var(--text-soft);
  line-height: 2;
  list-style: none;
}

.skill-group li {
  position: relative;
  padding-left: 8px;
}

.skill-group li::before {
  content: "▸";
  position: absolute;
  left: -16px;
  color: var(--accent-teal);
  font-weight: bold;
}

/* Projects section - bold featured card */
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
}

.project-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid rgba(45, 55, 72, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-project {
  background: 
    linear-gradient(135deg, 
      rgba(129, 230, 217, 0.15) 0%, 
      rgba(79, 209, 197, 0.08) 100%
    ),
    white;
  border: 2px solid var(--accent-teal);
}

.featured-project::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 200px;
  height: 200px;
  background: var(--accent-teal);
  opacity: 0.06;
  border-radius: 50%;
}

.project-badge {
  color: var(--accent-teal);
  background: rgba(44, 122, 123, 0.15);
  font-weight: 800;
}

.project-badge.muted {
  color: var(--muted);
  background: rgba(113, 128, 150, 0.1);
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.project-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  position: relative;
  z-index: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--accent-terracotta);
  transform: translateX(4px);
}

.project-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

.upcoming-project {
  background: 
    linear-gradient(135deg, 
      rgba(252, 211, 77, 0.1) 0%, 
      rgba(251, 191, 36, 0.05) 100%
    ),
    white;
}

/* Contact section - bold CTA */
.contact-card {
  padding: 48px;
  border-radius: var(--radius-xl);
  background: 
    linear-gradient(135deg,
      rgba(237, 132, 54, 0.12) 0%,
      rgba(44, 122, 123, 0.08) 100%
    ),
    white;
  border: 2px solid var(--accent-coral);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -100px auto auto -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-coral), transparent 70%);
  opacity: 0.08;
}

.contact-card h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  z-index: 1;
}

.contact-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.contact-links {
  display: grid;
  gap: 16px;
  min-width: min(360px, 100%);
  position: relative;
  z-index: 1;
}

.contact-links a {
  display: block;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text);
  font-weight: 600;
  border: 2px solid rgba(45, 55, 72, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.contact-links a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .project-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .section-heading h2,
  .contact-card h2 {
    max-width: 100%;
  }

  .contact-card {
    gap: 32px;
  }

  .profile-photo-wrapper {
    margin: 0 auto 22px;
    transform: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 24px);
    padding: 20px 0 48px;
  }

  .hero {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.95rem;
  }

  .hero-grid {
    padding: 16px 8px 12px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding-top: 56px;
  }

  .panel-card,
  .about-card,
  .skill-group,
  .project-card,
  .contact-card {
    padding: 28px;
  }

  .contact-card {
    padding: 32px 24px;
  }
}
