/* ========================================
   CSS VARIABLES (EDIT COLORS & SPACING HERE)
   ======================================== */
:root {
  /* Colors */
  --bg: #0f172a;
  --bg-subtle: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #14b8a6;
  --accent-hover: #0d9488;

  /* Spacing & Layout */
  --max-width: 720px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);

  /* Subtle code-style background pattern */
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.4) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--spacing-md);
  z-index: 100;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: var(--spacing-md);
  outline: 3px solid var(--accent-hover);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   LAYOUT & CONTAINER
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

header {
  text-align: center;
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

main {
  flex: 1;
  padding: var(--spacing-md) 0;
}

footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  text-align: center;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

.name {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-xs);
  color: var(--text);
  letter-spacing: -0.02em;
}

.title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

/* ========================================
   AVATAR
   ======================================== */
.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro {
  margin-bottom: var(--spacing-xl);
}

.intro p {
  margin-bottom: var(--spacing-md);
}

.intro p:last-child {
  margin-bottom: 0;
}



/* ========================================
   SOCIAL LINKS
   ======================================== */
.social {
  margin-bottom: var(--spacing-xl);
}

.icon-row {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-start;
  margin-top: var(--spacing-md);
}

.icon-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.1s ease;
  border-radius: 6px;
  padding: var(--spacing-xs);
}

.icon-row a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.icon-row a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  color: var(--accent);
}

.icon-row svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  body {
    font-size: 1rem;
    padding: var(--spacing-sm);
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .intro {
    margin-bottom: var(--spacing-lg);
  }

  .cta {
    margin-bottom: var(--spacing-xl);
  }

  .icon-row {
    gap: var(--spacing-sm);
  }
}

/* ========================================
   FOCUS VISIBLE (modern browsers)
   ======================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --bg: #000;
    --text: #fff;
    --accent: #0ff;
  }
}
