:root {
  color-scheme: dark;
  --background: #0f172a;
  --surface: #111827;
  --surface-alt: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 25%),
              linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: var(--text);
}

body {
  line-height: 1.65;
}

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

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  margin: 0;
  line-height: 1.02;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0f172a;
  box-shadow: 0 16px 32px rgba(56, 189, 248, 0.16);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
  background: rgba(15, 23, 42, 0.85);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.profile-card,
.contact-card {
  width: 100%;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 32px;
}

.profile-card h2,
.contact-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.profile-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.profile-card li {
  color: var(--muted);
}

.section {
  margin-top: 64px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.section-heading p {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1rem;
}

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

.project-card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.project-tag {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.project-card h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.project-card p {
  color: var(--muted);
  margin: 0 0 24px;
}

.project-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.project-card li {
  font-size: 0.95rem;
}

.project-link {
  color: var(--accent);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.skill-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.about-copy h2 {
  margin-top: 0;
  font-size: 2.3rem;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.metrics-row div {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
}

.metrics-row strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.metrics-row span {
  color: var(--muted);
}

.footer-section {
  margin-top: 72px;
  padding: 36px 32px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer-photo {
  min-width: 220px;
  width: 220px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.footer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.footer-section h2 {
  margin: 12px 0 0;
  font-size: 2rem;
}

.footer-section p {
  margin: 16px 0 0;
  color: var(--muted);
}

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

.footer-links a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 1040px) {
  .hero-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid,
  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 28px 20px 52px;
  }

  .project-grid,
  .skills-grid,
  .metrics-row {
    grid-template-columns: 1fr;
  }

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