:root {
  --bg-dark: #0f172a;
  --bg-dark-soft: #111827;
  --bg-light: #f8fafc;
  --card: #ffffff;
  --text-main: #0f172a;
  --text-soft: #64748b;
  --border: rgba(148, 163, 184, 0.22);
  --info-glow: rgba(13, 202, 240, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: #ffffff;
}

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

section {
  scroll-margin-top: 90px;
}

.portfolio-navbar {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.portfolio-navbar .nav-link {
  font-weight: 500;
}

.portfolio-navbar .nav-link:hover,
.portfolio-navbar .nav-link:focus {
  color: #7dd3fc;
}

.portfolio-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
}

.portfolio-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem var(--info-glow);
}

.portfolio-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.hero-section {
  min-height: 100vh;
  padding: 8rem 0 4rem;
  position: relative;
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.82), rgba(2, 132, 199, 0.55)), url("../img/bg-hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-bottom: 1.25rem;
}

.section-kicker {
  background: rgba(13, 202, 240, 0.12);
  color: #0891b2;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-panel {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-panel-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
}

.hero-panel-item strong {
  color: #fff;
}

.section-light {
  background: var(--bg-light);
}

.section-dark {
  background: linear-gradient(180deg, var(--bg-dark), #111827);
  color: #fff;
}

.section-heading {
  max-width: 760px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.12);
}

.project-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #e2e8f0;
}

.project-body {
  padding: 1.5rem;
  height: calc(100% - 240px);
}

.project-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  color: #334155;
}

.project-list i {
  color: #0891b2;
  margin-top: 0.25rem;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0c4a6e;
  font-size: 0.9rem;
  font-weight: 600;
}

.impact-panel,
.timeline-card,
.contact-card {
  border-radius: 1.5rem;
}

.impact-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.impact-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

.impact-item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.impact-item span {
  color: rgba(255, 255, 255, 0.8);
}

.timeline-card {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 2rem;
}

.timeline-item {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.timeline-icon {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.1rem;
}

.stack-chip {
  height: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 0.8rem 2rem rgba(15, 23, 42, 0.04);
}

.stack-chip i {
  color: #0891b2;
}

.contact-section {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

.footer-portfolio {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 7rem;
  }
}

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

  .project-body {
    height: auto;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .display-3 {
    font-size: 2.45rem;
  }
}
