/* ==========================================================================
   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;
  text-align: center;
}

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

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

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

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

/* 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;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.category-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
}
.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 */
/* Bespoke Studio Grid Showcase - Compact & Sleek Proportions */
.work-section {
  padding: 60px 5vw 80px;
  background: var(--bg-2);
  position: relative;
  box-sizing: border-box;
}

.work-studio-container {
  max-width: 1200px;
  margin: 32px auto 0;
  position: relative;
}

.work-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  width: 100%;
}

@media(max-width: 1100px) {
  .work-studio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media(max-width: 680px) {
  .work-studio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Compact Studio Project Card */
.studio-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(14, 18, 27, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.studio-card:hover {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.25);
}

/* 16:9 (1920x1080 HD Ratio) Image & Video Media Box */
.studio-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  z-index: 1;
}

.studio-card-media img,
.studio-card-media video,
.card-thumb-img,
.card-preview-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

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

.studio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.05) 0%, rgba(8, 11, 17, 0.2) 60%, rgba(8, 11, 17, 0.6) 100%);
  z-index: 2;
  transition: opacity 0.35s ease;
}

.studio-card:hover .studio-card-overlay {
  background: linear-gradient(180deg, rgba(8, 11, 17, 0.02) 0%, rgba(8, 11, 17, 0.15) 60%, rgba(8, 11, 17, 0.5) 100%);
}

/* Header Badges & Editor Timecodes */
.studio-card-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.studio-badge-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.studio-badge-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Floating Play Button Indicator */
.studio-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 16px;
  z-index: 3;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.studio-card:hover .studio-play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Card Bottom Content Bar */
.studio-card-content {
  position: relative;
  z-index: 3;
  padding: 14px 16px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 14, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.3;
  color: #ffffff;
  margin: 0 auto;
  text-align: center;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.studio-card:hover .studio-card-title {
  color: #60a5fa;
}

.studio-card-desc {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.studio-tool-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Vertical Project Card */
.timeline-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 24px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

@media(max-width: 850px) {
  .timeline-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
}

.timeline-item:hover .timeline-card {
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.25);
}

.timeline-card-media {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-card-media img,
.timeline-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timeline-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #3b82f6;
  letter-spacing: 2px;
  font-weight: 700;
}

.timeline-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.timeline-card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.timeline-item:hover .timeline-card-title {
  color: #60a5fa;
}

.timeline-card-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Show More Projects Button */
.show-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.2);
}

.show-more-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #60a5fa;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.show-more-btn i {
  transition: transform 0.3s ease;
}

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

.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: 40px 5vw 40px;
  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-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-exp-split {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 40px;
  align-items: center;
  margin-top: 48px;
}

@media (max-width: 1080px) {
  .about-exp-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Left Column: Experience Items List (Matching User Screenshot) */
.experience-list-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.exp-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.exp-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .experience-list-container {
    padding: 24px 20px;
  }
  .exp-list-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }
}

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

.exp-item-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.exp-list-item:hover .exp-item-icon-box {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

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

.exp-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-item-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.exp-item-desc {
  font-size: 13.5px;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
}

@media (max-width: 768px) {
  .exp-item-desc {
    padding-left: 0;
  }
}

.exp-item-period {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.exp-year-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 8px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.12);
  transition: all 0.3s ease;
}

.exp-year-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  transform: translateY(-2px);
}

/* Right Column: Clean Standalone Photo (Frameless) */
.about-photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.about-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 20px;
  filter: contrast(1.08) brightness(1.02);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-photo-wrapper:hover .about-featured-img {
  transform: scale(1.05);
}

.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: 80px 0 60px;
  position: relative;
  z-index: 25;
  background: var(--bg);
  clear: both;
}

.contact-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

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

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

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(15px, 1.8vw, 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 {
  padding: 30px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 25;
  background: var(--bg);
}

.footer-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.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 - Hidden */
.scrubber {
  display: none !important;
}

.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;
}

.section-num {
  display: none !important;
}

/* ==========================================================================
   Mobile & Responsive Layout Enhancements (iOS & Android Optimization)
   ========================================================================== */

@media (max-width: 768px) {
  /* Header & Navigation Bar */
  header {
    top: 10px;
    width: 94vw;
    padding: 10px 16px;
    border-radius: 100px;
  }

  .logo {
    font-size: 20px;
  }

  .logo img {
    height: 26px !important;
  }

  nav ul {
    gap: 4px;
  }

  nav a {
    padding: 5px 10px;
    font-size: 10.5px;
    letter-spacing: 0.5px;
  }

  /* Hero Section Mobile Stack */
  .hero {
    min-height: auto;
    padding: 100px 4vw 36px;
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-left,
  .hero-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-status-pill {
    font-size: 9.5px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: 2px;
    justify-content: center;
    margin-bottom: 14px;
  }

  .hero-eyebrow::before {
    width: 20px;
  }

  .hero-title {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.15;
    margin-top: 6px;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 22px;
    text-align: center;
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 11.5px;
  }

  .hero-stats-row,
  .hero-stats {
    width: 100%;
    justify-content: space-around !important;
    gap: 8px !important;
    padding-top: 16px !important;
    margin-top: 16px !important;
  }

  .hero-stat-val {
    font-size: 20px;
  }

  .hero-stat-lbl {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .hero-right,
  .hero-portrait-frame {
    max-width: 240px;
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }

  .hero-portrait-img {
    max-width: 220px;
    max-height: 260px;
    margin: 0 auto !important;
  }

  .hero-scroll {
    display: none;
  }

  /* Featured Showreel Section */
  .showreel-section {
    padding: 30px 4vw 20px;
  }

  .showreel-wrapper {
    margin-top: 18px;
  }

  .showreel-theater {
    border-radius: 16px;
  }

  .showreel-overlay {
    padding: 14px 16px;
  }

  .showreel-status {
    padding: 5px 12px;
  }

  .showreel-status .status-txt {
    font-size: 9.5px;
  }

  .showreel-btn {
    padding: 8px 14px;
    font-size: 10px;
  }

  .showreel-btn .btn-lbl {
    display: none;
  }

  /* Projects Section & Mobile Category Bar */
  .work-section {
    padding: 40px 4vw 60px;
  }

  .work-header-container {
    padding: 20px 4vw 10px;
  }

  .category-filter-bar {
    justify-content: flex-start;
    padding: 6px 2px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill {
    padding: 6px 14px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .work-studio-container {
    margin-top: 20px;
  }

  .work-studio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .studio-card {
    border-radius: 14px;
  }

  .studio-card-content {
    padding: 12px 14px;
  }

  .studio-card-title {
    font-size: 14.5px;
  }

  .show-more-container {
    margin-top: 32px;
  }

  .show-more-btn {
    padding: 12px 26px;
    font-size: 11.5px;
  }

  /* About & Experience Mobile Stack */
  .exp {
    padding: 40px 4vw 40px;
  }

  .about-exp-split {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .about-photo-wrapper {
    max-width: 260px;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 16px;
  }

  .experience-list-container {
    padding: 20px 16px;
    border-radius: 16px;
    gap: 16px;
  }

  .exp-list-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 16px;
  }

  .exp-item-main {
    gap: 12px;
  }

  .exp-item-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .exp-item-title {
    font-size: 14.5px;
  }

  .exp-item-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .exp-year-badge {
    font-size: 10.5px;
    padding: 5px 14px;
  }

  /* Contact & Footer Section */
  .contact {
    padding: 50px 0 30px;
  }

  .contact h2 {
    font-size: clamp(26px, 6.5vw, 38px);
    line-height: 1.15;
  }

  .contact-links {
    margin-top: 24px;
  }

  .contact-link {
    padding: 14px 0;
    font-size: 13.5px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    justify-content: center;
  }

  .social-footer-grid {
    justify-content: center;
    gap: 8px;
  }

  /* Video Lightbox Modal Mobile Optimization */
  #videoModal {
    padding: 10px;
  }

  .modal-content {
    border-radius: 16px;
    max-height: 94vh;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-main-title {
    font-size: 17px;
  }

  .modal-close {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .modal-details-container {
    padding: 14px 16px;
    gap: 14px;
  }

  .modal-desc-box {
    padding: 12px 14px;
  }

  .modal-desc-text {
    font-size: 12px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .modal-meta-item {
    padding: 10px 12px;
  }

  .modal-meta-label {
    font-size: 10px;
  }

  .modal-meta-val {
    font-size: 11.5px;
  }

  .modal-actions-bar {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .modal-action-btn.primary {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
    font-size: 12px;
  }

  .modal-nav-btns {
    width: 100%;
    justify-content: space-between;
  }

  .modal-nav-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  header {
    width: 96vw;
    padding: 8px 12px;
  }

  nav a {
    padding: 4px 8px;
    font-size: 9.5px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .hero-stats-row,
  .hero-stats {
    gap: 4px !important;
  }

  .hero-stat-val {
    font-size: 18px;
  }

  .hero-stat-lbl {
    font-size: 8.5px;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}

