:root {
  --blue-1: #3b82f6;
  --blue-2: #60a5fa;
  --blue-3: #4aa1ff;
  --text: #0b1220;
  --light: #f7fbff;
  --card: #ffffff;
  --muted: #5e718d;
  --muted-on-blue: rgba(255, 255, 255, .95);
  --shadow: 0 10px 30px rgba(20, 50, 100, .25);
  --border: #e6edf7;
  --dark: #0b1220;
  --portrait-min: 230px;
  --portrait-vw: 30vw;
  --portrait-max: 480px;
  --ring: 6px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text)
}

.container {
  width: min(1150px, 92%);
  margin-inline: auto
}

.center {
  text-align: center
}

.small {
  font-size: .95rem
}

.muted {
  color: #64748b
}

.muted.center {
  text-align: center
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  z-index: 100;
  background: rgba(255, 255, 255, .65);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #e8eef8;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .04);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  border-color: #e5edfb;
  box-shadow: 0 14px 36px rgba(2, 6, 23, .08)
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px
}

.nav>nav {
  margin-left: auto
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f2f6ff);
  border: 1px solid #e7eef7;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease
}

.site-header .brand {
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06), 0 0 0 10px rgba(59, 130, 246, .06)
}

.brand:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff, #eaf0ff);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12)
}

.brand img,
.brand-img {
  height: 18px;
  display: block
}

.brand-logo {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 1px rgba(59, 130, 246, .25))
}

.brand-text {
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1;
  font-size: 15.5px;
  color: #0b1220;
  white-space: nowrap
}

.brand-strong {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  justify-content: flex-end
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #0b1220;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
  border-radius: 2px;
  opacity: .9
}

.nav-links a:hover {
  color: #1e3a8a;
  background: rgba(59, 130, 246, .08);
  border-color: rgba(59, 130, 246, .18)
}

.nav-links a:hover::after {
  transform: scaleX(1)
}

.nav-links a.active {
  color: #1e3a8a;
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .22);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .12) inset
}

.nav-links a.active::after {
  transform: scaleX(1)
}

.contact-btn {
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #e9f1ff);
  color: #1e40af;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 24px rgba(16, 24, 40, .10), 0 0 0 8px rgba(59, 130, 246, .08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff, #e3ecff);
  box-shadow: 0 14px 32px rgba(16, 24, 40, .16), 0 0 0 10px rgba(59, 130, 246, .10)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  margin-left: 6px
}

.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
  transition: .25s
}

.nav-toggle span:nth-child(1) {
  top: 12px
}

.nav-toggle span:nth-child(2) {
  top: 19px
}

.nav-toggle span:nth-child(3) {
  top: 26px
}

.hero {
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(180deg, #4f8dfc, #4aa1ff 45%, #4fb0ff 100%);
  padding: 140px 0 100px;
  color: #fff;
  position: relative;
  overflow: hidden
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center
}

.title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  margin: .2rem 0 .6rem;
  font-weight: 800;
  letter-spacing: .2px;
  color: #eaf2ff;
  text-shadow: 0 12px 30px rgba(0, 0, 0, .25)
}

.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9)
}

.glass {
  margin: 24px 0 16px;
  padding: 22px 24px;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(14, 30, 80, .35)
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  font-weight: 600
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 8px
}

.greet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  letter-spacing: .2px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(4px)
}

.greet .sparkle {
  width: 22px;
  height: 22px;
  color: #ffffffcc;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .25))
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  border: 1px solid transparent;
  backdrop-filter: blur(6px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease
}

.btn .ico {
  width: 20px;
  height: 20px;
  display: inline-block
}

.btn.big {
  padding: 16px 26px;
  border-radius: 16px
}

.btn.primary {
  background: linear-gradient(180deg, #ffffff 0%, #e9f1ff 100%);
  border-color: #e7eefc;
  color: #1e40af;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .10), inset 0 1px 0 rgba(255, 255, 255, .65)
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #ffffff 0%, #e3ecff 100%);
  box-shadow: 0 16px 32px rgba(16, 24, 40, .16)
}

.btn.outline {
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 24px rgba(20, 50, 120, .18)
}

.btn.outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .70)
}

.btn.subtle,
.btn.light {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid #e7eefc
}

.btn.cv {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #3b82f6 0%, #5aa1ff 50%, #a8c7ff 100%);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 10px 24px rgba(28, 72, 170, .24), inset 0 1px 0 rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

.btn.cv:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(28, 72, 170, .30)
}

.btn.cv .ico {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  display: inline-block
}

.btn.projects-cta {
  position: relative;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #3b82f6 0%, #5ea3ff 55%, #a8c7ff 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(30, 64, 175, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease
}

.btn.projects-cta::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, .85);
  pointer-events: none
}

.btn.projects-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(30, 64, 175, .32)
}

.btn.projects-cta:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .35);
  outline-offset: 3px
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 18px
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff
}

.social-fiverr {
  display: grid;
  place-items: center
}

.social-fiverr .fi-icon {
  width: 26px;
  height: 26px
}

.social-fiverr .fi-text {
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  fill: currentColor
}

.social-email {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .65);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.social-email:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 28px rgba(255, 255, 255, .18)
}

.social-email .mail-icon {
  width: 24px;
  height: 24px
}

.right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center
}

.portrait-wrap {
  position: relative;
  width: clamp(220px, 30vw, 480px) !important;
  aspect-ratio: 1/1;
  border-radius: 50%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .25))
}

.portrait-wrap .ring {
  position: absolute;
  inset: calc(-1 * var(--ring));
  border-radius: 50%;
  background: transparent;
  border: var(--ring) solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 2px rgba(27, 120, 250, .18) inset, 0 10px 28px rgba(20, 50, 120, .22);
  pointer-events: none;
  z-index: 0
}

.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 1
}

.decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(1px)
}

.deco1 {
  width: 220px;
  height: 220px;
  left: -80px;
  top: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 60%)
}

.deco2 {
  width: 140px;
  height: 140px;
  right: 10%;
  top: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 60%)
}

.deco3 {
  width: 80px;
  height: 80px;
  left: 55%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 60%)
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  animation: drift 14s infinite ease-in-out
}

.bubble i {
  opacity: .9;
  color: #fff
}

.b1 {
  right: 8%;
  top: 10%
}

.b2 {
  right: 0;
  bottom: 24%
}

.b3 {
  left: 4%;
  bottom: 6%
}

.svg-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.svg-bubble {
  position: absolute;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 12px 28px rgba(20, 50, 120, .22));
  animation: drift 14s ease-in-out infinite
}

.svg-bubble.f1 {
  top: 10%;
  left: 7%;
  animation-delay: -1s
}

.svg-bubble.f2 {
  bottom: 10%;
  left: 10%;
  animation-delay: .7s
}

.svg-bubble.f3 {
  top: 18%;
  right: 6%;
  width: 60px;
  height: 60px;
  animation-delay: 1.4s
}

.svg-bubble.f4 {
  top: 6%;
  right: 14%;
  animation-delay: .4s
}

.svg-bubble.f5 {
  bottom: 12%;
  left: 6%;
  width: 60px;
  height: 60px;
  animation-delay: 1.2s
}

.svg-bubble.f6 {
  bottom: 8%;
  right: 12%;
  width: 48px;
  height: 48px;
  animation-delay: -.7s
}

@keyframes drift {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }
}

.section {
  padding: 90px 0;
  scroll-margin-top: 90px
}

.section.light {
  background: #f6f9ff
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0 0 10px;
  color: #0b1220
}

h3 {
  margin: 8px 0 10px
}

#about h2,
#skills h2,
#services h2,
#portfolio h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto
}

#about .muted,
#skills .muted,
#services .muted,
#portfolio .muted {
  text-align: center;
  margin: 8px auto 24px;
  max-width: 900px
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "text cards";
  gap: 28px;
  align-items: start
}

.about-text {
  grid-area: text
}

.about-text h3 {
  font-size: 1.4rem
}

.bullets {
  padding-left: 1.1rem
}

.bullets li {
  margin: .35rem 0
}

.about-cards {
  grid-area: cards;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #edf1f8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, .12);
  border-color: #e3ebff
}

.ic {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3f7ff, #f9fbff);
  border: 1px solid #e7eefc;
  box-shadow: 0 12px 26px rgba(20, 50, 120, .08), inset 0 1px 0 rgba(255, 255, 255, .6);
  color: #3b82f6;
  flex: 0 0 auto;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.info-card:hover .ic {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 50, 120, .12);
  border-color: #dfe7ff
}

.ic svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95
}

.ic-code {
  color: #3b82f6
}

.ic-cap {
  color: #2563eb
}

.ic-bulb {
  color: #4f46e5
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px
}

.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow)
}

.skill-card .cap {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a
}

.skill-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px
}

.skill-card .chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e40af;
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid #dde8ff
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: #eef2f7;
  position: relative;
  overflow: hidden;
  margin-top: 6px
}

.meter span {
  position: absolute;
  inset: 0;
  width: 60%;
  background: linear-gradient(90deg, #60a5fa, #4f8dfc)
}

.meter-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #51607a;
  margin-top: 6px
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px
}

.services-grid.two {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 20px
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center
}

.service-card .cap {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  margin: 0 auto 8px
}

.service-card p {
  margin: 8px auto 14px;
  max-width: 640px
}

.service-card .bullets {
  display: inline-block;
  text-align: left;
  margin: 8px auto 16px
}

.service-card .btn {
  margin-inline: auto;
  display: inline-flex
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow)
}

.project-card .thumb {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  background: #eaf2ff;
  border: 1px solid var(--border)
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.project-card .pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e40af;
  border: 1px solid #dde8ff;
  font-weight: 700;
  font-size: .8rem;
  transform: translateY(-14px)
}

.project-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px
}

.project-card .chips span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e40af;
  border: 1px solid #dde8ff;
  font-weight: 600;
  font-size: .85rem
}

.project-card .features {
  display: flex;
  gap: 18px
}

.project-card .features ul {
  margin: 0;
  padding-left: 1rem
}

.project-card .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px
}

.project-card .btn.ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff;
  color: #0b1220;
  border: 1px solid #e6ecf6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .6);
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease
}

.project-card .btn.ghost:hover {
  transform: translateY(-3px);
  border-color: #dfe7ff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, .10);
  background: #fbfdff
}

.project-card .btn.ghost .ico {
  width: 20px;
  height: 20px
}

.project-card .btn.ghost:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .35);
  outline-offset: 2px;
  border-color: #cfe0ff
}

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2rem;
  align-items: start
}

.contact-left h2 {
  text-align: center
}

.contact-info .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0
}

.contact-info .label {
  font-weight: 700
}

.social-circles {
  display: flex;
  gap: 10px;
  margin: 10px 0 14px
}

.social-circles a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff30;
  border: 1px solid #ffffff50;
  color: #fff
}

.contact-form .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow)
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-top: 8px;
  color: #344054
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  outline: none;
  margin-top: 6px;
  font-family: inherit
}

.contact-form button {
  margin-top: 12px
}

#contact.section.light {
  --g1: #4f86f7;
  --g2: #5fa1f6;
  padding: 72px 0;
  background: linear-gradient(180deg, var(--g1), var(--g2))
}

#contact .title-wrap {
  text-align: center;
  margin-bottom: 22px
}

#contact .title-wrap h2 {
  color: #fff;
  margin: 0 0 6px
}

#contact .title-wrap .lead {
  color: #eaf1ff;
  max-width: 760px;
  margin: 0 auto
}

#contact .contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 24px;
  align-items: start
}

@media (max-width:980px) {
  #contact .contact-grid {
    grid-template-columns: 1fr
  }
}

#contact .contact-left {
  color: #eef5ff
}

#contact .contact-left h3 {
  color: #fff;
  margin: 8px 0 10px
}

#contact .contact-info .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0
}

#contact .contact-info .row i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25)
}

#contact .contact-info .label {
  font-weight: 700;
  color: #fff
}

#contact .contact-info .value,
#contact .contact-info .value a {
  color: #fff;
  text-decoration: none
}

#contact .contact-info .value a:hover {
  text-decoration: underline
}

#contact .social-circles {
  display: flex;
  gap: 10px;
  margin: 8px 0 18px
}

#contact .social-circles a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease
}

#contact .social-circles a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .25)
}

#contact .muted.small {
  color: #e6efff
}

#contact .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer
}

#contact .btn.primary {
  background: #3b82f6;
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(59, 130, 246, .30)
}

#contact .btn.primary:hover {
  filter: brightness(.96)
}

#contact .btn.outline.light {
  border: 2px solid #cfe0ff;
  color: #fff;
  background: transparent
}

#contact .contact-form .card {
  background: #f6f8ff;
  border: 1px solid #e7ecff;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .12)
}

#contact .contact-form label {
  display: block;
  color: #1e293b;
  font-weight: 700;
  margin: 10px 0 8px
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  border: 1px solid #dbe5ff;
  background: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  color: #111827;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease
}

#contact .contact-form input::placeholder,
#contact .contact-form textarea::placeholder {
  color: #94a3b8
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .15)
}

#contact .form-status {
  margin-top: 10px;
  color: #475569
}

.site-footer.dark {
  background: #0b1220;
  color: #a5b4c7;
  padding: 28px 0 10px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin: .2rem 0 .6rem
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0
}

.footer-links li {
  margin: 6px 0
}

.footer-links a {
  color: #cdd6e5;
  text-decoration: none
}

.footer-links a:hover {
  color: #fff
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1b2333;
  margin-top: 12px;
  padding-top: 14px
}

.heart {
  color: #ff4d6d
}

.scroll-indicator {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 22px;
  z-index: 9990;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease
}

.scroll-indicator[aria-hidden="true"] {
  opacity: 0;
  transform: translate(-50%, 10px)
}

.scroll-btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #ffffffe6;
  font-family: inherit
}

.scroll-label {
  font-size: .95rem;
  font-weight: 600;
  opacity: .9
}

.scroll-circle {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .65);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  filter: drop-shadow(0 1px 1px rgba(2, 6, 23, .35))
}

.scroll-btn:hover .scroll-circle {
  transform: translateY(-2px)
}

.scroll-indicator.on-light .scroll-label {
  color: #334155;
  opacity: .95
}

.scroll-indicator.on-light .scroll-circle {
  background: #fff;
  color: #0b1220;
  border-color: rgba(2, 6, 23, .18);
  filter: drop-shadow(0 1px 1px rgba(2, 6, 23, .18))
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-7px)
  }
}

.bounce {
  animation: bounce 1.6s infinite
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999
}

.modal.active {
  display: block
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px)
}

.modal__dialog {
  position: relative;
  margin: 4vh auto 0;
  width: min(860px, 92vw);
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .35);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: .18s ease;
  outline: none
}

.modal.active .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5ff;
  cursor: pointer
}

.modal__close:hover {
  filter: brightness(.96)
}

.pd-hero {
  position: relative
}

.pd-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ff
}

.pd-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  font-weight: 600;
  background: #eaf1ff;
  color: #2f6af0;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06)
}

.pd-head {
  margin-top: 18px
}

.pd-head h3 {
  margin: 6px 0 6px;
  color: #0f172a;
  font-size: 1.35rem
}

.pd-head p {
  color: #5b6372
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px
}

.tag {
  display: inline-block;
  background: #f1f4ff;
  color: #334155;
  border: 1px solid #e1e7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px
}

.pd-list {
  margin: 0;
  padding-left: 18px;
  color: #1f2937
}

.pd-list li {
  margin: 8px 0
}

.pd-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px
}

@media (max-width:720px) {
  .pd-hero img {
    height: 220px
  }

  .pd-grid {
    grid-template-columns: 1fr
  }
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99999
}

.toast {
  --accent: #22c55e;
  --bg: #ecfdf5;
  min-width: 320px;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, .06);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  padding: 12px 14px 14px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  transform: translateX(120%);
  opacity: 0;
  animation: toast-in .35s ease forwards;
  position: relative
}

.toast.out {
  animation: toast-out .25s ease forwards
}

.toast__icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent)
}

.toast__title {
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1
}

.toast__msg {
  margin-top: 2px;
  color: #475569
}

.toast__close {
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px
}

.toast__close:hover {
  background: rgba(0, 0, 0, .06)
}

.toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: toast-bar var(--dur, 4s) linear forwards
}

.toast--success {
  --accent: #22c55e;
  --bg: #ecfdf5
}

.toast--error {
  --accent: #ef4444;
  --bg: #fef2f2
}

.toast--info {
  --accent: #3b82f6;
  --bg: #eef5ff
}

@keyframes toast-in {
  from {
    transform: translateX(120%);
    opacity: 0
  }

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

@keyframes toast-out {
  from {
    transform: translateX(0);
    opacity: 1
  }

  to {
    transform: translateX(120%);
    opacity: 0
  }
}

@keyframes toast-bar {
  from {
    transform: scaleX(1)
  }

  to {
    transform: scaleX(0)
  }
}

@media (max-width:540px) {
  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 12px
  }

  .toast {
    min-width: unset
  }
}

.cap {
  --bg: #eef4ff;
  --fg: #2563eb;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04) inset
}

.cap .ico {
  width: 24px;
  height: 24px;
  color: var(--fg)
}

.cap--blue {
  --bg: #e9f1ff;
  --fg: #2f6af0
}

.cap--green {
  --bg: #e9f9ef;
  --fg: #22a06b
}

.cap--amber {
  --bg: #fff5e6;
  --fg: #e0a100
}

.cap--purple {
  --bg: #f3eaff;
  --fg: #7e5bef
}

.cap--red {
  --bg: #ffe9ea;
  --fg: #e65054
}

.cap--indigo {
  --bg: #eef0ff;
  --fg: #5a67d8
}

.cap--cyan {
  --bg: #e6f9ff;
  --fg: #0ea5e9
}

@media (max-width:980px) {
  .nav-links {
    display: none
  }

  .nav {
    justify-content: space-between
  }

  .nav-toggle {
    display: block
  }

  .contact-btn {
    display: none
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "cards"
  }

  .skills-grid,
  .services-grid,
  .services-grid.two,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:560px) {
  .project-card .actions {
    gap: 12px
  }

  .project-card .btn.ghost {
    padding: 12px 14px
  }
}

@media (max-width:1100px) {
  .portrait-wrap {
    width: clamp(220px, 28vw, 460px) !important
  }
}

@media (max-width:780px) {
  .portrait-wrap {
    width: clamp(220px, 56vw, 420px) !important
  }
}

@media (max-width:520px) {
  .portrait-wrap {
    width: clamp(220px, 70vw, 360px) !important
  }
}

@media (max-width:640px) {
  .brand {
    padding: 7px 12px;
    border-radius: 14px
  }

  .brand-text {
    font-size: 14.5px
  }

  .brand-logo {
    width: 18px;
    height: 18px
  }
}

#scroll-indicator {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000
}

#scrollBtn {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer
}

.scroll-label {
  color: #fff;
  font-weight: 600;
  opacity: .9
}

.scroll-circle {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .15)
}

#scrollIcon {
  width: 22px;
  height: 22px;
  color: #fff
}

#scroll-indicator.is-up #scrollIcon {
  transform: rotate(180deg);
  transition: transform .2s ease
}

#scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  text-align: center
}

#scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.scroll-label {
  color: #fff;
  font-weight: 600;
  opacity: .9;
  font-size: 14px
}

.scroll-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2)
}

#scrollIcon {
  width: 24px;
  height: 24px;
  stroke: black;
  fill: none;
  stroke-width: 2
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: contain
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .55);
  display: none;
  padding: 24px
}

.modal.is-open {
  display: grid;
  place-items: center
}

.modal__panel {
  width: min(960px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 24px;
  position: relative
}

.modal__close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 1001
}

html.modal-open,
body.modal-open {
  overflow: hidden
}

#projectModal {
  overflow: hidden
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(0, 0, 0, .55);
  padding: 24px
}

.modal.active {
  display: grid;
  place-items: center
}

.modal__overlay {
  position: absolute;
  inset: 0
}

.modal__dialog {
  position: relative;
  width: min(960px, 96vw);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  padding: 24px
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  border: 1px solid #0b1220;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  cursor: pointer
}

.modal__close:hover {
  background: #0b1220
}

.modal__close:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px
}

.modal__content img {
  max-width: 100%;
  height: auto;
  display: block
}

html.modal-open #scroll-indicator,
#scroll-indicator[aria-hidden="true"] {
  display: none !important
}











.socials a svg,
.social-circles a svg {
  width: 20px;
  height: 20px;
  display: block;
}

.socials a {
  color: #fff;
}

.socials a svg {
  fill: currentColor;
  stroke: currentColor;
}

.social-circles a {
  color: #fff;
}

.social-circles a svg {
  fill: currentColor;
  stroke: none;
}

.socials a svg use[href="#icon-mail-black"] {
  stroke: currentColor !important;
}



.hero .socials a {
  color: #0b1220 !important;
}

.hero .socials a svg {
  fill: currentColor;
  stroke: currentColor;
}

.hero .socials a .fi-icon {
  fill: currentColor;
}








 
.services-grid .service-card{
  display: flex;
  flex-direction: column;        
}

.services-grid .service-card .btn{
  align-self: center;             
  margin-top: auto;              
  display: inline-flex;         
}


/* === Strong mobile fixes === */
html, body { width:100%; max-width:100%; overflow-x:hidden; }

/* Keep major wrappers from creating horizontal overflow */
.hero, .section, header, footer { position: relative; overflow: hidden; width:100%; }

/* Kill decorative overflows on mobile */
@media (max-width: 768px) {
  .decor, .floaters, .svg-floaters { display: none !important; }
  .nav > nav { position: static; } /* fixed menu will anchor to viewport */
  .nav-links {
    position: fixed !important;
    top: 64px !important;
    right: 12px !important;
    left: 12px !important;  /* full-width dropdown with margins */
    width: auto !important;
    max-width: none !important;
  }
}



/* === Mobile nav: class-based open state === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 64px;
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(2,6,23,.08);
    z-index: 3000;
  }
  /* Optional: animate hamburger */
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle span { display:block; transition: transform .2s ease, opacity .2s ease; }
}



/* === Fix: Allow dropdown to overflow header === */
.site-header { overflow: visible !important; }



/* === Disable hamburger animation (no morph, no fade) === */
@media (max-width: 768px) {
  .nav-toggle span { transition: none !important; }
  .nav-toggle[aria-expanded="true"] span { 
    transform: none !important; 
    opacity: 1 !important; 
  }
}



/* === Footer mobile stacking & text wrap === */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .footer-bottom { display: flex; flex-direction: column; gap: 6px; text-align: center; }
  .footer-links a, .footer-links li { 
    overflow-wrap: anywhere; 
    word-break: break-word; 
    white-space: normal;
  }
}



/* Show Contact link only in mobile dropdown */
.only-mobile { display: none; }
@media (max-width: 768px) {
  .only-mobile { display: block; }
}

