/* index.css */

:root {
  --bg: #111;
  --fg: #eee;
  --accent: #5a9bd8;
  --card: #1f2126;
  --radius: 8px;
  --gap: 1.5rem;
  --font: 'Segoe UI', sans-serif;

  /* Avatar controls (bigger, softer corners; NOT a circle) */
  --avatar-w: 320px;       /* width of photo block */
  --avatar-h: 420px;       /* height of photo block */
  --avatar-radius: 14px;   /* gentle rounding (lower = less rounded) */
  --avatar-pos-x: 50%;     /* horizontal focus */
  --avatar-pos-y: 44%;     /* vertical focus: increase to move image DOWN */
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
}

.nav {
  background: var(--card);
  padding: var(--gap) 0;
  display: flex;
  justify-content: center;
  gap: var(--gap);
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.nav a:hover {
  background: var(--accent);
}

.hero {
  text-align: center;
  padding: 4rem 1rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.hero p {
  font-size: 1.25rem;
  color: #bbb;
  margin-top: 0.15rem;
  margin-bottom: 0.9rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--gap);
  margin-bottom: var(--gap);
}

h2 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
}

li + li {
  margin-top: 0.5rem;
}

.project {
  margin-bottom: 1.5rem;
}

.project h3 {
  margin-bottom: 0.5rem;
}

.project a {
  color: var(--accent);
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

.footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
}

/* ---------- Profile photo (bigger, soft corners, no circle) ---------- */

.profile-wrap {
  margin-top: 0.5rem;
  width: var(--avatar-w);
  height: var(--avatar-h);
  border-radius: var(--avatar-radius);
  overflow: hidden; /* mask edges cleanly, but not a circle */
  border: 3px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  display: block;
  background: #0f1115;
}

.profile-img {
  display: block;
  width: 100%;
  height: 100%;

  /* Fill area without distortion */
  object-fit: cover;
  object-position: var(--avatar-pos-x) var(--avatar-pos-y);

  /* No transforms (avoids blur/flat edges) */
  transform: none;
  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* subtle divider below hero */
.hero-divider {
  margin: 1.2rem auto 0;
  width: min(88%, 820px);
  height: 1px;
  background: #2a2d35;
  border-radius: 1px;
}

/* Responsive sizes */
@media (max-width: 900px) {
  :root {
    --avatar-w: 280px;
    --avatar-h: 360px;
  }
}
@media (max-width: 480px) {
  :root {
    --avatar-w: 88vw;
    --avatar-h: 64vw;     /* shorter on phones to keep hero compact */
  }
}
