/* ==== Base layout ==== */
:root {
  --bg: #0d1117;          /* deep GitHub-like black */
  --text: #f2f2f2;        /* near white text */
  --muted: #9ca3af;       /* subtle gray for subtitles */
  --line: #1f2937;        /* divider lines */
  --accent: #3b82f6;      /* bright blue accent */
  --card-bg: #161b22;     /* dark gray for cards */
  --radius: 12px;
}


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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--text);
}

h1.title {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.6rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* ==== Header ==== */
header {
  text-align: center;
  padding-top: 5rem;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--muted);
  max-width: 640px;
  margin: 0.5rem auto 2rem;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==== Projects Grid ==== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.link { text-decoration: none; color: inherit; display: block; }

.thumb {
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 0.8rem;
}

/* ==== Text helpers ==== */
.stack { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }

.btn-text {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==== Contact & Footer ==== */
ul.list { list-style: none; }
ul.list li { margin-bottom: 0.5rem; }

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ==== Certifications ==== */
.grid.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.center { text-align: center; }
.mb-8 { margin-bottom: 0.8rem; }

/* ==== Animations (AOS) ==== */
[data-aos] { opacity: 0; transform: translateY(10px); transition: all 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
