:root {
  --accent: #0f63ff;
  --accent2: #38b6ff;
  --muted: #6b7280;
  --bg: #f1f7ff;
  --card: #ffffff;
  --radius: 12px;
  --max-width: 1100px;
  --shadow: 0 10px 28px rgba(8,20,60,0.06);
}

/* Reset / base */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #0d1520;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* Header / Hero */
header {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 40px 0;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}
.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.18);
  flex: 0 0 auto;
}
.hero-content {
  flex: 1 1 auto;
  min-width: 220px;
}
.hero-content h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
}
.subtitle {
  margin: 6px 0 0;
  opacity: 0.95;
}

/* Buttons */
.hero-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary { background: #fff; color: var(--accent); }
.btn.outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.14); }

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6,46,115,0.03);
}

/* Headings / text helpers */
h2 { color: var(--accent); margin: 0 0 10px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Summary Card layout */
.summary-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.badge {
  display: inline-block;
  background: #e7f2ff;
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 10px;
}
.contact-list { margin-top: 12px; }
.contact-list .item { margin-bottom: 8px; font-size: 14px; }

/* Skills chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  background: #eef5ff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #073b9a;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(6,46,115,0.03);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.project-card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 6px 18px rgba(6,46,115,0.03);
  border: 1px solid rgba(6,46,115,0.02);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(8,30,80,0.12);
}
.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(6,10,20,0.45);
  z-index: 999;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal-content {
  width: 100%;
  max-width: 920px;
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  box-shadow: 0 30px 80px rgba(6,10,30,0.4);
}
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: #f2f4f8;
  border: 0;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Slider & thumbs */
.slider img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
}
.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.thumb-row img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.85;
  border: 2px solid transparent;
}
.thumb-row img.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Footer */
.footer { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Accessibility focus */
a:focus, button:focus, .project-card:focus { outline: 3px solid rgba(15,99,255,0.12); outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .summary-card { grid-template-columns: 1fr; }
  .hero { align-items: center; }
  .slider img { height: 260px; }
  .thumb-row img { width: 70px; height: 48px; }
  .profile-img { width: 96px; height: 96px; }
}
