/* ═══════════════════════════════════════════════
   EGYPTIAN EMPERORS – Portfolio Page Styles
   ═══════════════════════════════════════════════ */

/* ── Portfolio Hero ─────────────────────────── */
.portfolio-hero {
  background: var(--black);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* ── Profile Card ───────────────────────────── */
.profile-card {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  text-align: left;
}
.profile-avatar {
  width: 72px; height: 72px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
}
.profile-info h2 {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}
.profile-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.profile-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Filter Bar ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ── Projects Grid ──────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* ── Project Card ───────────────────────────── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}
.project-card:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Project Media ──────────────────────────── */
.project-media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface);
  overflow: hidden;
}
.project-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gold-dark);
  opacity: 0.4;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--surface) 0%, var(--card) 100%);
}
.project-card:hover .project-placeholder {
  opacity: 0.7;
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
}

/* ── Project Body ───────────────────────────── */
.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-cat-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  border: 1px solid;
}
.project-cat-web   { color: #4a9eff; border-color: rgba(74,158,255,0.3); background: rgba(74,158,255,0.07); }
.project-cat-data  { color: #f0a030; border-color: rgba(240,160,48,0.3);  background: rgba(240,160,48,0.07); }
.project-cat-ai    { color: #b070ff; border-color: rgba(176,112,255,0.3); background: rgba(176,112,255,0.07); }
.project-cat-game  { color: #50d890; border-color: rgba(80,216,144,0.3);  background: rgba(80,216,144,0.07); }

.project-title {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.tech-tag {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  color: var(--gold-dark);
}
.project-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ── Modal ──────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open-backdrop,
.project-modal.open ~ .modal-backdrop { opacity: 1; pointer-events: all; }

.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 1200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(600px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.project-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.project-modal.open ~ .modal-backdrop {
  opacity: 1;
  pointer-events: all;
}
.modal-close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.modal-title {
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding-right: 2rem;
}
.modal-desc {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}
.modal-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Portfolio Main ─────────────────────────── */
.portfolio-main { background: var(--deep); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
  }
  .profile-links { justify-content: center; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .filter-bar { gap: 0.35rem; }
  .filter-btn { padding: 0.45rem 0.9rem; font-size: 0.7rem; }
}

/* ════════════════════════════════════════════════════
   ABOUT / HERO SECTION
   ════════════════════════════════════════════════════ */
.about-section {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: center;
}

.profile-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-img-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(201,168,76,0.15);
}
.profile-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold-dark);
  opacity: 0.5;
}
.profile-img-badge {
  position: absolute;
  bottom: 1rem;
  right: -0.5rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.profile-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
.profile-bio {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.p-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.p-stat-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════
   EXPERTISE SECTION
   ════════════════════════════════════════════════════ */
.expertise-section { background: var(--deep); }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.expertise-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.expertise-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.expertise-card:hover::before { transform: scaleX(1); }
.expertise-icon {
  width: 54px; height: 54px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.expertise-card:hover .expertise-icon {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.expertise-card h3 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}
.expertise-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.tech-stack-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

/* ════════════════════════════════════════════════════
   CAREER TIMELINE
   ════════════════════════════════════════════════════ */
.timeline-section { background: var(--black); }

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 28px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--gold-dark), var(--border), transparent);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  background: var(--card);
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex: 1;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}
.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}
.timeline-title {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}
.timeline-company {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.timeline-company i { color: var(--gold-dark); font-size: 0.75rem; }
.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE – PORTFOLIO PAGE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-section { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; text-align: center; }
  .profile-bio { margin: 0 auto 1.5rem; }
  .profile-stats { justify-content: center; }
  .profile-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-dot { width: 40px; height: 40px; font-size: 0.85rem; }
  .timeline-item { gap: 1rem; }
  .profile-img-frame { width: 200px; height: 200px; }
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   HERO / ABOUT ME  (updated)
   ════════════════════════════════════════════════════ */
.hero-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.profile-name span { color: var(--gold); }
.gold-text { color: var(--gold); }

/* Currently learning pill */
.learning-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.learning-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.learning-pill strong { color: var(--gold); }
.learning-end { color: var(--gold-dark); font-size: 0.75rem; }
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* ════════════════════════════════════════════════════
   TIMELINE UPDATES
   ════════════════════════════════════════════════════ */
.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.timeline-badge {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.active-badge {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}
.cert-badge {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
}

/* Active / current role dot animation */
.timeline-dot.current-role { position: relative; }
.timeline-active-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: ring-pulse 2.5s infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.15; transform: scale(1.15); }
}

/* Proof button */
.proof-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.proof-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

/* ════════════════════════════════════════════════════
   FEATURED / HIGHLIGHT PROJECT CARD
   ════════════════════════════════════════════════════ */
.project-featured {
  border-color: rgba(201,168,76,0.4);
  position: relative;
}
.project-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.3), inset 0 0 40px rgba(201,168,76,0.03);
  pointer-events: none;
}
.project-feature-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

/* ════════════════════════════════════════════════════
   PROOF / CERTIFICATE MODAL
   ════════════════════════════════════════════════════ */
.proof-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 1200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(640px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.proof-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.proof-modal-body { padding: 2.5rem; }

.proof-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.proof-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.proof-company {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}
.proof-title {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}
.proof-period {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.proof-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Curriculum block */
.proof-curriculum {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.proof-curriculum-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.proof-curriculum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.curriculum-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 2px;
  color: var(--text-muted);
}

/* Cert note */
.proof-cert-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.proof-cert-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.proof-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE UPDATES
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; justify-items: center; text-align: center; }
  .profile-bio { margin: 0 auto 1.5rem; }
  .learning-pill { justify-content: center; }
  .profile-stats { justify-content: center; }
  .profile-actions { justify-content: center; }
}
@media (max-width: 768px) {
  .proof-modal-body { padding: 1.5rem; }
  .proof-header { flex-direction: column; gap: 0.75rem; }
}
