@font-face {
  font-family: 'Lyon Arabic';
  src: url('./lyon-arabic-text-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic';
  src: url('./lyon-arabic-text-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic';
  src: url('./lyon-arabic-text-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lyon Arabic';
  src: url('./lyon-arabic-text-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #120b08;
  --bg-elevated: #1a110c;
  --bg-card: rgba(28, 19, 13, 0.85);
  --text: #f6efe6;
  --text-muted: #c2b4a4;
  --accent: #c27b44;
  --accent-light: #e6c39a;
  --accent-glow: rgba(194, 123, 68, 0.25);
  --border: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(230, 195, 154, 0.3);
  --shadow: 0 24px 64px rgba(8, 5, 3, 0.6);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Lyon Arabic', 'Segoe UI', Tahoma, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.8;
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 500ms ease;
}

.page-loader__ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  box-shadow: 0 0 24px rgba(194, 123, 68, 0.35);
  animation: loaderSpin 1s linear infinite;
}

.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.page {
  position: relative;
}

.liquid-glass {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.liquid-glass__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: liquidFloat 20s ease-in-out infinite;
}

.liquid-glass__blob--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(194, 123, 68, 0.4), rgba(194, 123, 68, 0.1));
  animation-delay: 0s;
}

.liquid-glass__blob--2 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: -10%;
  background: radial-gradient(circle, rgba(230, 195, 154, 0.3), rgba(230, 195, 154, 0.05));
  animation-delay: -5s;
  animation-duration: 25s;
}

.liquid-glass__blob--3 {
  width: 350px;
  height: 350px;
  bottom: -5%;
  right: 20%;
  background: radial-gradient(circle, rgba(194, 123, 68, 0.35), rgba(194, 123, 68, 0.08));
  animation-delay: -10s;
  animation-duration: 22s;
}

.liquid-glass__blob--4 {
  width: 280px;
  height: 280px;
  top: 30%;
  right: 30%;
  background: radial-gradient(circle, rgba(246, 239, 230, 0.15), transparent);
  animation-delay: -15s;
  animation-duration: 18s;
}

.page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(194, 123, 68, 0.015) 100px,
      rgba(194, 123, 68, 0.015) 101px
    );
  pointer-events: none;
  z-index: 0;
}

.page::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg);
  font-size: 20px;
  font-weight: 700;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.nav__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.nav__title {
  font-size: 12px;
  color: var(--text-muted);
}

.nav__actions {
  display: flex;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  direction: rtl;
}

.lang-switch__indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  left: auto;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  box-shadow: 
    0 2px 12px rgba(194, 123, 68, 0.5),
    0 0 16px rgba(194, 123, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 0;
  transition: left 400ms cubic-bezier(0.4, 0, 0.2, 1),
    right 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-switch[data-lang="ar"] .lang-switch__indicator {
  right: 2px;
  left: auto;
}

.lang-switch[data-lang="en"] .lang-switch__indicator {
  right: auto;
  left: 2px;
}

.lang-switch__opt {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color 300ms ease;
  position: relative;
  z-index: 1;
}

.lang-switch[data-lang="ar"] .lang-switch__opt:nth-child(2) {
  color: #000;
}

.lang-switch[data-lang="en"] .lang-switch__opt:nth-child(3) {
  color: #000;
}

.main {
  position: relative;
  z-index: 1;
}

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.lang-overlay.is-active {
  animation: glassFlash 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes glassFlash {
  0% {
    background: transparent;
    backdrop-filter: blur(0);
  }
  30% {
    background: rgba(194, 123, 68, 0.15);
    backdrop-filter: blur(20px);
  }
  100% {
    background: transparent;
    backdrop-filter: blur(0);
  }
}

.lang-transitioning .hero__text,
.lang-transitioning .section__header,
.lang-transitioning .projects-grid,
.lang-transitioning .accounts-grid,
.lang-transitioning .contact-box,
.lang-transitioning .footer__inner {
  animation: contentMorph 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-transitioning .hero__text { animation-delay: 0ms; }
.lang-transitioning .hero__visual { animation: framePulse 700ms cubic-bezier(0.4, 0, 0.2, 1); }
.lang-transitioning .section__header { animation-delay: 50ms; }
.lang-transitioning .projects-grid { animation-delay: 100ms; }
.lang-transitioning .accounts-grid { animation-delay: 150ms; }
.lang-transitioning .contact-box { animation-delay: 200ms; }

@keyframes contentMorph {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
  35% {
    opacity: 0;
    transform: translateY(-15px) scale(0.97);
    filter: blur(10px) brightness(1.3);
  }
  65% {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
    filter: blur(10px) brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) brightness(1);
  }
}

@keyframes framePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 32px 80px rgba(194, 123, 68, 0.4);
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 60px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero__text {
  animation: slideUp 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero__greeting {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  position: relative;
  padding-right: 60px;
}

.hero__greeting::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--accent);
}

.hero__name {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__role {
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero__bio {
  font-size: 18px;
  color: var(--text);
  max-width: 420px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideUp 800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
  opacity: 0;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.hero__frame-inner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(194, 123, 68, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.hero__frame-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(18, 11, 8, 0.6) 100%);
  pointer-events: none;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__frame-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.hero__frame-line {
  position: absolute;
  bottom: 40px;
  left: -60px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.hero__scroll-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.section {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section__header {
  margin-bottom: 60px;
}

.section__title-wrap {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}

.section__number {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
}

.section__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
}

.section__desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 24px;
}

.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filters__indicator {
  position: absolute;
  height: calc(100% - 12px);
  top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  transition: left 400ms cubic-bezier(0.4, 0, 0.2, 1),
    right 400ms cubic-bezier(0.4, 0, 0.2, 1),
    width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(194, 123, 68, 0.4),
    0 0 20px rgba(194, 123, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 0;
}

.filter-btn {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  transition: color 300ms ease;
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.is-active {
  color: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.block-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
}

.block-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: translateX(-100%);
}

.block-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms ease 120ms, transform 300ms ease 120ms;
}

.block-reveal.is-visible::after {
  animation: blockReveal 900ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[dir="rtl"] .block-reveal::after {
  transform: translateX(100%);
}

[dir="rtl"] .block-reveal.is-visible::after {
  animation: blockRevealRtl 900ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 600ms ease;
}

.project-card:hover::before {
  left: 100%;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(230, 195, 154, 0.4);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 64px rgba(8, 5, 3, 0.5),
    0 0 40px rgba(194, 123, 68, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card__type {
  font-size: 12px;
  color: var(--text-muted);
}

.project-card__arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.project-card:hover .project-card__arrow {
  background: var(--accent);
  color: var(--bg);
}

[dir="rtl"] .project-card__arrow svg {
  transform: scaleX(-1);
}

.project-card__title {
  font-size: 20px;
  font-weight: 600;
}

.project-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent-light);
  width: fit-content;
}

.accounts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.account-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.account-link svg {
  opacity: 0.8;
}

.contact-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(230, 195, 154, 0.25);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 80px rgba(194, 123, 68, 0.05);
  animation: glassFloat 8s ease-in-out infinite;
}

@keyframes glassFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.5;
}

.contact-box__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.contact-box__label {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-box__email {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition);
}

.contact-box__email:hover {
  color: var(--accent);
}

.contact-box__actions {
  display: flex;
  gap: 12px;
  position: relative;
}

.contact-box__status {
  position: absolute;
  bottom: -24px;
  right: 0;
  font-size: 12px;
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn--fill {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg);
  box-shadow: 
    0 8px 32px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.btn--fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 500ms ease;
}

.btn--fill:hover::before {
  left: 100%;
}

.btn--fill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 16px 48px var(--accent-glow),
    0 0 30px rgba(194, 123, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn--small {
  padding: 10px 20px;
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__credit {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.8); }
}

@keyframes liquidFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  25% {
    transform: translate(30px, -50px) scale(1.1) rotate(5deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  75% {
    transform: translate(50px, 30px) scale(1.05) rotate(3deg);
    border-radius: 50% 40% 50% 60% / 35% 55% 45% 65%;
  }
}

@keyframes glassShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blockReveal {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes blockRevealRtl {
  0% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 16px 24px;
  }
  
  .hero {
    padding: 100px 24px 60px;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero__text {
    order: 2;
  }
  
  .hero__visual {
    order: 1;
  }
  
  .hero__greeting {
    padding-right: 0;
  }
  
  .hero__greeting::before {
    display: none;
  }
  
  .hero__bio {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero__cta {
    justify-content: center;
  }
  
  .hero__frame {
    max-width: 280px;
  }
  
  .hero__frame-accent,
  .hero__frame-line {
    display: none;
  }
  
  .section {
    padding: 60px 24px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .contact-box__actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 12px 16px;
  }

  .nav__info {
    display: none;
  }

  .lang-switch__opt {
    padding: 10px 16px;
  }
  
  .hero__name {
    font-size: 36px;
  }

  .hero__scroll {
    display: none;
  }
  
  .btn {
    width: 100%;
  }

  #copy-email {
    background: linear-gradient(135deg, rgba(230, 195, 154, 0.2), rgba(194, 123, 68, 0.12));
    border: 1px solid var(--border-accent);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(8, 5, 3, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 14px;
    padding: 12px 20px;
  }

  #copy-email:active {
    transform: translateY(1px);
  }
  
  .hero__cta {
    flex-direction: column;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 12px 18px;
    font-size: 14px;
  }

  .projects-grid {
    gap: 16px;
  }

  .project-card {
    padding: 20px;
  }

  .contact-box__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
