/* ══════════════════════════ Hero ══════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: rgb(var(--rgb-hero-background));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 2rem;
  font-family: var(--font-localized, 'Outfit', sans-serif);
}

.hero__dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(var(--rgb-hero-dots-background-image), 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgb(var(--rgb-black)) 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgb(var(--rgb-black)) 40%, transparent 100%);
}

.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; --mx: 0px; --my: 0px; }

.blob--flutter {
  width: 680px; height: 680px; top: -220px; left: -180px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--rgb-blob-flutter-background), .42) 0%, rgba(var(--rgb-blob-flutter-background-2), .20) 45%, transparent 70%);
  filter: blur(62px);
  animation: breathe-1 14s ease-in-out infinite;
}

.blob--vue {
  width: 500px; height: 500px; bottom: -100px; left: 3%;
  background: radial-gradient(circle, rgba(var(--rgb-vue-brand), .36) 0%, rgba(var(--rgb-vue-brand-dark), .14) 50%, transparent 70%);
  filter: blur(60px);
  animation: breathe-3 19s ease-in-out infinite;
}

.blob--soft1 {
  width: 360px; height: 360px; top: 38%; right: 14%;
  background: radial-gradient(circle, rgba(var(--rgb-blob-soft1-background), .22) 0%, transparent 65%);
  filter: blur(52px);
  animation: breathe-1 22s ease-in-out infinite reverse;
}

.blob--soft2 {
  width: 380px; height: 380px; bottom: 0; right: 6%;
  background: radial-gradient(circle, rgba(var(--rgb-blob-soft2-background), .20) 0%, transparent 70%);
  filter: blur(56px);
  animation: breathe-2 16s ease-in-out infinite reverse;
}

@keyframes breathe-1 {
  0%, 100% { transform: translate3d(var(--mx), var(--my), 0) scale(1) translate(0, 0); }
  33% { transform: translate3d(var(--mx), var(--my), 0) scale(1.07) translate(16px, 10px); }
  66% { transform: translate3d(var(--mx), var(--my), 0) scale(.95) translate(-8px, 18px); }
}
@keyframes breathe-2 {
  0%, 100% { transform: translate3d(var(--mx), var(--my), 0) scale(1) translate(0, 0); }
  40% { transform: translate3d(var(--mx), var(--my), 0) scale(1.09) translate(-14px, 12px); }
  70% { transform: translate3d(var(--mx), var(--my), 0) scale(.94) translate(10px, 18px); }
}
@keyframes breathe-3 {
  0%, 100% { transform: translate3d(var(--mx), var(--my), 0) scale(1) translate(0, 0); }
  35% { transform: translate3d(var(--mx), var(--my), 0) scale(1.06) translate(10px, -14px); }
  65% { transform: translate3d(var(--mx), var(--my), 0) scale(.97) translate(-12px, 10px); }
}

.floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-icon { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .18; filter: saturate(.8); }
.float-icon svg { width: 44px; height: 44px; }
.float-icon__logo { width: 44px; height: 44px; object-fit: contain; }
.float-icon span { font-family: var(--font-localized, 'Outfit', sans-serif); font-size: .65rem; font-weight: 700; letter-spacing: .06em; color: rgb(var(--rgb-float-icon-color)); }

.float-icon--1 { top: 14%; left: 6%; animation: floatY 7s ease-in-out infinite; }
.float-icon--2 { top: 12%; right: 8%; animation: floatY 9s ease-in-out infinite 1s; }
.float-icon--3 { bottom: 22%; left: 9%; animation: floatY 8s ease-in-out infinite .5s; }
.float-icon--4 { top: 55%; left: 4%; animation: floatY 10s ease-in-out infinite 2s; }
.float-icon--5 { bottom: 18%; right: 6%; animation: floatY 7.5s ease-in-out infinite 1.5s; }

@keyframes floatY { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 820px;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--color-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 12%, transparent), color-mix(in srgb, var(--color-accent-2) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--color-accent) 32%, transparent);
  padding: .38rem .95rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, rgb(var(--rgb-white)) 45%, transparent), 0 8px 20px color-mix(in srgb, var(--color-accent) 13%, transparent);
  animation: fadeUp .7s ease .1s both;
}

.hero__badge-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--rgb-available)); box-shadow: 0 0 0 2px rgba(var(--rgb-available), .18); }
.hero__badge-dot::after { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(var(--rgb-available), .35); animation: pulse-ring2 1.9s ease-out infinite; }
@keyframes pulse-ring2 { 0% { transform: scale(0.6); opacity: 0.95; } 100% { transform: scale(1.8); opacity: 0; } }

.hero__title { font-weight: 900; font-size: 62px; line-height: 1.1; letter-spacing: -.02em; color: rgb(var(--rgb-text-primary-light)); margin: 0; max-width: 760px; }
.hero__line1 { display: block; animation: fadeUp .7s ease .2s both; }
.hero__title--blue { color: rgb(var(--rgb-brand-primary)); display: block; min-height: 1.15em; animation: fadeUp .7s ease .35s both; }

.typed-cursor { display: inline-block; color: rgb(var(--rgb-brand-primary)); font-weight: 300; margin-left: 1px; }
.typed-cursor.blink { animation: typedBlink .75s step-end infinite; }
@keyframes typedBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero__desc { font-size: 1.05rem; color: rgb(var(--rgb-hero-desc-color)); line-height: 1.75; max-width: 520px; margin: 0; font-weight: 400; animation: fadeUp .7s ease .5s both; }
.hero__desc strong { color: rgb(var(--rgb-text-primary-light)); font-weight: 700; }

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; animation: fadeUp .7s ease .65s both; }

.btn--service {
  margin-top: .15rem;
  position: relative;
  overflow: hidden;
  padding: .92rem 2.25rem;
  min-width: 210px;
  font-size: 1rem;
  background: linear-gradient(135deg, rgb(var(--rgb-btn-service-background)), rgb(var(--rgb-btn-service-background-2)) 55%, rgb(var(--rgb-btn-service-background-3)) 120%);
  color: rgb(var(--rgb-white));
  border: 1.5px solid rgba(var(--rgb-btn-service-border), .45);
  box-shadow: 0 12px 28px rgba(var(--rgb-btn-service-box-shadow), .28);
  animation: servicePulse 2.2s ease-in-out infinite;
}

.btn--service::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(var(--rgb-btn-service-border-2), .7);
  opacity: 0; transform: scale(1);
  animation: serviceRing 2.2s ease-out infinite;
  pointer-events: none;
}

.btn--service:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgb(var(--rgb-btn-service-background-4)), rgb(var(--rgb-btn-service-background-5)) 52%, rgb(var(--rgb-btn-service-background-6)) 110%);
  box-shadow: 0 14px 34px rgba(var(--rgb-btn-service-box-shadow-2), .34);
}

.btn--service:hover::after { animation-play-state: paused; opacity: .5; }

@keyframes servicePulse { 0%, 100% { box-shadow: 0 12px 28px rgba(var(--rgb-btn-service-box-shadow), .28); } 50% { box-shadow: 0 16px 38px rgba(var(--rgb-box-shadow-box-shadow), .33); } }
@keyframes serviceRing { 0% { opacity: .72; transform: scale(1); } 70% { opacity: 0; transform: scale(1.13); } 100% { opacity: 0; transform: scale(1.13); } }

.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 0; right: 0; margin: 0 auto;
  width: fit-content; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  animation: fadeUp 1s ease 1.1s both;
}

.hero__scroll-text { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--rgb-hero-scroll-text-color)); }
.hero__scroll-track { width: 22px; height: 36px; border: 2px solid rgba(var(--rgb-hero-scroll-track-border), .35); border-radius: 999px; display: flex; justify-content: center; padding-top: 5px; }
.hero__scroll-thumb { width: 4px; height: 8px; background: rgb(var(--rgb-brand-primary)); border-radius: 999px; animation: scrollDown 1.8s ease-in-out infinite; }
@keyframes scrollDown { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

@media(max-width:768px) {
  .hero__title { font-size: 44px; }
  .float-icon--4, .float-icon--5 { display: none; }
}

@media(max-width:480px) {
  .hero__title { font-size: 32px; }
  .hero { padding: 5rem 1.25rem; }
  .float-icon { display: none; }
  .blob--soft1, .blob--soft2 { display: none; }
  .hero__cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 260px; }
  .hero__scroll { display: none; }
}

/* ══════════════════════════ About section ══════════════════════════ */
.about { background: rgb(var(--rgb-section-background)); padding: 6rem 1.5rem 7rem; font-family: var(--font-localized, 'Outfit', sans-serif); }
.about__container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

.about__badge {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: rgb(var(--rgb-brand-primary));
  border: 1.5px solid rgba(var(--rgb-brand-primary), 0.30);
  padding: 0.32rem 1rem; border-radius: 999px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about__badge.visible { opacity: 1; transform: translateY(0); }

.about__title {
  font-size: 2.6rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); letter-spacing: -0.02em;
  margin: 0; text-align: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease 0.1s, transform 0.65s ease 0.1s;
}
.about__title.visible { opacity: 1; transform: translateY(0); }

.about__card {
  width: 100%; background: rgb(var(--rgb-neutral-surface)); border-radius: 24px;
  padding: 4rem 5rem;
  box-shadow: 0 4px 40px rgba(var(--rgb-about-card-box-shadow), 0.07);
  margin-top: 0.8rem;
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.about__card.visible { opacity: 1; transform: translateY(0); }

.about__text { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.about__text p { font-size: 1.12rem; color: rgb(var(--rgb-text-secondary-light)); line-height: 2; font-weight: 400; margin: 0; }
.about__text strong { color: rgb(var(--rgb-text-primary-light)); font-weight: 700; }

.about__cv { display: flex; justify-content: center; margin-top: 1rem; }

.cv-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 1.8rem;
  background: rgb(var(--rgb-brand-primary)); color: rgb(var(--rgb-white));
  font-family: var(--font-localized, 'Outfit', sans-serif); font-size: 0.92rem; font-weight: 700;
  border-radius: 10px; text-decoration: none;
  box-shadow: 0 6px 22px rgba(var(--rgb-brand-primary), 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative; overflow: hidden;
}

.cv-btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(var(--rgb-neutral-surface), 0.18), transparent);
  transition: left 0.45s ease;
}
.cv-btn:hover::before { left: 160%; }
.cv-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--rgb-brand-primary), 0.42); background: rgb(var(--rgb-cv-btn-background)); }
.cv-btn:active { transform: translateY(0); }

.cv-btn__icon { display: flex; align-items: center; animation: bounceDown 1.8s ease-in-out infinite; }
.cv-btn__icon svg { width: 18px; height: 18px; }
@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

.about__divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--rgb-brand-primary), 0.12), transparent); margin: 2.5rem 0 2rem; }
.about__stats { display: flex; align-items: flex-start; justify-content: center; }
.stat__sep { width: 1px; height: 80px; background: linear-gradient(to bottom, transparent, rgba(var(--rgb-brand-primary), 0.15), transparent); align-self: center; flex-shrink: 0; }

.stat {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 0 1.5rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about__card.visible .stat:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.about__card.visible .stat:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }
.about__card.visible .stat:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }

.stat__icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--rgb-stat-icon-background)), rgb(var(--rgb-brand-primary)));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(var(--rgb-brand-primary), 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat__icon:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 28px rgba(var(--rgb-brand-primary), 0.40); }
.stat__icon svg { width: 26px; height: 26px; }

.stat__number { font-size: 2rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); letter-spacing: -0.02em; line-height: 1; }
.stat__number span { color: rgb(var(--rgb-brand-primary)); font-size: 1.6rem; }
.stat__label { font-size: 0.82rem; color: rgb(var(--rgb-stat-label-color)); font-weight: 500; text-align: center; line-height: 1.4; }

@media (max-width: 640px) {
  .about__card { padding: 2rem 1.25rem; }
  .about__title { font-size: 1.8rem; }
  .about__text p { font-size: 0.92rem; }
  .about__stats { flex-direction: column; align-items: center; }
  .stat__sep { display: none; }
  .stat { padding: 1.5rem 0; width: 100%; border-bottom: 1px solid rgba(var(--rgb-brand-primary), 0.08); }
  .stat:last-of-type { border-bottom: none; }
  .stat__number { font-size: 1.8rem; }
}

[data-theme='dark'] .about__text strong { color: rgb(var(--rgb-about-text-color-dark)) !important; }
[data-theme='dark'] .stat__number { color: rgb(var(--rgb-about-text-color-dark)) !important; }
[data-theme='dark'] .stat__number span { color: rgb(var(--rgb-brand-primary-dark)) !important; }
[data-theme='dark'] .stat__label { color: rgb(var(--rgb-text-secondary-dark)) !important; }

/* ══════════════════════════ Skills section ══════════════════════════ */
.skills { background: rgb(var(--rgb-section-background)); padding: 6rem 1.5rem 7rem; font-family: var(--font-localized, 'Outfit', sans-serif); }
.skills__container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

.skills__badge {
  display: inline-flex; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  color: rgb(var(--rgb-brand-primary)); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.30);
  padding: 0.32rem 1rem; border-radius: 999px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.skills__badge.visible { opacity: 1; transform: translateY(0); }

.skills__title {
  font-size: 2.6rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); letter-spacing: -0.02em;
  margin: 0; text-align: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease 0.1s, transform 0.65s ease 0.1s;
}
.skills__title.visible { opacity: 1; transform: translateY(0); }

[dir='rtl'] .skills__badge, [dir='rtl'] .skills__title { letter-spacing: 0; font-family: var(--font-localized, 'Cairo', 'Outfit', sans-serif); }

.skills__grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1rem; }

.skill-card {
  position: relative; background: rgb(var(--rgb-neutral-surface)); border-radius: 20px;
  padding: 2rem 1.75rem;
  border: 1.5px solid rgba(var(--rgb-black), 0.06);
  box-shadow: 0 2px 16px rgba(var(--rgb-about-card-box-shadow), 0.05);
  overflow: hidden;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover { border-color: rgba(var(--rgb-brand-primary), 0.40); box-shadow: 0 16px 48px rgba(var(--rgb-brand-primary), 0.13); }

.skill-card__glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(var(--rgb-brand-primary), 0.04) 0%, rgba(var(--rgb-skill-card-glow-background), 0.02) 100%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none; border-radius: 20px;
}
.skill-card:hover .skill-card__glow { opacity: 1; }

.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, rgb(var(--rgb-brand-primary)), rgb(var(--rgb-brand-secondary)));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover::before { transform: scaleX(1); }

.skill-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; position: relative; z-index: 1; }

.skill-card__icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(var(--rgb-black), 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover .skill-card__icon-wrap { transform: rotate(-6deg) scale(1.1); box-shadow: 0 8px 20px rgba(var(--rgb-black), 0.20); }

.skill-card__logo { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.skill-card__title { font-size: 1.15rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); margin: 0; letter-spacing: -0.01em; }

.skill-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; position: relative; z-index: 1; }

.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; font-weight: 500;
  color: rgb(var(--rgb-tag-color)); background: rgb(var(--rgb-tag-background));
  border: 1px solid rgba(var(--rgb-brand-primary), 0.09);
  padding: 0.35rem 0.7rem; border-radius: 8px;
  opacity: 0; transform: scale(0.88);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.skill-card.visible .tag { animation: tagPop 0.38s ease forwards; }
@keyframes tagPop { to { opacity: 1; transform: scale(1); } }

.tag:hover { background: rgb(var(--rgb-brand-primary)); color: rgb(var(--rgb-white)); border-color: rgb(var(--rgb-brand-primary)); transform: translateY(-2px) scale(1.04); box-shadow: 0 4px 12px rgba(var(--rgb-brand-primary), 0.28); cursor: default; }
.tag__icon { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; transition: filter 0.22s ease; }
.tag:hover .tag__icon { filter: brightness(0) invert(1); }

@media (max-width: 1024px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .skills__grid { grid-template-columns: 1fr; }
  .skills__title { font-size: 1.9rem; }
  .skill-card { padding: 1.6rem 1.4rem; transition-delay: 0.05s !important; }
}

/* ══════════════════════════ Projects section ══════════════════════════ */
.projects { background: rgb(var(--rgb-neutral-surface)); padding: 6rem 1.5rem 7rem; font-family: var(--font-localized, 'Outfit', sans-serif); }
.projects__container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3rem; }

.projects__header {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.projects__header.visible { opacity: 1; transform: translateY(0); }

.projects__badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: rgb(var(--rgb-brand-primary)); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.3); padding: 0.32rem 1rem; border-radius: 999px; }
.projects__title { margin: 0; font-size: 2.6rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); letter-spacing: -0.02em; }
.projects__underline { width: 48px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--rgb-brand-primary)), rgb(var(--rgb-brand-secondary))); }
.projects__sub { margin: 0; font-size: 0.95rem; font-weight: 400; color: rgb(var(--rgb-projects-sub-color)); }

.projects__grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 1.1rem; }

.proj-card { position: relative; border-radius: 18px; overflow: hidden; opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.55s ease, transform 0.55s ease; }
.proj-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.proj-card:nth-child(1) { transition-delay: 0.05s; }
.proj-card:nth-child(2) { transition-delay: 0.13s; }
.proj-card:nth-child(3) { transition-delay: 0.21s; }
.proj-card:nth-child(4) { transition-delay: 0.09s; }
.proj-card:nth-child(5) { transition-delay: 0.17s; }
.proj-card:nth-child(6) { transition-delay: 0.25s; }
.proj-card:nth-child(7) { transition-delay: 0.13s; }

.proj-card--text { cursor: default; display: flex; align-items: center; justify-content: center; background: rgb(var(--rgb-proj-card-text-background)); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.12); }
.proj-card__bg-dots { position: absolute; inset: 0; opacity: 0.6; background-image: radial-gradient(circle, rgba(var(--rgb-brand-primary), 0.1) 1px, transparent 1px); background-size: 22px 22px; }
.proj-card__circle { position: absolute; border-radius: 50%; border: 1px solid rgba(var(--rgb-brand-primary), 0.15); }
.proj-card__circle--1 { top: -40px; right: -40px; width: 160px; height: 160px; }
.proj-card__circle--2 { left: 20px; bottom: 30px; width: 80px; height: 80px; background: rgba(var(--rgb-brand-primary), 0.04); }

.proj-card__text-content { position: relative; z-index: 2; padding: 1rem; text-align: center; transition: transform 0.3s ease; }
.proj-card--text:hover .proj-card__text-content { transform: scale(1.04); }
.proj-card__eyebrow { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--rgb-brand-primary)); }
.proj-card__slogan { margin: 0; font-size: 1.7rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; color: rgb(var(--rgb-text-primary-light)); }
.proj-card__slogan span { color: rgb(var(--rgb-brand-primary)); }
.proj-card__slogan .accent { color: rgb(var(--rgb-brand-secondary)); }
.proj-card__count { margin: 0.8rem 0 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: rgb(var(--rgb-proj-card-count-color)); }

.proj-card__hover-overlay {
  position: absolute; inset: 0; z-index: 3; border-radius: 18px; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--rgb-brand-primary), 0.88);
  transition: opacity 0.3s ease;
}
.proj-card__hover-overlay span { color: rgb(var(--rgb-white)); font-size: 1rem; font-weight: 700; }
.proj-card--text:hover .proj-card__hover-overlay { opacity: 1; }

.projects__service-btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem; font-weight: 800; letter-spacing: 0.02em;
  color: rgb(var(--rgb-white));
  background: linear-gradient(135deg, rgb(var(--rgb-projects-service-btn-background)), rgb(var(--rgb-projects-service-btn-background-2)));
  box-shadow: 0 10px 24px rgba(var(--rgb-projects-service-btn-box-shadow), 0.26);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.2s ease;
}

.projects__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.projects__actions.visible .projects__service-btn { opacity: 1; transform: translateY(0); }
.projects__service-btn:hover { filter: brightness(1.07); }

@media (max-width: 900px) { .projects__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; } }
@media (max-width: 560px) {
  .projects__grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .projects__title { font-size: 2rem; }
  .proj-card:nth-child(n) { transition-delay: 0.06s; }
}

/* ── Project card (image) ── */
.proj-card--img { position: relative; background: rgb(var(--rgb-proj-card-img-background)); }
.proj-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s ease, filter 0.55s ease; }
.proj-card--img:hover .proj-card__img, .proj-card--img:focus-within .proj-card__img { transform: scale(1.08); filter: brightness(0.35) saturate(1.15); }

.proj-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.35rem;
  background: linear-gradient(to top, rgba(var(--rgb-proj-card-overlay-background), 0.95) 0%, rgba(var(--rgb-proj-card-overlay-background), 0.25) 58%, transparent 100%);
  transition: background 0.38s ease;
}
.proj-card--img:hover .proj-card__overlay, .proj-card--img:focus-within .proj-card__overlay {
  background: linear-gradient(to top, rgba(var(--rgb-proj-card-img-background-2), 0.98) 0%, rgba(var(--rgb-proj-card-img-background-3), 0.82) 62%, rgba(var(--rgb-proj-card-img-background-4), 0.16) 100%);
}

.proj-card__details {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  color: rgb(var(--rgb-white));
  background: rgba(var(--rgb-neutral-surface), 0.14);
  border: 1px solid rgba(var(--rgb-white), 0.25);
  opacity: 0; transform: translateY(-8px) scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}
.proj-card__details svg { width: 16px; height: 16px; }
.proj-card--img:hover .proj-card__details, .proj-card--img:focus-within .proj-card__details { opacity: 1; transform: translateY(0) scale(1); }
.proj-card__details:hover { background: rgba(var(--rgb-neutral-surface), 0.22); }

.proj-card__info { display: flex; flex-direction: column; gap: 0.48rem; width: 100%; transform: translateY(6px); transition: transform 0.36s ease; }
.proj-card--img:hover .proj-card__info, .proj-card--img:focus-within .proj-card__info { transform: translateY(0); }

.proj-card__tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgb(var(--rgb-proj-card-tag-color)); background: rgba(var(--rgb-indigo), 0.22);
  border: 1px solid rgba(var(--rgb-indigo), 0.34);
  padding: 0.21rem 0.58rem; border-radius: 999px; width: fit-content;
}

.proj-card__name { margin: 0; color: rgb(var(--rgb-white)); font-size: 1.14rem; font-weight: 800; letter-spacing: -0.01em; }

.proj-card__desc {
  margin: 0; color: rgb(var(--rgb-proj-card-desc-color)); font-size: 0.8rem; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}
.proj-card--img:hover .proj-card__desc, .proj-card--img:focus-within .proj-card__desc { max-height: 78px; opacity: 1; }

.proj-card__links { display: flex; align-items: center; gap: 0.58rem; margin-top: 0.16rem; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.proj-card--img:hover .proj-card__links, .proj-card--img:focus-within .proj-card__links { opacity: 1; transform: translateY(0); }

.proj-link { border: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; cursor: pointer; }
.proj-link--primary { font-size: 0.79rem; color: rgb(var(--rgb-white)); background: rgb(var(--rgb-project-button)); border-radius: 8px; padding: 0.45rem 1.06rem; box-shadow: 0 4px 14px rgba(var(--rgb-project-button), 0.4); }
.proj-link--primary:hover { transform: translateY(-1px); background: rgb(var(--rgb-proj-link-primary-background)); box-shadow: 0 7px 20px rgba(var(--rgb-project-button), 0.47); }
.proj-link--icon { width: 32px; height: 32px; border-radius: 8px; color: rgb(var(--rgb-white)); background: rgba(var(--rgb-neutral-surface), 0.12); border: 1px solid rgba(var(--rgb-white), 0.2); }
.proj-link--icon svg { width: 16px; height: 16px; }
.proj-link--icon:hover { transform: translateY(-1px); background: rgba(var(--rgb-neutral-surface), 0.22); }
.proj-link--private { cursor: pointer; }

/* ── Private GitHub dialog ── */
.private-dialog {
  position: fixed; inset: 0; z-index: 1300;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(var(--rgb-private-dialog-background), 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.24s ease;
}
.private-dialog.is-open { opacity: 1; pointer-events: auto; }

.private-dialog__panel {
  position: relative; width: min(470px, 100%);
  border-radius: 20px; padding: 1.45rem 1.2rem 1.1rem;
  background: rgb(var(--rgb-neutral-surface)); border: 1px solid rgba(var(--rgb-private-dialog-panel-border), 0.18);
  box-shadow: 0 24px 54px rgba(var(--rgb-private-dialog-panel-box-shadow), 0.25);
  text-align: center;
}

.private-dialog__close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid rgba(var(--rgb-private-dialog-close-border), 0.2);
  background: rgb(var(--rgb-private-dialog-close-background)); color: rgb(var(--rgb-private-dialog-close-color));
  display: grid; place-items: center; cursor: pointer;
}
.private-dialog__close svg { width: 16px; height: 16px; }

.private-dialog__lottie { width: min(170px, 55vw); height: min(170px, 55vw); margin: 0.2rem auto 0.3rem; }
.private-dialog__title { margin: 0; color: rgb(var(--rgb-private-dialog-title-color)); font-size: 1.2rem; font-weight: 800; }
.private-dialog__text { margin: 0.65rem auto 1.1rem; max-width: 36ch; color: rgb(var(--rgb-private-dialog-text-color)); line-height: 1.6; font-size: 0.92rem; }
.private-dialog__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.58rem; }

.private-dialog__btn {
  min-width: 126px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.private-dialog__btn--primary { color: rgb(var(--rgb-white)); background: rgb(var(--rgb-project-button)); box-shadow: 0 8px 18px rgba(var(--rgb-project-button), 0.28); }
.private-dialog__btn--ghost { color: rgb(var(--rgb-private-dialog-btn-ghost-color)); background: rgb(var(--rgb-project-album-mobile-background)); border-color: rgba(var(--rgb-private-dialog-btn-ghost-color), 0.2); }

@media (max-width: 520px) {
  .private-dialog__panel { border-radius: 16px; padding-inline: 0.95rem; }
  .private-dialog__btn { min-width: 100%; }
}

/* ══════════════════════════ Client reviews section ══════════════════════════ */
.reviews {
  position: relative;
  background: radial-gradient(circle at 10% 0%, rgba(var(--rgb-reviews-background), 0.13), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(var(--rgb-vue-brand), 0.13), transparent 40%), rgb(var(--rgb-project-details-background));
  padding: 6rem 1.5rem 7rem;
  overflow: hidden;
  font-family: var(--font-localized, 'Outfit', sans-serif);
}

.reviews__container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.6rem; }

.reviews__header { text-align: center; opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reviews__header.visible { opacity: 1; transform: translateY(0); }

.reviews__badge { display: inline-flex; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: rgb(var(--rgb-reviews-badge-color)); border: 1.5px solid rgba(var(--rgb-reviews-badge-color), 0.28); border-radius: 999px; padding: 0.34rem 0.95rem; }
.reviews__title { margin: 0.9rem 0 0.4rem; font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; color: rgb(var(--rgb-reviews-title-color)); letter-spacing: -0.02em; }
.reviews__subtitle { margin: 0; color: rgb(var(--rgb-reviews-subtitle-color)); font-size: 0.96rem; }

.reviews__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reviews__stats.visible { opacity: 1; transform: translateY(0); }

.reviews__stat {
  background: rgba(var(--rgb-neutral-surface), 0.8); border: 1px solid rgba(var(--rgb-reviews-stat-border), 0.12);
  box-shadow: 0 12px 30px rgba(var(--rgb-reviews-stat-box-shadow), 0.07); border-radius: 16px;
  padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.18rem;
}
.reviews__stat strong { font-size: 1.2rem; color: rgb(var(--rgb-reviews-stat-color)); }
.reviews__stat span { color: rgb(var(--rgb-reviews-stat-color-2)); font-size: 0.86rem; }

.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.review-card {
  position: relative; background: rgba(var(--rgb-neutral-surface), 0.84);
  border: 1px solid rgba(var(--rgb-review-card-border), 0.14);
  box-shadow: 0 14px 34px rgba(var(--rgb-review-card-box-shadow), 0.09);
  border-radius: 18px; padding: 1.15rem 1.15rem 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  opacity: 0; transform: translateY(30px) scale(0.98);
  transition: transform 0.52s ease, opacity 0.52s ease, box-shadow 0.28s ease;
}
.review-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.review-card:hover { box-shadow: 0 18px 42px rgba(var(--rgb-review-card-box-shadow), 0.14); }

.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.review-card__platform { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: rgb(var(--rgb-review-card-platform-color)); background: rgba(var(--rgb-review-card-platform-color), 0.1); border-radius: 999px; padding: 0.32rem 0.6rem; }
.review-card__stars { font-size: 0.94rem; letter-spacing: 0.06em; color: rgb(var(--rgb-review-card-stars-color)); }
.review-card__stars .filled { color: rgb(var(--rgb-review-card-stars-color-2)); }
.review-card__title { margin: 0; font-size: 1rem; color: rgb(var(--rgb-review-card-title-color)); font-weight: 750; }
.review-card__text { margin: 0; color: rgb(var(--rgb-review-card-text-color)); line-height: 1.7; font-size: 0.93rem; }
.review-card__footer { margin-top: auto; padding-top: 0.55rem; border-top: 1px dashed rgba(var(--rgb-review-card-footer-border-top), 0.25); display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; }
.review-card__footer strong { display: block; color: rgb(var(--rgb-review-card-footer-color)); font-size: 0.92rem; }
.review-card__footer span { color: rgb(var(--rgb-review-card-footer-color-2)); font-size: 0.8rem; }
.review-card__footer a { text-decoration: none; color: rgb(var(--rgb-review-card-footer-color-3)); font-weight: 700; font-size: 0.84rem; }

.reviews__profile-link {
  width: fit-content; align-self: center; margin-top: 0.6rem;
  background: linear-gradient(135deg, rgb(var(--rgb-projects-service-btn-background)), rgb(var(--rgb-projects-service-btn-background-2))); color: rgb(var(--rgb-white));
  text-decoration: none; padding: 0.7rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; box-shadow: 0 10px 25px rgba(var(--rgb-projects-service-btn-background), 0.32);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.25s ease;
}
.reviews__profile-link.visible { opacity: 1; transform: translateY(0); }
.reviews__profile-link:hover { filter: brightness(1.08); }

.reviews__certificates { margin-top: 1.1rem; opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reviews__certificates.visible { opacity: 1; transform: translateY(0); }
.reviews__cert-header { text-align: center; margin-bottom: 0.9rem; }

.reviews__cert-badge {
  display: inline-flex; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--color-accent); border: 1px solid var(--color-border-strong);
  border-radius: 999px; padding: 0.28rem 0.8rem;
  background: color-mix(in srgb, var(--color-accent) 9%, transparent);
}
.reviews__cert-title { margin: 0.6rem 0 0.2rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--color-text-primary); letter-spacing: -0.01em; }
.reviews__cert-subtitle { margin: 0; color: var(--color-text-secondary); font-size: 0.9rem; }

.cert-marquee {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--color-border-soft);
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--color-shadow-rgb) 55%, transparent);
}
.cert-marquee::before, .cert-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.cert-marquee::before { left: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--color-bg-page) 95%, transparent), transparent); }
.cert-marquee::after { right: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--color-bg-page) 95%, transparent), transparent); }

.cert-marquee__track { display: flex; gap: 0.85rem; width: max-content; padding: 0.9rem; animation: certScroll 26s linear infinite; }
.cert-marquee.is-ar .cert-marquee__track { animation-direction: reverse; }

.cert-card { width: 255px; min-height: 180px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border-soft); text-decoration: none; background: rgb(var(--rgb-cert-card-background)); flex-shrink: 0; }
.cert-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cert-card__overlay { position: absolute; inset: auto 0 0; padding: 0.65rem 0.7rem 0.75rem; background: linear-gradient(180deg, transparent 0%, rgba(var(--rgb-cert-card-overlay-background), 0.9) 62%); color: rgb(var(--rgb-footer-logo-color-dark)); }
.cert-card__source { display: inline-flex; margin-bottom: 0.38rem; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.2rem 0.45rem; border-radius: 999px; background: rgba(var(--rgb-footer-social-background-dark), 0.24); border: 1px solid rgba(var(--rgb-footer-social-background-dark), 0.4); }
.cert-card h4 { margin: 0; font-size: 0.92rem; }
.cert-card p { margin: 0.24rem 0 0; font-size: 0.76rem; line-height: 1.45; color: rgb(var(--rgb-cert-card-color)); }
.cert-card:hover .cert-card__image { transform: scale(1.07); }

@keyframes certScroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 0.425rem)); } }

@media (max-width: 900px) { .reviews__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .reviews__grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .reviews { padding: 5rem 1rem 6rem; }
  .reviews__stats { grid-template-columns: 1fr; }
  .reviews__stat { align-items: center; text-align: center; }
  .cert-marquee::before, .cert-marquee::after { width: 45px; }
  .cert-card { width: 220px; min-height: 160px; }
}

/* ══════════════════════════ Contact section ══════════════════════════ */
.contact { position: relative; background: rgb(var(--rgb-section-background)); padding: 6rem 1.5rem 7rem; font-family: var(--font-localized, 'Outfit', sans-serif); overflow: hidden; }
.contact__blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); opacity: 0.35; }
.contact__blob--1 { width: 500px; height: 500px; top: -100px; left: -120px; background: radial-gradient(circle, rgba(var(--rgb-skill-card-glow-background), 0.45), transparent 70%); animation: blobFloat 14s ease-in-out infinite alternate; }
.contact__blob--2 { width: 400px; height: 400px; bottom: -80px; right: -80px; background: radial-gradient(circle, rgba(var(--rgb-contact-blob-2-background), 0.40), transparent 70%); animation: blobFloat 18s ease-in-out infinite alternate-reverse; }
@keyframes blobFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(20px, 25px) scale(1.08); } }

.contact__container { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3rem; position: relative; z-index: 1; }

.contact__header { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.contact__header.visible { opacity: 1; transform: translateY(0); }
.contact__badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: rgb(var(--rgb-brand-primary)); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.30); padding: 0.32rem 1rem; border-radius: 999px; }
.contact__title { font-size: 2.6rem; font-weight: 800; color: rgb(var(--rgb-text-primary-light)); letter-spacing: -0.02em; margin: 0; }
.contact__sub { font-size: 1rem; color: rgb(var(--rgb-projects-sub-color)); margin: 0; }

.contact__body { width: 100%; display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start; opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s; }
.contact__body.visible { opacity: 1; transform: translateY(0); }

.contact__info { display: flex; flex-direction: column; gap: 2rem; padding-top: 0.5rem; }
.contact__info-text { font-size: 0.97rem; color: rgb(var(--rgb-hero-desc-color)); line-height: 1.8; margin: 0; }
.contact__links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact__link {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.9rem 1.1rem; background: rgb(var(--rgb-neutral-surface)); border-radius: 14px;
  border: 1.5px solid rgba(var(--rgb-brand-primary), 0.08);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(var(--rgb-about-card-box-shadow), 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.contact__link:hover { border-color: rgba(var(--rgb-brand-primary), 0.30); box-shadow: 0 8px 28px rgba(var(--rgb-brand-primary), 0.12); transform: translateX(4px); }

.contact__link-icon { width: 38px; height: 38px; background: linear-gradient(135deg, rgb(var(--rgb-stat-icon-background)), rgb(var(--rgb-brand-primary))); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 10px rgba(var(--rgb-brand-primary), 0.25); }
.contact__link-icon svg { width: 18px; height: 18px; }
.contact__link-text { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.contact__link-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--rgb-hero-scroll-text-color)); }
.contact__link-value { font-size: 0.88rem; font-weight: 600; color: rgb(var(--rgb-text-primary-light)); }
.contact__link-arrow { font-size: 1rem; color: rgb(var(--rgb-contact-link-arrow-color)); transition: color 0.2s ease, transform 0.2s ease; }
.contact__link:hover .contact__link-arrow { color: rgb(var(--rgb-brand-primary)); transform: translateX(3px); }

.contact__card { background: rgb(var(--rgb-neutral-surface)); border-radius: 24px; padding: 2.5rem; box-shadow: 0 4px 40px rgba(var(--rgb-about-card-box-shadow), 0.08); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.07); }

.form__alert { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 500; padding: 0.7rem 1rem; border-radius: 10px; margin-bottom: 0.5rem; }
.form__alert--warn { background: rgba(var(--rgb-rating), 0.10); color: rgb(var(--rgb-warning-text)); border: 1px solid rgba(var(--rgb-rating), 0.30); }

.contact__form { display: flex; flex-direction: column; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__field { position: relative; display: flex; flex-direction: column; gap: 0.4rem; }
.form__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--rgb-hero-scroll-text-color)); transition: color 0.2s ease; display: flex; justify-content: space-between; align-items: center; }
.form__field.focused .form__label { color: rgb(var(--rgb-brand-primary)); }
.form__field.error .form__label { color: rgb(var(--rgb-error)); }
.form__char-count { font-size: 0.7rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgb(var(--rgb-form-char-count-color)); }
.form__char-count.warn { color: rgb(var(--rgb-warning)); }

.form__input {
  font-family: var(--font-localized, 'Outfit', sans-serif); font-size: 0.95rem; font-weight: 500; color: rgb(var(--rgb-text-primary-light));
  background: rgb(var(--rgb-form-input-background)); border: 1.5px solid rgba(var(--rgb-brand-primary), 0.10);
  border-radius: 12px; padding: 0.75rem 1rem; outline: none; resize: none;
  width: 100%; box-sizing: border-box;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.form__input::placeholder { color: rgb(var(--rgb-form-char-count-color)); }
.form__input:focus { border-color: rgb(var(--rgb-brand-primary)); background: rgb(var(--rgb-neutral-surface)); box-shadow: 0 0 0 4px rgba(var(--rgb-brand-primary), 0.08); }
.form__field.error .form__input { border-color: rgb(var(--rgb-error)); }
.form__field.error .form__input:focus { box-shadow: 0 0 0 4px rgba(var(--rgb-error), 0.08); }
.form__textarea { min-height: 120px; }

.form__line { position: absolute; bottom: 0; left: 1rem; width: 0; height: 2px; background: linear-gradient(90deg, rgb(var(--rgb-brand-primary)), rgb(var(--rgb-brand-secondary))); border-radius: 2px; transition: width 0.35s ease; pointer-events: none; }
.form__field.focused .form__line { width: calc(100% - 2rem); }
.form__field.error .form__line { background: rgb(var(--rgb-error)); width: calc(100% - 2rem); }

.form__error { font-size: 0.74rem; font-weight: 500; color: rgb(var(--rgb-error)); display: flex; align-items: center; gap: 0.25rem; animation: errorIn 0.2s ease; }
@keyframes errorIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.form__submit {
  width: 100%; padding: 0.95rem; background: rgb(var(--rgb-brand-primary)); color: rgb(var(--rgb-white)); border: none; border-radius: 12px;
  font-family: var(--font-localized, 'Outfit', sans-serif); font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(var(--rgb-brand-primary), 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  position: relative; overflow: hidden;
}
.form__submit::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(120deg, transparent, rgba(var(--rgb-neutral-surface), 0.18), transparent); transition: left 0.5s ease; }
.form__submit:hover::before { left: 160%; }
.form__submit:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(var(--rgb-brand-primary), 0.42); }
.form__submit:active { transform: translateY(0); }
.form__submit-inner { display: flex; align-items: center; gap: 0.5rem; }
.form__submit.loading { background: rgb(var(--rgb-form-submit-background)); cursor: not-allowed; }
.form__submit.loading:hover { transform: none; box-shadow: 0 6px 24px rgba(var(--rgb-brand-primary), 0.32); }
.form__submit.sent { background: rgb(var(--rgb-available-strong)); box-shadow: 0 6px 24px rgba(var(--rgb-available-strong), 0.32); }
.form__submit.disabled { background: rgb(var(--rgb-form-submit-background-2)); cursor: not-allowed; }
.form__submit.disabled:hover { transform: none; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(var(--rgb-white), 0.35); border-top-color: rgb(var(--rgb-white)); border-radius: 50%; animation: contactSpin 0.7s linear infinite; display: inline-block; }
@keyframes contactSpin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .contact__body { grid-template-columns: 1fr; }
  .contact__info { order: 2; }
  .contact__card { order: 1; }
  .contact__links { flex-direction: row; flex-wrap: wrap; }
  .contact__link { flex: 1; min-width: 200px; }
}

@media (max-width: 520px) {
  .contact__title { font-size: 2rem; }
  .contact__card { padding: 1.75rem 1.25rem; }
  .form__row { grid-template-columns: 1fr; }
  .contact__link { min-width: unset; width: 100%; }
}
