/* ---------- Dark theme: black + red ---------- */
:root{
  --bg: #0a0a0b;         /* page background (near-black) */
  --panel: #121214;      /* cards / sections */
  --text: #ffffff;       /* main text */
  --muted: #c9c9c9;      /* secondary text */
  --accent: #e11d48;     /* red */
  --accent-weak: rgba(225, 29, 72, 0.35);
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

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

/* Header / nav */
header{
  background: linear-gradient(180deg, #0a0a0b, #0a0a0b);
  border-bottom: 1px solid var(--accent-weak);
  padding: 12px 0;
}
nav{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 20px;
}
nav a{
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .18s ease;
}
nav a:hover, nav a:focus{
  border-color: var(--accent);
  background: rgba(225, 29, 72, 0.08);
  outline: none;
}

/* Page layout */
main{
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
section, .card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Headings & links */
h1, h2{
  color: var(--text);
  margin-top: 0;
}
h1{ font-size: 1.9rem; }
h2{ font-size: 1.35rem; margin-top: 22px; }

a{ color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
a:hover{ text-decoration-thickness: 3px; }

/* Footer */
footer{
  border-top: 1px solid var(--accent-weak);
  text-align: center;
  padding: 30px 0;
  color: var(--muted);
  font-size: .92rem;
  margin-top: 50px;
}

/* Profile photo with red ring */
.profile-photo{
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);                /* red border */
  box-shadow:
    0 0 0 6px rgba(225, 29, 72, 0.18),            /* soft red outer ring */
    0 12px 28px rgba(0,0,0,.45);                  /* depth */
}

/* Utility */
.muted{ color: var(--muted); }
.row{ display:flex; flex-wrap:wrap; gap:10px; }

/* ---------- Projects page helpers ---------- */
.projects-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.project h3 {
  margin: 0 0 6px 0;
  font-size: 1.15rem;
}
.project .meta {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: .92rem; margin-bottom: 8px;
}
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tag {
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 3px 8px; border-radius: 999px; font-size: .82rem;
  background: rgba(225, 29, 72, 0.08);
}
.links { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.link-btn {
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(225, 29, 72, .12);
  transition: transform .12s ease;
}
.link-btn:hover { transform: translateY(-1px); }


/* ---------- Resume page helpers ---------- */
.btn {
  display:inline-block;
  padding:10px 14px;
  border:1px solid var(--accent);
  border-radius:10px;
  color: var(--text);
  background: rgba(225, 29, 72, .12);
  text-decoration:none;
  font-weight:700;
  transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.resume-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media(min-width: 800px){
  .resume-grid { grid-template-columns: 1.1fr 1fr; }
}

.card-title {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}

.skill-badges { display:flex; flex-wrap:wrap; gap:8px; }
.badge {
  padding: 4px 10px;
  border:1px solid var(--accent);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  font-size:.9rem;
}
.item { margin: 0 0 8px 0; }
.role { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; color: var(--muted); }

