/* ==========================================================================
   ABDULLAH — FULL-STACK DEVELOPER PORTFOLIO
   Design System & Main Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Deep Slate Space & Dark Luxury */
  --bg-darkest: #05070e;
  --bg-primary: #080d1a;
  --bg-secondary: #0e162b;
  --bg-card: rgba(14, 23, 44, 0.72);
  --bg-card-hover: rgba(22, 36, 68, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-heavy: rgba(10, 16, 32, 0.88);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);
  --border-cyan-glow: rgba(6, 182, 212, 0.35);

  /* Accents & Brand Colors */
  --accent-indigo: #6366f1;
  --accent-indigo-light: #818cf8;
  --accent-indigo-glow: rgba(99, 102, 241, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-purple: #a855f7;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gradient-main: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  --text-gradient-accent: linear-gradient(135deg, #67e8f9 0%, #818cf8 50%, #c084fc 100%);
  --text-gradient-gold: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 35px -8px rgba(0, 0, 0, 0.5), 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow-indigo: 0 0 30px rgba(99, 102, 241, 0.22);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);

  /* Layout & Sizing */
  --max-width: 1240px;
  --navbar-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* RTL Specific Overrides for Arabic */
[dir="rtl"] {
  --font-body: var(--font-arabic);
  --font-display: var(--font-arabic);
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] .project-title,
[dir="rtl"] .nav-link {
  font-family: var(--font-arabic);
}

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

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

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-indigo);
}

/* Selection Color */
::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #fff;
}

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

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

input, textarea {
  font-family: inherit;
}

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

/* --- Starry Glow Background Canvas & Ambient Orbs --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-glow-1 {
  top: -10%;
  left: 10%;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
}

.ambient-glow-2 {
  top: 45%;
  right: -5%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.ambient-glow-3 {
  bottom: 5%;
  left: 20%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.15); }
  100% { transform: translate(-30px, -40px) scale(0.95); }
}

/* --- Custom Animated Cursor Tracker Suite --- */
.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.35s ease;
  opacity: 0;
  will-change: transform, opacity;
}

body:hover .cursor-spotlight {
  opacity: 1;
}

/* Central Glowing Cursor Dot */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #06b6d4, 0 0 20px rgba(6, 182, 212, 0.9);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  opacity: 0;
  will-change: transform, left, top;
}

/* Outer Liquid Glass Droplet Lens (Zero text blur, high crystal clarity) */
.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  /* Prismatic liquid glass border with glossy specular shine */
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(99, 102, 241, 0.02) 100%);
  /* 3D Liquid Lens internal highlights & soft iridescent drop glow - NO BLUR */
  box-shadow: 
    inset 0 1.5px 3px rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 3px rgba(6, 182, 212, 0.3),
    0 0 18px rgba(6, 182, 212, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.25);
  /* Crystal-clear visibility for underlying text */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              background 0.3s ease, 
              box-shadow 0.3s ease, 
              opacity 0.3s ease;
  opacity: 0;
  will-change: transform, left, top, width, height;
  animation: liquidBubbleMorph 7s ease-in-out infinite alternate;
}

/* Organic Liquid Droplet Idle Deformation */
@keyframes liquidBubbleMorph {
  0% {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  33% {
    border-radius: 58% 42% 55% 45% / 46% 54% 46% 54%;
  }
  66% {
    border-radius: 45% 55% 43% 57% / 55% 45% 57% 43%;
  }
  100% {
    border-radius: 53% 47% 57% 43% / 47% 53% 45% 55%;
  }
}

/* Cursor Visible State */
.custom-cursor-dot.visible,
.custom-cursor-ring.visible {
  opacity: 1;
}

/* Liquid Glass Hover State (Expanded Water Droplet Lens) */
.custom-cursor-ring.cursor-hover {
  width: 62px;
  height: 62px;
  border-color: rgba(34, 211, 238, 0.85);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28) 0%, rgba(6, 182, 212, 0.12) 45%, rgba(99, 102, 241, 0.05) 100%);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -2px 5px rgba(6, 182, 212, 0.4),
    0 0 25px rgba(6, 182, 212, 0.45),
    0 0 45px rgba(99, 102, 241, 0.2);
  animation: liquidBubbleHover 3.5s ease-in-out infinite alternate;
}

@keyframes liquidBubbleHover {
  0% {
    border-radius: 55% 45% 58% 42% / 48% 52% 48% 52%;
  }
  50% {
    border-radius: 46% 54% 44% 56% / 54% 46% 54% 46%;
  }
  100% {
    border-radius: 57% 43% 52% 48% / 46% 56% 44% 54%;
  }
}

.custom-cursor-dot.cursor-hover {
  background: #38bdf8;
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 16px #38bdf8, 0 0 28px rgba(56, 189, 248, 0.9);
}

/* Active Click Liquid Compression State */
.custom-cursor-ring.cursor-click {
  width: 32px;
  height: 32px;
  border-color: rgba(52, 211, 153, 0.95);
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35) 0%, rgba(16, 185, 129, 0.2) 60%, transparent 100%);
  box-shadow: 
    inset 0 1.5px 3px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(16, 185, 129, 0.6);
  transform: translate(-50%, -50%) scale(0.85);
}

.custom-cursor-dot.cursor-click {
  transform: translate(-50%, -50%) scale(0.5);
  background: var(--accent-emerald-light);
}

/* Text Input Focus State (Liquid Glass Vertical Bar) */
.custom-cursor-ring.cursor-text {
  width: 3px;
  height: 28px;
  border-radius: 3px;
  border-color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-indigo) 100%);
  box-shadow: 0 0 12px var(--accent-cyan), 0 0 22px rgba(6, 182, 212, 0.6);
  animation: none;
}

.custom-cursor-dot.cursor-text {
  opacity: 0;
}

/* Dynamic Click Liquid Shockwave Ripple */
.cursor-click-ripple {
  position: fixed;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    inset 0 0 8px rgba(6, 182, 212, 0.4),
    0 0 18px rgba(6, 182, 212, 0.5);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  animation: rippleShockwave 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rippleShockwave {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  100% {
    width: 80px;
    height: 80px;
    opacity: 0;
    border-color: rgba(99, 102, 241, 0);
  }
}

/* Gracefully Disable on Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  .cursor-spotlight,
  .cursor-click-ripple {
    display: none !important;
  }
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* --- Header & Navigation Bar --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 100;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow-indigo);
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .logo-badge {
  transform: rotate(-8deg) scale(1.08);
}

.brand-text {
  background: var(--text-gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-dot {
  color: var(--accent-cyan);
}

/* Nav Links List */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  border-radius: var(--radius-full);
  transition: width var(--transition-fast);
}

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

/* Nav Actions (Language & Status) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Availability Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.7;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Language Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.lang-flag {
  font-size: 1.1rem;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  position: relative;
}

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

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-indigo-light);
}

.hero-pill.location {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.22);
  color: var(--accent-cyan-light);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--text-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-typewriter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent-cyan-light);
  margin-bottom: 24px;
  min-height: 38px;
}

.typewriter-prompt {
  color: var(--accent-indigo);
  font-weight: 700;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-cyan);
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 36px;
}

/* Call to Action Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7175f3, var(--accent-indigo));
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-light);
  transform: translateY(-2px);
}

.btn-terminal-trigger {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan-light);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.btn-terminal-trigger:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
  transform: translateY(-2px);
}

/* Quick Metrics Row */
.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-accent {
  color: var(--accent-indigo-light);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero Visual / Interactive Card on the Right */
.hero-visual-card {
  position: relative;
}

.hero-glass-frame {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-glass-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-indigo), var(--accent-cyan), transparent);
}

/* Window Titlebar */
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.window-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo-light);
}

/* Code Snippet in Hero Visual */
.code-preview-block {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.code-keyword { color: #f43f5e; }
.code-func { color: #38bdf8; }
.code-str { color: #a7f3d0; }
.code-prop { color: #fbbf24; }
.code-comment { color: #64748b; font-style: italic; }

/* Floating Badges on Hero Frame */
.floating-chip {
  position: absolute;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 5;
  animation: floatChip 6s ease-in-out infinite alternate;
}

.floating-chip-1 {
  top: -15px;
  right: -15px;
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-indigo-light);
}

.floating-chip-2 {
  bottom: -20px;
  left: -20px;
  border-color: rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan-light);
  animation-delay: -3s;
}

@keyframes floatChip {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* --- Section Headers --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-indigo-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: var(--text-gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About & Story Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.about-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.about-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.about-card-icon {
  font-size: 1.5rem;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.highlight-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.highlight-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlight-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Timeline of Abdullah's Journey */
.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.journey-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  bottom: -20px;
  width: 2px;
  background: var(--border-subtle);
}

[dir="rtl"] .journey-step:not(:last-child)::after {
  left: auto;
  right: 17px;
}

.step-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  z-index: 2;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  flex: 1;
}

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

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo-light);
}

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

/* --- Projects Section & Filter Tabs --- */
.projects-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.project-filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.project-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-indigo-light);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.project-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-indigo), #4f46e5);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

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

.project-card {
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.35s ease;
}

.project-card.is-hidden {
  display: none !important;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow-indigo);
}

/* Project Visual Header Banner */
.project-banner {
  height: 220px;
  width: 100%;
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.project-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.2) 0%, rgba(8, 13, 26, 0.95) 100%);
}

.project-category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan-light);
  z-index: 2;
}

[dir="rtl"] .project-category-badge {
  right: auto;
  left: 16px;
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-tagline {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--accent-indigo-light);
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* Key Project Highlights List */
.project-points {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-point {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.project-point-icon {
  color: var(--accent-emerald-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Tech Stack Tags */
.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-tag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: #cbd5e1;
}

/* Project Actions Footer */
.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.btn-case-study {
  flex: 1;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo-light);
  font-size: 0.875rem;
  padding: 10px 18px;
}

.btn-case-study:hover {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* --- Fintech & Payment Architecture Showcase --- */
.fintech-showcase-card {
  background: linear-gradient(135deg, rgba(14, 23, 44, 0.9), rgba(10, 16, 32, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.12);
  position: relative;
  overflow: hidden;
}

.fintech-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.fintech-info-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.fintech-info-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.fintech-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fintech-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fintech-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Visual Architecture Flow Diagram */
.flow-diagram-container {
  background: rgba(5, 8, 16, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.flow-nodes-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.flow-node.highlight-stripe {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
  color: #fff;
}

.flow-node.highlight-kashier {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.1);
  color: #fff;
}

.flow-arrow-down {
  display: flex;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- Skills Matrix Section --- */
.skills-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.skill-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.skill-tab-btn:hover, .skill-tab-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan-glow);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.skill-icon .tech-svg {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.skill-card:hover .tech-svg {
  transform: scale(1.12);
}

.skill-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan-light);
}

.skill-context {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.skill-meter-bg {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: auto;
}

.skill-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
}

/* --- Contact & Freelance Hub --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-direct-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.direct-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.direct-link-item:hover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.08);
}

.direct-link-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.direct-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.direct-link-icon.gmail {
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
}

.direct-link-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.direct-link-icon.phone {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan-light);
}

.direct-link-icon.discord {
  background: rgba(88, 101, 242, 0.15);
  color: #5865F2;
}

.direct-link-icon.github {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f6fc;
}

.direct-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.direct-link-val {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Freelance Platforms Badges */
.freelance-platforms-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.freelance-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.platforms-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.platform-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan-light);
  transform: translateY(-2px);
}

/* Interactive Contact Form */
.contact-form-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(5, 8, 16, 0.7);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

/* --- Toast Alert Notification --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(14, 23, 44, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-indigo);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  color: #fff;
  font-size: 0.925rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg), var(--shadow-glow-indigo);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

[dir="rtl"] .toast-notification {
  right: auto;
  left: 30px;
}

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

.toast-icon {
  font-size: 1.25rem;
  color: var(--accent-emerald-light);
}

/* --- Footer --- */
.site-footer {
  padding: 50px 0 30px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darkest);
  position: relative;
  z-index: 2;
}

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

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

.footer-tribute {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
}

/* --- Responsive Media Queries (Mobile, Tablet, Desktop) --- */

/* Laptops & Tablets (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --navbar-height: 70px;
  }

  .section {
    padding: 70px 0;
  }

  .hero-grid, 
  .about-grid, 
  .projects-grid, 
  .fintech-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-section {
    padding-top: calc(var(--navbar-height) + 24px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-visual-card {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .flow-diagram-container {
    margin-top: 10px;
  }
}

/* Tablets & Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --navbar-height: 66px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 55px 0;
  }

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

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Mobile Fullscreen Glass Navigation Menu */
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    background: rgba(8, 13, 26, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 28px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    transform: translateY(-160%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.15rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: block;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-indigo);
    color: #fff;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Hero Section Mobile Adjustments */
  .hero-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
  }

  .hero-description {
    font-size: 0.975rem;
    margin-bottom: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 32px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-metrics-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .metric-value {
    font-size: 1.25rem;
  }

  .metric-label {
    font-size: 0.725rem;
  }

  /* Prevent Floating Chips Overflow */
  .floating-chip {
    position: static;
    animation: none;
    transform: none !important;
    margin: 10px auto;
    width: 100%;
    justify-content: center;
    max-width: 340px;
  }

  .hero-glass-frame {
    padding: 18px;
  }

  .code-preview-block {
    font-size: 0.8rem;
    line-height: 1.7;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* About Highlights & Cards */
  .about-card {
    padding: 24px 18px;
  }

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

  /* Fintech Flow Diagram Mobile Stack */
  .fintech-showcase-card {
    padding: 24px 18px;
  }

  .fintech-features-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-node-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .flow-node-row > div:nth-child(2) {
    transform: rotate(90deg);
    margin: 4px auto;
  }

  /* Skills Filter & Grid */
  .skills-filter-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    gap: 8px;
  }

  .skill-tab-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.825rem;
  }

  .skills-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 14px;
  }

  /* Projects & Contact Panels */
  .project-body {
    padding: 20px 18px;
  }

  .project-banner {
    height: 190px;
  }

  .contact-form-panel,
  .contact-direct-card,
  .freelance-platforms-box {
    padding: 22px 18px;
  }

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

/* Small Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --navbar-height: 62px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Compact Header */
  .brand-logo {
    font-size: 1.05rem;
    gap: 8px;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    border-radius: 8px;
  }

  .nav-actions {
    gap: 8px;
  }

  /* Hide status text on small phones to save space, keeping glowing green dot */
  .status-pill {
    padding: 6px;
    gap: 0;
  }

  .status-pill span:not(.status-dot) {
    display: none;
  }

  .lang-toggle-btn {
    padding: 5px 10px;
    font-size: 0.775rem;
  }

  .lang-flag {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero-badge-row {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-pill {
    padding: 4px 10px;
    font-size: 0.775rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem);
    margin-bottom: 14px;
  }

  .hero-typewriter-wrapper {
    font-size: 0.95rem;
    margin-bottom: 18px;
    min-height: 32px;
  }

  .hero-metrics-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .metric-label {
    margin-top: 0;
  }

  /* Timeline */
  .journey-step {
    gap: 14px;
  }

  .step-marker {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .journey-step:not(:last-child)::after {
    left: 14px;
    top: 30px;
  }

  [dir="rtl"] .journey-step:not(:last-child)::after {
    right: 14px;
    left: auto;
  }

  .step-content {
    padding: 14px 16px;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  /* Terminal */
  .terminal-screen {
    padding: 14px;
    font-size: 0.8rem;
    min-height: 250px;
    max-height: 360px;
  }

  .terminal-prompt-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .terminal-input {
    width: 100%;
  }

  .terminal-quick-actions {
    padding: 10px 14px;
    gap: 6px;
  }

  .cmd-pill {
    padding: 4px 8px;
    font-size: 0.725rem;
  }

  /* Toast Notification Mobile Bottom Alignment */
  .toast-notification {
    left: 14px !important;
    right: 14px !important;
    bottom: 20px;
    width: auto;
    font-size: 0.85rem;
    padding: 12px 16px;
    justify-content: center;
  }
}

