/* =====================================================
   ADNAN AL JABBAN — HR PORTFOLIO
   Font: Outfit (clean geometric, no distortion)
   ===================================================== */

/* ---- DESIGN TOKENS ---- */
:root {
  --bg: #080b10;
  --panel: #0e1420;
  --panel2: #111827;
  --text: #e8edf5;
  --muted: #6b7a9a;
  --primary: #00d4ff;
  --secondary: #7c3aed;
  --accent: #f059da;
  --glow: rgba(0, 212, 255, 0.3);
  --glow2: rgba(124, 58, 237, 0.3);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --font-en: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
[dir='rtl'] body,
[dir='rtl'] * {
  font-family: var(--font-ar);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- SCROLL PROGRESS ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px var(--primary);
}

/* ---- GRAIN OVERLAY ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- CANVAS BACKGROUND ---- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ---- CURSOR GLOW ---- */
#cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.055) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
}

/* ---- HEADER ---- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 4vw, 48px);
  transition:
    background 0.4s,
    backdrop-filter 0.4s;
}
#header.scrolled {
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-initials {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 0 20px var(--glow);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--muted);
}
[dir='rtl'] .logo-text {
  font-family: var(--font-ar);
}

/* Nav links */
#main-nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
}
#main-nav a {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
[dir='rtl'] #main-nav a {
  font-family: var(--font-ar);
}
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width var(--transition);
  border-radius: 2px;
}
[dir='rtl'] #main-nav a::after {
  left: auto;
  right: 0;
}
#main-nav a:hover,
#main-nav a.active {
  color: var(--text);
}
#main-nav a:hover::after,
#main-nav a.active::after {
  width: 100%;
}
#main-nav a.active {
  color: var(--primary);
}
#main-nav a.active::after {
  background: var(--primary);
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-btn {
  padding: 7px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  font-family: var(--font-en);
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 16px var(--glow);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(8, 11, 16, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-nav-links a {
  font-family: var(--font-en);
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}
[dir='rtl'] .mobile-nav-links a {
  font-family: var(--font-ar);
}
.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: var(--primary);
}

/* ---- HERO ---- */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(100px, 14vh, 160px) clamp(16px, 5vw, 80px)
    clamp(60px, 8vh, 100px);
  overflow: hidden;
}
.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
[dir='rtl'] .hero-tag {
  letter-spacing: 0;
  font-family: var(--font-ar);
}
.hero-name {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(48px, 7.5vw, 100px);
  line-height: 0.95;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
[dir='rtl'] .hero-name {
  font-family: var(--font-ar);
  letter-spacing: 0;
}
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent),
    var(--secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Stats — fixed size for unit symbols */
.hero-stats {
  display: flex;
  gap: clamp(20px, 3.5vw, 44px);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
/* unit (+, %) — same visual weight, NOT tiny superscript */
.stat-unit {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---- HERO PHOTO ---- */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-img-frame {
  position: relative;
  width: clamp(260px, 36vw, 420px);
  aspect-ratio: 3/4;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  border: 2px solid rgba(0, 212, 255, 0.15);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 212, 255, 0.07);
  display: block;
}
.hero-photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(160deg, #131f36, #0e1826);
  border: 2px solid rgba(0, 212, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.hero-photo-fallback span {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-photo-fallback p {
  font-size: 12px;
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
}

.hero-img-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
[dir='rtl'] .hero-img-badge {
  font-family: var(--font-ar);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-img-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 212, 255, 0.12);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ring-a {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  animation: ringPulse 3s ease-in-out infinite;
}
.ring-b {
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  animation: ringPulse 3s ease-in-out infinite 1s;
}
@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.03);
  }
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 1.5vw, 14px) clamp(24px, 3vw, 36px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 15px);
  border-radius: 50px;
  transition: all var(--transition);
  font-family: var(--font-en);
  box-shadow: 0 0 30px var(--glow);
  position: relative;
  overflow: hidden;
}
[dir='rtl'] .btn-primary {
  font-family: var(--font-ar);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover::before {
  opacity: 0.7;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--glow);
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 1.5vw, 14px) clamp(24px, 3vw, 36px);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 15px);
  border-radius: 50px;
  transition: all var(--transition);
  font-family: var(--font-en);
}
[dir='rtl'] .btn-ghost {
  font-family: var(--font-ar);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px var(--glow);
}

/* ---- PARALLAX ELEMENTS ---- */
.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.p-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
}
.orb1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -20%;
  right: -10%;
}
.orb2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -10%;
  left: -5%;
}
.p-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.08);
  animation: ringExpand 8s ease-in-out infinite;
}
.ring1 {
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes ringExpand {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.18;
  }
}

/* ---- SECTIONS ---- */
.section {
  padding: clamp(60px, 10vh, 120px) clamp(16px, 5vw, 80px);
  position: relative;
  z-index: 2;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-tag {
  display: inline-block;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--font-en);
  margin-bottom: 10px;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
}
[dir='rtl'] .section-tag {
  letter-spacing: 0;
  font-family: var(--font-ar);
}
.section-header h2 {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
[dir='rtl'] .section-header h2 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: rgba(14, 20, 32, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 212, 255, 0.04);
  transform: translateY(-4px);
}

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: clamp(14px, 1.4vw, 16px);
}
.about-text strong {
  color: var(--text);
}
.about-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.about-langs span {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-cards .glass-card {
  padding: 20px;
}
.glass-card-icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.about-cards h4 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
[dir='rtl'] .about-cards h4 {
  font-family: var(--font-ar);
}
.about-cards p {
  font-size: 12px;
  color: var(--muted);
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--secondary),
    transparent
  );
  transform: translateX(-50%);
}
[dir='rtl'] .timeline::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}
.tl-item:nth-child(odd) {
  flex-direction: row-reverse;
}
[dir='rtl'] .tl-item:nth-child(odd) {
  flex-direction: row;
}
[dir='rtl'] .tl-item:nth-child(even) {
  flex-direction: row-reverse;
}
.tl-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  transform: translateX(-50%);
  box-shadow: 0 0 18px var(--primary);
  z-index: 2;
  flex-shrink: 0;
}
[dir='rtl'] .tl-dot {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
.tl-dot-alt {
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.tl-content {
  width: calc(50% - 32px);
  padding: 20px;
}
.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-company {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}
[dir='rtl'] .tl-company {
  font-family: var(--font-ar);
}
.tl-date {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-en);
}
.tl-content h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 17px);
  margin-bottom: 4px;
}
[dir='rtl'] .tl-content h3 {
  font-family: var(--font-ar);
}
.tl-content > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tl-list li {
  font-size: 13px;
  color: var(--muted);
  padding-inline-start: 14px;
  position: relative;
}
.tl-list li::before {
  content: '→';
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary);
  font-size: 11px;
  top: 2px;
}

/* ---- SKILLS ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  margin-bottom: 48px;
}
.skills-cat {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text);
}
[dir='rtl'] .skills-cat {
  font-family: var(--font-ar);
}
.skill-bar-item {
  margin-bottom: 18px;
}
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.skill-bar-label span:first-child {
  color: var(--text);
}
.skill-bar-label span:last-child {
  color: var(--primary);
  font-weight: 700;
  font-family: var(--font-en);
}
.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 12px var(--glow);
}
.certs-section {
  margin-top: 40px;
}
.certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  transition: all var(--transition);
}
.cert-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(0, 212, 255, 0.05);
}

/* ---- KPI ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.kpi-card {
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
}
.kpi-num {
  font-family: var(--font-en);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kpi-num span:last-child {
  font-size: 0.55em;
}
.kpi-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}
[dir='rtl'] .kpi-label {
  font-family: var(--font-ar);
}
.kpi-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ---- PORTFOLIO ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.port-card {
  padding: clamp(24px, 3vw, 36px);
}
.port-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.port-card h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
  margin-bottom: 12px;
}
[dir='rtl'] .port-card h3 {
  font-family: var(--font-ar);
}
.port-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.port-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.port-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
}

/* ---- TESTIMONIALS ---- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.test-card {
  padding: clamp(24px, 3vw, 32px);
}
.test-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.test-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-en);
}
.test-author strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.test-author span {
  font-size: 12px;
  color: var(--muted);
}

/* ---- CONTACT (no form) ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.contact-info {
}
.contact-intro {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
}
.contact-item:hover {
  color: var(--primary);
}
.ci-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.contact-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- 3D CLIPBOARD ---- */
.contact-clipboard {
  display: flex;
  justify-content: center;
  align-items: center;
}
.clipboard-stage {
  perspective: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.clipboard-3d {
  transform-style: preserve-3d;
  animation: clipFloat 4s ease-in-out infinite;
  cursor: pointer;
  position: relative;
  transform: rotateY(-8deg) rotateX(6deg);
  transition: transform var(--transition);
}
.clipboard-3d:hover {
  transform: rotateY(-2deg) rotateX(2deg) scale(1.03);
}
.clipboard-body {
  position: relative;
  transform-style: preserve-3d;
}
.clipboard-clip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%) translateZ(6px);
  width: 80px;
  height: 36px;
  background: linear-gradient(135deg, #1a2540, #2a3a5c);
  border-radius: 8px 8px 0 0;
  border: 2.5px solid rgba(0, 212, 255, 0.3);
  z-index: 5;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    0 0 20px var(--glow);
}
.clipboard-clip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 10px var(--primary);
}
.clipboard-paper {
  width: clamp(260px, 35vw, 340px);
  background: linear-gradient(160deg, #131f36, #0e1826);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 32px);
  border: 1.5px solid rgba(0, 212, 255, 0.15);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(0, 212, 255, 0.05);
  transform: translateZ(8px);
  position: relative;
  overflow: hidden;
}
.clipboard-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
}
.clipboard-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a1020, #0d1625);
  border-radius: 12px;
  transform: translateZ(-4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.8);
}
.clipboard-shadow {
  width: 80%;
  height: 20px;
  margin: 0 auto;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  filter: blur(20px);
}
.clipboard-hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  animation: hintPulse 2s ease-in-out infinite;
  font-family: var(--font-en);
}
[dir='rtl'] .clipboard-hint {
  letter-spacing: 0;
  font-family: var(--font-ar);
}
@keyframes clipFloat {
  0%,
  100% {
    transform: rotateY(-8deg) rotateX(6deg) translateY(0px);
  }
  50% {
    transform: rotateY(-8deg) rotateX(6deg) translateY(-14px);
  }
}
@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* Paper content */
.paper-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.paper-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-en);
}
.paper-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 15px);
  color: var(--text);
}
[dir='rtl'] .paper-name,
[dir='rtl'] .paper-title {
  font-family: var(--font-ar);
}
.paper-title {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}
.paper-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.paper-section {
  margin-bottom: 14px;
}
.paper-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 5px;
  font-family: var(--font-en);
}
[dir='rtl'] .paper-label {
  letter-spacing: 0;
  font-family: var(--font-ar);
}
.paper-text {
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--muted);
  line-height: 1.5;
}
.highlight-text {
  color: var(--accent);
  font-weight: 500;
}
.paper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.paper-tags span {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--primary);
  font-family: var(--font-en);
  white-space: nowrap;
}
[dir='rtl'] .paper-tags span {
  font-family: var(--font-ar);
}

/* ---- CLIPBOARD MODAL ---- */
.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cb-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}
.cb-modal-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #131f36, #0e1826);
  border: 1.5px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  max-width: min(700px, 95vw);
  width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 212, 255, 0.07);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.cb-modal.open .cb-modal-content {
  transform: scale(1) translateY(0);
}
.cb-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  border-radius: 20px 20px 0 0;
}
.cb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  border: 1px solid var(--border);
}
[dir='rtl'] .cb-close {
  right: auto;
  left: 16px;
}
.cb-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.cb-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.cb-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  font-family: var(--font-en);
  box-shadow: 0 0 30px var(--glow);
}
.cb-modal-header h2 {
  font-family: var(--font-en);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
}
[dir='rtl'] .cb-modal-header h2 {
  font-family: var(--font-ar);
}
.cb-modal-header p {
  color: var(--primary);
  font-size: 14px;
}
.cb-section {
  margin-bottom: 24px;
}
.cb-section h3 {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary);
}
[dir='rtl'] .cb-section h3 {
  font-family: var(--font-ar);
}
.cb-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.cb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cb-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.cb-list li::before {
  content: '◆';
  color: var(--primary);
  font-size: 8px;
  margin-top: 6px;
  flex-shrink: 0;
}
.cb-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.cb-ach-card {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.cb-ach-num {
  display: block;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.cb-ach-card span:last-child {
  font-size: 12px;
  color: var(--muted);
}

/* ---- FOOTER ---- */
#footer {
  padding: clamp(40px, 6vh, 60px) clamp(16px, 5vw, 48px);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}
.footer-inner p {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: var(--delay, 0s);
}
.reveal-up {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--panel2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    order: -1;
  }
  .hero-img-frame {
    width: clamp(200px, 50vw, 300px);
    aspect-ratio: 1/1;
  }
  .hero-photo {
    object-position: top;
    border-radius: 50%;
  }
  .hero-photo-fallback {
    border-radius: 50%;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-clipboard {
    order: -1;
  }
  .timeline::before {
    left: 20px;
  }
  [dir='rtl'] .timeline::before {
    right: 20px;
    left: auto;
  }
  .tl-item,
  .tl-item:nth-child(odd) {
    flex-direction: row;
  }
  [dir='rtl'] .tl-item,
  [dir='rtl'] .tl-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
  .tl-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  [dir='rtl'] .tl-dot {
    left: auto;
    right: 20px;
    transform: translateX(50%);
  }
  .tl-content {
    width: calc(100% - 60px);
    margin-inline-start: 52px;
  }
}
@media (max-width: 768px) {
  #main-nav {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: clamp(40px, 13vw, 60px);
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  .hero-text {
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-tag {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }
  .contact-ctas {
    flex-direction: column;
  }
  .contact-ctas a {
    text-align: center;
    justify-content: center;
  }
}
@media (max-width: 360px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .hero-ctas a {
    width: 100%;
    justify-content: center;
  }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
