/* ============================================================
   IBRAHIM ELSHISHTAWY — FUTURISTIC 3D PORTFOLIO
   Structural Sections (sections.css)
   ============================================================ */

/* ── NAVIGATION ─────────────────────────────────────────── */
.glass-nav {
  background: rgba(10, 8, 22, 0.65);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s ease;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.3s var(--ease-spring);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.hamburger-line {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-line.short { width: 14px; }

/* Mobile Menu */
.mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-spring), opacity 0.3s ease;
  opacity: 0;
  background: rgba(8, 6, 18, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 0 0 16px 16px;
  margin-top: 4px;
}

.mobile-menu.active { max-height: 500px; opacity: 1; }

.mobile-nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s ease;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-link:hover { color: #fff; }

/* ── SECTION LABELS ─────────────────────────────────────── */
.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

/* ── BENTO GRID ─────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bento-grid { grid-template-columns: 1fr; } }

/* ── TECH ARSENAL CARDS ─────────────────────────────────── */
.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 14, 40, 0.7) 0%, rgba(10, 8, 22, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.055);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.tech-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 80%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 70%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.75s ease;
  pointer-events: none;
  z-index: 3;
}

.tech-card:hover::after {
  transform: rotate(25deg) translateX(350%);
}

/* Radial spotlight */
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 80% at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--card-glow-rgb, 139, 92, 246), 0.08),
    transparent 55%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover::before { opacity: 1; }

.tech-card:hover {
  border-color: rgba(var(--card-glow-rgb, 139, 92, 246), 0.35);
  transform: translateY(-7px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(var(--card-glow-rgb, 139, 92, 246), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tech-icon-container {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
  /* Subtle inner shadow for depth */
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.04), 0 4px 12px rgba(0,0,0,0.3);
}

.tech-card:hover .tech-icon-container {
  transform: translateY(-8px) scale(1.12) rotateX(5deg);
  border-color: rgba(var(--card-glow-rgb, 139, 92, 246), 0.6);
  box-shadow:
    0 0 0 1px rgba(var(--card-glow-rgb, 139, 92, 246), 0.25),
    0 0 30px rgba(var(--card-glow-rgb, 139, 92, 246), 0.5),
    0 0 60px rgba(var(--card-glow-rgb, 139, 92, 246), 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  background: rgba(var(--card-glow-rgb, 139, 92, 246), 0.10);
}

.tech-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.7);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  z-index: 2;
  text-align: center;
  line-height: 1.2;
}

.tech-card:hover .tech-title {
  color: #fff;
  text-shadow: 0 0 12px rgba(var(--card-glow-rgb, 139, 92, 246), 0.6);
}

/* Brand glow tokens */
.tech-flutter    { --card-glow-rgb: 6, 182, 212;   --card-glow-color: var(--secondary); }
.tech-dart       { --card-glow-rgb: 14, 165, 233;  --card-glow-color: #0ea5e9; }
.tech-firebase   { --card-glow-rgb: 245, 158, 11;  --card-glow-color: #f59e0b; }
.tech-sqlite     { --card-glow-rgb: 139, 92, 246;  --card-glow-color: var(--primary); }
.tech-getx       { --card-glow-rgb: 236, 72, 153;  --card-glow-color: var(--accent); }
.tech-admob      { --card-glow-rgb: 16, 185, 129;  --card-glow-color: #10b981; }
.tech-nodejs     { --card-glow-rgb: 34, 197, 94;   --card-glow-color: #22c55e; }
.tech-mongodb    { --card-glow-rgb: 16, 185, 129;  --card-glow-color: #10b981; }
.tech-git        { --card-glow-rgb: 239, 68, 68;   --card-glow-color: #ef4444; }
.tech-javascript { --card-glow-rgb: 234, 179, 8;   --card-glow-color: #eab308; }
.tech-html5      { --card-glow-rgb: 249, 115, 22;  --card-glow-color: #f97316; }
.tech-css3       { --card-glow-rgb: 59, 130, 246;  --card-glow-color: #3b82f6; }
.tech-bloc       { --card-glow-rgb: 56, 189, 248;  --card-glow-color: #38bdf8; }
.tech-provider   { --card-glow-rgb: 236, 72, 153;  --card-glow-color: #ec4899; }
.tech-riverpod   { --card-glow-rgb: 56, 189, 248;  --card-glow-color: #38bdf8; }
.tech-mobx       { --card-glow-rgb: 234, 179, 8;   --card-glow-color: #eab308; }
.tech-cubit      { --card-glow-rgb: 14, 165, 233;  --card-glow-color: #0ea5e9; }
.tech-hive       { --card-glow-rgb: 245, 158, 11;  --card-glow-color: #f59e0b; }
.tech-postman    { --card-glow-rgb: 249, 115, 22;  --card-glow-color: #f97316; }
.tech-android    { --card-glow-rgb: 34, 197, 94;   --card-glow-color: #22c55e; }
.tech-architecture { --card-glow-rgb: 167, 139, 250; --card-glow-color: #a78bfa; }

/* ── SUBSECTION DIVIDER HEADER ───────────────────────────── */
.subsection-header {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg,
    rgba(18, 14, 42, 0.85) 0%,
    rgba(8, 6, 20, 0.9) 100%
  );
  border: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subsection-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%,
    rgba(139, 92, 246, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.subsection-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 45%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%,
    rgba(6, 182, 212, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ── SELECTED WORKS ──────────────────────────────────────── */
.project-card {
  background: rgba(11, 9, 24, 0.35);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 26px;
  overflow: hidden;
  transition: all 0.4s var(--ease-spring);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 92, 246, 0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.project-card:hover { border-color: rgba(139, 92, 246, 0.2); }
.project-card:hover::before { opacity: 1; }

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.25s ease, gap 0.25s ease;
}

.project-card:hover .project-cta { color: #c4b5fd; gap: 10px; }

/* Mini Grid project card styling for Learning/Practice apps */
.mini-project-card {
  background: rgba(12, 10, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.mini-project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(6, 182, 212, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mini-project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1), 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.mini-project-card:hover::before { opacity: 1; }

/* Image container inside mini cards */
.mini-project-card .project-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: border-radius 0.3s ease;
}

.mini-project-card:hover .project-img-wrap {
  border-radius: 10px;
}

/* Shimmer on image hover */
.mini-project-card .project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.mini-project-card:hover .project-img-wrap::after {
  transform: translateX(100%);
}

/* ── OVERLAY GALLERY SCREENSHOT CARDS ───────────────────────── */
.gallery-screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.gallery-screen-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 8, 20, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  cursor: default;
}

.gallery-screen-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(var(--primary-rgb, 139, 92, 246), 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(var(--primary-rgb, 139, 92, 246), 0.08);
}

.gallery-screen-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.gallery-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-screen-card:hover .gallery-screen-img {
  transform: scale(1.04);
}

.gallery-screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(5, 3, 15, 0.88) 0%,
    rgba(5, 3, 15, 0.2) 40%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-screen-card:hover .gallery-screen-overlay {
  opacity: 1;
}

.gallery-screen-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(var(--primary-rgb, 139, 92, 246), 0.25);
  border: 1px solid rgba(var(--primary-rgb, 139, 92, 246), 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(139, 92, 246, 0.05) 0%,
    rgba(139, 92, 246, 0.25) 20%,
    rgba(6, 182, 212, 0.25) 80%,
    rgba(6, 182, 212, 0.05) 100%
  );
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 12px var(--primary);
  transition: height 0.1s ease-out;
}

.timeline-node { position: relative; padding-left: 58px; }

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #020108;
  border: 3px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
}

.timeline-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-2);
  transition: all 0.4s var(--ease-spring);
}

.timeline-node:hover .timeline-dot {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  transform: scale(1.15);
}

.timeline-node:hover .timeline-dot::after {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* ── CERTIFICATES SECTION ────────────────────────────────── */
.cert-card {
  background: rgba(14, 11, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
  z-index: 0;
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.08), var(--shadow-card);
}

/* ── WHATSAPP / CONTACT CTA ───────────────────────────────── */
.whatsapp-panel {
  background: linear-gradient(145deg, rgba(15, 12, 34, 0.6) 0%, rgba(5, 4, 12, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.whatsapp-panel::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  padding: 16px 36px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.35s var(--ease-spring);
}

.btn-whatsapp:hover {
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.65);
  transform: translateY(-3px) scale(1.02);
}

/* ── CASE STUDY OVERLAY ─────────────────────────────────── */
.case-study-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(24px);
  transition: opacity 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
}

.case-study-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: scale(1) translateY(0);
}

.close-overlay-btn {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 1100;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.close-overlay-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg) scale(1.05);
}

/* ── LINT FIXES & CLEANUP ────────────────────────────────── */
.neon-accent-line {
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.7) 30%, rgba(6, 182, 212, 0.7) 70%, transparent 100%);
}

.section-label-no-mb {
  margin-bottom: 0 !important;
}

.valign-middle {
  vertical-align: middle;
}

.github-view-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.glow-dot-purple {
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.8);
}
.glow-dot-green {
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}
.glow-dot-amber {
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}
.glow-dot-cyan {
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.8);
}

/* Icon Box Colors */
.icon-box-emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.icon-box-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.icon-box-pink {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
}
.icon-box-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.icon-box-blue {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.icon-box-sky {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
}
.icon-box-red {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ── THEME SWITCHER BUTTON ────────────────────────────────── */
.theme-toggle-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s var(--ease-spring);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.theme-toggle-btn:hover {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.35);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.3);
}

/* ── THEME PALETTE DROPDOWN ───────────────────────────────── */
.theme-palette {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(10, 8, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 8px;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.03);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
  z-index: 200;
  min-width: max-content;
}

.theme-palette.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Swatches */
.theme-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  background: transparent;
}

.theme-swatch:hover { transform: scale(1.2); }

.theme-swatch.active {
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255,255,255,0.2);
}

.theme-swatch.active::after {
  content: '✓';
  position: absolute;
  font-size: 9px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  z-index: 2;
  pointer-events: none;
}

.swatch-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  display: block;
}

/* Swatch colors */
.theme-swatch-purple .swatch-dot {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
}

.theme-swatch-blue .swatch-dot {
  background: linear-gradient(135deg, #0ea5e9, #06d6a0);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.7);
}

.theme-swatch-green .swatch-dot {
  background: linear-gradient(135deg, #22c55e, #84cc16);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.theme-swatch-red .swatch-dot {
  background: linear-gradient(135deg, #f97316, #eab308);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
}

/* Theme labels inside palette */
.theme-palette-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  align-self: center;
  padding: 0 4px;
}

/* Screen flash on theme switch */
.theme-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background: rgba(255, 255, 255, 0.04);
  transition: opacity 0.2s ease;
}

.theme-flash.active { opacity: 1; }

/* ── CINEMATIC FILTER BAR & DIRECTOR TABS ────────────────── */
.cinematic-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(14, 11, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 36px;
  width: fit-content;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cinematic-filter-btn {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cinematic-filter-btn:hover {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-1px);
}

.cinematic-filter-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(6, 182, 212, 0.25) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ── CINEMATIC CARDS ACCENTS & TAGS ──────────────────────── */
.cinematic-project-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cinematic-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-glow, #8b5cf6) 50%, transparent 100%);
  opacity: 0.7;
}

.cinematic-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.cinematic-badge-live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.cinematic-badge-client {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.cinematic-badge-systems {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c084fc;
}

.cinematic-badge-edtech {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.cinematic-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotPulse 2s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.cinematic-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 20;
}

.cinematic-action-live {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

.cinematic-action-live:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.cinematic-action-code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.cinematic-action-code:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ── DEDICATED SYSTEMS ENGINEERING SHOWCASE ──────────────── */
.systems-showcase-box {
  background: linear-gradient(145deg, rgba(11, 8, 24, 0.85) 0%, rgba(5, 3, 14, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.systems-diagram-container {
  background: rgba(4, 2, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.arch-node {
  background: rgba(16, 12, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.arch-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.arch-node-router {
  border-color: rgba(139, 92, 246, 0.35);
}
.arch-node-router:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18);
}

.arch-node-daemon {
  border-color: rgba(6, 182, 212, 0.35);
}
.arch-node-daemon:hover {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.18);
}

.arch-node-mobile {
  border-color: rgba(245, 158, 11, 0.35);
}
.arch-node-mobile:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.18);
}

.arch-node-hardware {
  border-color: rgba(16, 185, 129, 0.35);
}
.arch-node-hardware:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
}

.systems-code-box {
  background: #04030a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.systems-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

/* ── 4-PILLAR EXPERTISE SECTION ──────────────────────────── */
.expertise-pillar-card {
  background: linear-gradient(145deg, rgba(14, 11, 28, 0.75) 0%, rgba(7, 5, 18, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.expertise-pillar-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.1);
}

.pillar-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.pillar-bullet i {
  color: #06b6d4;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 0.7rem;
}

.tag-bubble {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.expertise-pillar-card:hover .tag-bubble {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════════════ */
/* ── INTERACTIVE MOCKUP SLIDER & THUMB CONTROLS ─────────── */
/* ══════════════════════════════════════════════════════════ */
.mockup-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 3, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.mockup-nav-arrow:hover {
  background: rgba(6, 182, 212, 0.35);
  border-color: #06b6d4;
  color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

.mockup-nav-prev { left: 10px; }
.mockup-nav-next { right: 10px; }

.mockup-thumb-btn {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 1px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.mockup-thumb-btn img {
  border-radius: 8px;
  display: block;
}

.mockup-thumb-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.mockup-thumb-btn.active {
  border-color: #06b6d4;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.5);
  transform: translateY(-3px) scale(1.08);
}

/* ══════════════════════════════════════════════════════════ */
/* ── VISUAL PROJECTS GALLERY SECTION ─────────────────────── */
/* ══════════════════════════════════════════════════════════ */
.gallery-filter-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.gallery-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.3);
}

.gallery-card {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.2);
}

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

/* ══════════════════════════════════════════════════════════ */
/* ── UNIVERSAL HIGH-RES LIGHTBOX MODAL ──────────────────── */
/* ══════════════════════════════════════════════════════════ */
.global-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.global-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 8, 0.94);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}

.lightbox-container {
  position: relative;
  z-index: 10;
  width: 96vw;
  max-width: 1400px;
  height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 5, 18, 0.85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  padding: 16px 20px 14px;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

[dir="rtl"] .lightbox-info {
  text-align: right;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-action-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  transform: scale(1.05);
}

#lightbox-zoom-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
}

.lightbox-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0;
  min-height: 0;
}

.lightbox-image-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-radius: 16px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(88vh - 160px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease-spring), opacity 0.2s ease;
}

.lightbox-img.is-mobile-shot {
  max-height: calc(88vh - 160px);
  width: auto;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #000;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(4, 3, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-nav-btn:hover {
  background: rgba(6, 182, 212, 0.4);
  border-color: #06b6d4;
  color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev { left: 14px; }
.lightbox-nav-btn.next { right: 14px; }

.lightbox-thumbnails {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.lightbox-thumb-btn {
  width: 64px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.lightbox-thumb-btn:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: scale(1.05);
}

.lightbox-thumb-btn.active {
  border-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .lightbox-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 12px 14px;
  }
  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .lightbox-nav-btn.prev { left: 6px; }
  .lightbox-nav-btn.next { right: 6px; }
  .lightbox-thumb-btn {
    width: 50px;
    height: 36px;
  }
}



