.site-shell {
  --bg: #ffffff;
  --surface: #f4f8ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5f6f89;
  --primary: #1668e8;
  --primary-dark: #0b3d91;
  --accent: #10b981;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

#themeSwitch:checked ~ .site-shell {
  --bg: #07111f;
  --surface: #0e1b2e;
  --card: #111f34;
  --text: #f8fbff;
  --muted: #aab8cc;
  --primary: #6aa4ff;
  --primary-dark: #8bb9ff;
  --accent: #34d399;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: #ffffff;
  color: #0f172a;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  margin: 0;
}

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

.theme-control,
.nav-control {
  opacity: 0;
  pointer-events: none;
  position: fixed;
}

.container {
  margin-inline: auto;
  max-width: 1140px;
  padding-inline: 1rem;
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -0.75rem;
}

.row > * {
  padding-inline: 0.75rem;
  width: 100%;
}

.g-3 {
  row-gap: 1rem;
}

.g-4 {
  row-gap: 1.5rem;
}

.g-5 {
  row-gap: 3rem;
}

.align-items-center {
  align-items: center;
}

.justify-content-between {
  justify-content: space-between;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.align-items-lg-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.w-100 {
  width: 100%;
}

.navbar {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.navbar > .container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

#themeSwitch:checked ~ .site-shell .glass-nav {
  background: rgba(7, 17, 31, 0.82);
}

.navbar-brand {
  color: var(--text);
  letter-spacing: 0;
  padding-block: 1rem;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  display: block;
  color: var(--muted);
  font-weight: 600;
  padding: 0.5rem 0.7rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.icon-btn,
.scroll-top {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.icon-btn span,
.btn-icon,
.mini-icon {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.theme-btn {
  cursor: pointer;
}

.sun-icon {
  display: none;
}

#themeSwitch:checked ~ .site-shell .moon-icon {
  display: none;
}

#themeSwitch:checked ~ .site-shell .sun-icon {
  display: inline-block;
}

.navbar-toggler {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.navbar-toggler span,
.navbar-toggler span::before,
.navbar-toggler span::after {
  background: var(--text);
  border-radius: 999px;
  display: block;
  height: 2px;
  position: relative;
  width: 20px;
}

.navbar-toggler span::before,
.navbar-toggler span::after {
  content: "";
  position: absolute;
}

.navbar-toggler span::before {
  top: -6px;
}

.navbar-toggler span::after {
  top: 6px;
}

.navbar-collapse {
  display: flex;
  flex: 1;
  order: 1;
}

.navbar-nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-auto {
  margin-left: auto;
}

.order-lg-2 {
  order: 2;
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(22, 104, 232, 0.11), transparent 38%),
    linear-gradient(315deg, rgba(16, 185, 129, 0.12), transparent 36%),
    var(--bg);
  min-height: 100vh;
  padding: 140px 0 80px;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-section h1 {
  color: var(--text);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-section h2 {
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-copy {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 1.5rem 0 2rem;
  max-width: 660px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(22, 104, 232, 0.22);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.profile-wrap {
  margin-inline: auto;
  max-width: 520px;
  position: relative;
}

.profile-img {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.metric-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 160px;
  padding: 1rem;
  position: absolute;
}

.metric-card strong,
.stats-row strong {
  color: var(--primary);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metric-card span,
.stats-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.metric-one {
  left: -18px;
  top: 13%;
}

.metric-two {
  bottom: 10%;
  right: -18px;
}

.section-pad {
  padding: 96px 0;
}

.soft-bg {
  background: var(--surface);
}

.section-heading {
  margin: 0 auto 3rem;
  max-width: 760px;
  text-align: center;
}

.section-title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.lead,
.feature-card p,
.project-card p,
.timeline-content li,
.role {
  color: var(--muted);
}

.stats-row > div > div,
.skill-card,
.feature-card,
.project-card,
.cert-card,
.contact-form,
.timeline-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.col-sm-4,
.col-sm-6,
.col-md-6,
.col-lg-3,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-xl-3,
.col-xl-4 {
  flex: 0 0 100%;
  max-width: 100%;
}

.stats-row > div > div {
  padding: 1.25rem;
}

.skill-card {
  display: grid;
  gap: 0.85rem;
  height: 100%;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.feature-card:hover,
.project-card:hover,
.cert-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.skill-card span {
  font-weight: 700;
}

.skill-card strong {
  color: var(--primary);
}

.progress {
  background: rgba(22, 104, 232, 0.12);
  height: 9px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: fillBar 1.2s ease both;
  width: 0;
}

.w-78 { --bar-width: 78%; }
.w-80 { --bar-width: 80%; }
.w-81 { --bar-width: 81%; }
.w-82 { --bar-width: 82%; }
.w-83 { --bar-width: 83%; }
.w-84 { --bar-width: 84%; }
.w-85 { --bar-width: 85%; }
.w-86 { --bar-width: 86%; }
.w-87 { --bar-width: 87%; }
.w-88 { --bar-width: 88%; }
.w-89 { --bar-width: 89%; }
.w-90 { --bar-width: 90%; }

@keyframes fillBar {
  from { width: 0; }
  to { width: var(--bar-width); }
}

.timeline {
  margin: 0 auto;
  max-width: 920px;
  position: relative;
}

.timeline::before {
  background: var(--line);
  bottom: 0;
  content: "";
  left: 18px;
  position: absolute;
  top: 0;
  width: 2px;
}

.timeline-item {
  margin-bottom: 2rem;
  padding-left: 60px;
  position: relative;
}

.timeline-dot {
  background: var(--primary);
  border: 6px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  height: 36px;
  left: 1px;
  position: absolute;
  top: 18px;
  width: 36px;
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-content h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.85rem 0 0.3rem;
}

.badge {
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
}

.text-bg-primary {
  background: var(--primary);
}

.text-bg-success {
  background: var(--accent);
}

.feature-card {
  height: 100%;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-icon,
.cert-icon {
  align-items: center;
  background: rgba(22, 104, 232, 0.12);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  min-width: 44px;
  padding-inline: 0.5rem;
}

.feature-card h3,
.project-card h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
}

.project-card {
  display: grid;
  height: 100%;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.project-card div {
  padding: 1.35rem;
}

.cert-card {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-height: 96px;
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card span {
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-list p {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 0.85rem;
  margin: 0;
}

.mini-icon {
  align-items: center;
  background: rgba(22, 104, 232, 0.12);
  border-radius: 8px;
  color: var(--primary);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
}

.contact-form {
  padding: 1.5rem;
}

.form-control {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 50px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(22, 104, 232, 0.16);
}

.form-label {
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.site-footer {
  background: #07111f;
  color: #dce8f8;
  padding: 1.6rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 40px;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.scroll-top {
  bottom: 22px;
  box-shadow: var(--shadow);
  position: fixed;
  right: 22px;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

[data-animate] {
  animation: fadeUp 0.75s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 576px) {
  .col-sm-4 {
    flex-basis: 33.333333%;
    max-width: 33.333333%;
  }

  .col-sm-6 {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-6 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .flex-md-row {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex-basis: 25%;
    max-width: 25%;
  }

  .col-lg-5 {
    flex-basis: 41.666667%;
    max-width: 41.666667%;
  }

  .col-lg-6 {
    flex-basis: 50%;
    max-width: 50%;
  }

  .col-lg-7 {
    flex-basis: 58.333333%;
    max-width: 58.333333%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    flex-basis: 25%;
    max-width: 25%;
  }

  .col-xl-4 {
    flex-basis: 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 118px;
  }

  .navbar-toggler {
    display: inline-flex;
  }

  .navbar-collapse {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-basis: 100%;
    flex-grow: 0;
    margin: 0.4rem 0 1rem;
    order: 3;
    padding: 0.75rem;
  }

  #navSwitch:checked ~ .site-shell .navbar-collapse {
    display: block;
  }

  .navbar-nav {
    display: block;
  }

  .nav-link {
    padding: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding: 72px 0;
  }

  .metric-card {
    position: static;
    margin-top: 1rem;
  }

  .hero-section h1 {
    font-size: 3.2rem;
  }

  .timeline-item {
    padding-left: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
  font-size: 0.68rem;
  font-weight: 800;
