:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --primary: #1d4ed8;
  --text: #111827;
  --muted: #4b5563;
  --border: #d1d5db;
  --panel-bg: #0f172a;
  --panel-text: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 36vw) 1fr;
  min-height: 100vh;
}

.profile-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  background: linear-gradient(165deg, #0f172a 0%, #1e3a8a 100%);
  color: var(--panel-text);
  border-right: 1px solid rgba(148, 163, 184, 0.28);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.8rem;
  opacity: 0.75;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.subtitle {
  margin: 0.8rem 0 0;
  font-size: 1.06rem;
}

.location {
  margin: 0.35rem 0 1.2rem;
  color: rgba(229, 231, 235, 0.9);
}

.hero-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-links a {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(229, 231, 235, 0.4);
  border-radius: 999px;
  padding: 0.42rem 0.92rem;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(229, 231, 235, 0.7);
}

.section {
  padding-top: 2.25rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1.45rem;
}

.profile-panel h2 {
  font-size: 1.2rem;
  color: #f8fafc;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.6);
  border-color: #94a3b8;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

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

.footer {
  padding-top: 2rem;
  color: rgba(229, 231, 235, 0.78);
}

.footer p {
  margin: 0;
}

.panel-content {
  width: min(820px, 100%);
}

.portfolio-panel {
  height: 100vh;
  overflow-y: auto;
  padding: 2.4rem clamp(1.25rem, 2vw, 2.4rem) 3rem;
}

.portfolio-panel .panel-content {
  margin: 0 auto;
}

a:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 10px;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .layout {
    display: block;
  }

  .profile-panel,
  .portfolio-panel {
    position: static;
    height: auto;
    overflow: visible;
  }

  .profile-panel {
    padding: 1.75rem 1.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }

  .portfolio-panel {
    padding: 1.5rem 1.2rem 2.2rem;
  }

  .section {
    padding-top: 1.75rem;
  }
}
