/* ==========================================================================
   Muhammed Adel - Prototype Clean Design System
   ========================================================================== */

:root {
  --bg: #040406;
  --bg-2: #0b0f19;
  --ink: #f3f1ea;
  --ink-dim: #8a8d94;
  --teal: #3b82f6;
  --amber: #2563eb;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: rgba(59, 130, 246, 0.35);
  --line: rgba(243, 241, 234, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: auto !important;
  padding-bottom: 50px;
}

::selection {
  background: var(--teal);
  color: #0a0b0d;
}

/* Film Grain Overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Simple Clean Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #06070a;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#preloader .pct {
  font-family: 'Anton', sans-serif;
  font-size: clamp(54px, 9vw, 96px);
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
}

#preloader .bar-wrap {
  width: min(320px, 65vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

#preloader .bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  box-shadow: 0 0 12px #3b82f6;
  transition: width 0.04s linear;
}

#preloader .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--ink-dim);
  text-transform: uppercase;
}

section {
  position: relative;
}

/* Header & Nav - Floating Glassmorphism Bar */
header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, 92vw);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(8, 10, 16, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.12);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

header.nav-hidden {
  transform: translate(-50%, -140%);
  opacity: 0;
  pointer-events: none;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  mix-blend-mode: normal !important;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  height: 36px !important;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent !important;
  mix-blend-mode: normal !important;
}

.logo svg {
  height: 34px;
  width: auto;
  display: block;
  background: transparent !important;
  mix-blend-mode: normal !important;
}

.logo svg path {
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease, filter 0.4s ease;
}

.logo:hover svg path {
  animation: drawLogoPath 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  stroke: #60a5fa !important;
  filter: drop-shadow(0 0 8px #3b82f6);
}

@keyframes drawLogoPath {
  0% {
    stroke-dashoffset: 300;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

nav a {
  color: #94a3b8;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  transition: all 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

nav a::after {
  display: none;
}

@media(max-width: 800px) {
  header {
    top: 12px;
    padding: 12px 20px;
  }
  .logo {
    font-size: 22px;
  }
  .logo img {
    height: 30px !important;
  }
  nav ul {
    display: flex;
    gap: 4px;
  }
  nav a {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Hero - Premium Motion Design Layout */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 0 60px;
  position: relative;
  gap: 40px;
  width: min(1440px, 92vw);
  max-width: 1440px;
  margin: 0 auto;
}

.hero-left,
.hero-content {
  max-width: 580px;
  z-index: 2;
  flex: 1;
}

.hero-right,
.hero-portrait-frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1.1;
  max-width: 620px;
  width: 100%;
}

/* Direct Frameless Hero Photo Filling the Right Side (Zero Box or Frame) */
.hero-portrait-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(1.02);
  -webkit-mask-image: radial-gradient(circle at center, #000 65%, transparent 98%);
  mask-image: radial-gradient(circle at center, #000 65%, transparent 98%);
  transform: none !important;
  transition: opacity 0.4s ease;
}

.hero-portrait-img:hover {
  filter: contrast(1.22) brightness(1.04);
}

.hero-portrait-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at center, #1b2234, #0b0f19);
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
}

.hero-portrait-placeholder i {
  font-size: 40px;
  color: #3b82f6;
  opacity: 0.85;
}

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

/* Status Badge Top */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-status-pill .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

/* Hero Stats Row */
.hero-stats-row,
.hero-stats {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 36px !important;
  padding-top: 24px !important;
  margin-top: 24px !important;
  border-top: 1px solid var(--line) !important;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-val {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-val span {
  color: #3b82f6;
}

.hero-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media(max-width: 990px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 110px;
  }
  .hero-right {
    margin-top: 20px;
    align-self: center;
  }
  .hero-portrait-wrap {
    width: min(300px, 75vw);
  }
  .hero-stats-row {
    gap: 20px;
    flex-wrap: wrap;
  }
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--teal);
}

.hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 14px;
  margin-bottom: 20px;
}

.hero-title .highlight-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 480px;
  color: var(--ink-dim);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: transform .25s, background .3s, border-color .3s;
  cursor: pointer;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink-dim);
}

.hero-scroll .rail {
  width: 1px;
  height: 50px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero-scroll .rail i {
  position: absolute;
  top: -30%;
  left: 0;
  width: 100%;
  height: 30%;
  background: var(--teal);
  animation: railmove 1.8s ease-in-out infinite;
}

@keyframes railmove {
  0% { top: -30%; }
  100% { top: 100%; }
}

.hero-reel {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Anton', sans-serif;
  font-size: clamp(70px, 10vw, 130px);
  color: var(--bg-2);
  letter-spacing: -4px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .6;
  line-height: 1;
}

@media(max-width: 900px) {
  .hero-reel {
    display: none;
  }
}

/* Section Label */
.section-head {
  padding: 60px 5vw 20px;
}

.showreel-section-head {
  padding: 0 0 20px;
}

.work-section-head {
  padding: 60px 5vw 16px;
}

.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  text-transform: uppercase;
  letter-spacing: -.5px;
  line-height: 1.15;
}

/* Category Filter Bar */
/* Featured Showreel Section (Autoplay Minimalist Theater) */
.showreel-section {
  padding: 60px 5vw 40px;
  position: relative;
  z-index: 5;
}

.showreel-wrapper {
  max-width: 1100px;
  margin: 32px auto 0;
  position: relative;
}

.showreel-theater {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  will-change: transform, opacity;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.showreel-theater:hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85);
}

.showreel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.showreel-overlay {
  position: absolute;
  inset: 0;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.showreel-theater:hover .showreel-overlay {
  opacity: 1;
}

.showreel-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  width: fit-content;
  pointer-events: auto;
}

.showreel-status .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 12px #3b82f6;
  animation: pulseDot 2s infinite;
}

.showreel-status .status-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #93c5fd;
  font-weight: 600;
}

.showreel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.showreel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showreel-btn:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

.work-header-container {
  padding: 30px 5vw 10px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.work-header-container .work-section-head {
  padding: 0 0 14px;
}

.category-filter-bar {
  display: flex;
  gap: 12px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filter-bar::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(17, 19, 24, 0.8);
  color: var(--ink-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--teal);
  color: #0a0b0d;
  border-color: var(--teal);
}

/* Work Showcase Section - Horizontal Reel */
.work-pin {
  height: 100vh;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.work-track-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.work-track {
  height: auto;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 6vw;
  width: max-content;
  will-change: transform;
}

.card {
  width: min(60vw, 540px);
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.card.active-autopt-card {
  transform: translateY(-4px) scale(1.02);
}

.card.active-autopt-card .card-frame {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25);
}

@media (max-width: 768px) {
  .work-pin {
    height: auto;
    overflow: visible;
    background: transparent;
    padding: 0 5vw 80px;
  }

  .work-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .card {
    width: 100%;
  }
}

.card-frame {
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(140deg, #1b1d23, #0e0f12);
  border: 1px solid var(--line);
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.card:hover .card-frame {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.card-frame img, .card-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.card-thumb-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
}

.card-preview-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.card:hover .card-thumb-img, .card:hover .card-preview-video {
  transform: scale(1.05);
}

.card:hover .card-frame img, .card:hover .card-frame video {
  transform: scale(1.05);
}

.card-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .65) 100%);
  pointer-events: none;
}

.card-frame .play {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(243, 241, 234, .5);
  background: rgba(10, 11, 13, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.card:hover .card-frame .play {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.1);
}

.card-frame .play::before {
  content: '';
  border-left: 9px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
  transition: border-left-color 0.3s;
}

.card:hover .card-frame .play::before {
  border-left-color: #0a0b0d;
}

.card-frame .cat {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 11, 13, .65);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
}

.card-meta h3 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 2.5vw, 22px);
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.2;
  transition: color 0.3s;
}

.card:hover .card-meta h3 {
  color: var(--teal);
}

.card-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
}

.work-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  width: 0%;
  z-index: 5;
}

/* About Me & Experience Section - Pinned Stack Cards */
.exp {
  padding: 80px 5vw 80px;
  position: relative;
  z-index: 10;
  background: var(--bg);
  clear: both;
}

.exp .section-head {
  margin: 0 auto 30px;
  padding: 0;
  text-align: center;
  position: relative;
  z-index: 5;
  will-change: opacity, transform;
}

.exp .section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: #60a5fa;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.exp .section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  color: #ffffff;
  margin: 0;
}

.exp-stack-container {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exp-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  will-change: transform, opacity;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

.exp-stack-card::before {
  display: none;
}

.exp-card-layout {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: center;
}

.exp-card-body {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.exp-card-media {
  position: relative;
  width: 100%;
  height: 480px;
  z-index: 2;
  overflow: hidden;
  border-radius: 32px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exp-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  box-shadow: inset 0 0 80px 35px #000000;
  pointer-events: none;
  z-index: 3;
}

.exp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 32px;
  -webkit-mask-image: radial-gradient(circle at center, #000 65%, transparent 98%);
  mask-image: radial-gradient(circle at center, #000 65%, transparent 98%);
  filter: contrast(1.15) brightness(1.02);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.exp-stack-card:hover .exp-card-img {
  transform: scale(1.06);
  filter: contrast(1.2) brightness(1.06);
}

@media (max-width: 1100px) {
  .exp-card-layout {
    grid-template-columns: 1fr 400px;
    gap: 40px;
  }
  .exp-card-media {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .exp-card-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .exp-card-body {
    width: 100%;
  }
  .exp-card-media {
    width: 100%;
    height: 280px;
  }
}

.exp-stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}

/* AAA Masterclass Watermark & Highlight Elements */
.exp-bg-watermark {
  position: absolute;
  top: -30px;
  left: -20px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(140px, 16vw, 240px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.04);
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 10px #60a5fa;
  display: inline-block;
}

.card-stack-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-stack-role {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 54px);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: #e2e8f0;
  font-weight: 400;
  max-width: 720px;
}

.exp-desc {
  color: #cbd5e1;
  max-width: 720px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.exp-highlights-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.highlight-item i {
  color: #60a5fa;
  font-size: 12px;
}

.highlight-item:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.exp-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .exp-stack-container {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .exp-stack-card {
    position: relative;
    padding: 28px 24px;
    opacity: 1 !important;
    transform: none !important;
  }
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .5px;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--ink-dim);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  border-color: #3b82f6;
  color: #60a5fa;
}

/* Contact */
.contact {
  padding: 0 5vw 60px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.contact h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.contact-links {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.contact-links a:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-link span.i {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
}

.contact-link .arrow {
  transition: transform .3s, color .3s;
  font-size: 20px;
}

.contact-link:hover .arrow {
  transform: rotate(45deg);
  color: var(--teal);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 5vw;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
  margin-bottom: 46px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy-text {
  font-weight: 600;
  color: #94a3b8;
}

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

.social-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.social-icon-btn:hover {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.65);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.social-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(4, 5, 8, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

/* Timeline Scrubber Bar */
.scrubber {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46px;
  z-index: 400;
  background: rgba(10, 11, 13, .75);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 5vw;
  gap: 16px;
}

.scrubber .tc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.scrubber .track {
  flex: 1;
  height: 20px;
  position: relative;
  display: flex;
  align-items: center;
}

.scrubber .track .ticks {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 18px);
}

.scrubber .fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  width: 0%;
}

.scrubber .head {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 20px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  left: 0%;
}

.scrubber .head::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--ink);
}

@media(max-width: 700px) {
  .scrubber {
    display: none !important;
  }
}

/* Masterclass Cinematic Video Player Modal */
#videoModal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

#videoModal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 100%;
  max-width: 1020px;
  max-height: 92vh;
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.15);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#videoModal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-num-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 10px;
  border-radius: 8px;
}

.modal-cat-badge {
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-main-title {
  font-family: 'Anton', 'Tajawal', sans-serif;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-video-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.modal-video-box iframe, .modal-video-box video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.modal-details-container {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-desc-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: 14px;
}

.modal-desc-heading {
  font-size: 13px;
  font-weight: 700;
  color: #3b82f6;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-desc-text {
  font-size: 13px;
  line-height: 1.7;
  color: #d1d5db;
  margin: 0;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  border-radius: 12px;
}

.modal-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.modal-meta-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-action-btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  transition: all 0.3s ease;
}

.modal-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

.modal-nav-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-nav-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}
