/* ===================================================================
   Islam Hadi Sadoon — Luxury Dark Portfolio Stylesheet (v3.0)
   - Harmonious Arabic & Latin Typography (IBM Plex Sans Arabic & Outfit)
   - Zero-Letter-Spacing ligature preservation for Arabic
   - Project Folders & Album Covers System
   - Frameless Avatar with Animated Orbital Rings
   - High-Resolution Artwork Lightbox Inspector
   - Completely Isolated Admin Dashboard
   =================================================================== */

:root {
  /* Obsidian Dark Color Palette */
  --bg-base: #08090c;
  --bg-surface: #0e1017;
  --bg-card: rgba(16, 19, 27, 0.72);
  --bg-card-hover: rgba(24, 28, 39, 0.9);
  
  /* Metallic & Cosmic Purple / Cyan Accents */
  --metallic-primary: linear-gradient(135deg, #ffffff 0%, #e2e8f0 45%, #cbd5e1 100%);
  --metallic-glow: rgba(255, 255, 255, 0.15);
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.28);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(168, 85, 247, 0.45);
  --border-glow: rgba(255, 255, 255, 0.16);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #0a0b0e;

  /* Typography Stacks */
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --font-arabic: 'IBM Plex Sans Arabic', 'Almarai', sans-serif;

  /* Enhanced Site Font Scale & Spacing (Slightly larger default) */
  --site-font-scale: 1.08;
  --base-font-size: calc(16px * var(--site-font-scale, 1.08));

  /* Dimensions & Radius */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 1px 1px rgba(255, 255, 255, 0.06) inset;
  --pill-radius: 9999px;
  --card-radius: 20px;
}

/* ===================================================================
   CRITICAL ARABIC TYPOGRAPHY FIXES (Zero Letter-Spacing, Natural Ligatures)
   =================================================================== */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] p,
html[dir="rtl"] span,
html[dir="rtl"] a,
html[dir="rtl"] div {
  font-family: var(--font-arabic) !important;
  letter-spacing: 0px !important;
  word-spacing: normal !important;
}

html[dir="rtl"] .hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0px !important;
}

html[dir="rtl"] .hero-bio {
  line-height: 1.9 !important;
  font-size: 1.08rem !important;
  letter-spacing: 0px !important;
}

html[dir="rtl"] .cta-heading {
  font-size: clamp(2rem, 3.4vw, 2.8rem) !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0px !important;
}

html[dir="rtl"] .btn-arrow,
html[dir="rtl"] .link-arrow {
  transform: scaleX(-1);
  display: inline-block;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size, calc(16px * var(--site-font-scale, 1.08)));
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.68;
  font-size: 1rem;
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video, canvas, audio {
  max-width: 100%;
  height: auto;
}

/* Atmospheric Ambient Glows with Alive Movement */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.38;
}

.glow-top-center {
  width: 700px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-purple-glow, rgba(147, 51, 234, 0.22)) 0%, transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  animation: ambientFloat1 18s ease-in-out infinite alternate;
}

.glow-hero-purple {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--accent-purple-glow, rgba(168, 85, 247, 0.25)) 0%, transparent 70%);
  top: 10%;
  right: 5%;
  animation: ambientFloat2 15s ease-in-out infinite alternate;
}

.glow-bottom-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan-glow, rgba(56, 189, 248, 0.15)) 0%, transparent 70%);
  bottom: 5%;
  left: -80px;
  animation: ambientFloat3 20s ease-in-out infinite alternate;
}

@keyframes ambientFloat1 {
  0% { transform: translateX(-50%) scale(1); opacity: 0.38; }
  50% { transform: translate(-46%, 35px) scale(1.12); opacity: 0.52; }
  100% { transform: translate(-54%, -20px) scale(0.95); opacity: 0.42; }
}

@keyframes ambientFloat2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate(-35px, 45px) scale(1.18); opacity: 0.48; }
  100% { transform: translate(25px, -30px) scale(0.92); opacity: 0.32; }
}

@keyframes ambientFloat3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(45px, -35px) scale(1.15); opacity: 0.46; }
  100% { transform: translate(-20px, 30px) scale(0.94); opacity: 0.34; }
}

.site-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Glass Card with Alive Motion */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease, 
              box-shadow 0.35s ease;
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(168, 85, 247, 0.22);
}

/* ===================================================================
   NAVIGATION HEADER
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 13px 0;
  background: rgba(8, 9, 12, 0.92);
  border-bottom-color: var(--border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

html[dir="rtl"] .brand-logo {
  font-family: var(--font-arabic-heading), var(--font-arabic);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-letters {
  background: var(--metallic-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.brand-logo:hover .logo-letters {
  filter: brightness(1.2);
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  border-radius: 50%;
  margin-left: 4px;
  display: inline-block;
  flex-shrink: 0;
}

html[dir="rtl"] .logo-dot {
  margin-left: 0;
  margin-right: 4px;
}

.nav-menu {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 34px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--pill-radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Button Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--pill-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary-metallic {
  background: var(--metallic-primary);
  color: var(--text-dark);
  padding: 10px 22px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.14);
}

.btn-primary-metallic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.24);
  filter: brightness(1.04);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 10px 20px;
  font-size: 0.82rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-arrow, .btn-icon {
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.btn-primary-metallic:hover .btn-arrow {
  transform: translate(2px, -2px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-smooth);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-cta {
  display: none;
}

/* ===================================================================
   HERO SECTION (FRAMELESS AVATAR & ANIMATED ORBITAL RINGS)
   =================================================================== */
.hero-section {
  padding: 60px 0 70px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.hero-tagline-wrapper {
  margin-bottom: 20px;
}

.hero-tagline-badge {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-purple, #c084fc);
  text-transform: uppercase;
  display: inline-block;
  background: var(--accent-purple-glow, rgba(168, 85, 247, 0.1));
  border: 1px solid var(--border-focus, rgba(168, 85, 247, 0.25));
  padding: 5px 14px;
  border-radius: var(--pill-radius);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.hero-title .title-highlight {
  color: #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-bio {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #ffffff;
  color: var(--text-dark);
  padding: 13px 28px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 13px 26px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ===================================================================
   HERO FULL STANDING CHARACTER & DUAL ORBITING STARS ON CIRCLE
   =================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 580px;
}

.hero-character-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 620px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0 auto;
}

/* Atmospheric Ambient Core Glow Behind Character */
.cosmic-glow-backdrop {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-purple-glow, rgba(168, 85, 247, 0.28)) 0%, var(--accent-cyan-glow, rgba(56, 189, 248, 0.16)) 45%, transparent 70%);
  filter: blur(36px);
  animation: pulseCosmicBackdrop 5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes pulseCosmicBackdrop {
  0%, 100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Rotating Orbit Circle with Stars (تدور الدائرة مع النجمتان) */
.orbiting-star-ring {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 430px;
  height: 430px;
  margin-top: -215px;
  margin-left: -215px;
  border-radius: 50%;
  animation: rotateOrbitRing 22s linear infinite;
  z-index: 2;
  pointer-events: none;
}

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

.orbit-ring-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-purple, rgba(168, 85, 247, 0.38));
  box-shadow: 0 0 35px var(--accent-purple-glow, rgba(168, 85, 247, 0.22)), inset 0 0 25px var(--accent-cyan-glow, rgba(56, 189, 248, 0.14));
}

.orbit-ring-dashed {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

/* The Two Orbiting Stars on the Ring */
.orbit-star {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-star.star-1 {
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-purple, #c084fc);
  filter: drop-shadow(0 0 16px var(--accent-purple, #a855f7)) drop-shadow(0 0 28px var(--accent-purple, #c084fc));
}

.orbit-star.star-2 {
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan, #38bdf8);
  filter: drop-shadow(0 0 16px var(--accent-cyan, #38bdf8)) drop-shadow(0 0 28px var(--accent-cyan, #7dd3fc));
}

.star-svg {
  width: 24px;
  height: 24px;
  animation: counterRotateStar 22s linear infinite, starSparkleGlow 2.5s ease-in-out infinite;
}

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

@keyframes starSparkleGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* Counter-Rotating Subtle Tech Halo */
.counter-orbit-halo {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 350px;
  height: 350px;
  margin-top: -175px;
  margin-left: -175px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top-color: var(--accent-cyan, rgba(56, 189, 248, 0.4));
  border-bottom-color: var(--accent-purple, rgba(168, 85, 247, 0.4));
  animation: rotateOrbitRingReverse 16s linear infinite;
  z-index: 2;
  pointer-events: none;
}

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

/* Standing Character Wrapper & Ground Shadow */
.standing-character-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
}

.standing-character-img {
  max-height: 560px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px var(--accent-purple-glow, rgba(168, 85, 247, 0.22)));
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  user-select: none;
  animation: heroCharacterFloat 5.5s ease-in-out infinite;
}

.hero-character-stage:hover .standing-character-img {
  transform: translateY(-10px) scale(1.02);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 38px var(--accent-purple-glow, rgba(168, 85, 247, 0.4)));
}

/* 3D Realistic Contact Ground Shadow with breathing sync */
.character-ground-shadow {
  position: absolute;
  bottom: 0px;
  width: 250px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, var(--accent-purple-glow, rgba(168, 85, 247, 0.25)) 35%, transparent 75%);
  filter: blur(8px);
  z-index: 4;
  pointer-events: none;
  animation: characterShadowPulse 5.5s ease-in-out infinite;
}

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

@keyframes characterShadowPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(0.91); opacity: 0.65; }
}

/* Floating Availability Status Badge with Alive Floating & Moving Border */
.hero-character-stage .floating-badge {
  position: absolute;
  top: 105px;
  bottom: auto;
  left: -65px;
  right: auto;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(168, 85, 247, 0.25);
  animation: floatHeroBadgeLive 4.5s ease-in-out infinite, badgeBorderFlow 6s ease-in-out infinite;
}

html[dir="rtl"] .hero-character-stage .floating-badge {
  top: 100px;
  right: -30px;
  left: auto;
}

.availability-badge {
  position: absolute;
  top: 105px;
  bottom: auto;
  left: -65px;
  right: auto;
  z-index: 10;
  background: rgba(14, 16, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  animation: floatHeroBadgeLive 4.5s ease-in-out infinite, badgeBorderFlow 6s ease-in-out infinite;
}

html[dir="rtl"] .availability-badge {
  top: 100px;
  right: -30px;
  left: auto;
}

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

@keyframes badgeBorderFlow {
  0%, 100% {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(168, 85, 247, 0.25);
  }
  50% {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 26px rgba(56, 189, 248, 0.35);
  }
}

.badge-status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: blinkDot 2s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.badge-main {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
}

.badge-arrow {
  margin-left: 2px;
  display: inline-block;
}

/* ===================================================================
   STATS STRIP
   =================================================================== */
.stats-section {
  margin: 30px 0 80px 0;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 30px 40px;
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.stat-icon {
  color: #c084fc;
  font-size: 1.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}

/* ===================================================================
   FEATURED WORK & FOLDERS / COVERS SYSTEM
   =================================================================== */
.featured-section {
  margin-bottom: 90px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.portfolio-view-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--border-subtle);
}

.view-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--pill-radius);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.view-tab-btn.active {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #ffffff;
}

/* Folders Grid */
.folders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.folder-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.folder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.folder-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #0f1017;
}

.folder-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.folder-card:hover .folder-cover-img {
  transform: scale(1.08);
}

.folder-tab-spine {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  border-radius: var(--pill-radius);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.folder-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(16, 19, 27, 0.9);
  flex: 1;
}

.folder-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.folder-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.folder-count-badge {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--bg-surface);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(8, 9, 12, 0.65) 100%);
  pointer-events: none;
}

.hires-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--pill-radius);
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-floating-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.project-card:hover .project-floating-btn {
  background: #ffffff;
  color: var(--text-dark);
  transform: scale(1.1) rotate(5deg);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.project-category {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ===================================================================
   CAPABILITIES & TOOLS
   =================================================================== */
.capabilities-section {
  margin-bottom: 90px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.sub-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.capability-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cap-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.ps-box { color: #38bdf8; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); }
.ai-box { color: #fb923c; background: rgba(251, 146, 60, 0.1); border-color: rgba(251, 146, 60, 0.3); }
.au-box { color: #00e5ff; background: rgba(0, 229, 255, 0.1); border-color: rgba(0, 229, 255, 0.3); }
.py-box { color: #facc15; background: rgba(250, 204, 21, 0.1); }
.web-box { color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.vo-box { color: #ec4899; background: rgba(236, 72, 153, 0.1); }

.capability-item:hover .cap-icon-box {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.cap-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
}

.cap-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Tools & Education */
.tools-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tools-card, .education-card {
  padding: 28px;
}

.box-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 22px;
}

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

.tool-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.tool-badge:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.tool-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.ps-icon { color: #38bdf8; background: rgba(0, 30, 54, 0.8); }
.ai-icon { color: #fb923c; background: rgba(50, 20, 0, 0.8); }
.au-icon { color: #00e5ff; background: rgba(0, 40, 45, 0.8); }
.python-icon { color: #38bdf8; background: rgba(56, 189, 248, 0.1); font-size: 1.2rem; }
.js-icon { color: #facc15; background: rgba(250, 204, 21, 0.1); font-size: 1.2rem; }
.html-icon { color: #fb923c; background: rgba(251, 146, 60, 0.1); font-size: 1.2rem; }
.resolve-icon { color: #f43f5e; background: rgba(244, 63, 94, 0.1); }
.studio-icon { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }

.tool-meta {
  display: flex;
  flex-direction: column;
}

.tool-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.tool-level {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Education */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.edu-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  font-size: 1rem;
}

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

.edu-degree {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.edu-inst {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-meta-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ===================================================================
   AUDIO DEMO SHOWCASE
   =================================================================== */
.audio-showcase-section {
  margin-bottom: 90px;
}

.audio-showcase-card {
  padding: 36px 42px;
  background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.1) 0%, rgba(16, 19, 27, 0.85) 70%);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.audio-showcase-header {
  margin-bottom: 26px;
}

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--pill-radius);
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.audio-showcase-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.audio-showcase-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 650px;
}

.audio-player-interface {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(8, 9, 12, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 28px;
}

.audio-play-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-dark);
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.audio-play-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.35);
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.track-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.track-timer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.waveform-visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 38px;
  width: 100%;
  overflow: hidden;
}

.wave-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  height: 20%;
  transition: height 0.15s ease, background-color 0.2s ease;
}

.wave-bar.active {
  background: linear-gradient(180deg, #a855f7 0%, #38bdf8 100%);
}

.audio-filter-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #ffffff;
}

/* ===================================================================
   PROCESS SECTION
   =================================================================== */
.process-section {
  margin-bottom: 90px;
}

.process-steps-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  margin-top: 36px;
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.process-step:hover {
  border-color: var(--border-focus, rgba(168, 85, 247, 0.45));
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-4px);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.step-num {
  font-size: 1.35rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: var(--transition-smooth);
}

.process-step:hover .step-num {
  color: var(--accent-purple);
}

.step-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

html[dir="rtl"] .step-name {
  font-family: var(--font-arabic-heading), var(--font-arabic);
  font-size: 1rem;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.process-step:hover .step-icon {
  color: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 18px var(--accent-purple-glow, rgba(168, 85, 247, 0.3));
  transform: scale(1.08);
}

/* Direction-aware connector, aligned with the icon row (card padding 22px + icon 44px) */
.step-arrow-line {
  flex: 0 0 46px;
  height: 44px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  user-select: none;
  pointer-events: none;
}

.step-arrow-track {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-cyan), transparent);
  background-size: 200% 100%;
  opacity: 0.65;
  animation: stepFlowLTR 2.2s linear infinite;
}

.step-arrow-head {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-inline-start: -2px;
  filter: drop-shadow(0 0 6px var(--accent-cyan));
}

/* RTL: flow runs right-to-left; the chevron already points left (set in JS) */
html[dir="rtl"] .step-arrow-track {
  animation-name: stepFlowRTL;
}

@keyframes stepFlowLTR {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes stepFlowRTL {
  from { background-position: -100% 0; }
  to { background-position: 100% 0; }
}


/* ===================================================================
   METALLIC CTA BANNER
   =================================================================== */
.cta-banner-section {
  margin-bottom: 70px;
}

.cta-banner-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 48px;
  background: radial-gradient(ellipse at bottom left, rgba(168, 85, 247, 0.1) 0%, rgba(16, 19, 27, 0.95) 70%);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
}

.cta-sparkle {
  color: #c084fc;
  display: inline-block;
  margin-left: 6px;
  font-size: 1.4rem;
}

.cta-middle {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cta-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-cta-work {
  background: var(--metallic-primary);
  color: var(--text-dark);
  padding: 13px 26px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  width: fit-content;
}

.btn-cta-work:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.contact-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.meta-item i {
  color: #c084fc;
  font-size: 1rem;
  width: 18px;
}

.meta-value {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.meta-value:hover {
  color: #38bdf8;
}

.copyable-item {
  cursor: pointer;
}

.meta-info {
  display: flex;
  flex-direction: column;
}

.meta-tip {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 0 48px 0;
}

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

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

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

.connect-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: #ffffff;
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* ===================================================================
   FOLDER MODAL STYLES
   =================================================================== */
/* ===================================================================
   FOLDER MODAL — INTEGRATED MULTI-MEDIA SHOWCASE STAGE
   =================================================================== */
.folder-modal-card {
  max-width: 1040px;
  width: 95vw;
}

.folder-showcase-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 6px 12px 16px;
}

/* ===================================================================
   HIERARCHICAL FOLDER BREADCRUMBS & NESTED SUBFOLDERS
   =================================================================== */
.folder-breadcrumbs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(14, 16, 23, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.folder-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.folder-breadcrumb-item:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #ffffff;
}

.folder-breadcrumb-item.active {
  color: var(--accent-secondary);
  font-weight: 700;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  cursor: default;
}

.folder-breadcrumb-sep {
  color: var(--text-dim);
  font-size: 0.72rem;
  opacity: 0.6;
}

html[dir="rtl"] .folder-breadcrumb-sep i {
  transform: rotate(180deg);
}

/* Nested Subfolders Section inside Folder Modal */
.folder-subfolders-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(14, 16, 23, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.folder-subfolders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.folder-subfolders-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.folder-subfolders-title i {
  color: var(--accent-purple);
  font-size: 1.2rem;
}

.modal-subfolders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

/* Large, Attractive Subfolder Cards (matching media and folder cards) */
.modal-subfolder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(18, 21, 30, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.modal-subfolder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-purple-glow);
  background: rgba(24, 28, 42, 0.95);
}

.modal-subfolder-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090a10;
}

.modal-subfolder-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-subfolder-card:hover .modal-subfolder-cover-img {
  transform: scale(1.08);
}

.modal-subfolder-badge-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 16, 23, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  border-radius: var(--pill-radius);
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

html[dir="ltr"] .modal-subfolder-badge-pill {
  right: auto;
  left: 12px;
}

.modal-subfolder-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.6) 0%, rgba(16, 19, 27, 0.95) 100%);
}

.modal-subfolder-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.modal-subfolder-card:hover .modal-subfolder-title {
  color: #38bdf8;
}

.modal-subfolder-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-subfolder-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-subfolder-count-badge {
  font-size: 0.76rem;
  color: var(--accent-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-subfolder-cta {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.modal-subfolder-card:hover .modal-subfolder-cta {
  color: #ffffff;
}

.modal-subfolder-card:hover .modal-subfolder-cta i {
  transform: translateX(-4px);
}

html[dir="ltr"] .modal-subfolder-card:hover .modal-subfolder-cta i {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .modal-subfolders-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured Spotlight Stage */
.folder-spotlight-stage {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.spotlight-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.spotlight-active-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.spotlight-viewport:hover .spotlight-active-img {
  transform: scale(1.03);
}

.spotlight-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 16, 23, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  z-index: 5;
}

.spotlight-nav-btn:hover {
  background: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple-glow);
  transform: translateY(-50%) scale(1.1);
}

.spotlight-nav-btn.prev-btn {
  right: 18px;
}

.spotlight-nav-btn.next-btn {
  left: 18px;
}

.spotlight-badges-overlay {
  position: absolute;
  bottom: 14px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.spotlight-counter-badge {
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  pointer-events: auto;
}

.btn-spotlight-inspect {
  background: rgba(168, 85, 247, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  box-shadow: 0 0 16px var(--accent-purple-glow);
  transition: var(--transition-smooth);
}

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

.spotlight-meta-panel {
  padding: 20px 24px;
  background: rgba(14, 16, 23, 0.85);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.spotlight-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.spotlight-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 8px;
}

.spotlight-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.spotlight-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spotlight-tag-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 6px;
}

/* Gallery Thumbnails Matrix */
.folder-gallery-matrix-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.folder-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-items-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.folder-items-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

.folder-gallery-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.folder-gallery-thumb-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 16/10;
  transition: var(--transition-smooth);
}

.folder-gallery-thumb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.folder-gallery-thumb-card.active {
  border-color: var(--accent-purple);
  box-shadow: 0 0 18px var(--accent-purple-glow);
  transform: translateY(-3px);
}

.folder-gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.folder-gallery-thumb-card:hover .folder-gallery-thumb-img {
  transform: scale(1.08);
}

.thumb-order-indicator {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.thumb-title-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  padding: 14px 8px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .spotlight-viewport {
    height: 320px;
  }
  .folder-gallery-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   LIGHTBOX MODAL & INSPECTOR (IMMERSIVE FULL-SIZE INSPECTION)
   =================================================================== */
.lightbox-card {
  width: 98vw;
  max-width: 1560px;
  height: 96vh;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: rgba(6, 7, 12, 0.98);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.96);
  border-radius: 20px;
  animation: modalBorderPulseFlow 6s ease-in-out infinite;
}

.lightbox-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 9, 14, 0.9);
  z-index: 10;
}

.lightbox-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-sub {
  font-size: 0.8rem;
  color: #c084fc;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-return-lightbox {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-return-lightbox:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px var(--accent-purple-glow);
  transform: translateY(-1px);
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.zoom-btn:hover {
  background: #a855f7;
  color: #ffffff;
}

.lightbox-body {
  flex: 1;
  overflow: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(16, 18, 28, 0.9) 0%, rgba(4, 5, 8, 0.99) 100%);
  cursor: grab;
  padding: 16px;
}

.lightbox-body:active {
  cursor: grabbing;
}

.lightbox-stage {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.full-res-render {
  max-width: 95vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.15);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.lightbox-footer {
  padding: 10px 24px;
  background: rgba(8, 9, 12, 0.8);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.lightbox-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.inspect-hires-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
  padding: 6px 14px;
  border-radius: var(--pill-radius);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.inspect-hires-badge:hover {
  background: #a855f7;
  color: #ffffff;
}

/* Modals System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-radius: var(--card-radius);
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  animation: modalBorderPulseFlow 6s ease-in-out infinite;
}

/* Moving shimmering laser beam across the top border of the window */
.modal-card::before,
.lightbox-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent-purple) 25%, 
    var(--accent-cyan) 50%, 
    #ec4899 75%, 
    transparent 100%
  );
  background-size: 200% 100%;
  animation: borderShimmerBeam 3.5s linear infinite;
  z-index: 25;
  pointer-events: none;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

@keyframes modalBorderPulseFlow {
  0% {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.88),
                0 0 35px rgba(168, 85, 247, 0.3),
                inset 0 0 25px rgba(56, 189, 248, 0.05);
  }
  33% {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.88),
                0 0 42px rgba(56, 189, 248, 0.35),
                inset 0 0 25px rgba(168, 85, 247, 0.08);
  }
  66% {
    border-color: rgba(236, 72, 153, 0.75);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.88),
                0 0 38px rgba(236, 72, 153, 0.32),
                inset 0 0 25px rgba(56, 189, 248, 0.05);
  }
  100% {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.88),
                0 0 35px rgba(168, 85, 247, 0.3),
                inset 0 0 25px rgba(56, 189, 248, 0.05);
  }
}

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

.modal-header {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
}

.modal-footer {
  padding: 18px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* CV Paper */
.cv-paper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cv-header-block {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
}

.cv-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cv-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cv-sec-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

.cv-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.cv-skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cv-skill-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cv-skill-item strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.cv-skill-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Project Modal */
.project-modal-media {
  width: 100%;
  max-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.pm-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-desc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 16px 0 8px 0;
  text-transform: uppercase;
}

.pm-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pm-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--pill-radius);
  padding: 5px 14px;
  font-size: 0.75rem;
  color: #ffffff;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #12141a;
  color: #ffffff;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

.form-feedback {
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(14, 16, 23, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #10b981;
  font-weight: bold;
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (PROFESSIONAL MULTI-TIER ENGINE)
   =================================================================== */

/* --- 1. DESKTOP & LARGE LAPTOPS (<= 1200px) --- */
@media (max-width: 1200px) {
  .site-wrapper {
    max-width: 1140px;
    padding: 0 24px;
  }
  .folders-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* --- 2. TABLETS & SMALL LAPTOPS (<= 1024px) --- */
@media (max-width: 1024px) {
  .site-wrapper {
    padding: 0 20px;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero-visual {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }
  .hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 26px 32px;
  }
  .stat-divider {
    display: none;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cta-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    padding: 38px 32px;
  }
  .btn-cta-work {
    margin: 0 auto;
  }
  .contact-meta-list {
    align-items: center;
  }
  .process-steps-container {
    flex-direction: column;
    gap: 0;
  }
  .process-step {
    width: 100%;
  }
  /* Vertical connector pointing down for both languages */
  .step-arrow-line {
    flex: 0 0 40px;
    width: 44px;
    height: 40px;
    margin: 0 auto;
    transform: rotate(90deg);
  }
  html[dir="rtl"] .step-arrow-line {
    transform: rotate(-90deg);
  }
}

/* --- 3. TABLETS PORTRAIT & PHABLETS (<= 768px) --- */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 0;
  }
  .navbar.scrolled {
    padding: 11px 0;
  }
  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background: rgba(8, 9, 12, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 24px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--border-focus);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .nav-link:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
  }
  .mobile-menu-cta {
    display: block;
    width: 100%;
    margin-top: 8px;
  }
  .mobile-drawer-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  .mobile-toggle {
    display: flex;
  }

  /* Hero Visual Scaling */
  .hero-visual {
    min-height: 440px;
    overflow: hidden;
    width: 100%;
  }
  .hero-character-stage {
    height: 460px;
    max-width: 330px;
  }
  .orbiting-star-ring {
    width: 290px;
    height: 290px;
    margin-top: -145px;
    margin-left: -145px;
  }
  .counter-orbit-halo {
    width: 240px;
    height: 240px;
    margin-top: -120px;
    margin-left: -120px;
  }
  .cosmic-glow-backdrop {
    width: 280px;
    height: 280px;
  }
  .standing-character-img {
    max-height: 410px;
  }
  .character-ground-shadow {
    width: 180px;
  }
  .hero-character-stage .floating-badge,
  .availability-badge {
    top: 35px !important;
    bottom: auto !important;
    left: -20px !important;
    right: auto !important;
    transform: none !important;
    white-space: nowrap;
  }
  html[dir="rtl"] .hero-character-stage .floating-badge,
  html[dir="rtl"] .availability-badge {
    top: 35px !important;
    bottom: auto !important;
    right: -20px !important;
    left: auto !important;
    transform: none !important;
  }

  /* Projects & Folders */
  .folders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }

  /* Audio Showcase */
  .audio-player-interface {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .audio-play-toggle {
    margin: 0 auto;
  }
  .waveform-visualizer {
    justify-content: center;
  }

  /* Input zoom prevention for mobile Safari */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Spotlight in Folder Modal */
  .spotlight-viewport {
    height: 320px;
  }
  .folder-gallery-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 4. SMALL MOBILE HEADER CLEANUP (<= 640px) --- */
@media (max-width: 640px) {
  .nav-actions .btn-primary-metallic {
    display: none !important;
  }
  .folders-grid {
    grid-template-columns: 1fr;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 16px;
  }
}

/* --- 5. MOBILE PHONES (<= 480px) --- */
@media (max-width: 480px) {
  .site-wrapper {
    padding: 0 16px;
  }
  .navbar {
    padding: 12px 0;
  }
  .brand-logo {
    font-size: 1.25rem;
  }
  html[dir="rtl"] .brand-logo {
    font-size: 1.25rem;
  }
  .lang-toggle-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
    gap: 6px;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 22px 0 42px 0;
  }
  .hero-container {
    gap: 20px;
  }
  .hero-visual {
    order: 1;
    min-height: 350px;
    margin-bottom: 4px;
  }
  .hero-content {
    order: 2;
  }
  .hero-tagline-wrapper {
    margin-top: 4px;
    margin-bottom: 12px;
  }
  .hero-tagline-badge {
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 4px 12px;
  }
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 2.85rem) !important;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  html[dir="rtl"] .hero-title {
    font-size: clamp(2rem, 8.5vw, 2.7rem) !important;
    line-height: 1.35;
  }
  .hero-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
    text-align: center;
  }
  html[dir="rtl"] .hero-bio {
    font-size: 0.96rem !important;
    line-height: 1.8;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  /* Hero Visual & Character */
  .hero-character-stage {
    height: 370px;
    max-width: 280px;
  }
  .orbiting-star-ring {
    width: 250px;
    height: 250px;
    margin-top: -125px;
    margin-left: -125px;
  }
  .counter-orbit-halo {
    width: 210px;
    height: 210px;
    margin-top: -105px;
    margin-left: -105px;
  }
  .cosmic-glow-backdrop {
    width: 230px;
    height: 230px;
  }
  .standing-character-img {
    max-height: 340px;
  }
  .character-ground-shadow {
    width: 150px;
    height: 16px;
  }
  .hero-character-stage .floating-badge,
  .availability-badge {
    top: 25px !important;
    bottom: auto !important;
    left: -10px !important;
    padding: 7px 14px;
  }
  html[dir="rtl"] .hero-character-stage .floating-badge,
  html[dir="rtl"] .availability-badge {
    right: -10px !important;
    left: auto !important;
  }
  .badge-main {
    font-size: 0.72rem;
  }
  .badge-sub {
    font-size: 0.62rem;
  }

  /* Stats Section Mobile */
  .stats-section {
    margin: 18px 0 50px 0;
  }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px 14px;
    border-radius: 16px;
  }
  .stat-value {
    font-size: 1.65rem;
  }
  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
  }
  .stat-item {
    padding: 6px 2px;
  }

  /* Section Spacing & Headers */
  .featured-section,
  .capabilities-section,
  .audio-showcase-section,
  .process-section,
  .cta-banner-section {
    margin-bottom: 55px;
  }
  .section-header {
    margin-bottom: 22px;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title {
    font-size: 1.15rem;
  }
  .section-subtitle {
    font-size: 0.8rem;
  }

  /* Filter & View Tabs Horizontal Scroll */
  .portfolio-view-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    gap: 6px;
  }
  .portfolio-view-tabs::-webkit-scrollbar {
    display: none;
  }
  .view-tab-btn {
    padding: 7px 14px;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Folder & Project Cards */
  .folder-card {
    border-radius: 16px;
  }
  .folder-cover-container {
    aspect-ratio: 16/10;
  }
  .folder-info {
    padding: 16px;
  }
  .folder-title {
    font-size: 0.98rem;
  }
  .project-card {
    padding: 14px;
    border-radius: 16px;
  }
  .project-thumb-container {
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .project-name {
    font-size: 1rem;
  }

  /* Capabilities & Tools */
  .capability-item {
    gap: 14px;
  }
  .cap-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1rem;
    border-radius: 10px;
  }
  .cap-title {
    font-size: 0.85rem;
  }
  .cap-desc {
    font-size: 0.82rem;
  }
  .tools-card,
  .education-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tool-badge {
    padding: 8px 12px;
    gap: 12px;
  }

  /* Audio Demo Card */
  .audio-showcase-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .audio-showcase-title {
    font-size: 1.25rem;
  }
  .audio-showcase-desc {
    font-size: 0.82rem;
  }
  .audio-player-interface {
    padding: 16px 14px;
    border-radius: 14px;
    gap: 16px;
  }
  .audio-play-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  .audio-filter-modes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  /* Process Steps */
  .process-steps-container {
    gap: 0;
  }
  .process-step {
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
  }
  .step-arrow-line {
    flex-basis: 32px;
    height: 32px;
  }

  /* Metallic CTA Banner */
  .cta-banner-card {
    padding: 26px 18px;
    border-radius: 18px;
    text-align: center;
  }
  .cta-heading {
    font-size: clamp(1.45rem, 6.5vw, 1.95rem) !important;
  }
  html[dir="rtl"] .cta-heading {
    font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
  }
  .cta-note {
    font-size: 0.82rem;
  }
  .btn-cta-work {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
  .contact-meta-list {
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }
  .meta-item {
    justify-content: flex-start;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.82rem;
  }

  /* Footer */
  .site-footer {
    padding: 28px 0 36px 0;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .footer-right {
    flex-direction: column;
    gap: 12px;
  }

  /* All Modals On Mobile */
  .modal-backdrop {
    padding: 10px;
  }
  .modal-card,
  .folder-modal-card,
  .lightbox-card {
    width: 96vw;
    max-height: 94vh;
    border-radius: 16px;
    margin: auto;
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-title {
    font-size: 1.05rem;
  }
  .modal-body {
    padding: 16px 14px;
  }
  .modal-footer {
    padding: 12px 16px;
  }

  /* Folder Showcase Spotlight Stage */
  .folder-showcase-body {
    padding: 10px 12px 16px;
    gap: 16px;
  }
  .spotlight-viewport {
    height: 220px;
    border-radius: 12px;
  }
  .spotlight-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .spotlight-nav-btn.prev-btn {
    right: 8px;
  }
  .spotlight-nav-btn.next-btn {
    left: 8px;
  }
  .spotlight-badges-overlay {
    bottom: 8px;
    right: 8px;
    left: 8px;
  }
  .spotlight-counter-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .btn-spotlight-inspect {
    padding: 5px 10px;
    font-size: 0.7rem;
    gap: 5px;
  }
  .spotlight-meta-panel {
    padding: 12px 14px;
    gap: 8px;
  }
  .spotlight-title {
    font-size: 1.05rem;
  }
  .spotlight-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .folder-gallery-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .folder-gallery-thumb-card {
    border-radius: 10px;
  }

  /* Lightbox on Mobile */
  .lightbox-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .lightbox-title {
    font-size: 0.95rem;
  }
  .lightbox-controls {
    gap: 6px;
  }
  .zoom-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
  .full-res-render {
    max-width: 94vw;
    max-height: 60vh;
  }

  /* Toast Notification */
  .toast-notification {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

/* --- 6. ULTRA-COMPACT MOBILE SCREENS (<= 360px) --- */
@media (max-width: 360px) {
  .site-wrapper {
    padding: 0 10px;
  }
  .hero-title {
    font-size: 1.95rem !important;
  }
  html[dir="rtl"] .hero-title {
    font-size: 1.85rem !important;
  }
  .hero-character-stage {
    height: 320px;
    max-width: 240px;
  }
  .orbiting-star-ring {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
  }
  .counter-orbit-halo {
    width: 170px;
    height: 170px;
    margin-top: -85px;
    margin-left: -85px;
  }
  .cosmic-glow-backdrop {
    width: 190px;
    height: 190px;
  }
  .standing-character-img {
    max-height: 280px;
  }
  .character-ground-shadow {
    width: 130px;
  }
  .stats-container {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 10px;
  }
  .spotlight-viewport {
    height: 180px;
  }
  .folder-gallery-thumbnails-grid {
    grid-template-columns: 1fr;
  }
}
