:root {
  --bg-primary: #86b4d8;
  --bg-light: #d6e6f3;
  --bg-white: #f5f8fc;
  --text-dark: #0f1b2a;
  --text-muted: rgba(15, 27, 42, 0.75);
  --shadow-soft: 0 16px 32px rgba(15, 27, 42, 0.08);
  --transition-base: 200ms ease;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-hero: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-light) 50%, #a8dadc 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
  --bg-primary: #2a4158;
  --bg-light: #1e2a38;
  --bg-white: #162030;
  --text-dark: #e8f1ff;
  --text-muted: rgba(232, 241, 255, 0.75);
  --shadow-soft: 0 16px 32px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-hero: linear-gradient(135deg, #1a2332 0%, #2a4158 50%, #3d5a80 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  scroll-behavior: smooth;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* Smooth scroll animations */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-secondary);
}

/* Enhanced cursor light effect */
.cursor-light {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: 
    radial-gradient(
      circle at center,
      rgba(102, 126, 234, 0.12) 0%,
      rgba(118, 75, 162, 0.08) 20%,
      rgba(102, 126, 234, 0.04) 40%,
      rgba(118, 75, 162, 0.02) 60%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(102, 126, 234, 0.01) 50%,
      transparent 70%
    );
  transform: translate(-50%, -50%);
  transition: 
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.3s ease;
  mix-blend-mode: screen;
  filter: blur(1px);
}

.cursor-light.clicking {
  width: 300px;
  height: 300px;
  background: 
    radial-gradient(
      circle at center,
      rgba(102, 126, 234, 0.2) 0%,
      rgba(118, 75, 162, 0.15) 20%,
      rgba(102, 126, 234, 0.08) 40%,
      rgba(118, 75, 162, 0.04) 60%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(102, 126, 234, 0.02) 50%,
      transparent 70%
    );
  filter: blur(0.5px);
  transition: 
    width 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
    height 0.15s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.15s ease;
}

[data-theme="dark"] .cursor-light {
  background: 
    radial-gradient(
      circle at center,
      rgba(102, 126, 234, 0.18) 0%,
      rgba(118, 75, 162, 0.12) 20%,
      rgba(102, 126, 234, 0.06) 40%,
      rgba(118, 75, 162, 0.03) 60%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(102, 126, 234, 0.02) 50%,
      transparent 70%
    );
  filter: blur(1.5px);
}

[data-theme="dark"] .cursor-light.clicking {
  background: 
    radial-gradient(
      circle at center,
      rgba(102, 126, 234, 0.25) 0%,
      rgba(118, 75, 162, 0.18) 20%,
      rgba(102, 126, 234, 0.12) 40%,
      rgba(118, 75, 162, 0.06) 60%,
      transparent 80%
    ),
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(102, 126, 234, 0.03) 50%,
      transparent 70%
    );
  filter: blur(1px);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  opacity: 0.8;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 27, 42, 0.08);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .site-header {
  background: rgba(22, 32, 48, 0.9);
  border-bottom: 1px solid rgba(232, 241, 255, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

nav a {
  margin-left: 1.8rem;
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color var(--transition-base);
}

.mobile-menu-toggle:hover {
  background-color: rgba(15, 27, 42, 0.1);
}

[data-theme="dark"] .mobile-menu-toggle:hover {
  background-color: rgba(232, 241, 255, 0.1);
}

.hamburger {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(15, 27, 42, 0.12);
}

.brand span {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a {
  margin-left: 1.8rem;
  font-weight: 500;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.theme-toggle:hover {
  background-color: rgba(15, 27, 42, 0.1);
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle:hover {
  background-color: rgba(232, 241, 255, 0.1);
}

.theme-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
}

.sun-icon,
.moon-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.sun-icon {
  color: #f59e0b;
  opacity: 1;
  transform: rotate(0deg);
}

.moon-icon {
  color: #6366f1;
  opacity: 0;
  transform: rotate(-180deg);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.lang-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.lang-toggle:hover {
  background-color: rgba(15, 27, 42, 0.1);
  transform: scale(1.1);
}

[data-theme="dark"] .lang-toggle:hover {
  background-color: rgba(232, 241, 255, 0.1);
}

.lang-toggle-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
}

.en-icon,
.ar-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  transition: opacity var(--transition-base), transform var(--transition-base);
  border-radius: 50%;
  object-fit: cover;
}

.en-icon {
  color: #3b82f6;
  opacity: 1;
  transform: rotate(0deg);
  font-family: Arial, sans-serif;
}

.ar-icon {
  color: #10b981;
  opacity: 0;
  transform: rotate(-180deg);
  font-family: Arial, sans-serif;
}

[data-lang="ar"] .en-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-lang="ar"] .ar-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* RTL Support */
[data-lang="ar"] .nav-container {
  flex-direction: row-reverse;
}

[data-lang="ar"] .brand {
  flex-direction: row-reverse;
}

[data-lang="ar"] nav {
  flex-direction: row-reverse;
}

[data-lang="ar"] nav a {
  margin-left: 0;
  margin-right: 1.8rem;
}

[data-lang="ar"] .lang-toggle {
  margin-left: 0;
  margin-right: 1.8rem;
}

[data-lang="ar"] .theme-toggle {
  margin-left: 0;
  margin-right: 1.8rem;
}

[data-lang="ar"] .about-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  direction: rtl;
}

[data-lang="ar"] .toolkit ul {
  flex-direction: row-reverse;
}

[data-lang="ar"] .contact-links {
  flex-direction: row-reverse;
}

[data-lang="ar"] .footer-layout {
  direction: rtl;
}

[data-lang="ar"] .footer-layout > div {
  text-align: right;
}

[data-lang="ar"] .footer-links,
[data-lang="ar"] .footer-contact {
  align-items: flex-end;
}

.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-base);
}

/* Animated background particles */
.hero::after {
  content: '';
  position: absolute;
  bottom: -18%;
  left: -10%;
  width: 32rem;
  height: 32rem;
  background: radial-gradient(circle, rgba(15, 27, 42, 0.18) 0%, rgba(15, 27, 42, 0) 68%);
  opacity: 0.45;
  transition: opacity var(--transition-base);
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  padding: 6rem 0;
  color: var(--text-dark);
  position: relative;
  z-index: 1;
  transition: color var(--transition-base);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: rgba(15, 27, 42, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  box-shadow: 0 14px 28px rgba(15, 27, 42, 0.12);
  transition: all var(--transition-base);
  animation: slideInLeft 1s ease-out;
}

[data-theme="dark"] .hero-badge {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: rgba(232, 241, 255, 0.7);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero-lead {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  max-width: 620px;
  margin: 0 auto 0.8rem auto;
  font-weight: 400;
  animation: slideInUp 1s ease-out 0.4s both;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  animation: slideInUp 1s ease-out 0.6s both;
  margin-bottom: 2rem;
  opacity: 1;
}

[data-theme="dark"] .hero-sub {
  color: var(--text-dark);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  width: 36px;
  height: 64px;
  border: 2px solid rgba(15, 27, 42, 0.45);
  border-radius: 24px;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.32), transparent 70%);
  opacity: 0.6;
}

.scroll-wheel {
  width: 8px;
  height: 12px;
  background: rgba(15, 27, 42, 0.7);
  border-radius: 8px;
  animation: scroll-wheel 1.6s ease-in-out infinite;
  z-index: 1;
}

section {
  padding: 6rem 0;
}

.about {
  background: var(--bg-white);
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-visual {
  width: 100%;
  background: linear-gradient(160deg, rgba(134, 180, 216, 0.6), rgba(214, 230, 243, 0.8));
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin: 0;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy h2 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.about-copy p {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.toolkit {
  margin-top: 2rem;
}

.toolkit-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 27, 42, 0.6);
  display: inline-block;
  margin-bottom: 0.9rem;
  transition: color var(--transition-base);
}

[data-theme="dark"] .toolkit-title {
  color: rgba(232, 241, 255, 0.6);
}

.toolkit ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.toolkit li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 24px rgba(15, 27, 42, 0.12);
  border: 1px solid rgba(15, 27, 42, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.toolkit img {
  width: 34px;
  height: 34px;
  border-radius: 14px;
}

.toolkit li span {
  font-size: 0.95rem;
  font-weight: 500;
}

.toolkit li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 34px rgba(15, 27, 42, 0.16);
  border-color: rgba(15, 27, 42, 0.18);
}

main section h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

main section h2::after {
  content: '';
  display: inline-block;
  width: 52px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 27, 42, 0.35);
  transition: background-color var(--transition-base);
}

[data-theme="dark"] main section h2::after {
  background: rgba(232, 241, 255, 0.35);
}

.work h2,
.contact h2 {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
}

.work h2 {
  text-align: center;
}

.work {
  background: var(--bg-white);
  transition: background-color var(--transition-base);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.work-card {
  margin: 0;
}

.work-thumb {
  width: 100%;
  padding-top: 56.25%;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(134, 180, 216, 0.85), rgba(214, 230, 243, 0.85));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.work-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-thumb:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(15, 27, 42, 0.15);
}

.work-thumb:hover::before {
  opacity: 1;
}

.play-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-items: center;
  justify-content: center;
  width: 52px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 18px 28px rgba(255, 0, 51, 0.25);
  transition: all 0.3s ease;
  z-index: 2;
}

.work-thumb:hover .play-chip {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 25px 40px rgba(102, 126, 234, 0.4);
}

.play-chip svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact {
  background: var(--bg-white);
}

.contact-content {
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.contact-links a,
.contact-links button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 42, 0.16);
  box-shadow: 0 12px 24px rgba(15, 27, 42, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
  background: #ffffff;
  font-weight: 500;
  cursor: pointer;
}

[data-theme="dark"] .contact-links a,
[data-theme="dark"] .contact-links button {
  background: var(--bg-white);
  border-color: rgba(232, 241, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.contact-links a:hover,
.contact-links button:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 36px rgba(15, 27, 42, 0.16);
  border-color: rgba(15, 27, 42, 0.3);
}

[data-theme="dark"] .contact-links a:hover,
[data-theme="dark"] .contact-links button:hover {
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.25);
  border-color: rgba(232, 241, 255, 0.3);
}

.contact-links button {
  border: none;
  color: inherit;
}

.contact-links svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.contact-card {
  margin: 2rem auto 0;
  padding: 1.6rem;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 27, 42, 0.08);
  width: min(320px, 80vw);
  text-align: center;
  border: 1px solid rgba(15, 27, 42, 0.08);
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

[data-theme="dark"] .contact-card {
  background: var(--bg-white);
  border-color: rgba(232, 241, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.contact-card img {
  width: 100%;
  border-radius: 16px;
  margin-top: 0.8rem;
  display: block;
}

.contact-handle {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Remove thumbnails styles */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-animate {
  opacity: 0;
  transform: translateY(50px) rotateX(8deg) rotateY(-5deg) scale(0.9);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1);
}

/* Scroll-triggered footer animations */
.footer-brand {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.footer-links {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.footer-contact {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease-out;
}

.footer-meta {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.footer-brand.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer-links.animate {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.footer-contact.animate {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.footer-meta.animate {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.site-footer {
  background: #0f1b2a;
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0;
  margin-top: 4rem;
  overflow: hidden;
}

.footer-layout {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(3, 1fr);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-brand img:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.footer-brand strong {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.footer-brand:hover strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 280px;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:hover,
.footer-links a:focus {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-meta {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  60% {
    transform: translateY(18px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-copy {
    max-width: 560px;
    margin: 0 auto;
  }

  .about-visual {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 20px rgba(15, 27, 42, 0.1);
    transition: right 0.3s ease;
    gap: 1.5rem;
    z-index: 1000;
  }

  [data-theme="dark"] .nav-menu {
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    margin: 0;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(15, 27, 42, 0.1);
    width: 100%;
  }

  [data-theme="dark"] .nav-menu a {
    border-bottom-color: rgba(232, 241, 255, 0.1);
  }

  .lang-toggle,
  .theme-toggle {
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(15, 27, 42, 0.05);
    border: 1px solid rgba(15, 27, 42, 0.1);
  }

  [data-theme="dark"] .lang-toggle,
  [data-theme="dark"] .theme-toggle {
    background: rgba(232, 241, 255, 0.05);
    border-color: rgba(232, 241, 255, 0.1);
  }

  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links,
  .footer-contact {
    align-items: center;
  }

  [data-lang="ar"] .nav-menu {
    right: auto;
    left: -100%;
    align-items: flex-end;
  }

  [data-lang="ar"] .nav-menu.active {
    left: 0;
    right: auto;
  }
}

@media (max-width: 600px) {
  .nav-container {
    padding: 0.75rem 0;
  }

  section {
    padding: 4rem 0;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 1rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-links a,
  .contact-links button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
