/* ==========================================================================
   Ahmed Abdelhamed Portfolio - Pure HTML5 / CSS3 / Vanilla JS
   Ultra-Polished Design System, Glassmorphism, Theme Tokens & Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 47% 10%;
  --card-foreground: 210 40% 98%;
  --popover: 222 47% 10%;
  --popover-foreground: 210 40% 98%;
  --primary: 190 100% 50%;
  --primary-foreground: 222 47% 6%;
  --secondary: 263 70% 60%;
  --secondary-foreground: 210 40% 98%;
  --muted: 222 30% 15%;
  --muted-foreground: 215 20% 65%;
  --accent: 190 100% 50%;
  --accent-foreground: 222 47% 6%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 222 30% 18%;
  --input: 222 30% 18%;
  --ring: 190 100% 50%;
  --radius: 0.75rem;

  /* Glassmorphism */
  --glass-bg: hsl(222 47% 10% / 0.7);
  --glass-border: hsl(190 100% 50% / 0.1);
  --glow-primary: 190 100% 50%;
  --glow-secondary: 263 70% 60%;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(190 100% 50%), hsl(220 100% 60%));
  --gradient-secondary: linear-gradient(135deg, hsl(263 70% 60%), hsl(330 80% 60%));
}

html.light {
  --background: 0 0% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 200 100% 40%;
  --primary-foreground: 0 0% 100%;
  --secondary: 263 70% 55%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 20% 93%;
  --muted-foreground: 215 16% 47%;
  --accent: 200 100% 40%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 20% 85%;
  --input: 214 20% 85%;
  --ring: 200 100% 40%;

  --glass-bg: hsl(0 0% 100% / 0.85);
  --glass-border: hsl(200 100% 40% / 0.15);
  --glow-primary: 200 100% 40%;
  --glow-secondary: 263 70% 55%;

  --gradient-primary: linear-gradient(135deg, hsl(200 100% 40%), hsl(220 100% 50%));
  --gradient-secondary: linear-gradient(135deg, hsl(263 70% 55%), hsl(330 80% 55%));
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
}

/* Selection */
::selection {
  background-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--muted));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.5);
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
}

button {
  background: transparent;
  border: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input, textarea {
  font-family: inherit;
  color: inherit;
}

/* Unified Navbar Control Buttons (Lang, Theme, Socials) */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.375rem;
  line-height: 1;
}

.nav-icon-btn:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--muted) / 0.5);
  border-color: hsl(var(--border) / 0.5);
  transform: translateY(-1px);
}

.nav-icon-btn:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Section Margins */
section[id] {
  scroll-margin-top: 100px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 80rem; /* 1280px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 3rem; padding-right: 3rem; }
}
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-sm { max-width: 24rem; }

/* Grid Layouts */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1\.2fr_\.8fr\] { grid-template-columns: 1.2fr 0.8fr; }
  .lg\:grid-cols-\[\.8fr_1\.2fr\] { grid-template-columns: 0.8fr 1.2fr; }
}

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

/* Display & Visibility */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:hidden { display: none !important; }
  .sm\:flex { display: flex !important; }
  .sm\:inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:text-left { text-align: left !important; }
  html[dir="rtl"] .rtl\:md\:text-right { text-align: right !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:text-left { text-align: left !important; }
  html[dir="rtl"] .rtl\:lg\:text-right { text-align: right !important; }
  .lg\:justify-start { justify-content: flex-start; }
  html[dir="rtl"] .rtl\:lg\:justify-end { justify-content: flex-start; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
  .xl\:hidden { display: none !important; }
}
@media (max-width: 1279px) {
  .xl\:hidden { display: block; }
}

.col-span-2 { grid-column: span 2 / span 2; }
.cursor-pointer { cursor: pointer; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
html[dir="rtl"] .rtl\:text-right { text-align: right !important; }

/* Spacing */
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-7 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bottom-8 { bottom: 2rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-4 { bottom: 1rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Colors */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-emerald-400 { color: #34d399; }
.text-yellow-400 { color: #facc15; }
.text-red-400 { color: #f87171; }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted\/20 { background-color: hsl(var(--muted) / 0.2); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-muted\/60 { background-color: hsl(var(--muted) / 0.6); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary\/10 { background-color: hsl(var(--secondary) / 0.1); }
.bg-secondary\/20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-emerald-400\/10 { background-color: rgba(52, 211, 153, 0.1); }
.bg-emerald-400\/20 { background-color: rgba(52, 211, 153, 0.2); }
.bg-yellow-400\/10 { background-color: rgba(250, 204, 21, 0.1); }
.bg-yellow-400\/20 { background-color: rgba(250, 204, 21, 0.2); }
.bg-emerald-400 { background-color: #34d399; }
.border-border\/50 { border-color: hsl(var(--border) / 0.5); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }
.border-primary\/60 { border-color: hsl(var(--primary) / 0.6); }
.border-secondary\/20 { border-color: hsl(var(--secondary) / 0.2); }
.border-emerald-400\/20 { border-color: rgba(52, 211, 153, 0.2); }
.border-yellow-400\/20 { border-color: rgba(250, 204, 21, 0.2); }

.border-l-2 { border-left-width: 2px; }
html[dir="rtl"] .border-l-2 { border-left-width: 0; border-right-width: 2px; border-right-color: hsl(var(--primary) / 0.6); }

/* Typography */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

@media (min-width: 640px) {
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}

/* Rounded */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-full { border-radius: 9999px; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-fit { width: fit-content; }
.min-h-screen { min-height: 100vh; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ============================================= */
/* Navigation Bar (Sticky & Floating Pill)       */
/* ============================================= */
#main-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 80;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: hsl(var(--background) / 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

#main-navbar.scrolled {
  top: 0.75rem;
  width: calc(100% - 1.5rem);
  max-width: 64rem;
  background-color: hsl(var(--card) / 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.7);
  border-radius: 9999px;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.45), 0 0 0 1px hsl(var(--primary) / 0.08);
}

@media (min-width: 640px) {
  #main-navbar.scrolled {
    top: 1rem;
    width: 92%;
  }
}

/* Navigation Row & Layout Constraints */
.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  width: 100%;
  flex-wrap: nowrap !important;
  gap: 0.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0 !important;
  min-width: 0;
  text-decoration: none;
}

.mobile-nav-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

@media (min-width: 1280px) {
  .mobile-nav-group {
    display: none !important;
  }
}

/* Mobile Quick Action Buttons */
.mobile-quick-btn {
  height: 2rem !important;
  min-width: 2rem !important;
  padding: 0.25rem 0.45rem !important;
  border-radius: 0.5rem !important;
  background: hsl(var(--muted) / 0.4) !important;
  border: 1px solid hsl(var(--border) / 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  gap: 0.25rem !important;
  font-size: 0.75rem !important;
}
.mobile-quick-btn:hover {
  background: hsl(var(--muted) / 0.8) !important;
  border-color: hsl(var(--primary) / 0.4) !important;
}

/* Modern Animated Hamburger Button */
.mobile-toggle-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.125rem !important;
  height: 2.125rem !important;
  min-width: 2.125rem !important;
  padding: 0 !important;
  border-radius: 0.5rem !important;
  background: hsl(var(--primary) / 0.12) !important;
  border: 1px solid hsl(var(--primary) / 0.25) !important;
  color: hsl(var(--primary)) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.mobile-toggle-btn:hover {
  background: hsl(var(--primary) / 0.2) !important;
  border-color: hsl(var(--primary) / 0.5) !important;
  transform: scale(1.04);
}

.hamburger-box {
  width: 18px;
  height: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: hsl(var(--primary));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle-btn.open .bar-1 {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-toggle-btn.open .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle-btn.open .bar-3 {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* Mobile Backdrop Overlay */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modern Mobile Glass Drawer Sheet */
.mobile-menu-drawer {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  width: min(calc(100vw - 1.5rem), 380px);
  max-height: calc(100vh - 1.5rem);
  z-index: 100;
  background: hsl(var(--card) / 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid hsl(var(--border) / 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px hsl(var(--primary) / 0.15);
  transform: translateX(calc(100% + 2rem));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html[dir="rtl"] .mobile-menu-drawer {
  right: auto;
  left: 0.75rem;
  transform: translateX(calc(-100% - 2rem));
}

.mobile-menu-drawer.open,
html[dir="rtl"] .mobile-menu-drawer.open {
  transform: translateX(0) !important;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  overflow-y: auto;
  gap: 1rem;
}

/* Drawer Header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover {
  background: hsl(var(--destructive) / 0.15);
  border-color: hsl(var(--destructive) / 0.4);
  color: hsl(var(--destructive));
  transform: rotate(90deg);
}

/* Drawer Nav List */
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.65rem 0.875rem;
  border-radius: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / 0.2);
  border: 1px solid transparent;
  font-size: 0.925rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 0.12);
  border-color: hsl(var(--primary) / 0.3);
  transform: translateX(4px);
}

html[dir="rtl"] .mobile-nav-item:hover,
html[dir="rtl"] .mobile-nav-item.active {
  transform: translateX(-4px);
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem;
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 14px hsl(var(--primary) / 0.5);
}

.mobile-nav-text {
  flex: 1;
  letter-spacing: -0.01em;
}

.mobile-nav-chevron {
  color: hsl(var(--muted-foreground) / 0.5);
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav-item:hover .mobile-nav-chevron,
.mobile-nav-item.active .mobile-nav-chevron {
  color: hsl(var(--primary));
  transform: translateX(2px);
}

html[dir="rtl"] .mobile-nav-chevron {
  transform: rotate(180deg);
}

html[dir="rtl"] .mobile-nav-item:hover .mobile-nav-chevron,
html[dir="rtl"] .mobile-nav-item.active .mobile-nav-chevron {
  transform: rotate(180deg) translateX(2px);
}

/* Drawer CTA */
.mobile-drawer-cta {
  margin-top: auto;
  padding-top: 0.5rem;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.925rem;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)), #2563eb);
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.mobile-cta-btn:hover {
  box-shadow: 0 6px 25px hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

/* Drawer Social Footer */
.mobile-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.6);
}

.mobile-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.625rem;
  background: hsl(var(--muted) / 0.4);
  border: 1px solid hsl(var(--border) / 0.6);
  color: hsl(var(--muted-foreground));
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-social-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--primary) / 0.15);
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
}

/* ============================================= */
/* Glass Card System                             */
/* ============================================= */
.glass-card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 30px -10px hsl(var(--primary) / 0.15), inset 0 1px hsl(var(--primary) / 0.05);
}

.glass-card-hover {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 30px -10px hsl(var(--primary) / 0.15), inset 0 1px hsl(var(--primary) / 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 40px -10px hsl(var(--primary) / 0.3), inset 0 1px hsl(var(--primary) / 0.1);
  transform: translateY(-4px);
}

/* Gradients & Text */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}
@media (min-width: 768px) {
  .section-heading { font-size: 2.5rem; }
}
@media (min-width: 1024px) {
  .section-heading { font-size: 3rem; }
}

.section-subheading {
  max-width: 42rem;
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)), #2563eb);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  box-shadow: 0 0 30px -5px hsl(var(--primary) / 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--primary) / 0.5);
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

/* Nav Links */
.nav-link {
  position: relative;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: hsl(var(--foreground));
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  height: 0.125rem;
  width: 0;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Skill Badge */
.skill-badge {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.5);
  background-color: hsl(var(--muted) / 0.5);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
  display: inline-block;
}
.skill-badge:hover {
  border-color: hsl(var(--primary) / 0.5);
  background-color: hsl(var(--primary) / 0.1);
  transform: translateY(-2px);
}

/* Background Grids & Radiants */
.bg-grid {
  background-image:
    linear-gradient(hsl(var(--border) / 0.3) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
}
.bg-gradient-radial {
  background: radial-gradient(ellipse at center, hsl(var(--primary) / 0.1) 0%, transparent 70%);
}

/* ============================================= */
/* Keyframe Animations                           */
/* ============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px hsl(var(--primary) / 0.5); }
  50% { box-shadow: 0 0 20px hsl(var(--primary) / 0.8), 0 0 40px hsl(var(--primary) / 0.3); }
}
.animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
.animate-bounce-slow {
  animation: bounceSlow 1.5s ease-in-out infinite;
}

/* ============================================= */
/* Scroll Reveal Animations                      */
/* ============================================= */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================= */
/* Certificate 3D Flipper                        */
/* ============================================= */
.certificate-stage {
  perspective: 1200px;
  width: 100%;
}
.certificate-flipper {
  position: relative;
  width: 100%;
  min-height: 440px;
  height: 60svh;
  max-height: 560px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.certificate-flipper.is-flipped {
  transform: rotateY(180deg);
}
.certificate-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.certificate-back {
  transform: rotateY(180deg);
}

/* ============================================= */
/* Intro Screen & Cinematic Page Reveal         */
/* ============================================= */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 40%, #0c1527 0%, #030712 70%);
  color: #fff;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.85s cubic-bezier(0.77, 0, 0.175, 1), filter 0.85s ease;
  user-select: none;
  width: 100vw;
  height: 100vh;
}
#intro-screen.hide {
  opacity: 0;
  transform: translateY(-100%) scale(1.02);
  filter: blur(10px);
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, hsl(var(--primary) / 0.35) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(80px);
  animation: introGlowPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.intro-glow-secondary {
  position: absolute;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, hsl(var(--secondary) / 0.25) 0%, transparent 70%);
  border-radius: 9999px;
  filter: blur(90px);
  transform: translate(30%, 30%);
  animation: introGlowPulse 5s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes introGlowPulse {
  0% { transform: scale(0.8) translate(-10px, -10px); opacity: 0.4; }
  100% { transform: scale(1.3) translate(15px, 15px); opacity: 0.85; }
}

.intro-content {
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 1.5rem;
  width: 100%;
  max-width: 48rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px -5px hsl(var(--primary) / 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: hsl(var(--primary));
  text-transform: uppercase;
  margin: 0 auto 1.5rem auto !important;
  opacity: 0;
  animation: introFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.intro-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary));
  animation: pulseGlow 1.5s infinite;
}

.intro-name {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center !important;
  margin: 0 auto !important;
  opacity: 0;
  animation: introNameReveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
@media (min-width: 640px) {
  .intro-name { font-size: 4rem; }
}
@media (min-width: 768px) {
  .intro-name { font-size: 5rem; }
}

@keyframes introNameReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.intro-subtitle {
  margin: 1.25rem auto 0 auto !important;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center !important;
  opacity: 0;
  animation: introFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}
@media (min-width: 768px) {
  .intro-subtitle { font-size: 1.15rem; }
}

.intro-progress-container {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin: 2.5rem auto 0 auto !important;
  box-shadow: 0 0 15px -3px hsl(var(--primary) / 0.4);
  opacity: 0;
  animation: introFadeIn 0.8s ease 2.0s forwards;
}
@media (min-width: 768px) {
  .intro-progress-container { width: 240px; height: 5px; }
}
.intro-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: 9999px;
  box-shadow: 0 0 12px hsl(var(--primary));
  animation: introProgressFill 2.8s cubic-bezier(0.4, 0, 0.2, 1) 2.1s forwards;
}
@keyframes introProgressFill {
  0% { width: 0%; }
  60% { width: 75%; }
  100% { width: 100%; }
}

.intro-skip-btn {
  margin: 2rem auto 0 auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.25s ease;
  opacity: 0;
  animation: introFadeIn 0.8s ease 1.8s forwards;
}
.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-1px);
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Hero Section Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.hero-scroll-indicator a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.25);
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--background) / 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-scroll-indicator a:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.6);
  box-shadow: 0 0 25px hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
}
.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-1px);
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Page Entry Transitions */
body:not(.page-ready) main {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}
body.page-ready main {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
body:not(.page-ready) #main-navbar {
  opacity: 0;
  transform: translate(-50%, -20px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
body.page-ready #main-navbar {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================= */
/* Modals (Project & Certificate)                */
/* ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 72rem;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .modal-box { flex-direction: row; }
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  background: hsl(var(--background) / 0.7);
  border: 1px solid hsl(var(--border) / 0.6);
  border-radius: 9999px;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}
html[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1rem;
}

/* Form Styles */
.form-input {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border) / 0.6);
  background-color: hsl(var(--background) / 0.6);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* ============================================= */
/* Floating Scroll Button                        */
/* ============================================= */
#floating-scroll-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, hsl(var(--primary)), #2563eb);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px hsl(var(--primary) / 0.6), 0 0 20px -2px hsl(var(--primary) / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease, bottom 0.2s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
}
@media (min-width: 768px) {
  #floating-scroll-btn {
    right: 2rem;
    bottom: 2rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}
#floating-scroll-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
#floating-scroll-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 15px 35px -5px hsl(var(--primary) / 0.8), 0 0 25px hsl(var(--primary) / 0.6);
}
#floating-scroll-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Hero Badge RTL Alignment */
.hero-focus-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1.5rem;
}
@media (min-width: 640px) {
  .hero-focus-badge { left: -2.5rem; }
}
html[dir="rtl"] .hero-focus-badge {
  left: auto;
  right: -1.5rem;
}
@media (min-width: 640px) {
  html[dir="rtl"] .hero-focus-badge {
    right: -2.5rem;
  }
}

/* Canvas Particle */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}
