/* ==========================================================================
   FIGMA COMMUNITY PORTFOLIO DESIGN SYSTEM: MIDNIGHT PURPLE & COSMIC AESTHETIC
   ========================================================================== */

:root {
  /* Canvas & Midnight Palette */
  --bg-canvas: #0b0714;
  --bg-card: rgba(22, 14, 38, 0.65);
  --bg-card-hover: rgba(30, 20, 52, 0.85);
  --bg-glass-float: rgba(18, 11, 33, 0.85);

  /* Accents & Glows */
  --color-purple-accent: #c084fc;
  --color-purple-bright: #a855f7;
  --color-purple-deep: #7e22ce;
  --color-glow: rgba(168, 85, 247, 0.3);

  /* Text Colors */
  --text-white: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Syne', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Borders & Glass */
  --border-card: rgba(192, 132, 252, 0.12);
  --border-card-hover: rgba(192, 132, 252, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Transitions */
  --trans: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-muted);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: #261642;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b2266;
}

/* Container */
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ATMOSPHERIC COSMIC GLOW ORBS
   ========================================================================== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
}

.glow-orb-top-left {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, transparent 70%);
  top: -60px;
  left: -100px;
}

.glow-orb-mid-right {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  top: 700px;
  right: -120px;
}

.glow-orb-center-orbit {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
  top: 1300px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-orb-bottom-left {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  bottom: 300px;
  left: -80px;
}

/* ==========================================================================
   NAVIGATION (FIGMA MINIMAL HEADER + LANG SWITCHER)
   ========================================================================== */
.figma-header {
  position: sticky;
  top: 0;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  z-index: 100;
  background: rgba(11, 7, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.08);
  transition: all 0.3s ease;
}

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

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

.figma-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.25rem;
}

.brand-hello-world {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 35%, #c084fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.5));
  transition: all var(--trans);
  display: inline-block;
  direction: ltr !important;
  user-select: none;
}

.figma-brand:hover .brand-hello-world {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 35%, #38bdf8 70%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.85));
}

[dir="rtl"] .brand-hello-world {
  direction: ltr !important;
}

.nav-right-cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.figma-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-item {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--trans);
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-white);
}

/* Language Switcher Button (EN / کوردی) */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 20, 52, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  color: #9ca3af;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  backdrop-filter: blur(8px);
}

.lang-switcher-btn:hover {
  border-color: var(--color-purple-accent);
  background: rgba(45, 30, 75, 0.95);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.3);
}

.lang-opt {
  transition: color var(--trans);
}

.lang-opt.active {
  color: var(--color-purple-accent);
  font-weight: 700;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* ==========================================================================
   RTL / KURDISH LANGUAGE STYLING (کۆدی کوردی)
   ========================================================================== */
[dir="rtl"] {
  font-family: 'Vazirmatn', var(--font-primary);
  text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-family: 'Vazirmatn', var(--font-primary);
  letter-spacing: normal;
}

[dir="rtl"] .quote-title {
  line-height: 1.35;
}

[dir="rtl"] .engineer-bio,
[dir="rtl"] .card-description,
[dir="rtl"] .floating-glass-card,
[dir="rtl"] .contact-description {
  line-height: 1.85;
}

[dir="rtl"] .typing-cursor {
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .project-action-circle {
  transform: rotate(180deg);
}

[dir="rtl"] .card-icon-box {
  order: 2;
}

[dir="rtl"] .card-content {
  order: 1;
}

[dir="rtl"] .contact-info-pill:hover:not(.static-pill) {
  transform: translateX(-4px);
}

[dir="rtl"] .project-stack-label {
  margin-left: 0;
  margin-right: 0.6rem;
  direction: ltr;
  display: inline-block;
}

[dir="rtl"] .backend-code-snippet {
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .flex-item {
  direction: ltr;
  justify-content: flex-end;
}

[dir="rtl"] .contact-pill-value {
  direction: ltr;
  display: inline-block;
  text-align: right;
}

/* ==========================================================================
   HERO SECTION (FIGMA SPECIFIC)
   ========================================================================== */
.hero-section {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-greeting {
  margin-bottom: 2.5rem;
}

.greeting-pill {
  font-size: 0.95rem;
  color: #9ca3af;
  font-family: var(--font-primary);
  font-weight: 500;
}

.text-purple-accent {
  color: var(--color-purple-accent);
  font-weight: 600;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

/* Memoji Spotlight */
.memoji-spotlight-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.memoji-aura {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.6) 0%, rgba(147, 51, 234, 0.2) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(25px);
  z-index: 1;
}

.memoji-img-frame {
  position: relative;
  z-index: 2;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
  transition: transform var(--trans);
}

.memoji-img-frame:hover {
  transform: scale(1.03);
}

.memoji-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animated Hello World Circle (replaces static image) */
.memoji-img-frame.hello-world-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 35%, rgba(26, 18, 48, 0.96), rgba(10, 8, 22, 0.98));
  border: 2px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 35px rgba(168, 85, 247, 0.45), inset 0 0 25px rgba(168, 85, 247, 0.15);
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.memoji-img-frame.hello-world-circle {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.memoji-img-frame.hello-world-circle:hover {
  border-color: #38bdf8;
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(56, 189, 248, 0.6),
    inset 0 0 30px rgba(168, 85, 247, 0.3);
}

.memoji-img-frame.hello-world-circle:focus,
.memoji-img-frame.hello-world-circle:focus-visible,
.memoji-img-frame.hello-world-circle:active {
  outline: none !important;
}

.memoji-spotlight-wrapper:hover .memoji-aura {
  transform: scale(1.3);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.7) 0%, rgba(168, 85, 247, 0.45) 50%, transparent 75%);
  filter: blur(35px);
  transition: transform 0.4s ease, filter 0.4s ease, background 0.4s ease;
}

.circle-text-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: spinCircularText 16s linear infinite;
  transform-origin: center center;
  pointer-events: none;
}

.memoji-img-frame.hello-world-circle:hover .circle-text-svg {
  animation-duration: 5s;
}

.circle-svg-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  fill: #c084fc;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
  transition: fill 0.3s ease, text-shadow 0.3s ease;
}

.memoji-img-frame.hello-world-circle:hover .circle-svg-text {
  fill: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.9);
}

@keyframes spinCircularText {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.circle-center-text {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 800;
  direction: ltr !important;
  unicode-bidi: isolate;
  pointer-events: none;
}

[dir="rtl"] .circle-center-text {
  direction: ltr !important;
  unicode-bidi: isolate;
}

.typewriter-text {
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 30%, #c084fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.6);
  white-space: nowrap;
  letter-spacing: -0.01em;
  min-height: 1.2em;
  transition: text-shadow 0.3s ease;
}

.memoji-img-frame.hello-world-circle:hover .typewriter-text {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 40%, #38bdf8 80%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.95), 0 0 45px rgba(192, 132, 252, 0.6);
}

.typewriter-cursor {
  color: #38bdf8;
  font-weight: 800;
  font-size: 1.45rem;
  margin-left: 2px;
  animation: cursorBlink 0.9s infinite;
  transition: color 0.3s ease;
}

.memoji-img-frame.hello-world-circle:hover .typewriter-cursor {
  color: #c084fc;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Typography Tagline */
.hero-typography-block {
  display: flex;
  flex-direction: column;
}

.quote-intro {
  font-size: 1.15rem;
  color: #d1d5db;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.quote-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.pill-highlight {
  display: inline-block;
  padding: 0;
  border: none;
  background: linear-gradient(90deg, #38bdf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-purple-accent);
}

[dir="ltr"] .pill-highlight {
  background: linear-gradient(90deg, #c084fc 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.quote-sub {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.65;
}

/* Statement Block: I'm a Software Engineer */
.hero-statement-block {
  max-width: 780px;
}

.engineer-headline {
  font-size: 2.15rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  display: block;
}

.typing-cursor {
  color: var(--color-purple-accent);
  margin-left: 2px;
  animation: blink 1s infinite;
  display: inline-block;
}

[dir="rtl"] .typing-cursor {
  margin-left: 0;
  margin-right: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.role-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.role-caption {
  font-size: 0.95rem;
  color: #9ca3af;
}

.role-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 600;
}

.engineer-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9ca3af;
  max-width: 680px;
}

/* ==========================================================================
   WORK EXPERIENCE SECTION (2x2 CARDS)
   ========================================================================== */
.work-section {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.work-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.work-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.2rem;
  transition: all var(--trans);
  overflow: hidden;
}

.work-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.15);
}

.card-accent-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.work-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.4rem;
}

.card-icon-box {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bg-purple-glow-icon {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.bg-pink-glow-icon {
  background: rgba(244, 114, 182, 0.15);
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.25);
}

.bg-blue-glow-icon {
  background: rgba(96, 165, 250, 0.15);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.25);
}

.bg-cyan-glow-icon {
  background: rgba(45, 212, 191, 0.15);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.25);
}

.card-svg {
  width: 1.6rem;
  height: 1.6rem;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.6rem;
}

.card-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #9ca3af;
  margin-bottom: 1.3rem;
}

.card-pill-btn {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-purple-accent);
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all var(--trans);
}

.card-pill-btn:hover {
  background: rgba(192, 132, 252, 0.2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

/* ==========================================================================
   CROSS-FUNCTIONAL BANNER & TECH BADGES
   ========================================================================== */
.team-banner-section {
  padding: 2rem 0 3rem 0;
}

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

.team-banner-sub {
  font-size: 1.25rem;
  color: #d1d5db;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.2rem;
}

.highlight-purple-link {
  color: var(--color-purple-accent);
  text-decoration: underline;
  text-decoration-color: rgba(192, 132, 252, 0.4);
  text-underline-offset: 4px;
}

.tech-circular-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.circular-tech-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26, 16, 44, 0.7);
  border: 1px solid rgba(192, 132, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: all var(--trans);
}

.circular-tech-badge:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: var(--color-purple-accent);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.4);
}

.tech-icon-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #e5e7eb;
}

/* ==========================================================================
   CENTRAL COSMIC PLANETARY ORBIT
   ========================================================================== */
.cosmic-orbit-wrapper {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 0 auto 4rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-glow-center {
  position: absolute;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, transparent 70%);
  filter: blur(15px);
  border-radius: 50%;
}

.central-core-emblem.hello-world-orbit {
  position: relative;
  z-index: 5;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(28, 18, 52, 0.98), rgba(10, 8, 22, 0.99));
  border: 1.5px solid rgba(192, 132, 252, 0.45);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(168, 85, 247, 0.45),
    inset 0 0 16px rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  user-select: none;
  overflow: hidden;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.central-core-emblem.hello-world-orbit:hover {
  transform: scale(1.1);
  border-color: #38bdf8;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(192, 132, 252, 0.7),
    inset 0 0 20px rgba(168, 85, 247, 0.3);
}

.central-core-emblem.hello-world-orbit:focus,
.central-core-emblem.hello-world-orbit:focus-visible,
.central-core-emblem.hello-world-orbit:active {
  outline: none !important;
}

.orbit-center-text {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  direction: ltr !important;
  unicode-bidi: isolate;
  width: 100%;
}

[dir="rtl"] .orbit-center-text {
  direction: ltr !important;
  unicode-bidi: isolate;
}

.orbit-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: normal;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 30%, #c084fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
  transition: text-shadow 0.3s ease;
}

.central-core-emblem.hello-world-orbit:hover .orbit-text {
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 40%, #38bdf8 80%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.95), 0 0 30px rgba(192, 132, 252, 0.6);
}

.orbit-cursor {
  color: #38bdf8;
  font-weight: 800;
  font-size: 0.65rem;
  line-height: 1;
  vertical-align: baseline;
  margin-left: 1px;
  animation: cursorBlink 0.9s infinite;
  transition: color 0.3s ease;
}

.central-core-emblem.hello-world-orbit:hover .orbit-cursor {
  color: #c084fc;
}

/* Concentric Elliptical Orbit Rings */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(192, 132, 252, 0.25);
  pointer-events: none;
}

.orbit-ring-1 {
  width: 190px;
  height: 70px;
  transform: rotate(-12deg);
}

.orbit-ring-2 {
  width: 260px;
  height: 90px;
  transform: rotate(-12deg);
}

.orbit-ring-3 {
  width: 320px;
  height: 115px;
  transform: rotate(-12deg);
}

.satellite-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--color-purple-accent);
  box-shadow: 0 0 8px #ffffff;
}

.dot-1 {
  width: 5px;
  height: 5px;
  top: 38px;
  left: 45px;
}

.dot-2 {
  width: 6px;
  height: 6px;
  bottom: 32px;
  right: 40px;
}

.dot-3 {
  width: 4px;
  height: 4px;
  top: 15px;
  right: 75px;
}

/* ==========================================================================
   FEATURED PROJECTS (FIGMA STAGGERED LAYOUT WITH FLOATING GLASS CARDS)
   ========================================================================== */
.projects-section {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.figma-project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 6.5rem;
  position: relative;
}

.figma-project-row.reverse-row {
  grid-template-columns: 1fr 1fr;
}

.figma-project-row.reverse-row .project-info-side {
  order: 2;
}

.figma-project-row.reverse-row .project-preview-side {
  order: 1;
}

.project-info-side {
  position: relative;
  z-index: 5;
}

.project-tag-pill {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-purple-accent);
  margin-bottom: 0.4rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-showcase-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

/* Floating Glassmorphic Overlapping Card */
.floating-glass-card {
  background: var(--bg-glass-float);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.6rem;
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.65;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.1);
  margin-bottom: 1.4rem;
}

.project-meta-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-action-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 20, 52, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans);
}

.project-action-circle:hover {
  background: var(--color-purple-accent);
  color: #000000;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.5);
  transform: translateY(-2px);
}

.project-stack-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #9ca3af;
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Browser Preview Mockup (Clean Figma Aesthetic) */
.project-preview-side {
  position: relative;
  z-index: 3;
}

.figma-browser-frame {
  background: #110c1e;
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.browser-dots {
  background: #171128;
  padding: 0.55rem 0.9rem;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #372856;
}

.browser-body {
  padding: 1.4rem;
  min-height: 240px;
  background: #0d081b;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-screenshot-body {
  padding: 0 !important;
  background: #090614;
  overflow: hidden;
}

.project-screenshot-img {
  width: 100%;
  height: 100%;
  max-height: 290px;
  display: block;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.figma-browser-frame:hover .project-screenshot-img {
  transform: scale(1.035);
}

/* Birwin Mobile App Mockup Frame */
.birwin-screenshot-body {
  background: radial-gradient(circle at center, #180f33 0%, #080413 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 0.85rem 0.5rem !important;
}

.birwin-img {
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain !important;
  object-position: center center !important;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.8));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.figma-browser-frame:hover .birwin-img {
  transform: scale(1.04);
}

/* ==========================================================================
   INTERACTIVE CAROUSEL IN PROJECT SHOWCASE
   ========================================================================== */
.browser-dots.has-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.browser-dots-cluster {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-pill-indicators {
  display: flex;
  gap: 6px;
}

.carousel-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: #9ca3af;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--trans);
}

.carousel-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--color-purple-accent);
}

.carousel-tab-btn.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(56, 189, 248, 0.35));
  border-color: #c084fc;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 290px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.98);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: scale(1);
}

.carousel-caption-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(10, 8, 20, 0.88);
  border: 1px solid rgba(192, 132, 252, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e9d5ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 4;
}

[dir="rtl"] .carousel-caption-badge {
  left: auto;
  right: 14px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 10, 30, 0.8);
  border: 1px solid rgba(192, 132, 252, 0.35);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--trans);
  backdrop-filter: blur(6px);
  user-select: none;
}

.carousel-arrow:hover {
  background: var(--color-purple-accent);
  color: #000000;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots-nav {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 5;
}

[dir="rtl"] .carousel-dots-nav {
  right: auto;
  left: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(192, 132, 252, 0.3);
  cursor: pointer;
  transition: all var(--trans);
}

.carousel-dot.active {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  width: 22px;
  border-radius: 4px;
}

.ui-mock-header {
  display: flex;
  justify-content: space-between;
}

.ui-mock-box {
  height: 14px;
  background: #1f1636;
  border-radius: 4px;
}

.w-12 {
  width: 48px;
}

.w-16 {
  width: 64px;
}

.w-24 {
  width: 96px;
}

.w-28 {
  width: 112px;
}

.ui-wireframe-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.wireframe-chart-tile {
  background: #150f26;
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 10px;
  padding: 1rem;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-line-graphic {
  height: 60px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.3) 0%, transparent 80%);
  border-bottom: 2px solid var(--color-purple-accent);
  border-radius: 4px;
}

.chart-text-placeholder {
  height: 10px;
  width: 65%;
  background: #241840;
  border-radius: 3px;
}

.wireframe-list-tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.list-item-wire {
  height: 28px;
  background: #150f26;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.wireframe-radar-tile {
  background: #150f26;
  border: 1px solid rgba(192, 132, 252, 0.1);
  border-radius: 10px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--color-purple-accent);
  box-shadow: 0 0 15px var(--color-purple-accent);
  animation: radar-ping 2s infinite ease-out;
}

@keyframes radar-ping {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ==========================================================================
   HERO BUTTONS & NEW UTILITIES (CV INTEGRATION)
   ========================================================================== */
.location-text {
  color: #a78bfa;
  font-weight: 500;
  font-size: 0.88rem;
}

.hero-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-figma-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transition: all var(--trans);
}

.btn-figma-primary:hover {
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
  box-shadow: 0 0 28px rgba(192, 132, 252, 0.6);
  transform: translateY(-2px);
}

.btn-figma-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: rgba(30, 20, 52, 0.7);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: all var(--trans);
}

.btn-figma-secondary:hover {
  background: rgba(45, 30, 75, 0.9);
  border-color: var(--color-purple-accent);
  transform: translateY(-2px);
}

.btn-figma-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: transparent;
  color: #d1d5db;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--trans);
}

.btn-figma-ghost:hover {
  color: var(--text-white);
  border-color: var(--color-purple-accent);
  background: rgba(168, 85, 247, 0.08);
}

/* ==========================================================================
   BACKEND & ORACLE WIREFRAME PREVIEWS
   ========================================================================== */
.backend-code-snippet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #e5e7eb;
}

.c-purple {
  color: #c084fc;
  font-weight: 600;
}

.c-dim {
  color: #6b7280;
  font-style: italic;
}

.flex-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #d1d5db;
}

.mini-status-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
}

.ora-badge {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
}

.schema-box {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.schema-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.3rem;
}

.schema-fields {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #9ca3af;
}

/* ==========================================================================
   CONTACT CARDS (CV INFORMATION)
   ========================================================================== */
.contact-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.contact-info-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(22, 14, 38, 0.8);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--trans);
}

.contact-info-pill:hover:not(.static-pill) {
  border-color: var(--color-purple-accent);
  background: rgba(32, 20, 54, 0.95);
  transform: translateX(4px);
}

.static-pill {
  cursor: default;
}

.contact-pill-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-pill-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-pill-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #9ca3af;
}

.contact-pill-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-white);
}

.pill-action-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-purple-accent);
  background: rgba(192, 132, 252, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(192, 132, 252, 0.2);
}

/* ==========================================================================
   CONTACT / FOOTER SECTION (FIGMA SPECIFIC)
   ========================================================================== */
.contact-footer-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-container {
  max-width: 640px;
}

.contact-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.contact-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #9ca3af;
  margin-bottom: 1.8rem;
}

.email-link-row {
  margin-bottom: 2rem;
}

.email-click-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
}

.email-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: underline;
  text-decoration-color: var(--color-purple-accent);
  text-underline-offset: 4px;
  transition: color var(--trans);
}

.email-click-btn:hover .email-text {
  color: var(--color-purple-accent);
}

.copy-hint {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-purple-accent);
  background: rgba(192, 132, 252, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(192, 132, 252, 0.2);
}

/* ==========================================================================
   MODERN FLOATING SOCIAL ORB ICONS
   ========================================================================== */
.social-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2.8rem;
  padding-bottom: 1.5rem;
}

.social-icon-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(22, 14, 38, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(192, 132, 252, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-icon-btn .social-svg {
  width: 24px;
  height: 24px;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.social-icon-btn:hover {
  transform: translateY(-7px) scale(1.1);
}

.social-icon-btn:hover .social-svg {
  transform: scale(1.12);
}

/* Telegram Glowing Pill */
.social-tg {
  color: #38bdf8;
}
.social-tg:hover {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.7);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.4), 0 0 22px rgba(56, 189, 248, 0.45);
}

/* Facebook Glowing Pill */
.social-fb {
  color: #60a5fa;
}
.social-fb:hover {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.7);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4), 0 0 22px rgba(96, 165, 250, 0.45);
}

/* Instagram Glowing Pill */
.social-ig {
  color: #f472b6;
}
.social-ig:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.22) 0%, rgba(253, 89, 73, 0.22) 50%, rgba(131, 58, 180, 0.22) 100%);
  border-color: rgba(244, 114, 182, 0.8);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(225, 48, 108, 0.45), 0 0 25px rgba(244, 114, 182, 0.5);
}

/* WhatsApp Glowing Pill */
.social-wa {
  color: #4ade80;
}
.social-wa:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.7);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4), 0 0 22px rgba(74, 222, 128, 0.45);
}

/* Animated Floating Label Tooltip */
.social-tooltip {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f3f4f6;
  background: rgba(16, 10, 28, 0.95);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 0.22rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.social-icon-btn:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.figma-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1c1230;
  border: 1px solid var(--color-purple-accent);
  color: #ffffff;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(192, 132, 252, 0.4);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--trans);
}

.figma-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* Helper icon utilities */
.w-3\.5 {
  width: 0.875rem;
}

.h-3\.5 {
  height: 0.875rem;
}

.w-4 {
  width: 1rem;
  min-width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
  min-width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

/* ==========================================================================
   BODY SCROLL LOCK WHEN MOBILE DRAWER IS OPEN
   ========================================================================== */
body.menu-locked {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS: TABLET, MOBILE, & SMALL SCREENS
   ========================================================================== */

/* --- TABLET & MEDIUM SCREENS (<= 900px) --- */
@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
  }

  .memoji-spotlight-wrapper {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .quote-title {
    font-size: 2.6rem;
  }

  .hero-statement-block {
    margin: 0 auto;
    text-align: center;
  }

  .role-badge-row {
    justify-content: center;
  }

  .hero-actions-row {
    justify-content: center;
  }

  .work-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .figma-project-row,
  .figma-project-row.reverse-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4.5rem;
  }

  .figma-project-row.reverse-row .project-info-side {
    order: 1;
  }

  .figma-project-row.reverse-row .project-preview-side {
    order: 2;
  }
}

/* --- MOBILE SCREENS & HAMBURGER NAVIGATION (<= 768px) --- */
@media (max-width: 768px) {
  /* Header & Navigation */
  .figma-header {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .nav-right-cluster {
    gap: 0.75rem;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(30, 20, 52, 0.85);
    border: 1px solid rgba(192, 132, 252, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all var(--trans);
    z-index: 101;
    touch-action: manipulation;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:focus-visible {
    background: rgba(45, 30, 75, 0.95);
    border-color: var(--color-purple-accent);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.4);
    outline: none;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .mobile-menu-btn.open .line-1 {
    transform: translateY(7px) rotate(45deg);
    background: var(--color-purple-accent);
  }

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

  .mobile-menu-btn.open .line-3 {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--color-purple-accent);
  }

  /* Glassmorphic Mobile Drawer */
  .figma-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(12, 7, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(192, 132, 252, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.25);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
    gap: 0.65rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    z-index: 99;
  }

  .figma-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .figma-nav .nav-item {
    font-size: 1.12rem;
    font-weight: 600;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--trans);
    min-height: 48px;
  }

  .figma-nav .nav-item:hover,
  .figma-nav .nav-item.active {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.45);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.25);
    transform: translateX(4px);
  }

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

  /* Atmospheric Glows optimized for mobile */
  .glow-orb {
    width: 320px !important;
    height: 320px !important;
    filter: blur(90px) !important;
    opacity: 0.6;
  }

  /* Section Spacings on Mobile */
  .hero-section {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }

  .work-section {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .projects-section {
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
  }

  .contact-footer-section {
    padding-top: 2rem;
    padding-bottom: 5rem;
  }

  /* Mobile Toast */
  .figma-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.75rem 1.1rem;
  }
}

/* --- SMARTPHONE OPTIMIZATIONS (<= 600px) --- */
@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero Section */
  .greeting-pill {
    font-size: 0.84rem;
    padding: 0.35rem 0.9rem;
  }

  .memoji-img-frame.hello-world-circle {
    width: 200px;
    height: 200px;
  }

  .memoji-aura {
    width: 210px;
    height: 210px;
  }

  .circle-center-text {
    font-size: 1.3rem;
  }

  .quote-title {
    font-size: 2.15rem;
    line-height: 1.22;
    margin-bottom: 0.6rem;
  }

  .quote-sub {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .quote-sub br {
    display: none;
  }

  .engineer-headline {
    font-size: 1.55rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }

  .engineer-headline br {
    display: inline;
  }

  .role-caption {
    font-size: 0.82rem;
  }

  .role-company-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.7rem;
    gap: 0.4rem;
  }

  .engineer-bio {
    font-size: 0.92rem;
    line-height: 1.75;
    text-align: center;
  }

  .btn-figma-primary {
    width: 100%;
    max-width: 290px;
    min-height: 48px;
    justify-content: center;
    font-size: 0.95rem;
  }

  /* Work / Competency Cards */
  .section-heading {
    font-size: 1.65rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .work-card {
    padding: 1.35rem;
    border-radius: 16px;
  }

  .work-card-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  /* RTL Fix: Icon stays at top of card */
  [dir="rtl"] .card-icon-box {
    order: 0 !important;
  }

  [dir="rtl"] .card-content {
    order: 1 !important;
  }

  .card-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
  }

  .card-svg {
    width: 22px;
    height: 22px;
  }

  .card-title {
    font-size: 1.16rem;
    margin-bottom: 0.45rem;
  }

  .card-description {
    font-size: 0.89rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
  }

  .card-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    text-align: center;
    font-size: 0.78rem;
  }

  /* Tech circular badges & Cosmic Orbit */
  .team-banner-section {
    padding: 1.5rem 0;
  }

  .tech-circular-row {
    gap: 0.65rem;
    margin-bottom: 2.2rem;
  }

  .circular-tech-badge {
    width: 44px;
    height: 44px;
  }

  .tech-icon-label {
    font-size: 0.65rem;
  }

  .cosmic-orbit-wrapper {
    transform: scale(0.8);
    margin: 0 auto 2.2rem auto;
  }

  /* Projects Section */
  .figma-project-row,
  .figma-project-row.reverse-row {
    gap: 1.6rem;
    margin-bottom: 3.6rem;
  }

  .project-showcase-title {
    font-size: 1.32rem;
    line-height: 1.35;
    margin-bottom: 0.85rem;
  }

  .floating-glass-card {
    padding: 1.15rem;
    border-radius: 14px;
    margin-bottom: 0.85rem;
  }

  .floating-glass-card p {
    font-size: 0.89rem;
    line-height: 1.72;
  }

  .project-stack-label {
    font-size: 0.73rem;
    white-space: normal;
    line-height: 1.65;
    display: inline-block;
  }

  .figma-browser-frame {
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
  }

  .project-screenshot-img {
    max-height: 220px;
  }

  .birwin-screenshot-body {
    min-height: 230px;
    padding: 0.65rem 0.4rem !important;
  }

  .birwin-img {
    max-height: 230px;
  }

  /* Contact Section */
  .contact-title {
    font-size: 1.85rem;
  }

  .contact-description {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
  }

  .social-icons-row {
    gap: 0.9rem;
    margin-top: 1.8rem;
  }

  .social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .social-icon-btn .social-svg {
    width: 21px;
    height: 21px;
  }
}

/* --- SMALL PHONES (<= 380px: iPhone SE, Galaxy A-series) --- */
@media (max-width: 380px) {
  .quote-title {
    font-size: 1.85rem;
  }

  .engineer-headline {
    font-size: 1.35rem;
  }

  .memoji-img-frame.hello-world-circle {
    width: 175px;
    height: 175px;
  }

  .memoji-aura {
    width: 185px;
    height: 185px;
  }

  .circle-center-text {
    font-size: 1.15rem;
  }

  .cosmic-orbit-wrapper {
    transform: scale(0.68);
    margin: 0 auto 1.6rem auto;
  }

  .social-icons-row {
    gap: 0.65rem;
  }

  .social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .social-icon-btn .social-svg {
    width: 19px;
    height: 19px;
  }

  .lang-switcher-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.75rem;
  }

  .brand-hello-world {
    font-size: 1rem;
  }

  .work-card {
    padding: 1.1rem;
  }
}