:root {
  --navy: #0b2a4a;
  --navy-2: #163b63;
  --blue: #2f6fdd;
  --blue-dark: #255fc7;
  --text: #10243e;
  --muted: #5f7188;
  --bg: #f5f7fb;
  --bg-soft: #eef3f9;
  --white: #ffffff;
  --line: #e4ebf3;
  --card: #ffffff;
  --shadow: 0 12px 34px rgba(16, 36, 62, 0.08);
  --shadow-soft: 0 8px 24px rgba(16, 36, 62, 0.05);
  --shadow-strong: 0 20px 50px rgba(16, 36, 62, 0.14);
  --radius: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.08);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand-spacer {
  min-height: 1px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 8px 2px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.header-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  justify-self: end;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav.show {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 15px 4%;
  border-bottom: 1px solid #eef3f8;
  color: var(--navy);
  font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 20px rgba(47, 111, 221, 0.18);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 111, 221, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.88);
  color: var(--white);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: #f1f5fb;
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(11, 42, 74, 0.16);
}

/* Hero */
.hero {
  min-height: calc(100vh - 86px);
  background:
    linear-gradient(to right, rgba(11, 42, 74, 0.84), rgba(11, 42, 74, 0.56), rgba(11, 42, 74, 0.16)),
    url("images/hero-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 90px 0;
}

.hero-copy {
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.4;
  opacity: 0.98;
}

.hero-description {
  max-width: 760px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Generic cards */
.home-intro-card,
.home-photo-card,
.home-feature-card,
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(16, 36, 62, 0.06);
  border: 1px solid rgba(11, 42, 74, 0.06);
}

/* Home */
.home-section {
  padding: 70px 0;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.home-intro-card {
  padding: 34px;
}

.home-intro-card h2 {
  margin: 0 0 16px;
  font-size: 38px;
  line-height: 1.05;
  color: var(--navy);
}

.home-intro-card p {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--text);
}

.home-photo-card {
  overflow: hidden;
  min-height: 100%;
}

.home-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.home-feature-card {
  padding: 24px;
}

.home-feature-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}

.home-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.featured-project-card {
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 36, 62, 0.06);
}

.featured-project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.featured-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-project-body {
  padding: 22px;
}

.featured-project-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--navy);
}

.featured-project-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.featured-project-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.stat-box {
  background: #f8fbff;
  border: 1px solid rgba(11, 42, 74, 0.06);
  border-radius: 16px;
  padding: 20px;
}

.stat-box strong,
.stat-number {
  display: block;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-box span,
.stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* Recruiter strip */
.recruiter-strip {
  margin-top: 0;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #0b2a4a, #173c64);
  color: #fff;
  border-radius: 22px;
  padding: 30px 32px;
  box-shadow: 0 18px 44px rgba(11, 42, 74, 0.18);
}

.recruiter-strip h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.recruiter-strip p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

/* Page hero */
.page-hero {
  padding: 110px 0 42px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.page-hero p {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: 20px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-tight {
  padding: 56px 0 80px;
}

.section-block {
  margin-bottom: 60px;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section-subtitle {
  margin: 0 0 30px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-intro {
  max-width: 900px;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 44px;
  align-items: center;
}

.about-photo.card {
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 0.82 / 1;
  object-fit: cover;
}

.about-copy.card {
  padding: 34px;
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1;
  color: var(--navy);
}

.about-copy p {
  margin: 0 0 16px;
  font-size: 19px;
  color: var(--text);
}

/* Experience */
.timeline {
  display: grid;
  gap: 22px;
}

.timeline-card {
  padding: 28px 30px;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
}

.timeline-meta {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-card p {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}

.highlight-card {
  padding: 26px;
  border-left: 4px solid var(--blue);
}

.highlight-card h4 {
  margin: 0 0 12px;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.2;
}

.highlight-card p {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

/* Old certificate grid if needed elsewhere */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.cert-card {
  padding: 28px;
  padding-top: 30px;
}

.cert-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.2;
}

.cert-card p {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--muted);
}

.cert-image-link {
  display: block;
  transition: transform 0.25s ease;
}

.cert-image-link:hover {
  transform: translateY(-4px);
}

.cert-image {
  margin-top: 16px;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e6edf6;
  background: #fff;
}

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

.cert-action {
  margin-top: 14px;
  margin-bottom: 0;
}

.cert-action a {
  color: var(--blue);
  font-weight: 600;
}

.cert-action a:hover {
  text-decoration: underline;
}

.small-note {
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
}

/* Projects - agency level */
.projects-stack {
  display: grid;
  gap: 34px;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(11, 42, 74, 0.06);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16, 36, 62, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(16, 36, 62, 0.10);
}

.project-showcase.reverse {
  grid-template-columns: 0.98fr 1.02fr;
}

.project-showcase.reverse .project-showcase-media {
  order: 2;
}

.project-showcase.reverse .project-showcase-content {
  order: 1;
}

.project-showcase-content h2 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.08;
  color: var(--navy);
}

.project-kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
}

.project-showcase-content p {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--text);
}

.project-points {
  margin: 0 0 20px 18px;
  padding: 0;
}

.project-points li {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 16px;
}

.project-showcase-media {
  min-width: 0;
}

.project-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.project-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s ease, filter 0.35s ease;
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 42, 74, 0.68), rgba(11, 42, 74, 0.12));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-image-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.project-image-wrap:hover img {
  transform: scale(1.035);
  filter: brightness(0.97);
}

.project-image-wrap:hover .project-image-overlay {
  opacity: 1;
}

.static-image {
  cursor: default;
  border-radius: 20px;
  overflow: hidden;
}

.static-image img {
  transition: transform 0.55s ease, filter 0.35s ease;
}

.static-image:hover img {
  transform: scale(1.035);
  filter: brightness(0.97);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.skills-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid #dce6f2;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s ease;
}

.skills-tags span:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  transform: translateY(-1px);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.consultancy-project {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(30, 90, 168, 0.15);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  padding: 30px;
}

.contact-card h3 {
  margin: 0 0 18px;
  font-size: 30px;
  color: var(--navy);
}

.contact-card p {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--text);
}

.contact-card a {
  color: var(--blue);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #c9d5e4;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 221, 0.10);
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.contact-mini {
  padding: 22px;
}

.contact-mini h4 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--navy);
}

.contact-mini p {
  margin: 0;
  color: var(--muted);
}

.references {
  text-align: center;
  margin-top: 26px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 26px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Scroll animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover animation */
.card,
.home-feature-card,
.featured-project-card,
.stat-box,
.highlight-card,
.contact-mini,
.timeline-card,
.project-showcase,
.cert-card,
.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.home-feature-card:hover,
.featured-project-card:hover,
.stat-box:hover,
.highlight-card:hover,
.contact-mini:hover,
.timeline-card:hover,
.project-showcase:hover,
.cert-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(16, 36, 62, 0.10);
}

/* Certifications page only - desktop/tablet layout */
.certifications-page .projects-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
}

.certifications-page .project-showcase,
.certifications-page .project-showcase.reverse,
.certifications-page .consultancy-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  height: 100%;
  min-height: 100%;
}

.certifications-page .project-showcase.reverse .project-showcase-media,
.certifications-page .project-showcase.reverse .project-showcase-content {
  order: initial;
}

.certifications-page .project-showcase-media {
  width: 100%;
}

.certifications-page .project-image-wrap,
.certifications-page .static-image {
  display: block;
  width: 100%;
}

.certifications-page .project-image-wrap img,
.certifications-page .static-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.certifications-page .project-showcase-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.certifications-page .project-showcase-content h2 {
  font-size: 24px;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.02em;
}

.certifications-page .project-sub {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}

.certifications-page .project-showcase-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.certifications-page .skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
}

.certifications-page .skills-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: #f4f8fd;
  border: 1px solid #dce7f4;
  color: var(--navy);
}

.certifications-page .project-links {
  margin-top: auto;
  padding-top: 10px;
}

.certifications-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
}

/* Mobile certificates accordion */
.cert-mobile-details {
  display: none;
}

.cert-desktop-details {
  display: block;
}

/* Responsive */
@media (max-width: 1200px) {
  .home-feature-grid,
  .stats-row,
  .featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-showcase,
  .project-showcase.reverse {
    grid-template-columns: 1fr;
  }

  .project-showcase.reverse .project-showcase-media,
  .project-showcase.reverse .project-showcase-content {
    order: initial;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-spacer,
  .header-right,
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .home-intro-grid,
  .about-grid,
  .contact-grid,
  .highlights-grid,
  .contact-strip,
  .stats-row,
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 68px 0;
  }

  .section-tight {
    padding: 46px 0 68px;
  }

  .page-hero {
    padding: 92px 0 30px;
  }

  .recruiter-strip {
    padding: 24px;
  }

  .certifications-page .projects-stack {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .certifications-page .project-showcase,
  .certifications-page .project-showcase.reverse,
  .certifications-page .consultancy-project {
    padding: 16px;
  }

  .certifications-page .project-image-wrap img,
  .certifications-page .static-image img {
    height: 150px;
  }

  .certifications-page .project-showcase-content h2 {
    font-size: 18px;
  }

  .certifications-page .project-showcase-content p,
  .certifications-page .project-sub {
    font-size: 13px;
  }

  .certifications-page .skills-tags span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .certifications-page .btn-primary {
    min-height: 42px;
    font-size: 13px;
    padding: 0 14px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .container {
    width: min(94%, 100%);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .page-hero {
    padding: 44px 0 20px;
  }

  .page-hero h1 {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .page-hero p {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.55;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(
        to bottom,
        rgba(11, 42, 74, 0.78),
        rgba(11, 42, 74, 0.58)
      ),
      url("images/hero-bg.jpg") center top / contain no-repeat;
    background-color: #0b2a4a;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 42px 0 34px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 54px;
    line-height: 0.96;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .btn-light,
  .btn-outline-dark,
  .header-btn {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    font-size: 14px;
    padding: 0 16px;
  }

  .section,
  .section-tight,
  .home-section {
    padding: 34px 0;
  }

  .section-title {
    font-size: 32px;
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .section-intro,
  .home-intro-card p,
  .about-copy p,
  .timeline-card p,
  .featured-project-body p,
  .project-showcase-content p,
  .contact-card p,
  .recruiter-strip p {
    font-size: 15px;
    line-height: 1.65;
  }

  .home-intro-grid,
  .about-grid,
  .contact-grid,
  .contact-strip,
  .home-feature-grid,
  .featured-projects-grid,
  .highlights-grid,
  .stats-row,
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat-box {
    padding: 16px;
    border-radius: 14px;
  }

  .stat-number,
  .stat-box strong {
    font-size: 24px;
  }

  .stat-label,
  .stat-box span {
    font-size: 12px;
    line-height: 1.4;
  }

  .home-intro-card,
  .about-copy.card,
  .timeline-card,
  .contact-card,
  .contact-mini,
  .home-feature-card,
  .featured-project-body,
  .highlight-card,
  .recruiter-strip,
  .project-showcase,
  .cert-card {
    padding: 18px;
    border-radius: 18px;
  }

  .about-grid {
    gap: 18px;
  }

  .about-photo img {
    aspect-ratio: 0.8 / 1;
    border-radius: 16px;
  }

  .about-copy h2,
  .home-intro-card h2 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .timeline-card h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .timeline-meta {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .highlight-card h4,
  .home-feature-card h3,
  .featured-project-body h3,
  .contact-card h3,
  .contact-mini h4 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .recruiter-strip h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .project-showcase,
  .project-showcase.reverse {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .project-showcase.reverse .project-showcase-media,
  .project-showcase.reverse .project-showcase-content {
    order: initial !important;
  }

  .project-showcase-content h2 {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .project-kicker {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .project-sub {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .project-points {
    margin: 0 0 12px 18px;
  }

  .project-points li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .skills-tags {
    gap: 8px;
    margin: 12px 0 14px;
  }

  .skills-tags span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1;
  }

  .project-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .project-image-wrap,
  .static-image,
  .featured-project-media,
  .cert-image {
    border-radius: 14px;
    overflow: hidden;
  }

  .project-image-wrap img,
  .static-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center top;
  }

  .featured-project-media {
    aspect-ratio: 16 / 10;
  }

  .cert-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .cert-card h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .cert-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .cert-image {
    height: 180px;
  }

  /* Mobile certifications polished accordion */
  .certifications-page .projects-stack {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .certifications-page .project-showcase,
  .certifications-page .project-showcase.reverse,
  .certifications-page .consultancy-project {
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
  }

  .certifications-page .project-image-wrap img,
  .certifications-page .static-image img {
    height: 190px;
    object-fit: cover;
    object-position: top;
    border-radius: 14px;
  }

  .certifications-page .project-showcase-content h2 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .certifications-page .project-sub {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 2px;
  }

  .cert-desktop-details {
    display: none;
  }

  .cert-mobile-details {
    display: block;
    margin-top: 6px;
  }

  .cert-details-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;
    color: #0b2a4a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .cert-details-toggle::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.25s ease;
  }

  .cert-details-toggle:hover {
    background: #eef4fb;
  }

  .cert-details-toggle.active {
    background: #0b2a4a;
    color: #ffffff;
    border-color: #0b2a4a;
  }

  .cert-details-toggle.active::after {
    content: "−";
  }

  .cert-details-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
    margin-top: 0;
  }

  .cert-details-panel-inner {
    overflow: hidden;
  }

  .cert-details-panel.show {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
  }

  .cert-details-panel p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 12px;
  }

  .cert-details-panel .skills-tags {
    gap: 8px;
    margin: 0 0 14px;
  }

  .cert-details-panel .skills-tags span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .cert-details-panel .project-links {
    margin-top: 0;
    padding-top: 0;
  }

  .cert-details-panel .btn-primary {
    width: 100%;
    min-height: 42px;
    font-size: 13px;
    border-radius: 10px;
  }

  .contact-card a,
  .contact-mini a {
    word-break: break-word;
  }

  .form-group label {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .form-group textarea {
    min-height: 160px;
  }

  .references {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.4;
  }

  .site-footer {
    padding: 22px 0;
    margin-top: 18px;
  }

  .footer-inner p {
    font-size: 13px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 46px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero p,
  .hero-subtitle,
  .hero-description {
    font-size: 15px;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .stat-box {
    padding: 14px;
  }

  .stat-number,
  .stat-box strong {
    font-size: 22px;
  }

  .project-showcase-content h2,
  .about-copy h2,
  .home-intro-card h2 {
    font-size: 22px;
  }

  .certifications-page .project-showcase-content h2 {
    font-size: 18px;
  }

  .skills-tags span {
    font-size: 11px;
    min-height: 30px;
    padding: 0 9px;
  }
}

/* =========================================
   PROJECT IMPACT / RESULTS
========================================= */

.metrics-note {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.project-impact {
  margin-top: 22px;
}

.project-impact h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--navy);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.impact-box {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 42, 74, 0.08);
}

.impact-box strong {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--navy);
}

.impact-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.impact-box.before {
  background: #f7f9fc;
}

.impact-box.after {
  background: #edf4ff;
}

.results {
  margin-top: 12px;
}

.results h5 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--navy);
}

.results ul {
  margin: 0;
  padding-left: 18px;
}

.results li {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* =========================================
   SMALL PREMIUM POLISH
========================================= */

.project-showcase-content .project-points li,
.project-showcase-content .results li,
.project-showcase-content .impact-box p {
  max-width: 720px;
}

.recruiter-strip p,
.section-intro,
.metrics-note {
  max-width: 980px;
}

@media (max-width: 768px) {
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .project-impact h4 {
    font-size: 16px;
  }

  .impact-box {
    padding: 14px;
  }

  .impact-box p,
  .results li,
  .metrics-note {
    font-size: 14px;
  }
}