/* ============================================
   Portfolio — Mahmoud Ahmed | .NET Developer
   Design System + All Sections
   ============================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary:     #0a0a1a;
  --bg-secondary:   #0f0f23;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --bg-card-hover:  rgba(255, 255, 255, 0.06);
  --accent:         #6366f1;
  --accent-hover:   #818cf8;
  --accent-glow:    rgba(99, 102, 241, 0.3);
  --secondary:      #22d3ee;
  --secondary-glow: rgba(34, 211, 238, 0.2);
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-family:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-ar: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;
  
  /* Borders */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;
  
  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.03);
  --glass-border:  1px solid rgba(255, 255, 255, 0.08);
  --glass-blur:    blur(16px);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: var(--font-family);
  background:
    radial-gradient(circle at 12% 10%, rgba(99, 102, 241, 0.12), transparent 32%),
    radial-gradient(circle at 88% 24%, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(180deg, #080817 0%, var(--bg-primary) 36%, #070712 100%);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[dir="rtl"] body {
  font-family: var(--font-family-ar);
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .about-text,
html[dir="rtl"] .section-header.compact,
html[dir="rtl"] .contact-info-label,
html[dir="rtl"] .contact-info-value {
  text-align: right;
}

body.theme-black-glass {
  --bg-primary: #050506;
  --bg-secondary: #0b0b10;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.078);
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.28);
  --secondary: #2dd4bf;
  --secondary-glow: rgba(45, 212, 191, 0.2);
  --text-primary: #f8fafc;
  --text-secondary: #b8c1d4;
  --text-muted: #7d879a;
  --border: rgba(255, 255, 255, 0.105);
  --border-hover: rgba(255, 255, 255, 0.21);
  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(118deg, rgba(168, 85, 247, 0.14), transparent 34%),
    radial-gradient(ellipse at 82% 14%, rgba(45, 212, 191, 0.14), transparent 34%),
    linear-gradient(180deg, #020203 0%, #07070a 46%, #030304 100%);
}

body.theme-black-glass .navbar.scrolled {
  background: rgba(4, 4, 7, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

body.theme-black-glass .glass-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.026)),
    rgba(5, 5, 8, 0.72);
  border-color: rgba(255, 255, 255, 0.115);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 54px rgba(0, 0, 0, 0.24);
}

body.theme-black-glass .glass-card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(9, 9, 14, 0.82);
  border-color: rgba(168, 85, 247, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 68px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(168, 85, 247, 0.12);
}

body.theme-black-glass .hero-bg-gradient {
  width: min(86vw, 920px);
  height: 260px;
  border-radius: 0;
  filter: blur(105px);
  opacity: 0.24;
}

body.theme-black-glass .hero-bg-gradient-1 {
  top: -70px;
  right: -240px;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.62), rgba(45, 212, 191, 0.18));
}

body.theme-black-glass .hero-bg-gradient-2 {
  bottom: -80px;
  left: -220px;
  transform: rotate(10deg);
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.42), rgba(59, 130, 246, 0.16));
  opacity: 0.2;
}

body.theme-black-glass .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}

body.theme-black-glass .hero-point,
body.theme-black-glass .showcase-card,
body.theme-black-glass .project-card,
body.theme-black-glass .contact-info-card,
body.theme-black-glass .contact-form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
    rgba(6, 6, 10, 0.76);
}

body.theme-black-glass .hero-point::before,
body.theme-black-glass .project-card::before {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.72), rgba(45, 212, 191, 0.52), transparent);
}

body.theme-black-glass .hero-point:hover {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(168, 85, 247, 0.035)),
    rgba(6, 6, 10, 0.78);
}

body.theme-black-glass .showcase-card:hover,
body.theme-black-glass .project-card:hover {
  border-color: rgba(168, 85, 247, 0.38);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(168, 85, 247, 0.16);
}

body.theme-black-glass .project-image {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.32), rgba(45, 212, 191, 0.16), #07070a);
}

body.theme-black-glass .tech-ticker {
  background:
    linear-gradient(90deg, rgba(168, 85, 247, 0.08), rgba(45, 212, 191, 0.045), rgba(168, 85, 247, 0.08)),
    rgba(255, 255, 255, 0.022);
  border-color: rgba(255, 255, 255, 0.095);
}

body.theme-black-glass .tech-ticker::before {
  background: linear-gradient(90deg, #050506, rgba(5, 5, 6, 0));
}

body.theme-black-glass .tech-ticker::after {
  background: linear-gradient(270deg, #050506, rgba(5, 5, 6, 0));
}

body.theme-black-glass .tech-ticker-track span {
  border-color: rgba(255, 255, 255, 0.13);
  color: #ecfeff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(8, 8, 12, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

body.theme-black-glass .section-divider {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.28), rgba(45, 212, 191, 0.22), transparent);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

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

input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ── Utility ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* Section Title */
.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-subtitle::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 70%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.65s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary:hover::before {
  left: 130%;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Chip / Badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.chip-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--secondary);
  border-color: rgba(34, 211, 238, 0.2);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
}

.nav-links .language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links .language-option:hover,
.nav-links .language-option.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.92);
}

.nav-links .language-option::after,
.nav-links .nav-resume-btn::after {
  display: none;
}

html[dir="rtl"] .nav-links a::after {
  right: 0;
  left: auto;
}

/* Resume Button in Nav */
.nav-resume-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.nav-resume-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Background Effects */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-bg-gradient-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.hero-bg-gradient-2 {
  bottom: -200px;
  left: -100px;
  background: var(--secondary);
  opacity: 0.1;
}

/* Grid Pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: heroContentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

.hero-greeting .line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.18));
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-point {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-normal), border-color var(--transition-normal), background var(--transition-normal);
}

.hero-point::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
}

.hero-point:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.24);
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
}

.hero-point strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-point span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat .stat-number .accent {
  color: var(--accent);
}

.hero-stat .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual — Abstract Geometric */
/* Hero Project Showcase */
.hero-showcase {
  position: relative;
  min-height: 570px;
  width: 100%;
  animation: heroShowcaseIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.showcase-ring {
  position: absolute;
  inset: 74px 56px 92px 74px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.showcase-ring::before,
.showcase-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
}

.showcase-ring::before {
  top: 16%;
  right: 6%;
}

.showcase-ring::after {
  bottom: 14%;
  left: 10%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.55);
}

.showcase-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  isolation: isolate;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.showcase-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-8px) rotate(var(--card-rotate, 0deg));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 34px rgba(99, 102, 241, 0.16);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(6, 8, 20, 0.92) 100%);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.showcase-card:hover img {
  transform: scale(1.06);
}

.showcase-card span,
.showcase-card strong {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.showcase-card span {
  bottom: 50px;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.showcase-card strong {
  bottom: 18px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
}

.showcase-card-1 {
  --card-rotate: -2deg;
  top: 22px;
  right: 18px;
  width: min(78%, 430px);
  height: 292px;
  transform: rotate(-2deg);
  animation: showcaseFloatOne 7s ease-in-out infinite;
}

.showcase-card-2 {
  --card-rotate: 4deg;
  left: 0;
  bottom: 90px;
  width: min(58%, 310px);
  height: 214px;
  transform: rotate(4deg);
  animation: showcaseFloatTwo 8s ease-in-out infinite;
}

.showcase-card-3 {
  --card-rotate: -5deg;
  right: 20px;
  bottom: 20px;
  width: min(46%, 236px);
  height: 172px;
  transform: rotate(-5deg);
  animation: showcaseFloatThree 6.5s ease-in-out infinite;
}

.showcase-note {
  position: absolute;
  left: 28px;
  top: 80px;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--radius-md);
  background: rgba(6, 8, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  animation: showcaseNotePulse 5.5s ease-in-out infinite;
}

.showcase-note span {
  display: block;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.showcase-note strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.55;
}

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

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

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

@keyframes showcaseFloatTwo {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(10px); }
}

@keyframes showcaseFloatThree {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-8px); }
}

@keyframes showcaseNotePulse {
  0%, 100% { transform: translateY(0); border-color: rgba(34, 211, 238, 0.18); }
  50% { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.32); }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-orb-container {
  position: relative;
  width: 420px;
  height: 420px;
}

/* Main Orb */
.hero-orb {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(99, 102, 241, 0.4), 
    rgba(34, 211, 238, 0.15), 
    transparent 70%);
  box-shadow: 
    0 0 80px rgba(99, 102, 241, 0.15),
    inset 0 0 60px rgba(99, 102, 241, 0.1);
  animation: orbPulse 6s ease-in-out infinite;
}

/* Orbiting Ring */
.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: ringRotate 20s linear infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.hero-ring-2 {
  inset: 20px;
  border-color: rgba(34, 211, 238, 0.1);
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-ring-2::before {
  background: var(--secondary);
  box-shadow: 0 0 12px var(--secondary);
}

/* Floating Code Symbols */
.hero-float-symbol {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(99, 102, 241, 0.25);
  font-weight: 700;
  animation: float 8s ease-in-out infinite;
}

.hero-float-symbol:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.hero-float-symbol:nth-child(2) { top: 20%; right: 5%; animation-delay: 2s; }
.hero-float-symbol:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 4s; }
.hero-float-symbol:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 1s; color: rgba(34, 211, 238, 0.2); }

/* Project Screenshots */
.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s ease;
}

.project-card:hover .project-screenshot {
  transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p + p {
  margin-top: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-highlight-card {
  padding: 28px;
  text-align: center;
}

.about-highlight-card .highlight-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.about-highlight-card .highlight-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-highlight-card .highlight-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 32px 24px;
  text-align: center;
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--accent);
  transition: all var(--transition-normal);
}

.skill-card:hover .skill-card-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.skill-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.skill-card-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Tools row */
.tools-section {
  margin-top: 24px;
}

.tools-card {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.tools-card .tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tools-card .tool-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ============================================
   CAPABILITIES SECTION
   ============================================ */
.capabilities-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.capability-card {
  min-height: 260px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0.8;
}

.capability-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.capability-card h3 {
  color: var(--text-primary);
  font-size: 1.04rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.capability-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  overflow: hidden;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

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

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.3), 
    rgba(34, 211, 238, 0.15),
    var(--bg-secondary));
  overflow: hidden;
}

.project-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.project-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.project-content {
  padding: 28px;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-features {
  margin-bottom: 20px;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.project-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.project-buttons {
  display: flex;
  gap: 12px;
}

/* ============================================
   WORKFLOW SECTION + TECH TICKER
   ============================================ */
.workflow-section {
  overflow: hidden;
}

.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.workflow-card {
  min-height: 270px;
  padding: 30px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.workflow-card:last-child {
  border-right: none;
}

.workflow-card:hover {
  background: rgba(99, 102, 241, 0.06);
}

.workflow-card span {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 42px;
}

.workflow-card h3 {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.workflow-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ============================================
   FREELANCE SERVICE PAGES
   ============================================ */
.freelance-hero {
  padding-top: 150px;
  padding-bottom: 70px;
  overflow: hidden;
}

.freelance-hero::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 50%;
  width: min(680px, 90vw);
  height: 240px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(34, 211, 238, 0.12));
  filter: blur(110px);
  opacity: 0.7;
  pointer-events: none;
}

.freelance-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.service-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-panel,
.promise-card {
  padding: 30px;
  min-height: 245px;
}

.service-panel span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.26);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  font-weight: 800;
  font-size: 0.82rem;
}

.service-panel h2,
.promise-card h3,
.cta-band h2,
.brief-panel h2 {
  color: var(--text-primary);
  line-height: 1.3;
}

.service-panel h2,
.promise-card h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.service-panel p,
.promise-card p,
.cta-band p,
.brief-panel li {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.92rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.06));
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

/* Product and service catalog */
.products-hero {
  padding-top: 150px;
  padding-bottom: 44px;
  overflow: hidden;
}

.products-toolbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 12px 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 26, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.products-toolbar .filter-tabs {
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  justify-content: flex-start;
}

.products-toolbar .filter-tabs::-webkit-scrollbar {
  display: none;
}

.compact-tabs {
  justify-content: flex-start;
}

.products-toolbar .projects-search {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  align-self: center;
}

.product-catalog {
  padding-top: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
  gap: 22px;
  align-items: stretch;
  justify-content: center;
}

.service-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
  align-items: stretch;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 28px;
  align-items: end;
}

.services-hero-grid .section-header {
  margin: 0;
  text-align: left;
}

html[dir="rtl"] .services-hero-grid .section-header {
  text-align: right;
}

.services-hero-proof {
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.services-hero-proof::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.services-hero-proof span,
.service-outcome-box span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.services-hero-proof strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.services-hero-proof p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.services-proof-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.services-proof-points small {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-full);
  color: #dbeafe;
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
}

.service-catalog-heading {
  margin-bottom: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.product-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.08));
}

.product-card-media img,
.product-detail-media img,
.product-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 700;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.08)),
    rgba(255, 255, 255, 0.025);
}

.product-placeholder.large {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.product-sale-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-card-media .product-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

html[dir="rtl"] .product-card-media .product-sale-badge {
  right: 12px;
  left: auto;
}

.product-sale-badge.paid {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.product-sale-badge.free {
  background: rgba(34, 211, 238, 0.16);
  color: var(--secondary);
}

.product-sale-badge.open_source {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 20px;
}

.product-card-meta,
.service-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card-meta span,
.service-meta-row span,
.service-meta-row strong {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-card h2,
.service-offering-card h2 {
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.35;
}

.product-card p,
.service-offering-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-card-footer strong {
  color: var(--text-primary);
}

.product-card-footer span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.product-detail-copy h1 {
  color: var(--text-primary);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 18px 0;
}

.product-detail-copy > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
}

.product-price-panel {
  width: fit-content;
  min-width: 220px;
  padding: 18px;
  margin: 24px 0;
}

.product-price-panel span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-price-panel strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1.25;
  margin-top: 6px;
}

.product-price-panel p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 8px;
}

.product-detail-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-info-card {
  padding: 24px;
}

.product-info-card h2 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.product-info-card ul,
.service-offering-card ul {
  display: grid;
  gap: 10px;
}

.product-info-card li,
.service-offering-card li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-info-card li::before,
.service-offering-card li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
}

html[dir="rtl"] .product-info-card li,
html[dir="rtl"] .service-offering-card li {
  padding-right: 18px;
  padding-left: 0;
}

html[dir="rtl"] .product-info-card li::before,
html[dir="rtl"] .service-offering-card li::before {
  right: 0;
  left: auto;
}

.product-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-screenshot {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-offering-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.service-offering-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.85), rgba(34, 211, 238, 0.65));
  opacity: 0.72;
}

.service-offering-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-offering-head span {
  color: var(--accent);
  font-weight: 900;
}

.service-offering-head small {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-offering-detail {
  color: var(--text-muted) !important;
  font-size: 0.84rem !important;
}

.service-offering-card h3 {
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.service-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tool-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
}

.service-outcome-box {
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.055);
}

.service-outcome-box p {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.service-card-action {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.hire-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.brief-panel {
  padding: 32px;
}

.brief-panel h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.brief-panel ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brief-panel li {
  position: relative;
  padding-left: 22px;
}

.brief-panel li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.45);
}

.tech-ticker {
  width: 100%;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(99, 102, 241, 0.045), rgba(34, 211, 238, 0.025), rgba(99, 102, 241, 0.045)),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.tech-ticker::before,
.tech-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(160px, 18vw);
  pointer-events: none;
}

.tech-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), rgba(10, 10, 26, 0));
}

.tech-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), rgba(10, 10, 26, 0));
}

.tech-ticker-track {
  display: flex;
  width: max-content;
  animation: techTicker 44s linear infinite;
  will-change: transform;
}

.tech-ticker-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
}

.tech-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--radius-full);
  color: #dbeafe;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(10, 10, 26, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 26px rgba(0, 0, 0, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0;
}

.tech-ticker-track span::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.6);
}

@keyframes techTicker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
  .tech-ticker::before,
  .tech-ticker::after {
    width: 56px;
  }

  .tech-ticker-group {
    gap: 9px;
    padding: 13px 9px;
  }

  .tech-ticker-track span {
    min-height: 34px;
    padding: 0 14px;
    font-size: 0.76rem;
  }
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.education-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
  border-radius: 0 4px 4px 0;
}

.education-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-progress {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.badge-completed {
  background: rgba(34, 211, 238, 0.15);
  color: var(--secondary);
}

.education-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.education-institution {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.education-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Progress Bar */
.progress-wrapper {
  margin-top: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.progress-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

/* Course Topics */
.course-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.education-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 26, 0.92), rgba(10, 10, 26, 0.72) 44%, rgba(8, 12, 28, 0.88)),
    linear-gradient(180deg, rgba(99, 102, 241, 0.1), transparent 34%, rgba(34, 211, 238, 0.07));
}

.contact-lottie-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center end;
  padding-inline: max(24px, calc((100vw - var(--container-width)) / 2));
  pointer-events: none;
  opacity: 0.46;
  transform: translateZ(0);
}

.contact-lottie-player {
  width: min(760px, 54vw);
  min-width: 420px;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(8%) scale(1.08);
  transition: opacity 0.7s ease;
  filter: saturate(1.14) contrast(1.06);
  mix-blend-mode: screen;
}

html[dir="rtl"] .contact-lottie-player {
  transform: translateX(-8%) scale(1.08);
}

.contact-lottie-player svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  filter: drop-shadow(0 28px 70px rgba(34, 211, 238, 0.14));
}

.contact-lottie-ready .contact-lottie-player {
  opacity: 1;
}

.contact-lottie-fallback .contact-lottie-bg {
  opacity: 0.34;
  background:
    linear-gradient(115deg, transparent 0%, rgba(99, 102, 241, 0.12) 38%, rgba(34, 211, 238, 0.08) 64%, transparent 100%);
}

.contact-content-layer,
.contact-section .section-header,
.contact-section .contact-wrapper {
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  padding: 40px;
}

.contact-section .contact-form-card,
.contact-section .contact-info-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.028)),
    rgba(8, 10, 26, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 72px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
}

.contact-section .contact-form-card {
  max-width: 100%;
}

.contact-section .contact-info-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.082), rgba(255, 255, 255, 0.028)),
    rgba(8, 10, 26, 0.62);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-section .form-group input,
.contact-section .form-group select,
.contact-section .form-group textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.02)),
    rgba(4, 7, 18, 0.7);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-section .form-group input:focus,
.contact-section .form-group select:focus,
.contact-section .form-group textarea:focus {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(4, 7, 18, 0.82);
  border-color: rgba(129, 140, 248, 0.66);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.16),
    0 14px 34px rgba(0, 0, 0, 0.18);
}

html[dir="rtl"] .contact-lottie-bg {
  place-items: center start;
}

body.theme-black-glass .contact-section::before {
  background:
    linear-gradient(90deg, rgba(3, 3, 6, 0.92), rgba(7, 3, 14, 0.72) 46%, rgba(3, 5, 9, 0.9)),
    linear-gradient(180deg, rgba(168, 85, 247, 0.13), transparent 38%, rgba(45, 212, 191, 0.075));
}

body.theme-black-glass .contact-section .contact-form-card,
body.theme-black-glass .contact-section .contact-info-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.026)),
    rgba(5, 5, 9, 0.7);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 26px 78px rgba(0, 0, 0, 0.36),
    0 0 38px rgba(168, 85, 247, 0.1);
}

body.theme-black-glass .contact-section .form-group input,
body.theme-black-glass .contact-section .form-group select,
body.theme-black-glass .contact-section .form-group textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.018)),
    rgba(3, 3, 6, 0.72);
  border-color: rgba(255, 255, 255, 0.15);
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.order-summary {
  padding: 28px;
}

.order-summary > span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.order-summary h2 {
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 10px 0 18px;
}

.order-summary-price {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 18px;
}

.order-summary-price small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.order-summary-price strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-top: 5px;
}

.order-summary p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.payment-method-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.payment-method-list h3 {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.payment-method-list article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.payment-method-list strong,
.payment-method-list span,
.payment-method-list code {
  display: block;
}

.payment-method-list strong {
  color: var(--text-primary);
  margin-bottom: 4px;
}

.payment-method-list span,
.payment-method-list p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.payment-method-list code {
  margin: 7px 0;
  color: var(--secondary);
  font-size: 0.82rem;
  white-space: normal;
  word-break: break-word;
}

.error-note {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}

.order-thank-you {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.order-thank-you h1 {
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 10px 0;
}

.order-thank-you > p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 24px;
}

.order-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.order-confirmation-grid div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.order-confirmation-grid span,
.order-confirmation-grid strong {
  display: block;
}

.order-confirmation-grid span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.order-confirmation-grid strong {
  color: var(--text-primary);
  margin-top: 6px;
  word-break: break-word;
}

.license-delivery-shell {
  display: grid;
  gap: 22px;
}

.license-delivery-hero {
  padding: 34px;
}

.license-delivery-hero h1 {
  color: var(--text-primary);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 12px 0;
}

.license-delivery-hero p {
  max-width: 720px;
  color: var(--text-secondary);
}

.license-delivery-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.06);
}

.license-delivery-status span {
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.license-delivery-status strong {
  color: var(--text-primary);
  font-size: 0.86rem;
}

.license-delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: stretch;
}

.license-delivery-card {
  padding: 26px;
}

.license-delivery-card h2 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.license-delivery-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
}

.license-key-box {
  display: block;
  width: 100%;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  color: var(--secondary);
  font-size: clamp(0.86rem, 2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.license-delivery-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.license-delivery-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.license-delivery-list dt {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.license-delivery-list dd {
  color: var(--text-primary);
  font-size: 0.9rem;
  word-break: break-word;
}

.license-delivery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.license-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.license-steps span {
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.client-portal-shell {
  display: grid;
  gap: 26px;
}

.client-portal-hero {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.client-portal-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), transparent);
}

.client-portal-hero h1 {
  color: var(--text-primary);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.1;
  margin: 12px 0;
}

.client-portal-hero p {
  max-width: 780px;
  color: var(--text-secondary);
}

.client-portal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.client-portal-meta span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.82rem;
}

.client-portal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-summary-card {
  min-height: 128px;
  padding: 18px;
}

.client-summary-card span,
.client-summary-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.client-summary-card strong {
  display: block;
  margin: 12px 0 7px;
  color: var(--text-primary);
  font-size: 1.7rem;
  line-height: 1;
  word-break: break-word;
}

.client-summary-card small {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.client-portal-section {
  display: grid;
  gap: 18px;
}

.section-header.compact {
  margin-bottom: 0;
  text-align: left;
}

.section-header.compact .section-title {
  margin-bottom: 0;
}

.client-order-list {
  display: grid;
  gap: 14px;
}

.client-order-card,
.client-license-card,
.client-empty-card {
  padding: 24px;
}

.client-order-head,
.client-license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.client-order-head span,
.client-license-head span {
  display: block;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.client-order-head h3,
.client-license-head strong {
  display: block;
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.35;
  margin-top: 5px;
}

.client-order-head > strong {
  color: var(--text-primary);
  font-size: 1rem;
  white-space: nowrap;
}

.client-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.client-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
}

.client-status-pill.status-approved,
.client-status-pill.status-delivered,
.client-status-pill.payment-paid {
  background: rgba(34, 197, 94, 0.11);
  color: #4ade80;
}

.client-status-pill.status-pending,
.client-status-pill.status-reviewing,
.client-status-pill.payment-review,
.client-status-pill.payment-unpaid {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.client-status-pill.status-cancelled,
.client-status-pill.payment-rejected,
.client-status-pill.payment-refunded {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.client-order-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 10px;
}

.client-license-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-license-mini {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.client-license-mini strong,
.client-license-mini span {
  display: block;
}

.client-license-mini strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}

.client-license-mini span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.client-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-license-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-license-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.client-license-details dt {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.client-license-details dd {
  color: var(--text-primary);
  font-size: 0.88rem;
  word-break: break-word;
}

.client-license-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.client-empty-card {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.contact-info-card:hover {
  transform: translateY(-2px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-info-value a:hover {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Divider between sections */
.section-divider {
  width: 100%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.28), transparent),
    linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: orbPulse 1.5s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--accent);
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: var(--radius-full);
  animation: preloaderFill 1.2s ease forwards;
}

@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

html[dir="rtl"] .back-to-top {
  right: auto;
  left: 32px;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-tagline {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-points {
    max-width: 680px;
  }

  .hero-showcase {
    min-height: 520px;
    max-width: 680px;
    margin: 0 auto;
  }

  .hero-orb-container {
    width: 300px;
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }

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

  .service-grid,
  .promise-grid,
  .product-info-grid,
  .product-detail-grid,
  .order-layout,
  .hire-layout {
    grid-template-columns: 1fr;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;
  }

  .services-hero-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }

  .services-hero-grid .section-header {
    text-align: center;
  }

  .services-hero-proof {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
  }

  .services-proof-points {
    justify-content: flex-start;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .products-toolbar .projects-search {
    grid-column: auto;
    grid-row: auto;
    max-width: 360px;
  }

  .product-detail-media {
    order: -1;
  }

  .license-delivery-grid {
    grid-template-columns: 1fr;
  }

  .client-portal-summary,
  .client-license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-card:nth-child(2) {
    border-right: none;
  }

  .workflow-card:nth-child(1),
  .workflow-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-lottie-bg {
    place-items: start center;
    padding-inline: 16px;
    opacity: 0.32;
  }

  html[dir="rtl"] .contact-lottie-bg {
    place-items: start center;
  }

  .contact-lottie-player {
    width: min(760px, 92vw);
    min-width: 0;
    transform: translateY(-6%) scale(1.05);
  }

  html[dir="rtl"] .contact-lottie-player {
    transform: translateY(-6%) scale(1.05);
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  /* Mobile Navigation — Full Screen Overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background: #0a0a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .language-switcher {
    margin-top: 4px;
  }

  .nav-links .language-option {
    font-size: 0.82rem;
    min-width: 42px;
    height: 34px;
  }

  .nav-hamburger {
    display: flex;
    z-index: 10000;
  }

  .products-toolbar {
    width: calc(100% - 24px);
    padding: 14px;
    margin-bottom: 22px;
  }

  .products-toolbar .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-grid,
  .service-catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card-body,
  .service-offering-card,
  .product-info-card {
    padding: 18px;
  }

  .services-hero-grid .section-header {
    text-align: center;
  }

  html[dir="rtl"] .hero-content,
  html[dir="rtl"] .about-text,
  html[dir="rtl"] .services-hero-grid .section-header,
  html[dir="rtl"] .section-header.compact {
    text-align: center;
  }

  .services-hero-proof {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
  }

  .services-proof-points {
    justify-content: center;
  }

  .product-detail-copy h1 {
    font-size: 2.25rem;
  }

  .product-price-panel {
    width: 100%;
  }

  .order-summary,
  .order-thank-you,
  .license-delivery-hero,
  .license-delivery-card,
  .client-portal-hero,
  .client-order-card,
  .client-license-card,
  .client-empty-card {
    padding: 20px;
  }

  .client-portal-summary,
  .client-license-grid {
    grid-template-columns: 1fr;
  }

  .client-order-head,
  .client-license-head {
    flex-direction: column;
  }

  .client-order-head > strong {
    white-space: normal;
  }

  .license-delivery-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .client-license-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .license-steps {
    grid-template-columns: 1fr;
  }

  .license-steps span {
    min-height: auto;
  }

  .order-confirmation-grid {
    grid-template-columns: 1fr;
  }

  /* Prevent hero background from causing horizontal overflow */
  .hero-bg {
    overflow: hidden;
    max-width: 100vw;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-points {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 420px;
  }

  .hero-point {
    min-height: auto;
  }

  .hero-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    width: 100%;
    max-width: 430px;
    margin: 4px auto 0;
  }

  .showcase-ring {
    display: none;
  }

  .showcase-card,
  .showcase-card:hover {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    transform: none;
    animation: none;
  }

  .showcase-note {
    position: relative;
    inset: auto;
    width: 100%;
    text-align: left;
    animation: none;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 8px auto 0;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: auto;
    padding: 24px;
  }

  /* Projects */
  .project-buttons {
    flex-direction: column;
  }

  .project-buttons .btn {
    width: 100%;
  }

  .workflow-track {
    grid-template-columns: 1fr;
  }

  .workflow-card,
  .workflow-card:nth-child(2) {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .workflow-card:last-child {
    border-bottom: none;
  }

  .workflow-card span {
    margin-bottom: 24px;
  }

  .freelance-hero {
    padding-top: 120px;
  }

  .service-panel,
  .promise-card {
    min-height: auto;
    padding: 24px;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .cta-band .btn {
    width: 100%;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }

  .contact-section::before {
    background:
      linear-gradient(180deg, rgba(10, 10, 26, 0.96), rgba(10, 10, 26, 0.78) 42%, rgba(8, 12, 28, 0.94)),
      linear-gradient(120deg, rgba(99, 102, 241, 0.11), transparent 54%, rgba(34, 211, 238, 0.07));
  }

  .contact-lottie-bg {
    opacity: 0.22;
  }

  .contact-section .contact-form-card,
  .contact-section .contact-info-card {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.03)),
      rgba(8, 10, 26, 0.78);
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-showcase,
  .showcase-card,
  .showcase-note {
    animation: none;
  }

  .tech-ticker-track {
    animation: none;
  }

  .contact-lottie-bg {
    opacity: 0.16;
  }
}

/* ============================================
   PREMIUM TOUCHES
   ============================================ */

/* 1. Custom Text Selection */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* 2. Film Grain Texture Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* 3. Section Flash on Anchor Navigate */
.section-flash {
  animation: sectionFlash 1.2s ease-out;
}

@keyframes sectionFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(99, 102, 241, 0.12); }
  20% { box-shadow: inset 0 0 80px 0 rgba(99, 102, 241, 0.06); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* 4. Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--secondary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   1.9.3 Frontend Experience Refresh
   ============================================ */

:root {
  --content-wide: 1180px;
  --content-readable: 820px;
}

.container,
.section,
.glass-card,
.product-card,
.service-offering-card {
  min-width: 0;
}

.section-header {
  max-width: var(--content-readable);
  margin-left: auto;
  margin-right: auto;
}

.section-description {
  max-width: 680px;
}

.freelance-hero,
.products-hero,
.product-detail-hero {
  padding-top: 132px;
  padding-bottom: 52px;
}

.freelance-hero .section-header,
.products-hero .section-header {
  margin-bottom: 28px;
}

.freelance-hero .section-title,
.products-hero .section-title {
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
}

.freelance-cta {
  margin-top: 4px;
}

.services-hero-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  align-items: center;
}

.services-hero-grid .section-header {
  max-width: 760px;
}

.services-hero-proof {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    rgba(9, 10, 24, 0.76);
}

.services-proof-points small,
.service-tool-row span,
.product-card-meta span,
.service-meta-row span,
.service-meta-row strong {
  min-height: 28px;
}

.service-catalog-heading {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.product-catalog {
  padding-top: 12px;
}

.products-toolbar {
  width: min(var(--content-wide), calc(100% - 48px));
  margin-bottom: 30px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.022)),
    rgba(8, 9, 22, 0.78);
}

.products-toolbar .filter-tabs {
  border-radius: 14px;
}

.products-toolbar .projects-search {
  min-width: 0;
}

.projects-search input {
  min-height: 44px;
}

.product-grid,
.service-catalog-grid {
  max-width: var(--content-wide);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  gap: 24px;
}

.service-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 360px));
  gap: 24px;
}

.product-card,
.service-offering-card {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(8, 9, 22, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
}

.product-card:hover,
.service-offering-card:hover {
  border-color: rgba(99, 102, 241, 0.34);
  transform: translateY(-6px);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(99, 102, 241, 0.12);
}

.product-card-media {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.24), rgba(34, 211, 238, 0.1)),
    rgba(255, 255, 255, 0.025);
}

.product-card-media img {
  object-position: top center;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}

.product-card-body,
.service-offering-card {
  padding: 22px;
}

.product-card h2,
.service-offering-card h2 {
  letter-spacing: 0;
}

.product-card p,
.service-offering-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.product-card p {
  -webkit-line-clamp: 3;
}

.service-offering-card > p {
  -webkit-line-clamp: 2;
}

.service-offering-detail {
  -webkit-line-clamp: 3 !important;
}

.service-meta-row {
  margin-top: 2px;
}

.service-meta-row strong {
  color: #d1fae5;
  background: rgba(34, 197, 94, 0.11);
}

.service-meta-row span {
  color: #cffafe;
  background: rgba(34, 211, 238, 0.09);
}

.product-card-footer {
  min-height: 46px;
}

.product-card-footer span::after {
  content: '>';
  margin-left: 7px;
  transition: margin-left var(--transition-fast);
}

html[dir="rtl"] .product-card-footer span::after {
  content: '<';
  margin-right: 7px;
  margin-left: 0;
}

.product-card:hover .product-card-footer span::after {
  margin-left: 11px;
}

html[dir="rtl"] .product-card:hover .product-card-footer span::after {
  margin-right: 11px;
  margin-left: 0;
}

.service-card-action {
  border-radius: 12px;
}

.product-detail-hero {
  padding-top: 128px;
}

.product-detail-grid {
  max-width: var(--content-wide);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 22, 0.64);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.26);
}

.product-detail-copy h1 {
  max-width: 760px;
  font-size: clamp(2.05rem, 4.6vw, 3.65rem);
}

.product-price-panel {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
}

.product-detail-media {
  max-height: 520px;
}

.product-info-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.product-info-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 22, 0.66);
}

.product-screenshot-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.product-screenshot {
  border-color: rgba(255, 255, 255, 0.12);
}

.product-license-section .cta-band {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.order-hero {
  padding-bottom: 32px;
}

.order-layout {
  max-width: var(--content-wide);
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.order-summary {
  position: sticky;
  top: 104px;
  border-color: rgba(255, 255, 255, 0.12);
}

.order-summary-price {
  border-color: rgba(99, 102, 241, 0.2);
}

.payment-method-list article {
  border-color: rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .product-card p,
html[dir="rtl"] .service-offering-card p,
html[dir="rtl"] .product-card h2,
html[dir="rtl"] .service-offering-card h2,
html[dir="rtl"] .product-detail-copy,
html[dir="rtl"] .order-summary {
  text-align: right;
}

@media (max-width: 1180px) {
  .products-toolbar {
    grid-template-columns: 1fr;
    max-width: 860px;
  }

  .products-toolbar .projects-search {
    grid-column: auto;
    grid-row: auto;
    max-width: none;
  }

  .product-detail-grid,
  .order-layout {
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 900px) {
  .freelance-hero,
  .products-hero,
  .product-detail-hero {
    padding-top: 118px;
    padding-bottom: 42px;
  }

  .services-hero-grid {
    gap: 20px;
  }

  .product-grid,
  .service-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .product-detail-grid {
    padding: 22px;
  }

  .order-summary {
    position: static;
  }

  .order-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .order-summary,
  .order-layout .contact-form-card {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .freelance-hero,
  .products-hero,
  .product-detail-hero {
    padding-top: 108px;
    padding-bottom: 34px;
  }

  .products-toolbar {
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .filter-tab {
    padding: 8px 14px;
  }

  .product-grid,
  .service-catalog-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .product-detail-grid,
  .order-layout {
    max-width: calc(100% - 24px);
  }

  .product-detail-grid {
    padding: 18px;
    border-radius: 18px;
  }

  .product-detail-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  .product-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-offering-card > p,
  .service-offering-detail,
  .product-card p {
    -webkit-line-clamp: unset !important;
  }
}

/* ============================================
   1.9.4 Fast Navigation Experience
   ============================================ */

.page-content {
  min-height: 48vh;
  outline: none;
  transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

body.route-loading .page-content {
  opacity: 0.42;
  transform: translateY(4px);
  filter: saturate(0.9);
  pointer-events: none;
}

.route-loader {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 38%, rgba(99, 102, 241, 0.14), transparent 28%),
    rgba(4, 5, 14, 0.32);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.route-loader.active {
  opacity: 1;
  visibility: visible;
}

.route-loader-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.route-loader-progress::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent);
  box-shadow: 0 0 22px var(--accent-glow);
  animation: routeProgress 0.92s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.route-loader-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(320px, calc(100vw - 48px));
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 9, 22, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.route-loader.active .route-loader-card {
  transform: translateY(0) scale(1);
}

.route-loader-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.34);
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-loader-mark::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--secondary);
  border-right-color: var(--accent);
  animation: routeSpin 0.82s linear infinite;
}

.route-loader-mark span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 18px var(--secondary-glow);
}

.route-loader-card strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
}

.route-loader-card small {
  display: block;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.filter-tab.active {
  cursor: default;
}

.filter-tab:not(.active):active,
.btn:active,
.project-tile:active,
.product-card:active,
.project-card:active {
  transform: translateY(1px) scale(0.995);
}

html[dir="rtl"] .route-loader-card {
  text-align: right;
}

html[dir="rtl"] .route-loader-progress::before {
  animation-name: routeProgressRtl;
}

/* 1.9.5 polished native controls */
.form-group select,
.order-form select,
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
  padding-inline-end: 46px;
  background-color: rgba(255, 255, 255, 0.04);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: auto, 18px;
}

html[dir="rtl"] .form-group select,
html[dir="rtl"] .order-form select,
html[dir="rtl"] .contact-form select {
  padding-inline-start: 46px;
  padding-inline-end: 18px;
  background-position: left 16px center;
}

.form-group select:hover,
.order-form select:hover,
.contact-form select:hover {
  border-color: rgba(99, 102, 241, 0.42);
  background-color: rgba(255, 255, 255, 0.055);
}

.form-group select:focus,
.order-form select:focus,
.contact-form select:focus {
  background-image:
    linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-group select option,
.order-form select option,
.contact-form select option {
  color: #eef2ff;
  background: #111126;
}

.form-group select option:checked,
.order-form select option:checked,
.contact-form select option:checked {
  color: #fff;
  background: #3730a3;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}

@keyframes routeProgress {
  0% { transform: translateX(-115%); }
  55% { transform: translateX(80%); }
  100% { transform: translateX(240%); }
}

@keyframes routeProgressRtl {
  0% { transform: translateX(240%); }
  55% { transform: translateX(80%); }
  100% { transform: translateX(-115%); }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-content,
  .route-loader,
  .route-loader-card {
    transition: none;
  }

  .route-loader-progress::before,
  .route-loader-mark::before {
    animation: none;
  }
}

/* ============================================
   1.9.7 Interface Stability + Enhanced Controls
   ============================================ */
.enhanced-select-native {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(7, 9, 22, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065);
  text-align: start;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.custom-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(129, 140, 248, 0.22), transparent 64%),
    url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform var(--transition-fast);
}

.custom-select-open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-button:hover,
.custom-select-button:focus-visible,
.custom-select-open .custom-select-button {
  border-color: rgba(129, 140, 248, 0.62);
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.13), rgba(255, 255, 255, 0.022)),
    rgba(7, 9, 22, 0.84);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.custom-select-menu {
  z-index: 99999;
  box-sizing: border-box;
  direction: inherit;
  display: none;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(7, 8, 20, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.48) transparent;
}

.custom-select-open .custom-select-menu,
.custom-select-menu.is-open {
  display: grid;
  gap: 3px;
}

.custom-select-option {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
  text-align: start;
  font: inherit;
  font-size: 0.88rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.13);
  outline: none;
}

.custom-select-option.is-selected {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.88), rgba(34, 211, 238, 0.42));
}

.custom-select-option:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

body.theme-black-glass .custom-select-button,
body.theme-black-glass .custom-select-menu {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
    rgba(3, 3, 7, 0.92);
}

/* ============================================
   2.1.0 Product Sales Experience
   ============================================ */
.catalog-confidence,
.order-step-strip,
.product-quick-signals,
.product-card-feature-list,
.product-card-proof,
.product-flow-steps,
.product-buying-grid {
  direction: inherit;
}

.catalog-confidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 30px auto 0;
}

.catalog-confidence article,
.order-step-strip article,
.product-flow-steps article,
.product-buying-copy,
.product-support-note,
.order-secure-note {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 22, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.catalog-confidence article {
  min-height: 116px;
  padding: 18px;
  border-radius: 16px;
}

.catalog-confidence strong,
.product-flow-steps strong,
.order-step-strip strong,
.order-secure-note strong {
  display: block;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0;
}

.catalog-confidence span,
.order-secure-note span,
.product-flow-steps p,
.order-step-strip p,
.product-buying-copy p,
.product-support-note p {
  color: var(--text-secondary);
  line-height: 1.65;
}

.catalog-confidence span {
  display: block;
  margin-top: 7px;
  font-size: 0.88rem;
}

.product-card-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
}

.product-card-feature-list span,
.product-card-proof small,
.product-quick-signals span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-card-feature-list span {
  max-width: 100%;
  padding: 6px 10px;
}

.product-card-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.product-card-proof small {
  padding: 5px 9px;
  color: var(--text-muted);
}

.product-quick-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-quick-signals span {
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.22);
}

.product-detail-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.product-media-preview-strip {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 6, 16, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.product-media-preview-strip span {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.product-media-preview-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-buying-section {
  padding-top: 26px;
}

.product-buying-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.product-buying-copy,
.product-support-note {
  padding: 24px;
  border-radius: 18px;
}

.product-buying-copy h2,
.product-support-note h2,
.order-form-intro h2 {
  margin: 6px 0 8px;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: 0;
}

.product-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.product-flow-steps article,
.order-step-strip article {
  padding: 18px;
  border-radius: 16px;
}

.product-flow-steps span,
.order-step-strip span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
}

.product-support-note-section {
  padding-top: 24px;
}

.product-support-note {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.order-step-strip {
  max-width: var(--content-wide);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.order-secure-note {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 14px;
  border-color: rgba(34, 197, 94, 0.2);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 22, 0.66);
}

.order-form-intro {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.order-form-intro p:last-child {
  color: var(--text-secondary);
  line-height: 1.65;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

html[dir="rtl"] .catalog-confidence,
html[dir="rtl"] .product-card-feature-list,
html[dir="rtl"] .product-card-proof,
html[dir="rtl"] .product-quick-signals,
html[dir="rtl"] .product-buying-copy,
html[dir="rtl"] .product-flow-steps,
html[dir="rtl"] .product-support-note,
html[dir="rtl"] .order-step-strip,
html[dir="rtl"] .order-form-intro,
html[dir="rtl"] .order-secure-note {
  text-align: right;
}

@media (max-width: 900px) {
  .catalog-confidence,
  .order-step-strip,
  .product-buying-grid,
  .product-flow-steps {
    grid-template-columns: 1fr;
  }

  .product-support-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .catalog-confidence,
  .order-step-strip {
    margin-top: 20px;
  }

  .catalog-confidence article,
  .order-step-strip article,
  .product-flow-steps article,
  .product-buying-copy,
  .product-support-note {
    padding: 16px;
    border-radius: 14px;
  }

  .product-media-preview-strip {
    position: static;
    margin: 10px;
  }

  .product-card-proof {
    align-items: flex-start;
    flex-direction: column;
  }
}

.products-toolbar {
  position: relative;
  isolation: isolate;
}

.products-toolbar::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(99, 102, 241, 0.16), transparent 42%, rgba(34, 211, 238, 0.09));
  opacity: 0.86;
}

.products-toolbar .filter-tabs {
  scroll-snap-type: x proximity;
}

.products-toolbar .filter-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.product-grid,
.service-catalog-grid {
  align-items: stretch;
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) and (max-width: 1179px) {
  .product-grid,
  .service-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
  }
}

.product-card,
.service-offering-card {
  min-width: 0;
}

.service-offering-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto 1fr auto;
}

.service-offering-card h2,
.product-card h2 {
  overflow-wrap: anywhere;
}

.service-outcome-box {
  align-self: end;
}
