:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --accent: #6366f1;
  --accent-3: #f97316;
  --accent-4: #ec4899;
}

body.dark {
  --bg: #0b1020;
  --card: #121834;
  --text: #e5e7eb;
  --muted: #9aa3c7;
  --border: #232a55;
}

@media (prefers-color-scheme: dark) {
  body:not(.light) {
    --bg: #0b1020;
    --card: #121834;
    --text: #e5e7eb;
    --muted: #9aa3c7;
    --border: #232a55;
  }
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.25rem 3.5rem; }

header {
  display: grid;
  gap: 2rem;
  margin-bottom: 5rem;
  position: relative;
}

/*header::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  inset: -2rem -1rem auto -1rem;*/
/*  height: 260px;*/
/*  background:*/
/*          radial-gradient(600px 200px at 20% 0%, rgba(236,72,153,0.22), transparent 60%),*/
/*          radial-gradient(500px 200px at 80% 20%, rgba(99,102,241,0.22), transparent 60%);*/
/*  z-index: -1;*/
/*  border-radius: 32px;*/
/*}*/

header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

header h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-4), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
  color: var(--accent);
  /*color: var(--muted);*/
}

.header-meta a { color: inherit; }

header p {
  max-width: 760px;
  font-size: 1.1rem;
  color: var(--muted);
}

section { margin-bottom: 4.5rem; }

section h2 {
  font-size: 2.1rem;
  margin-bottom: 2.5rem;
  position: relative;
  letter-spacing: -0.015em;
}

section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-4), var(--accent-3));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.96));
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.dark .project-card {
  background: linear-gradient(180deg, var(--card), #0e1430);
}

.project-card:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 35px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(249,115,22,0.35);
}

.project-card::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 50%;
  width: 320px;
  height: 320px;
  border: 1.5px dashed rgba(249,115,22,0.25);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.project-card:hover::after { opacity: 1; }

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-4), var(--accent-3));
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.project-content p {
  font-size: 0.95rem;
  color: var(--muted);
  flex-grow: 1;
}

.project-links { display: flex; gap: 1.25rem; font-size: 0.9rem; }

.resume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.resume-card {
  background: var(--card);
  border-radius: 20px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.resume-card h3 { font-weight: 900; margin-bottom: 1rem; }

.resume-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--muted);
}

.divider {
  width: 100%;
  max-width: 640px;
  height: 1px;
  margin: 1rem auto;
  background-color: var(--border);
}

