/* ═══════════════════════════════════════════════════════
   TAHA RESUME — Dark Futuristic Corporate-Tech Theme
   Palette: Deep Navy · Electric Blue · Violet · White
   Fonts: Syne (Display) + Plus Jakarta Sans (Body)
═══════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #080B14;
  --bg-surface:    #0D1120;
  --bg-card:       #111827;
  --bg-card-hover: #151e30;
  --border:        rgba(123, 104, 238, 0.18);
  --border-bright: rgba(123, 104, 238, 0.45);

  --blue:          #00D4FF;
  --blue-dim:      rgba(0, 212, 255, 0.12);
  --purple:        #7B68EE;
  --purple-dim:    rgba(123, 104, 238, 0.12);
  --violet:        #A78BFA;
  --gold:          #F59E0B;

  --text-primary:  #F0F4FF;
  --text-secondary:#9BA8C0;
  --text-muted:    #5A6480;

  --font-display:  'Syne', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-card:   0 4px 32px rgba(0,0,0,0.45), 0 1px 0 rgba(123,104,238,0.08) inset;
  --shadow-glow:   0 0 40px rgba(123, 104, 238, 0.15);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── BACKGROUND FX ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(123,104,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,104,238,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(123,104,238,0.4) 0%, transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.25) 0%, transparent 70%);
  bottom: 10%; left: -150px;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(167,139,250,0.2) 0%, transparent 70%);
  top: 50%; left: 40%;
  animation: orbFloat 20s ease-in-out infinite 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── PAGE WRAPPER ── */
.page-wrapper {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 52px 52px 52px 52px;
  background: linear-gradient(135deg, rgba(13,17,32,0.95) 0%, rgba(17,24,39,0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--violet));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hero::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(123,104,238,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

/* Hero Name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--violet) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.sep { color: var(--purple); margin: 0 6px; }

/* Hero About */
.hero-about {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 28px;
  border-left: 2px solid var(--purple);
  padding-left: 16px;
}

/* Contact Chips */
.hero-contacts {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}
.contact-chip:hover {
  background: var(--purple-dim);
  border-color: var(--border-bright);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.contact-chip svg { width: 14px; height: 14px; color: var(--purple); flex-shrink: 0; }

/* Hero Right — Avatar */
.hero-right {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.avatar-ring {
  position: relative; width: 160px; height: 160px;
}
.ring-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(123,104,238,0.4);
}
.avatar-initials {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
  color: #fff; letter-spacing: 0.05em;
}

/* Stat Cards */
.stat-cards {
  display: flex; flex-direction: column; gap: 10px; width: 100%;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.25s ease;
}
.stat-card:hover {
  background: var(--purple-dim);
  border-color: var(--border-bright);
  transform: translateX(4px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ══════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════ */
.section-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 8px 0 36px;
}
.divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.divider-icon {
  width: 32px; height: 32px;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.divider-icon svg { width: 14px; height: 14px; color: var(--purple); }

/* ══════════════════════════════════════════
   MAIN GRID
══════════════════════════════════════════ */
.main-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ══════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════ */
.section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.section:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card), 0 0 30px rgba(123,104,238,0.08);
}
.section::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 0 0 0 var(--radius-lg);
}

.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.section-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.section-icon svg { width: 16px; height: 16px; color: var(--purple); }

.section-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   JOB CARDS
══════════════════════════════════════════ */
.job-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
  position: relative;
}
.job-card:last-child { margin-bottom: 0; }
.job-card:hover {
  background: rgba(123,104,238,0.05);
  border-color: rgba(123,104,238,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.job-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px; gap: 12px;
}
.company-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 6px;
}
.company-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}
.company-dot.alt {
  background: var(--violet);
  box-shadow: 0 0 6px var(--violet);
}

.job-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.job-date {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.job-date svg { width: 12px; height: 12px; }

.job-status {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}
.job-status.active {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--blue);
}
.job-status.past {
  background: rgba(90,100,128,0.15);
  border: 1px solid rgba(90,100,128,0.3);
  color: var(--text-muted);
}

.job-duties {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 18px;
}
.job-duties li {
  font-size: 13.5px; color: var(--text-secondary);
  padding-left: 18px; position: relative; line-height: 1.55;
}
.job-duties li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
}

/* Achievements Block */
.achievements-block {
  background: rgba(123,104,238,0.06);
  border: 1px solid rgba(123,104,238,0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.ach-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 12px;
}
.ach-label svg { width: 14px; height: 14px; }

.ach-items { display: flex; flex-direction: column; gap: 10px; }
.ach-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}
.ach-item strong { color: var(--text-primary); }
.ach-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.ach-icon svg { width: 11px; height: 11px; }
.ach-icon.gold { background: rgba(245,158,11,0.15); color: var(--gold); }
.ach-icon.blue { background: rgba(0,212,255,0.12); color: var(--blue); }
.ach-icon.purple { background: rgba(123,104,238,0.15); color: var(--purple); }

/* ══════════════════════════════════════════
   EDUCATION TIMELINE
══════════════════════════════════════════ */
.edu-timeline {
  position: relative; padding-left: 24px;
}
.edu-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 2px;
}

.edu-item {
  position: relative; margin-bottom: 22px;
}
.edu-item:last-child { margin-bottom: 0; }

.edu-dot {
  position: absolute; left: -21px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--purple);
  box-shadow: 0 0 10px rgba(123,104,238,0.4);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 4px;
}
.edu-school {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 8px;
}
.edu-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue-dim);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--blue);
  padding: 3px 10px; border-radius: 100px;
}

/* ══════════════════════════════════════════
   SKILLS
══════════════════════════════════════════ */
.skills-list { display: flex; flex-direction: column; gap: 14px; }

.skill-item { }
.skill-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px;
}
.skill-name {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.skill-pct {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: var(--purple);
}

.skill-bar {
  height: 5px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.skill-fill {
  height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 0 8px rgba(123,104,238,0.5);
}

/* ══════════════════════════════════════════
   TAGS CLOUD
══════════════════════════════════════════ */
.tags-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: default;
}
.tag:hover {
  background: var(--purple-dim);
  border-color: var(--border-bright);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.tag.accent {
  background: var(--purple-dim);
  border-color: rgba(123,104,238,0.3);
  color: var(--violet);
}
.tag.accent:hover {
  background: rgba(123,104,238,0.2);
  border-color: var(--purple);
  color: #fff;
}

/* ══════════════════════════════════════════
   INDUSTRY GRID
══════════════════════════════════════════ */
.industry-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.industry-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: default;
}
.industry-card:hover {
  background: var(--blue-dim);
  border-color: rgba(0,212,255,0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.industry-card svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* ══════════════════════════════════════════
   AI NOTE
══════════════════════════════════════════ */
.ai-note {
  display: flex; align-items: flex-start; gap: 14px;
  background: linear-gradient(135deg, rgba(123,104,238,0.08), rgba(0,212,255,0.05));
  border: 1px solid rgba(123,104,238,0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.ai-note-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--purple-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.ai-note-icon svg { width: 16px; height: 16px; color: var(--purple); }
.ai-note p {
  font-size: 13px; color: var(--text-secondary); line-height: 1.65;
}
.ai-note strong { color: var(--violet); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.resume-footer {
  margin-top: 40px;
}
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 24px;
}
.footer-content {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-tagline {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.footer-contact {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}

/* ══════════════════════════════════════════
   PRINT / ATS STYLES
══════════════════════════════════════════ */
@media print {
  body { background: #fff; color: #000; }
  .bg-grid, .bg-orb { display: none; }
  .page-wrapper { padding: 20px; max-width: 100%; }
  .hero, .section, .job-card { box-shadow: none; border: 1px solid #ddd; }
  .hero-name { -webkit-text-fill-color: #000; color: #000; }
  .skill-fill { background: #555; }
  a { color: #000; text-decoration: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .hero-right { flex-direction: row; justify-content: center; align-items: center; }
  .stat-cards { flex-direction: row; }
  .main-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-wrapper { padding: 24px 16px 48px; }
  .hero { padding: 28px 20px; }
  .hero-name { font-size: 48px; }
  .hero-right { flex-direction: column; }
  .stat-cards { flex-direction: column; }
  .industry-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}