:root {
  --blue: #0073e5;
  --blue-mid: #6aa7ff;
  --blue-light: #8cc2ff;
  --blue-pale: #e7efff;

  --ink: #071f3f;
  --dark: #434656;
  --muted: #617795;
  --white: #ffffff;

  --page-bg-0: #fcfeff;
  --page-bg-1: #f7fbff;
  --page-bg-2: #f2f8ff;
  --page-bg-3: #fbfdff;

  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(241, 247, 255, 0.64);

  --border-soft: rgba(0, 115, 229, 0.10);
  --border-card: rgba(0, 115, 229, 0.14);

  --shadow-soft: 0 8px 12px rgba(0, 45, 110, 0.055);
  --shadow-card: 0 14px 36px rgba(7, 31, 63, 0.07);
  --shadow-card-hover: 0 20px 52px rgba(0, 79, 170, 0.13);

  --nav-height: 64px;
  --container: 1000px;
  --contact-container: 680px;
  --section-x: clamp(1rem, 2vw, 2rem);
  --section-y: clamp(1rem, 2vw, 2rem);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* ─────────────────────────────
   01 · RESET / BASE
───────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at 78% 8%, rgba(0, 115, 229, 0.055), transparent 32rem),
    radial-gradient(circle at 12% 27%, rgba(106, 167, 255, 0.060), transparent 34rem),
    radial-gradient(circle at 86% 54%, rgba(140, 194, 255, 0.055), transparent 36rem),
    radial-gradient(circle at 14% 78%, rgba(0, 115, 229, 0.040), transparent 32rem),
    linear-gradient(
      180deg,
      var(--page-bg-0) 0%,
      var(--page-bg-1) 22%,
      var(--page-bg-2) 52%,
      var(--page-bg-1) 78%,
      var(--page-bg-3) 100%
    );
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 115, 229, 0.095) 1px, transparent 1.35px);
  background-size: 28px 28px;
  opacity: 0.045;
}

body.menu-open {
  overflow: hidden;
}

section {
  position: relative;
  width: 100%;
  padding: var(--section-y) var(--section-x);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 32px);
  background: transparent;
}

section::before,
section::after {
  pointer-events: none;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.section-inner,
.about-inner,
.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin-inline: auto;
}

.section-title-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--ink);
}

.section-title-wrap::after,
.about-title-line,
.about-tech-line,
.hero-divider {
  content: "";
  display: block;
  border-radius: 999px;
  background: var(--blue);
}

.section-title-wrap::after {
  width: 72px;
  height: 5px;
  margin: 0.9rem auto 0;
}

/* ─────────────────────────────
   02 · SHARED DECORATION / BACKGROUNDS
───────────────────────────── */

#about,
#services,
#projects,
#contact {
  background: transparent;
  padding-top: 2rem;
}

#about::after,
#services::after,
#projects::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 86px;
  height: 86px;
  opacity: 0.28;
  background-image: radial-gradient(circle, rgba(0, 115, 229, 0.26) 1.8px, transparent 2.2px);
  background-size: 16px 16px;
}

#about::after {
  left: max(1rem, calc((100vw - var(--container)) / 2 - 1.7rem));
  top: 61%;
}

#services::after {
  right: max(1rem, calc((100vw - var(--container)) / 2 - 2rem));
  top: 7.5rem;
}

#projects::after {
  left: max(1rem, calc((100vw - var(--container)) / 2 - 2rem));
  bottom: 5rem;
}

/* ─────────────────────────────
   03 · NAVBAR / MOBILE MENU
───────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0.85rem clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 115, 229, 0.08);
  box-shadow: 0 8px 28px rgba(13, 52, 92, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navbar-logo {
  justify-self: start;
  font-family: 'Roboto', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.navbar-logo:hover {
  opacity: 0.75;
}

.logo-short {
  display: none;
}

.navbar-links {
  justify-self: center;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.15rem, 2vw, 1.8rem);
}

.navbar-link {
  position: relative;
  padding: 0.35rem 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--blue);
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.05rem;
  width: 0;
  height: 2.4px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

.lang-toggle,
.mobile-lang-toggle {
  display: flex;
  align-items: center;
}

.lang-toggle {
  justify-self: end;
  gap: 0.25rem;
}

.mobile-lang-toggle {
  gap: 1rem;
  margin-top: 1rem;
}

.lang-btn {
  padding: 0.24rem 0.42rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--blue);
}

.lang-btn.active {
  background: var(--blue-pale);
}

.lang-divider {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.38;
}

.mobile-lang-toggle .lang-btn,
.mobile-lang-toggle .lang-divider {
  font-size: 1rem;
}

.mobile-lang-toggle .lang-divider {
  opacity: 0.4;
}

.hamburger {
  display: none;
  justify-self: end;
  z-index: 1001;
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.hamburger:hover span {
  background: var(--blue);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  padding: 5rem 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

/* ─────────────────────────────
   04 · HERO
───────────────────────────── */

#hero {
  min-height: 100svh;
  height: auto;
  padding: 0;
  text-align: left;
  background: transparent;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg::before {
  right: -18vw;
  bottom: -22vw;
  width: 64vw;
  height: 64vw;
  background: radial-gradient(circle, rgba(0, 115, 229, 0.055), rgba(0, 115, 229, 0) 70%);
  filter: blur(6px);
}

.hero-bg::after {
  left: -16vw;
  bottom: -19vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(140, 194, 255, 0.11), rgba(140, 194, 255, 0) 70%);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--nav-height) + clamp(2.4rem, 6vh, 4.8rem)) var(--section-x) clamp(4.5rem, 9vh, 6.4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  transform: translateY(-0.1rem);
}

.hero-name {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.04em;
}

.hero-divider {
  width: 76px;
  height: 5px;
  margin: 1.55rem 0 1.65rem;
}

.hero-tagline {
  max-width: 520px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.22rem, 1.82vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: #4d5874;
}

.hero-description {
  max-width: 510px;
  margin-top: 1.3rem;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.96rem, 1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.68;
  color: #617095;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 115, 229, 0.12) 0%, rgba(231, 239, 255, 0.48) 42%, rgba(231, 239, 255, 0) 72%);
  filter: blur(16px);
}

.hero-image-card {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 70px rgba(7, 31, 63, 0.11), 0 8px 24px rgba(7, 31, 63, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-image-card::before {
  content: "";
  position: absolute;
  left: 53%;
  top: 48%;
  z-index: 0;
  width: 44%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.38) 42%, rgba(255, 255, 255, 0) 72%);
  filter: blur(50px);
  transform: translate(-50%, -50%);
}

.hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-image-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* ─────────────────────────────
   05 · ABOUT
───────────────────────────── */

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-header {
  margin-bottom: 1.3rem;
  text-align: center;
}

.about-title,
.about-tech-header h3 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.035em;
}

.about-title-line,
.about-tech-line {
  width: 72px;
  height: 5px;
  margin: 0.9rem auto 0;
}

.about-main {
  display: grid;
  grid-template-columns: minmax(300px, 40%) minmax(420px, 60%);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-photo-card {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
  overflow: visible;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 64px rgba(0, 45, 110, 0.10);
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 1.05 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

.about-photo-badge {
  position: absolute;
  left: -1.15rem;
  bottom: 1.6rem;
  min-width: 235px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 45, 110, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-badge-icon,
.metric-icon,
.about-tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--blue-pale);
}

.about-badge-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
}

.about-badge-icon svg,
.metric-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.about-photo-badge strong {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--blue);
}

.about-photo-badge small {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
}

.about-content {
  max-width: 560px;
  padding-top: 0.5rem;
}

.about-bio p {
  margin-bottom: 1.05rem;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  color: #263852;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-bio strong {
  color: var(--blue);
  font-weight: 700;
}

.about-metrics-panel,
.about-tech-panel {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  margin-top: 1.35rem;
}

.about-metric,
.about-upwork {
  padding: 1.45rem 1.1rem;
  border-right: 1px solid rgba(0, 115, 229, 0.11);
}

.about-metric {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.metric-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
}

.metric-content {
  width: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-metric .metric-value {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1.85rem, 2.35vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
}

.about-metric .metric-label {
  width: 100%;
  margin-top: 0.15rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #263852;
}

.about-upwork {
  min-width: 240px;
  border-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #263852;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.about-upwork:hover {
  color: var(--blue);
  background: rgba(231, 239, 255, 0.45);
}

.about-upwork img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.about-upwork span {
  white-space: nowrap;
}

/* ─────────────────────────────
   06 · TECH STACK
───────────────────────────── */

.about-tech-section {
  position: relative;
  margin-top: 2.3rem;
}

.about-tech-section::before,
.about-tech-section::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  opacity: 0.42;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 115, 229, 0.36) 1.9px, transparent 2.35px);
  background-size: 16px 16px;
}

.about-tech-section::before {
  left: -1.75rem;
  top: 0.15rem;
}

.about-tech-section::after {
  right: -1.75rem;
  top: 4.3rem;
}

.about-tech-header {
  margin-bottom: 2rem;
  text-align: center;
}

.about-tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.95rem;
  border-radius: 50%;
}

.about-tech-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.3;
}

.about-tech-line {
  width: 64px;
  height: 4px;
  margin: 1rem auto 1.45rem;
}

.about-tech-header p {
  max-width: 610px;
  margin: 0 auto;
  font-family: 'Lato', sans-serif;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.55;
  color: var(--muted);
}

.about-tech-panel {
  padding: 2.1rem 1.8rem 2.4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tech-card {
  min-height: 66px;
  padding: 0.8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  border: 1px solid rgba(0, 115, 229, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(0, 45, 110, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tech-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 115, 229, 0.24);
  box-shadow: 0 12px 28px rgba(0, 45, 110, 0.08);
}

.tech-card img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.tech-card span {
  font-family: 'Lato', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  color: #263852;
  white-space: nowrap;
}

/* ─────────────────────────────
   07 · SERVICES
───────────────────────────── */

.services-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.35rem;
}

.service-card,
.project-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: var(--radius-lg);
  cursor: default;
}

.service-card-inner,
.project-card-inner {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-front,
.project-card-front {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card-front::after,
.project-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%);
}

.service-card:hover .service-card-front,
.project-card:hover .project-card-front {
  transform: translateY(-4px);
  border-color: rgba(0, 115, 229, 0.34);
  box-shadow: var(--shadow-card-hover);
}

.service-image {
  width: 100%;
  height: 165px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.78), transparent 44%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(228, 239, 255, 0.82));
  border-bottom: 1px solid rgba(0, 115, 229, 0.07);
}

.service-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.service-title {
  min-height: 2.5rem;
  margin: 0;
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  color: #24344f;
  text-align: center;
}

.service-desc {
  margin: 0;
  padding: 0 1.2rem 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.52;
  color: #41536b;
  text-align: center;
}

/* ─────────────────────────────
   08 · PROJECTS
───────────────────────────── */

#projects .about-inner {
  max-width: var(--container);
  gap: 3.5rem;
}

.projects-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.35rem;
}

.project-card-front {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
}

.project-thumb {
  width: 100%;
  height: 165px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.78), transparent 44%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(228, 239, 255, 0.82));
  border-bottom: 1px solid rgba(0, 115, 229, 0.07);
}

.project-img-zoom {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.project-img-contain {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.project-body {
  flex: 1;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--white);
}

.project-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.28;
  color: #24344f;
  text-align: center;
}

.project-desc {
  font-family: 'Lato', sans-serif;
  font-size: 0.87rem;
  line-height: 1.58;
  color: #41536b;
  text-align: center;
}

.project-desc strong {
  color: inherit;
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding-bottom: 0.25rem;
}

.project-link {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(0, 115, 229, 0.25);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.project-link:hover {
  border-color: var(--blue);
  color: #005fbe;
}

.github-cta {
  margin-top: 3rem;
  text-align: center;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.25rem;
  border: 1.5px solid rgba(67, 70, 86, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.github-btn:hover {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
}

.github-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ─────────────────────────────
   09 · CONTACT
───────────────────────────── */

.contact-inner {
  width: min(100%, var(--contact-container));
  max-width: var(--contact-container);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-header {
  text-align: center;
  padding-top: 1rem;
}

.contact-header .section-title {
  color: var(--dark);
}

.contact-header .section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin: 0.9rem auto 0;
  border-radius: 999px;
  background: var(--blue);
}

.contact-header p {
  max-width: 560px;
  margin: 1.25rem auto 0;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 72, 160, 0.12);
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 72, 160, 0.16);
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-cal {
  background: var(--blue);
}

.btn-wa {
  background: #25d366;
}

.btn-li {
  background: #0a66c2;
}

.contact-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(0, 115, 229, 0.14);
  border-radius: var(--radius-md);
  background: rgba(239, 246, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border: 1px solid rgba(0, 115, 229, 0.18);
  border-radius: 9px;
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: var(--dark);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 229, 0.08);
}

.form-group textarea {
  min-height: 108px;
  resize: vertical;
}

.form-submit {
  align-self: flex-end;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.form-submit-centered {
  align-self: center;
}

.scroll-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.scroll-cta:hover {
  color: var(--blue);
}

.scroll-cta--static {
  position: relative;
  bottom: auto;
  left: auto;
  margin: 0.3rem auto 0;
  transform: none;
}

.scroll-cta-arrow {
  width: 26px;
  height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-cta-arrow svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-rotate-180 {
  transform: rotate(180deg);
}

.scroll-cta-text {
  font-size: 0.8rem;
  font-weight: 500;
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 115, 229, 0.1);
}

.contact-footer--centered {
  justify-content: center;
  gap: 1.5rem;
}

.contact-copy,
.privacy-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
}

.privacy-link {
  text-decoration: none;
}

.privacy-link:hover {
  color: var(--blue);
}

/* ─────────────────────────────
   10 · RESPONSIVE
───────────────────────────── */

@media (max-width: 1050px) {
  .hero-inner,
  .about-inner,
  .services-grid,
  .projects-grid,
  #projects .about-inner,
  .section-title-wrap {
    width: min(100%, 920px);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    gap: 2.1rem;
  }

  .about-main {
    grid-template-columns: 38% 62%;
    gap: 2rem;
  }

  .about-content {
    padding-right: 1rem;
  }

  .about-photo-badge {
    left: 1rem;
    bottom: 1rem;
  }

  .about-bio p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .about-metrics-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-metric:nth-child(1),
  .about-metric:nth-child(2) {
    border-bottom: 1px solid rgba(0, 115, 229, 0.1);
  }

  .about-metric:nth-child(2) {
    border-right: 0;
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }
}

@media (max-width: 980px) {
  :root {
    --nav-height: 62px;
  }

  .navbar {
    padding-inline: 1.35rem;
  }

  .navbar-links {
    max-width: 560px;
    gap: 0.95rem;
  }

  .navbar-link {
    font-size: 0.8rem;
  }

  .navbar-logo {
    font-size: 0.82rem;
  }

  .lang-btn {
    font-size: 0.7rem;
    padding: 0.22rem 0.34rem;
  }
}

@media (max-width: 860px) {
  .about-main {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-photo-card {
    max-width: 520px;
  }

  .about-content {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .about-metrics-panel {
    grid-template-columns: 1fr;
  }

  .about-metric,
  .about-upwork {
    min-height: auto;
    padding: 1.15rem 1.2rem;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 115, 229, 0.1);
  }

  .about-upwork {
    min-width: 0;
    border-bottom: 0;
  }

  .about-tech-section::before,
  .about-tech-section::after,
  #about::after,
  #services::after,
  #projects::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 60px;
    --section-y: 1.5rem;
  }

  html {
    scroll-padding-top: calc(var(--nav-height) + 28px);
  }

  section {
    padding-inline: 1rem;
    scroll-margin-top: calc(var(--nav-height) + 28px);
  }

  .navbar {
    padding: 0.65rem 1.25rem;
  }

  .navbar-links,
  #lang-toggle-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .navbar-logo {
    max-width: calc(100vw - 5.5rem);
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
  }

  #hero,
  .hero-inner {
    min-height: 100svh;
  }

  .hero-inner {
    width: min(100%, 520px);
    padding: calc(var(--nav-height) + 1.4rem) 1.2rem 3.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.55rem;
  }

  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-copy {
    order: 2;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    transform: none;
  }

  .hero-visual::before {
    width: min(88vw, 420px);
    height: min(88vw, 420px);
    opacity: 0.78;
  }

  .hero-image-card {
    width: min(100%, 460px);
    border-radius: 1.35rem;
    box-shadow: 0 22px 58px rgba(7, 31, 63, 0.12), 0 8px 22px rgba(7, 31, 63, 0.05);
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 2.65rem);
    line-height: 1.08;
  }

  .hero-divider {
    width: 56px;
    height: 4px;
    margin: 1rem 0 0.95rem;
  }

  .hero-tagline {
    font-size: clamp(1.08rem, 4.4vw, 1.32rem);
  }

  .hero-description {
    margin-top: 0.9rem;
    font-size: clamp(0.9rem, 3.7vw, 0.98rem);
    line-height: 1.58;
  }

  #hero::after {
    bottom: -16px;
    height: 58px;
    background-size: auto 62%;
    opacity: 0.14;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

@media (max-width: 540px) {
  .section-title,
  .about-title,
  .about-tech-header h3,
  .contact-header .section-title {
    font-size: 2rem;
  }

  .section-title-wrap {
    margin-bottom: 1.7rem;
  }

   .about-header {
    margin-bottom: 1rem;
  }

  .about-photo-card img {
    aspect-ratio: 1 / 0.88;
    object-position: 50% 12%;
  }

  .about-photo-badge {
    left: 0.8rem;
    bottom: 0.8rem;
    min-width: 220px;
    padding: 0.75rem 0.9rem;
  }

  .about-bio p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .about-tech-section {
    margin-top: 3rem;
  }

  .about-tech-icon {
    width: 56px;
    height: 56px;
  }

  .about-tech-icon svg {
    width: 25px;
    height: 25px;
  }

  .about-tech-header p {
    font-size: 0.95rem;
  }

  .about-tech-panel {
    padding: 1.25rem 1rem 1.35rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .tech-card {
    min-height: 50px;
    padding: 0.6rem 0.85rem;
  }

  .tech-card img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .tech-card span {
    font-size: 0.84rem;
  }

  .metric-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .about-metric .metric-value {
    font-size: 2.05rem;
  }

  .about-metric .metric-label {
    font-size: 0.84rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-image {
    height: 190px;
  }

  .service-title {
    min-height: auto;
    padding: 1rem 0.85rem 0.35rem;
    font-size: 1.12rem;
  }

  .service-desc {
    padding: 0 0.9rem 1.05rem;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .project-thumb {
    height: 190px;
  }

  .project-body {
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    padding: 1.05rem 1.1rem 1.15rem;
    text-align: center;
  }

  .project-title {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .project-desc {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .project-link {
    font-size: 0.95rem;
  }

 
  .contact-inner {
    gap: 1.8rem;
  }

  .contact-header p {
    font-size: 0.95rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .contact-btn {
    justify-content: center;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-footer--centered {
    gap: 0.75rem 1.25rem;
  }
}

@media (max-width: 390px) {
  .hero-inner {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .hero-name {
    font-size: clamp(1.85rem, 8.2vw, 2.25rem);
  }

  .hero-image-card {
    width: min(100%, 360px);
    border-radius: 1.15rem;
  }

  .navbar {
    padding-inline: 1.1rem;
  }

  .navbar-logo {
    max-width: calc(100vw - 5rem);
    font-size: 0.72rem;
  }

  .hamburger span {
    width: 20px;
  }

  .mobile-menu a {
    font-size: 1.32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
