:root {
  --bg-alt: #08223bff;
  --bg: rgb(5, 20, 34);
  --text: #ffffff;
  --text-muted: #c8c8c8;
  --accent-soft: #352c00f1;
  --accent: #d4bea3;
  --border: #0d1e5a;
  --max-width: 860px;
  --header-color: #dfa701;
  --project-button-hover: #cb9800;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  position: sticky;
  top: 0;
  background: var(--header-color);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

nav a {
  color: var(--text);
  margin-left: 22px;
  font-size: 0.95rem;
}
nav a:hover { color: var(--accent); text-decoration: none; }

.lang-toggle {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lang-toggle:hover { background: #061b2e; }

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

.hero {
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero p.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.2;
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--header-color);
  color: #fff;
}
.btn-primary:hover { background: var(--project-button-hover); text-decoration: none; }

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #061b2e; text-decoration: none; }

h2.section-title {
  font-size: 1.5rem;
  margin: 0 0 32px;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid var(--bg-alt);
  box-shadow: 0 6px 18px rgba(16,26,48,0.15);
}

@media (max-width: 560px) {
  .about-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .about-photo { width: 140px; height: 140px; }
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  background: var(--bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(16,26,48,0.1);
  transform: translateY(-2px);
}

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

.card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card a.repo-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: 120px;
  row-gap: 24px;
}

.skills-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.activity-card {
  background: var(--accent-soft);
  border: 1px solid var(--project-button-hover);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
}

.activity-chart {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

.activity-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact p.lead {
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 560px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.contact-list a:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--accent);
}

footer {
  padding: 32px 0 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  nav a { margin-left: 14px; font-size: 0.88rem; }
  section { padding: 52px 0; }
}
