/* ============================================================
   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.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}

.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;
  cursor: none;
}

/* 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: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  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(-4px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.08);
}

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

/* ── 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);
}

