:root {
  --bg: #09111d;
  --bg-soft: #101b2d;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: #ffffff;
  --surface-muted: #eef3f8;
  --text: #e8edf4;
  --text-dark: #122033;
  --muted: #9db0c8;
  --line: rgba(157, 176, 200, 0.25);
  --accent: #79a9ff;
  --accent-deep: #2866d1;
  --accent-soft: #d8e7ff;
  --shadow: 0 30px 80px rgba(2, 10, 22, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(121, 169, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f7f9fc 0%, #edf2f8 100%);
}

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

.navbar {
  padding: 1rem 0;
  transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.navbar.scrolled {
  background: rgba(9, 17, 29, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.navbar-brand,
.nav-link {
  color: #fff;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-link {
  font-weight: 600;
  opacity: 0.82;
}

.nav-link.active,
.nav-link:hover {
  opacity: 1;
  color: #fff;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 14, 24, 0.95), rgba(17, 29, 49, 0.9)),
    linear-gradient(120deg, #0f1727 0%, #142640 100%);
  color: var(--text);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(121, 169, 255, 0.24), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(52, 102, 187, 0.28), transparent 24%),
    linear-gradient(transparent 0%, rgba(9, 17, 29, 0.18) 100%);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 12ch;
  line-height: 0.98;
}

.hero-copy,
.section-copy {
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-copy {
  max-width: 42rem;
  color: rgba(232, 237, 244, 0.82);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat strong,
.metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-stat span {
  display: block;
  margin-top: 0.4rem;
  color: rgba(232, 237, 244, 0.72);
  font-size: 0.92rem;
}

.hero-card,
.about-panel,
.case-card,
.contact-shell {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile-frame {
  margin-bottom: 1.2rem;
  padding: 0.7rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.profile-photo {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
}

.hero-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  font-size: 1.3rem;
  margin: 1rem 0 0.8rem;
}

.hero-card p,
.contact-list li {
  color: rgba(232, 237, 244, 0.8);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(121, 169, 255, 0.14);
  color: #eaf2ff;
  font-size: 0.9rem;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #7ef0b3;
  box-shadow: 0 0 0 0.35rem rgba(126, 240, 179, 0.14);
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.section-padding {
  padding: 6.5rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header .section-copy {
  max-width: 44rem;
}

.section-dark {
  background:
    linear-gradient(180deg, #0d1625 0%, #121f34 100%);
  color: var(--text);
}

.section-dark .section-copy,
.section-dark .expertise-card p {
  color: rgba(232, 237, 244, 0.76);
}

.about-panel {
  padding: 2rem;
  background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
}

.metric-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #e5edf7;
}

.metric-card p {
  margin: 0.7rem 0 0;
  color: #52647d;
}

.expertise-card {
  height: 100%;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.expertise-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(121, 169, 255, 0.14);
  color: var(--accent);
  font-size: 1.3rem;
}

.expertise-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.8rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-soft), #c3d8f5);
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
}

.timeline-marker {
  position: absolute;
  left: 0.35rem;
  top: 1.5rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 0.3rem rgba(121, 169, 255, 0.16);
}

.timeline-card,
.trust-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e1e8f2;
  box-shadow: 0 18px 45px rgba(16, 30, 52, 0.08);
}

.timeline-card {
  padding: 1.7rem;
}

.timeline-date,
.case-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-company,
.timeline-stack {
  color: #54657d;
}

.timeline-stack {
  margin-bottom: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.9rem;
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(216, 231, 255, 0.28), rgba(121, 169, 255, 0.1));
}

.case-card {
  height: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.case-card h3 {
  margin: 1rem 0 0.9rem;
}

.case-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #4c5e76;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.stack-cloud span {
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e4f1;
  box-shadow: 0 10px 30px rgba(11, 27, 46, 0.06);
  font-weight: 700;
}

.trust-panel .section-copy {
  color: rgba(232, 237, 244, 0.78);
}

.trust-card {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 1.4rem 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-shell {
  padding: 2.2rem;
  background: #fff;
  border: 1px solid #dfe8f4;
}

.btn {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), #4c86e8);
  border: none;
  box-shadow: 0 18px 35px rgba(40, 102, 209, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #2259bb, #4077d4);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-primary {
  border-color: #bfd3f0;
  color: var(--accent-deep);
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
  color: #6c7f97;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .navbar {
    background: rgba(9, 17, 29, 0.88);
    backdrop-filter: blur(18px);
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .section-padding {
    padding: 5rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    max-width: none;
  }

  .timeline::before {
    left: 0.7rem;
  }

  .timeline-item {
    padding-left: 2.7rem;
  }

  .timeline-marker {
    left: 0.05rem;
  }
}
