:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #142033;
  --muted: #5d6a7c;
  --line: rgba(20, 32, 51, 0.12);
  --primary: #1d4ed8;
  --primary-dark: #173fae;
  --hero-start: #0f172a;
  --hero-end: #172554;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

section {
  scroll-margin-top: 6.5rem;
}

.hero {
  min-height: 42rem;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.35), transparent 34%),
    linear-gradient(135deg, var(--hero-start), var(--hero-end));
}

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

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.navbar-brand small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 400;
}

.brand-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-nav {
  gap: 0.35rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.76) !important;
  border-radius: 999px;
  padding-inline: 0.9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  display: flex;
  min-height: 42rem;
  flex-direction: column;
  justify-content: center;
  max-width: 58rem;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.eyebrow,
.section-kicker,
.modal-kicker {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 52rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 1.25rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

.hero-highlights div {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1rem;
}

.hero-highlights strong,
.hero-highlights span {
  display: block;
}

.hero-highlights strong {
  font-size: 1rem;
}

.hero-highlights span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
  align-items: start;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-copy {
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1.5rem;
}

.project-block + .project-block {
  margin-top: 4rem;
}

.block-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.block-heading > span {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--primary);
  background: rgba(29, 78, 216, 0.1);
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.block-heading h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.block-heading p {
  color: var(--muted);
  margin: 0;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.project-card-featured {
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 24px 60px rgba(29, 78, 216, 0.12);
}

.project-card-text {
  grid-template-columns: minmax(14rem, 0.72fr) minmax(18rem, 1.28fr);
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: fill;
}

.project-visual {
  display: flex;
  min-height: 18rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.project-visual-dark {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.25), transparent 34%),
    linear-gradient(145deg, #111827, #334155);
}

.project-visual-primary {
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.35), transparent 32%),
    linear-gradient(145deg, #172554, #1d4ed8);
}

.project-visual span {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: auto;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.project-visual strong {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.project-visual small {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.55rem;
}

.project-body {
  padding: 1.75rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-meta span {
  background: rgba(29, 78, 216, 0.08);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
}

.project-card h3,
.tech-card h3,
.strength-grid h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.project-card p,
.tech-card p,
.strength-grid p {
  color: var(--muted);
}

.project-details {
  display: grid;
  gap: 0.85rem;
  margin: 1.3rem 0;
}

.project-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-details dd {
  margin: 0;
}

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

.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-card,
.strength-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.tech-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.tech-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-card li,
.pill-grid span {
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
}

.experience-areas {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.experience-areas h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-grid span {
  background: rgba(29, 78, 216, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
}

.strength-grid-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.strength-grid-compact article {
  padding: 1.25rem;
}

.strength-grid-compact h3 {
  font-size: 1rem;
}

.strength-grid-compact p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.contact-section {
  background: var(--surface);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.social-links img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-form div + div {
  margin-top: 1rem;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 32, 51, 0.18);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.9rem 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.14);
  outline: none;
}

.contact-form .btn {
  margin-top: 1.25rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.85rem 0 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0f172a;
  padding: 1.5rem 0;
  text-align: center;
}

.modal-content {
  border: 0;
  border-radius: var(--radius-lg);
}

.modal-header {
  align-items: flex-start;
}

.modal-kicker {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.modal-body p {
  color: var(--muted);
  margin-top: 1rem;
}

.modal-video,
.modal-carousel {
  display: block;
  width: 100%;
  max-height: 36rem;
  border-radius: 1rem;
  object-fit: contain;
  background: #000;
}

.carousel-control-prev,
.carousel-control-next {
  border-radius: 1rem;
}

@media (max-width: 991.98px) {
  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding-top: 8rem;
  }

  .hero-highlights,
  .section-grid,
  .contact-grid,
  .project-card,
  .project-card-text,
  .tech-grid,
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 14rem;
  }

  .project-visual {
    min-height: 13rem;
  }
}

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

  .hero-content {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-body,
  .contact-form {
    padding: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
