* { box-sizing: border-box; }
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5f6b7a;
  --line: #dbe3ee;
  --navy: #082b5c;
  --blue: #1467c8;
  --soft-blue: #eaf3ff;
  --green: #1d7f4f;
  --gold: #bf8500;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247,249,252,.92);
  border-bottom: 1px solid rgba(219,227,238,.8);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; color: var(--navy); letter-spacing: -.03em; font-size: 1.1rem; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .94rem; font-weight: 600; }
nav a:hover { color: var(--blue); }

.hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(circle at 90% 15%, #dcecff 0, transparent 24%),
    linear-gradient(180deg, #fff, #f7f9fc);
}
.hero-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 70px; align-items: center; }
.eyebrow, .section-kicker {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin: 0;
  max-width: 850px;
}
.hero-copy { max-width: 760px; color: var(--muted); font-size: 1.1rem; margin: 24px 0 28px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition: .2s ease;
}
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { transform: translateY(-2px); background: #0a3877; }
.btn.secondary { background: #fff; }
.btn.secondary:hover { border-color: #aebbc9; transform: translateY(-2px); }
.quick-stack { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.quick-stack span, .tags span {
  padding: 6px 10px;
  background: var(--soft-blue);
  color: var(--blue);
  border: 1px solid #d5e8ff;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(20, 50, 90, .08);
}
.stat { padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat:first-child { padding-top: 0; }
.stat:last-child { border: 0; padding-bottom: 0; }
.stat strong { display: block; color: var(--navy); font-size: 2rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

.section { padding: 86px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; margin: 0 0 14px; }
.section-intro { color: var(--muted); max-width: 720px; margin: 0 0 34px; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(20,50,90,.05);
  display: flex;
  flex-direction: column;
}
.project-visual {
  height: 170px;
  padding: 22px;
  color: #fff;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}
.project-visual.excel { background: linear-gradient(135deg, #165f43, #2f9a70); }
.project-visual.sql { background: linear-gradient(135deg, #0d3d7d, #267bd8); }
.project-visual.python { background: linear-gradient(135deg, #244d78, #f2b72b); }
.mini-chart { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 78px; display: flex; align-items: end; gap: 9px; }
.mini-chart i { flex: 1; background: rgba(255,255,255,.85); border-radius: 5px 5px 0 0; }
.code-lines { position: absolute; left: 24px; right: 24px; bottom: 25px; display: grid; gap: 8px; }
.code-lines b { height: 7px; border-radius: 99px; background: rgba(255,255,255,.78); }
.code-lines b:nth-child(2) { width: 72%; }.code-lines b:nth-child(3) { width: 88%; }.code-lines b:nth-child(4) { width: 58%; }.code-lines b:nth-child(5) { width: 81%; }
.python-orbit { position: absolute; inset: 0; display: grid; place-items: center; }
.python-orbit div { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #244d78; font-size: 1.5rem; box-shadow: 0 0 0 18px rgba(255,255,255,.12); }
.project-body { padding: 24px; display: flex; flex-direction: column; height: 100%; }
.project-number { margin: 0 0 8px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.project-card h3 { margin: 0 0 12px; font-size: 1.28rem; line-height: 1.3; letter-spacing: -.02em; }
.project-card p { color: var(--muted); }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin: 4px 0 16px; }
.tags span { font-size: .72rem; padding: 5px 8px; }
.project-insight {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  padding: 12px 13px;
  border-radius: 10px;
  color: #465365;
  font-size: .86rem;
  margin-bottom: 18px;
}
.project-link { margin-top: auto; color: var(--blue); font-weight: 800; }
.project-link:hover { text-decoration: underline; }

.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.skill-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.skill-card strong { display: block; margin-bottom: 6px; color: var(--navy); }
.skill-card span { color: var(--muted); font-size: .9rem; }

.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.about-copy p { color: var(--muted); font-size: 1.03rem; margin-top: 0; }

.contact { padding-top: 30px; }
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.contact-card .section-kicker { color: #80bcff; }
.contact-card h2 { margin-bottom: 8px; }
.contact-card p { margin: 0; color: #cfdded; }
.contact-card .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.contact-card .btn.secondary { background: transparent; color: #fff; border-color: #6a85a9; }

footer { padding: 30px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .projects-grid, .skills-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 38px; }
  .projects-grid { max-width: 700px; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { gap: 20px; }
}
@media (max-width: 640px) {
  nav { display: none; }
  .hero { padding-top: 62px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-card, .footer-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
}

.project-image {
  height: 190px;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sql-snippet {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(5, 25, 55, .74);
  font-size: .68rem;
  line-height: 1.5;
  font-weight: 500;
}
.sql-snippet code {
  color: #eaf3ff;
  font-family: Consolas, Monaco, monospace;
}


/* Improved project screenshot presentation */
.project-image {
  height: 230px;
  overflow: hidden;
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .25s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

/* Make screenshots easier to inspect on smaller screens */
@media (max-width: 900px) {
  .project-image {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .project-image {
    height: 220px;
  }
}


/* Refreshed hero section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(44, 123, 229, .16), rgba(44, 123, 229, 0) 70%);
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(44, 123, 229, .18);
  border-radius: 999px;
  background: rgba(44, 123, 229, .06);
  letter-spacing: .08em;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero h1 span {
  background: linear-gradient(90deg, #1f67c9, #4d91ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-skills span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(34, 84, 148, .16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(29, 56, 91, .06);
  font-size: .9rem;
  font-weight: 800;
  color: #19375f;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}

.hero-capabilities span::before {
  content: "•";
  margin-right: 8px;
  color: #2c7be5;
}

.hero .hero-actions .btn:first-child {
  box-shadow: 0 10px 26px rgba(44, 123, 229, .20);
}

@media (max-width: 640px) {
  .hero .eyebrow {
    font-size: .72rem;
    line-height: 1.25;
  }

  .hero h1 {
    letter-spacing: -.035em;
  }

  .hero-skills {
    gap: 8px;
  }

  .hero-skills span {
    padding: 8px 11px;
    font-size: .82rem;
  }

  .hero-capabilities {
    gap: 8px 12px;
    font-size: .8rem;
  }
}
