:root {
  --modern-bg: #f4f7fb;
  --modern-surface: #ffffff;
  --modern-ink: #0f1a2a;
  --modern-muted: #4f5d75;
  --modern-line: #d8e2f0;
  --modern-primary: #0f4c81;
  --modern-secondary: #166088;
  --modern-accent: #ff6b35;
  --modern-accent-soft: #ffd3c3;
}

body {
  background:
    radial-gradient(circle at 15% 10%, #e9f2ff 0%, rgba(233, 242, 255, 0) 36%),
    radial-gradient(circle at 85% 20%, #ffe9df 0%, rgba(255, 233, 223, 0) 40%),
    var(--modern-bg);
  color: var(--modern-ink);
  font-family: "Sora", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.modern-nav {
  backdrop-filter: blur(10px);
  background: rgba(15, 26, 42, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.25s ease;
}

.brand-wordmark {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.modern-nav-link {
  color: #e7edf8;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.modern-nav-link:hover,
.modern-nav-link:focus {
  color: #fff;
}

.modern-toggler {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.modern-hero {
  background:
    linear-gradient(130deg, rgba(15, 76, 129, 0.94) 0%, rgba(15, 26, 42, 0.95) 48%, rgba(22, 96, 136, 0.94) 100%);
  color: #fff;
  padding-top: 11rem;
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
}

.modern-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: -140px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.34) 0%, rgba(255, 107, 53, 0) 72%);
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.87);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.modern-btn-primary,
.modern-btn-ghost {
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 600;
}

.modern-btn-primary {
  background: var(--modern-accent);
  color: #111;
}

.modern-btn-primary:hover,
.modern-btn-primary:focus {
  background: #ff885e;
  color: #111;
}

.modern-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.modern-btn-ghost:hover,
.modern-btn-ghost:focus {
  border-color: #fff;
  color: #fff;
}

.modern-hero .masthead-avatar {
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  height: auto;
}

.modern-section {
  padding-top: 5.6rem;
  padding-bottom: 5.6rem;
}

.section-heading-wrap {
  margin-bottom: 2.6rem;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.72rem;
  color: var(--modern-secondary);
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.section-subtitle {
  color: var(--modern-muted);
  max-width: 32rem;
  margin: 0 auto;
}

.modern-card {
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--modern-surface);
  border: 1px solid var(--modern-line);
  box-shadow: 0 18px 36px rgba(15, 26, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card-button {
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  cursor: pointer;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px rgba(15, 26, 42, 0.14);
}

.modern-card .img-fluid {
  width: 100%;
  object-fit: cover;
}

.modern-card-body {
  padding: 1rem 1rem 1.15rem;
}

.modern-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  color: var(--modern-ink);
}

.modern-card-body p {
  color: var(--modern-muted);
  margin-bottom: 0;
  font-size: 0.92rem;
}

.project-links-wrap {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-block;
  border: 1px solid var(--modern-line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--modern-primary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.project-link:hover,
.project-link:focus {
  background: #edf4ff;
  color: var(--modern-primary);
}

.github-card {
  background: var(--modern-surface);
  border: 1px solid var(--modern-line);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 14px 28px rgba(15, 26, 42, 0.07);
}

.github-card-title {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.github-card-title a {
  color: var(--modern-ink);
  text-decoration: none;
}

.github-card-title a:hover,
.github-card-title a:focus {
  color: var(--modern-secondary);
}

.github-card-copy {
  color: var(--modern-muted);
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.github-meta {
  display: flex;
  gap: 0.9rem;
  color: var(--modern-secondary);
  font-size: 0.83rem;
  margin-bottom: 0.45rem;
}

.github-updated {
  margin: 0;
  color: #6b7990;
  font-size: 0.82rem;
}

.github-status {
  margin-top: 1rem;
  color: var(--modern-muted);
  font-size: 0.9rem;
}

.modern-about {
  background: linear-gradient(145deg, #15273b 0%, #0d4a7a 100%);
  color: #fff;
  padding-top: 5.2rem;
  padding-bottom: 5.2rem;
}

.section-kicker-light {
  color: var(--modern-accent-soft);
}

.about-copy {
  color: rgba(255, 255, 255, 0.9);
}

.about-link {
  color: #fff;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.about-link:hover,
.about-link:focus {
  color: #fff;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.about-chip {
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

.about-chip i {
  color: #ffd2c2;
  margin-right: 0.45rem;
}

.footer {
  background: #0e1724;
}

.copyright {
  background: #0a1019;
}

@media (max-width: 991.98px) {
  .modern-hero {
    padding-top: 9.5rem;
  }

  .hero-actions {
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .modern-hero .hero-title,
  .modern-hero .hero-lead,
  .modern-card {
    animation: rise-in 0.55s ease both;
  }

  .modern-hero .hero-lead {
    animation-delay: 0.08s;
  }

  .modern-card:nth-child(2) {
    animation-delay: 0.04s;
  }

  .modern-card:nth-child(3) {
    animation-delay: 0.08s;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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