/* ============================================================
   INJEZ TEMIMI — PORTFOLIO STYLES
   Dark-first design · Glassmorphism · Smooth animations
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:          #08091a;
  --bg-2:        #0d0f24;
  --bg-alt:      #0a0c1e;
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border:rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --accent:      #4f8ef7;
  --accent-2:    #7c3aed;
  --accent-glow: rgba(79, 142, 247, 0.25);
  --grad:        linear-gradient(135deg, #4f8ef7, #7c3aed);
  --grad-text:   linear-gradient(135deg, #60a5fa, #a78bfa);

  --text:        #e8edf7;
  --text-muted:  #8b95b0;
  --text-dim:    #5a6380;

  --border:      rgba(255, 255, 255, 0.07);
  --radius:      16px;
  --radius-sm:   10px;

  --nav-h:       72px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --trans:       0.4s var(--ease);
}

[data-theme="light"] {
  --bg:          #f0f4ff;
  --bg-2:        #e8eef9;
  --bg-alt:      #eaf0fb;
  --glass-bg:    rgba(255, 255, 255, 0.6);
  --glass-border:rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.8);

  --accent:      #2563eb;
  --accent-2:    #6d28d9;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --grad-text:   linear-gradient(135deg, #2563eb, #6d28d9);

  --text:        #1a2035;
  --text-muted:  #4b5775;
  --text-dim:    #8892aa;

  --border:      rgba(0, 0, 0, 0.06);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  transition: background var(--trans), color var(--trans);
}

::selection { background: var(--accent); color: #fff; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── CANVAS ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── CUSTOM CURSOR ── */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s, opacity 0.3s;
}
.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  top: 0; left: 0;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  transform: translate(-50%, -50%);
  top: 0; left: 0;
  transition: top 0.12s, left 0.12s, transform 0.1s, opacity 0.3s;
}
@media (hover: none) { .cursor, .cursor-follower { display: none; } }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--trans), box-shadow var(--trans);
}
.nav.scrolled {
  background: rgba(8, 9, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(240, 244, 255, 0.85);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: auto;
}
.logo-bracket { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--glass-bg); }
.nav-link.active { color: var(--accent); }
.cta-link {
  background: var(--grad);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.cta-link:hover { opacity: 0.88; }

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); background: var(--glass-hover); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  gap: 60px;
}

.hero-content { max-width: 620px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -3px;
  margin-bottom: 20px;
  overflow: hidden;
}
.line-wrap { display: block; overflow: hidden; }
.line-wrap span { display: block; }

.accent-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
  min-height: 30px;
}
.role-prefix { color: var(--text-dim); }
.typewriter { color: var(--accent); font-weight: 600; }
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-summary {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(79, 142, 247, 0.45); }
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-hover); }
.full-width { width: 100%; justify-content: center; }

/* ── STATS ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { text-align: center; }
.stat-number {
  font-size: 38px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-plus {
  font-size: 28px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* ── AVATAR ── */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.avatar-ring {
  position: relative;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  animation: spin linear infinite;
}
.ring-1 { width: 100%; height: 100%; animation-duration: 20s; }
.ring-2 { width: 80%; height: 80%; animation-duration: 15s; animation-direction: reverse; border-color: rgba(79,142,247,0.15); }
.ring-3 { width: 60%; height: 60%; animation-duration: 10s; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.avatar-img {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 20px rgba(0,0,0,0.3);
  z-index: 1;
  position: relative;
}
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.orbit-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.orbit-dot-1 { top: 8px; left: 50%; transform: translateX(-50%); animation: orbit1 8s linear infinite; }
.orbit-dot-2 { bottom: 8px; left: 50%; transform: translateX(-50%); animation: orbit2 12s linear infinite; }
.orbit-dot-3 { left: 8px; top: 50%; transform: translateY(-50%); animation: orbit3 6s linear infinite; background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
@keyframes orbit1 { from { transform: translateX(-50%) rotate(0deg) translateY(-145px) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg) translateY(-145px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: translateX(-50%) rotate(0deg) translateY(145px) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg) translateY(145px) rotate(360deg); } }
@keyframes orbit3 { from { transform: translateY(-50%) rotate(0deg) translateX(145px) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg) translateX(145px) rotate(-360deg); } }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── SECTIONS ── */
.section {
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}
.section-alt { background: var(--bg-alt); }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── GLASS ── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: background var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(79, 142, 247, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); }
.about-tag {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--glass-bg);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  line-height: 1.6;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
}
.card-icon { font-size: 22px; flex-shrink: 0; }
.card-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 2px; }
.card-value { font-size: 13px; color: var(--text); font-weight: 500; }
.card-value a { color: var(--accent); text-decoration: none; }
.card-value a:hover { text-decoration: underline; }

/* ── TIMELINE ── */
.timeline { position: relative; }
.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}
.marker-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.marker-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 8px;
  opacity: 0.3;
}

.timeline-card {
  padding: 28px 32px;
}
.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(124,58,237,0.2));
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
}
.tc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.tc-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.tc-date {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  background: var(--glass-bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.tc-desc {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.7;
}
.tc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.tc-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}
.tc-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.tc-bullets li strong { color: var(--text); font-weight: 600; }
.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tc-tags span {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.15);
}

/* ── SKILLS ── */
.mindset-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.mindset-item {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.mindset-item:hover { background: var(--glass-hover); }
.mindset-icon { font-size: 26px; }
.mindset-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.mindset-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.mindset-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mindset-strip { flex-direction: column; }
  .mindset-divider { width: 100%; height: 1px; }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.skill-block {
  padding: 28px;
}
.skill-block-icon { font-size: 32px; margin-bottom: 14px; }
.skill-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-pills span {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--glass-bg);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  transition: background 0.2s, color 0.2s;
}
.skill-pills span:hover {
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  border-color: rgba(79, 142, 247, 0.25);
}
.certs-block { grid-column: span 4; }
.cert-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.cert-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--grad);
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* ── ACHIEVEMENTS ── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ach-card {
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.ach-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.ach-card:hover::before { opacity: 0.04; }
.ach-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-dim);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 1;
}
.ach-icon { font-size: 28px; margin-bottom: 12px; position: relative; z-index: 1; }
.ach-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
.ach-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  position: relative; z-index: 1;
}

/* ── RECOMMENDATIONS ── */
.recs-carousel-wrapper { position: relative; overflow: hidden; }
.recs-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.rec-card {
  min-width: calc(33.333% - 14px);
  flex-shrink: 0;
  padding: 32px;
  box-sizing: border-box;
  position: relative;
  flex-shrink: 0;
}
.rec-quote {
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 16px;
}
.rec-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}
.rec-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rec-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rec-name { font-size: 14px; font-weight: 700; color: var(--text); }
.rec-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

.recs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.recs-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.recs-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.recs-btn svg { width: 16px; height: 16px; }
.recs-dots { display: flex; gap: 6px; }
.recs-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.recs-dot.active { background: var(--accent); transform: scale(1.4); }

/* ── CONTACT ── */
.contact-simple {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.contact-card-lg {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.contact-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-card-icon svg { width: 22px; height: 22px; }
.linkedin-icon { background: rgba(10, 102, 194, 0.12); border-color: rgba(10, 102, 194, 0.25); color: #0a66c2; }
.contact-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-value { font-size: 15px; color: var(--text); font-weight: 700; word-break: break-all; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}
.footer-name { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.footer-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(79, 142, 247, 0.25);
  background: var(--accent-glow);
  transition: background 0.2s, border-color 0.2s;
}
.footer-hub-link:hover { background: rgba(79, 142, 247, 0.18); border-color: rgba(79, 142, 247, 0.5); }
.footer-hub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
}

/* ── REVEAL ANIMATIONS ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-block { grid-column: span 2; }
  .cert-list { grid-template-columns: repeat(2, 1fr); }
  .rec-card { min-width: calc(50% - 10px); }
  .mindset-strip { flex-wrap: wrap; }
  .mindset-item { min-width: calc(50% - 1px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-summary { max-width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .tc-header { flex-direction: column; gap: 8px; }
  .tc-date { align-self: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 60px 16px; }

  /* Nav */
  .nav-inner { padding: 0 16px; }

  /* Hero */
  .hero { padding-left: 16px; padding-right: 16px; gap: 32px; }
  .hero-name { font-size: 56px; letter-spacing: -2px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }

  /* Timeline */
  .timeline-item { grid-template-columns: 14px 1fr; gap: 12px; }
  .timeline-card { padding: 18px 16px; }
  .tc-title { font-size: 15px; }
  .tc-tags { gap: 6px; }
  .tc-tags span { font-size: 11px; padding: 3px 9px; }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }
  .certs-block { grid-column: span 1; }
  .cert-list { grid-template-columns: 1fr 1fr; }
  .mindset-strip { flex-direction: column; }
  .mindset-divider { width: 100%; height: 1px; }
  .mindset-item { padding: 18px 20px; }

  /* Achievements */
  .achievements-grid { grid-template-columns: 1fr; }

  /* Recommendations */
  .rec-card {
    min-width: 100%;
    width: 100%;
    padding: 22px 18px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .rec-card p { font-size: 14px; }
  .recs-carousel-wrapper { overflow: hidden; }

  /* About */
  .about-cards { grid-template-columns: 1fr; }
  .info-card { padding: 14px; }

  /* Contact */
  .contact-card { min-width: 100%; max-width: 100%; padding: 20px; }
  .contact-simple { flex-direction: column; align-items: stretch; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 44px; letter-spacing: -2px; }
  .hero-role { font-size: 15px; }
  .hero-tag { font-size: 12px; padding: 5px 12px; }
  .btn { font-size: 14px; padding: 11px 20px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 16px; }
  .stat-number { font-size: 30px; }

  .section-title { font-size: 28px; letter-spacing: -1px; }
  .section-sub { font-size: 15px; }

  .cert-list { grid-template-columns: 1fr; }
  .rec-card p { font-size: 13px; line-height: 1.65; }
  .rec-name { font-size: 13px; }
  .rec-role { font-size: 11px; }

  .tc-bullets li { font-size: 13px; }
  .ach-card { padding: 24px 18px; }
  .ach-number { font-size: 36px; }

  .contact-value { font-size: 13px; word-break: break-all; }
  .form-group input, .form-group textarea { font-size: 16px; } /* prevent iOS zoom */
}
