:root {
  --bg: #0f172a;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --text: #f8fafc;
  --muted: #94a3b8;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background: transparent;
  position: relative;
  z-index: 0;
  overflow-x: clip;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

body.is-nav-open,
body.is-modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(6, 182, 212, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-150%);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

.ambient,
.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient {
  background:
    radial-gradient(ellipse 48% 38% at 12% 18%, rgba(139, 92, 246, 0.28), transparent 62%),
    radial-gradient(ellipse 36% 32% at 88% 8%, rgba(6, 182, 212, 0.2), transparent 58%),
    radial-gradient(ellipse 42% 36% at 72% 88%, rgba(139, 92, 246, 0.14), transparent 64%);
}

.ambient-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 28%, #000 15%, transparent 74%);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(2px);
}

.nav-backdrop[hidden] {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(15, 23, 42, 0.88);
  border-bottom-color: rgba(6, 182, 212, 0.2);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.glow-dot {
  position: relative;
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16), 0 0 14px var(--cyan);
}

.glow-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(6, 182, 212, 0.55);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.nav-link,
.mobile-link {
  position: relative;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: transform 0.28s var(--ease);
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.mobile-menu.is-open {
  grid-template-rows: 1fr;
}

.mobile-menu-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 0;
}

.mobile-menu.is-open .mobile-menu-inner {
  padding-top: 0.4rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
}

.mobile-link.is-active,
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.22);
}

.is-hidden {
  display: none;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 2.5rem;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #f8fafc;
}

.text-gradient {
  background: linear-gradient(105deg, #67e8f9 0%, #818cf8 58%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.role-mark {
  width: 1.8rem;
  height: 2px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.75);
}

.typing-line {
  min-height: 3.15em;
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: #67e8f9;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.typing-prompt {
  margin-inline-end: 0.45rem;
  color: var(--violet);
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 2px;
  vertical-align: text-bottom;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1s steps(1) infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.05rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

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

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn-primary {
  color: #04121f;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 42%, #c4b5fd 100%);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.38), 0 0 42px rgba(139, 92, 246, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.55), 0 10px 30px rgba(139, 92, 246, 0.35);
}

.btn-primary .btn-icon {
  transition: transform 0.25s var(--ease);
}

.btn-primary:hover .btn-icon {
  transform: translateX(4px);
}

.btn-outline {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.18);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: #e2e8f0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.social-link:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.28);
}

.hero-stage {
  position: relative;
  width: min(100%, 34rem);
  height: 520px;
  margin-inline: auto;
  isolation: isolate;
}

.hero-aura {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 42%;
  width: 96%;
  height: 72%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #06b6d4 0%, #8b5cf6 46%, transparent 72%);
  filter: blur(72px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-podium {
  position: absolute;
  z-index: 1;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 34%;
  border-radius: 1.75rem 1.75rem 0 0;
  border: 0;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.16), rgba(139, 92, 246, 0.08) 42%, transparent 100%);
  filter: blur(2px);
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1.5rem;
  width: 118%;
  height: 108%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 28px rgba(6, 182, 212, 0.2));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 96%);
  pointer-events: none;
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float-y 5.5s ease-in-out infinite;
}

.float-chip-right {
  top: 22%;
  right: 0;
}

.float-chip-left {
  bottom: 32%;
  left: 0;
  animation-delay: -1.8s;
}

.section {
  padding: 4.75rem 0 5.25rem;
  scroll-margin-top: var(--header-h);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-kicker {
  margin: 0;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0.55rem 0 0;
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-rule {
  display: block;
  width: 3.4rem;
  height: 3px;
  margin-top: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.55);
}

.story p {
  margin: 0;
  max-width: 40rem;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.75;
}

.story p + p {
  margin-top: 1rem;
}

.story p.philosophy {
  position: relative;
  margin-top: 1.35rem;
  padding-block: 1rem;
  padding-inline: 1.1rem 1.25rem;
  border-radius: 1rem;
  color: #f8fafc;
  font-weight: 500;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.philosophy::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.65);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat-card {
  min-height: 100%;
  padding: 1.15rem 1.05rem 1.2rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(15, 23, 42, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.stat-card:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.18),
    0 0 28px rgba(6, 182, 212, 0.2),
    0 18px 40px rgba(2, 6, 23, 0.35);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.stat-value {
  margin: 0.9rem 0 0;
  color: transparent;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(110deg, #67e8f9 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.stat-label {
  margin: 0.4rem 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.section-experience .section-heading {
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  inset-inline-start: 0.48rem;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet) 70%, rgba(139, 92, 246, 0.05));
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.timeline-item {
  position: relative;
  padding-inline-start: 2.6rem;
}

.timeline-node {
  position: absolute;
  top: 1.45rem;
  inset-inline-start: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 5px rgba(6, 182, 212, 0.14), 0 0 16px var(--cyan);
}

.timeline-node::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #67e8f9, #8b5cf6);
}

.timeline-item:nth-child(even) .timeline-node {
  border-color: var(--violet);
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.16), 0 0 16px var(--violet);
}

.timeline-card {
  padding: 1.25rem 1.15rem 1.3rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s var(--ease);
}

.timeline-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow:
    0 0 26px rgba(6, 182, 212, 0.12),
    0 16px 36px rgba(2, 6, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.timeline-topline {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.timeline-company {
  margin: 0;
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-role {
  margin: 0.2rem 0 0;
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.meta-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline-points li {
  position: relative;
  padding-inline-start: 1rem;
  color: #cbd5e1;
  font-size: 0.96rem;
  line-height: 1.6;
}

.timeline-points li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.65);
}

.timeline-points strong {
  color: #f8fafc;
  font-weight: 600;
}

.section-subtitle {
  margin: 0.95rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.project-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.filter-count {
  margin: 0;
  align-self: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.filter-btn {
  min-height: 2.85rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.16);
}

.filter-btn.is-active {
  color: #04121f;
  border-color: transparent;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 42%, #c4b5fd 100%);
  box-shadow: 0 0 22px rgba(6, 182, 212, 0.32);
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0 0 1.15rem;
  overflow: hidden;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow:
    0 0 28px rgba(6, 182, 212, 0.18),
    0 18px 40px rgba(2, 6, 23, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.project-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(6, 182, 212, 0.38), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(139, 92, 246, 0.34), transparent 48%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-card[data-project-id="safe-secure"] .project-cover {
  background:
    radial-gradient(circle at 24% 30%, rgba(139, 92, 246, 0.46), transparent 54%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.22), transparent 46%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-card[data-project-id="sms-sync"] .project-cover {
  background:
    radial-gradient(circle at 70% 22%, rgba(6, 182, 212, 0.42), transparent 50%),
    radial-gradient(circle at 20% 84%, rgba(139, 92, 246, 0.28), transparent 48%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-card[data-project-id="movexa-whatsapp"] .project-cover {
  background:
    radial-gradient(circle at 24% 26%, rgba(37, 211, 102, 0.28), transparent 52%),
    radial-gradient(circle at 78% 74%, rgba(6, 182, 212, 0.32), transparent 48%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-card[data-project-id="movexa-whatsapp"] .project-impact {
  max-width: 100%;
  border-radius: 1rem;
  line-height: 1.4;
  white-space: normal;
}

.project-card[data-project-id="meta-ads"] .project-cover {
  background:
    radial-gradient(circle at 22% 28%, rgba(6, 182, 212, 0.42), transparent 52%),
    radial-gradient(circle at 78% 76%, rgba(139, 92, 246, 0.4), transparent 48%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-card[data-project-id="movexa-logistics"] .project-cover {
  background:
    radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.4), transparent 52%),
    radial-gradient(circle at 78% 24%, rgba(6, 182, 212, 0.28), transparent 46%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent);
  pointer-events: none;
}

.project-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
}

.project-cover.is-wide .project-cover-image {
  object-fit: cover;
}

.project-cover.has-image:not(.is-wide)::after {
  height: 16%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent);
}

.project-cover.is-single .flip-btn,
.project-cover.is-single .flip-count,
.shot-frame.is-single .flip-btn,
.modal-gallery.is-single .shot-dots {
  display: none;
}

.project-cover.has-image .project-cover-image {
  opacity: 1;
}

.project-cover.has-image .project-cover-mark {
  opacity: 0;
}

.project-cover-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1.2rem;
  color: #e0f2fe;
  font-size: 1.45rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.project-cover .project-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.project-cover-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.flip-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transform: translateY(-50%);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.flip-btn:hover {
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.28);
}

.flip-prev {
  inset-inline-start: 0.65rem;
}

.flip-next {
  inset-inline-end: 0.65rem;
}

.flip-count {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1rem 1.1rem 0;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: 0.8rem;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.24);
}

.project-badge {
  margin: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  color: #e0f2fe;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: start;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.project-body .project-title {
  margin-top: 0;
}

.project-title {
  margin: 0.95rem 0 0;
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.project-copy {
  margin: 0.55rem 0 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.6;
}

.project-impact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0.9rem 0 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.28);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #04121f;
  background: linear-gradient(135deg, #67e8f9 0%, #c4b5fd 100%);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.project-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

.project-action-ghost {
  color: #e2e8f0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

.project-action-ghost:hover {
  color: #fff;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.16);
}

.project-empty {
  margin: 1rem 0 0;
  color: var(--muted);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 48rem);
  max-height: min(88vh, 52rem);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.4rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 40px rgba(6, 182, 212, 0.16),
    0 24px 70px rgba(2, 6, 23, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.project-modal-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-modal-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.project-modal-close:hover {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.project-modal-title {
  margin: 0.85rem 0 0;
  color: #f8fafc;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.project-modal-summary {
  margin: 0.7rem 0 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.modal-label {
  margin: 1.2rem 0 0;
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-table {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.stack-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.4));
  box-shadow:
    0 0 18px rgba(6, 182, 212, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stack-key {
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.stack-value {
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .stack-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .stack-key {
    flex: 0 0 9.5rem;
  }

  .stack-value {
    flex: 1 1 auto;
  }
}

.project-modal-dialog .project-impact {
  max-width: 100%;
  white-space: normal;
  line-height: 1.45;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-inline-start: 1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.project-modal .tech-list {
  margin-top: 0.6rem;
}

.modal-gallery {
  margin-top: 0.7rem;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.16), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.18), transparent 50%),
    rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.shot-frame.is-portrait {
  aspect-ratio: auto;
  height: min(72vh, 40rem);
}

.shot-frame.is-ready {
  cursor: zoom-in;
}

.shot-zoom {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.shot-zoom[hidden] {
  display: none;
}

.shot-zoom img {
  max-width: min(100%, 56rem);
  max-height: min(88vh, 64rem);
  object-fit: contain;
  border-radius: 0.85rem;
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.18);
}

.shot-zoom-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.shot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.shot-frame.is-ready .shot-image {
  opacity: 1;
}

.gallery-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 100%;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.gallery-fallback i {
  color: #67e8f9;
  font-size: 1.15rem;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.45));
}

.shot-frame.is-ready .gallery-fallback,
.shot-frame.is-fallback .shot-image {
  display: none;
}

.shot-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.shot-dot {
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.shot-dot.is-active {
  width: 1.15rem;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55);
}

.metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.metric-card {
  padding: 0.9rem 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(15, 23, 42, 0.35));
  box-shadow:
    0 0 22px rgba(6, 182, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.metric-value {
  margin: 0;
  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(90deg, #67e8f9, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  margin: 0.4rem 0 0;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.skill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.skill-card,
.education-card,
.contact-form,
.contact-card,
.site-footer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.skill-card,
.education-card,
.contact-form {
  border-radius: 1.2rem;
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.skill-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow:
    0 0 26px rgba(6, 182, 212, 0.16),
    0 16px 36px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-card-head h3,
.education-degree {
  margin: 0;
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.skill-card .tech-list {
  margin-top: 1rem;
}

.ads-banner {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(103, 232, 249, 0.38);
  box-shadow:
    0 0 24px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ads-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.ads-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.7rem 0.72rem 0.75rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 18px rgba(6, 182, 212, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ads-metric-mark {
  font-size: 0.95rem;
  line-height: 1;
}

.ads-metric-value {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(90deg, #67e8f9, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ads-metric-label {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.education-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem 1.2rem;
}

.education-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.15rem;
}

.education-school {
  margin: 0.4rem 0 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.5;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.grade-pill {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 1.05rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.contact-label {
  display: block;
  color: #67e8f9;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-value {
  display: block;
  margin-top: 0.15rem;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem 1.1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.35);
  color: #f8fafc;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #64748b;
}

.contact-submit {
  width: 100%;
  margin-top: 0.2rem;
}

.site-footer {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: #04121f;
  background: linear-gradient(135deg, #67e8f9 0%, #c4b5fd 100%);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(6, 182, 212, 0.45);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 80;
  width: min(calc(100% - 2rem), 24rem);
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  transform: translateX(-50%);
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.28), 0 16px 40px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast[hidden] {
  display: none;
}

.toast.is-error {
  border-color: rgba(251, 113, 133, 0.55);
  box-shadow: 0 0 28px rgba(251, 113, 133, 0.22), 0 16px 40px rgba(2, 6, 23, 0.45);
}

.form-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (min-width: 640px) {
  .brand-name {
    font-size: 1.05rem;
  }

  .hero-role {
    font-size: 1.08rem;
  }

  .typing-line {
    min-height: 1.6em;
    font-size: 1.22rem;
  }

  .hero-stage {
    height: 560px;
  }

  .timeline-card {
    padding: 1.4rem 1.45rem 1.45rem;
  }

  .timeline-topline {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .timeline-meta {
    flex: none;
    justify-content: flex-end;
    max-width: 16rem;
    text-align: end;
  }
}

@media (min-width: 640px) {
  .project-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }

  .project-grid,
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .hero-stage {
    width: min(100%, 40rem);
    height: 640px;
  }

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

  .project-card.is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    padding-bottom: 0;
  }

  .project-card.is-featured:hover {
    transform: translateY(-4px);
  }

  .project-card.is-featured .project-cover {
    height: 100%;
    min-height: 18rem;
    aspect-ratio: auto;
  }

  .project-card.is-featured .project-body {
    padding: 1.45rem 1.4rem 1.3rem;
  }
}

@media (max-width: 380px) {
  .hero-role {
    align-items: flex-start;
  }

  .role-mark {
    margin-top: 0.55rem;
  }
}

html[dir="rtl"] .section-kicker,
html[dir="rtl"] .section-title,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .project-title,
html[dir="rtl"] .timeline-role,
html[dir="rtl"] .timeline-company,
html[dir="rtl"] .modal-label,
html[dir="rtl"] .education-degree {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .hero-title {
  line-height: 1.28;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .project-title,
html[dir="rtl"] .timeline-role,
html[dir="rtl"] .education-degree {
  line-height: 1.35;
}

html[dir="rtl"] .typing-line {
  min-height: 2.8em;
}

html[dir="rtl"] .nav-link {
  font-size: 0.84rem;
}

html[lang="en"] body {
  font-family: Inter, "Segoe UI", sans-serif;
}

.lang-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-switch button {
  border: 0;
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  background: transparent;
  color: #94a3b8;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lang-switch button[data-set-lang="ar"] {
  font-family: Cairo, Tahoma, sans-serif;
}

.lang-switch button[data-set-lang="en"] {
  font-family: Inter, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.lang-switch button.is-active {
  color: #0f172a;
  background: linear-gradient(105deg, #67e8f9, #c4b5fd);
}

.lang-switch button:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.stat-value,
.metric-value,
.flip-count,
.latin {
  direction: ltr;
  unicode-bidi: isolate;
}

@keyframes ping {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
