:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f6;
  --text: #0f1b2d;
  --text-soft: #4f6078;
  --brand: #0d6e6e;
  --brand-strong: #0a5252;
  --accent: #f59f00;
  --shadow-soft: 0 18px 40px rgba(15, 27, 45, 0.1);
  --shadow-card: 0 14px 32px rgba(7, 30, 44, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(245, 159, 0, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(13, 110, 110, 0.14), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 45%, #eef3f7 100%);
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.02em;
}

.navbar {
  background: linear-gradient(120deg, #11243b 0%, #0b1523 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.navbar .nav-link {
  position: relative;
  font-weight: 600;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffce6a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(9, 26, 43, 0.93), rgba(11, 65, 74, 0.9)),
    radial-gradient(circle at 18% 12%, rgba(245, 159, 0, 0.28), transparent 30%);
  box-shadow: var(--shadow-soft);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-section::before {
  width: 340px;
  height: 340px;
  background: rgba(245, 159, 0, 0.15);
  top: -120px;
  right: -90px;
}

.hero-section::after {
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -120px;
  left: -90px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.9);
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(7, 30, 44, 0.2);
}

.about-section,
.projects-section {
  position: relative;
}

.articles-section {
  margin-top: 0;
  padding-top: clamp(2.5rem, 4vw, 4rem) !important;
}

.apps-section {
  margin-bottom: 0;
}

.apps-articles-gap {
  height: 2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 0;
  align-items: stretch;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 252, 0.88));
  border: 1px solid rgba(12, 42, 70, 0.12);
  border-radius: 26px;
  box-shadow: 0 22px 44px rgba(7, 30, 44, 0.12);
  overflow: hidden;
}

.about-copy {
  background: transparent;
  padding: clamp(1.3rem, 2.1vw, 2.15rem) clamp(1.3rem, 2.1vw, 2.15rem) 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
}

.about-section h2,
.projects-section h1 {
  color: #0b2745;
}

.about-section p,
.about-section li {
  color: var(--text-soft);
}

.about-intro {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.6rem, 3.1vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0b2745 !important;
  margin-bottom: 0.1rem;
}

.about-section ul {
  padding-left: 1.2rem;
}

.skill-bubbles {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.about-copy .skill-bubbles {
  justify-content: flex-start;
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.skill-bubbles li {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  color: #0b2745;
  background: linear-gradient(120deg, #e8f2ff 0%, #f2f8ff 50%, #e7fff7 100%);
  border: 1px solid rgba(12, 42, 70, 0.14);
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.skill-bubbles li:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 24px rgba(15, 27, 45, 0.14);
}

.profile-shot {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 0 18px 18px 0;
  border: 0;
  box-shadow: 0 14px 24px rgba(7, 30, 44, 0.12);
}

.about-profile-card {
  background: transparent;
  border-left: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
}

.projects-section .card {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
  will-change: transform;
}

.projects-section .card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 40%);
  pointer-events: none;
}

.projects-section .card:hover {
  transform: none;
  box-shadow: 0 18px 34px rgba(7, 30, 44, 0.16);
}

.projects-section .card-img-top {
  height: 220px;
  object-fit: cover;
}

.projects-section .card-title {
  color: #0c2a46;
}

.projects-section .card-body {
  display: flex;
  flex-direction: column;
}

.projects-section .card-body > .btn,
.projects-section .card-body > .d-flex {
  margin-top: auto;
}

.projects-section .btn-primary {
  background: linear-gradient(120deg, #0d6e6e 0%, #0c5f82 100%);
  border: 0;
}

.projects-section .btn-primary:hover,
.projects-section .btn-primary:focus-visible {
  filter: brightness(1.07);
}

.brand-btn {
  background: linear-gradient(120deg, #0d6e6e 0%, #0c5f82 100%);
  border: 0;
}

.brand-btn:hover,
.brand-btn:focus-visible {
  filter: brightness(1.07);
}

.brand-btn-outline {
  border-color: #0d6e6e;
  color: #0d6e6e;
}

.brand-btn-outline:hover,
.brand-btn-outline:focus-visible {
  background: #0d6e6e;
  border-color: #0d6e6e;
  color: #fff;
}

.about-cta-row .btn {
  min-width: 260px;
  justify-content: center;
  font-size: 1rem;
  padding: 0.72rem 1.2rem;
}

@media (max-width: 767.98px) {
  .about-cta-row {
    width: 100%;
    flex-wrap: nowrap;
  }

  .about-cta-row .btn {
    min-width: 0;
    flex: 1 1 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

footer {
  margin-top: 3.5rem;
  background: linear-gradient(125deg, #10253f, #0e1d30) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer p {
  margin-bottom: 0.35rem;
}

footer a {
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .about-copy {
    padding: 1rem;
    order: 2;
  }

  .about-profile-card {
    border-left: 0;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    order: 1;
  }

  .profile-shot {
    min-height: 340px;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
  }

  .projects-section .card-img-top {
    height: 200px;
  }

  .about-section .d-flex.gap-2 {
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) {
  .about-copy {
    justify-content: space-between;
  }

  .projects-section h1 {
    font-size: clamp(2.2rem, 2.5vw, 2.8rem);
  }

  .projects-section p.text-center {
    font-size: 1.1rem;
  }

  .projects-section .card-title {
    font-size: 1.35rem;
  }

  .projects-section .card-text {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .projects-section .btn {
    font-size: 1rem;
    padding: 0.62rem 1.05rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .projects-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(7, 30, 44, 0.18);
  }
}

@media (hover: none), (pointer: coarse) {
  .projects-section .card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}

@media (max-width: 767.98px) {
  .apps-articles-gap {
    height: 3rem;
  }

  .articles-section {
    padding-top: 4rem !important;
  }

  .hero-section {
    padding-top: 3.2rem !important;
    padding-bottom: 3.2rem !important;
  }

  .projects-section .card {
    margin-bottom: 1rem;
  }
}
