/* ===== Variables (theme similar to nawafalzaiber.me) ===== */
:root {
  --bg: #08080c;
  --bg-card: #0e0e14;
  --bg-elevated: #14141c;
  --text: #f0f0f5;
  --text-muted: #8a8a9a;
  --accent: #7c7cff;
  --accent-light: #a5a5ff;
  --accent-cyan: #6ee7e0;
  --accent-pink: #c084fc;
  --accent-dim: rgba(124, 124, 255, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Outfit', 'Noto Kufi Arabic', system-ui, sans-serif;
  --radius: 12px;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

/* ===== Global keyframes: gradients & shine ===== */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes gradientFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; filter: blur(20px); }
  50% { opacity: 0.9; filter: blur(24px); }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(124, 124, 255, 0.3); }
  50% { text-shadow: 0 0 30px rgba(165, 165, 255, 0.5); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hide default cursor when custom cursor is active (desktop only) */
body.cursor-active {
  cursor: none;
}
body.cursor-active a,
body.cursor-active button,
body.cursor-active .btn {
  cursor: none;
}

/* ===== Custom Cursor: كرة الضوء ===== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cursor.hidden {
  opacity: 0;
  visibility: hidden;
}
.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(220, 220, 255, 0.9) 25%,
    var(--accent-light) 50%,
    var(--accent) 75%,
    rgba(80, 80, 180, 0.9) 100%
  );
  box-shadow:
    inset -2px -2px 6px rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.15),
    0 0 18px 2px rgba(124, 124, 255, 0.5),
    0 0 36px 4px rgba(124, 124, 255, 0.25),
    0 0 56px 8px rgba(124, 124, 255, 0.12);
  transition: width 0.35s cubic-bezier(0.25, 0.1, 0.2, 1),
              height 0.35s cubic-bezier(0.25, 0.1, 0.2, 1),
              box-shadow 0.35s ease,
              filter 0.35s ease;
  animation: orb-breathe 3s ease-in-out infinite;
}
body.cursor-active .cursor.hover .cursor-orb {
  width: 38px;
  height: 38px;
  box-shadow:
    inset -3px -3px 8px rgba(0, 0, 0, 0.2),
    inset 3px 3px 6px rgba(255, 255, 255, 0.2),
    0 0 28px 4px rgba(124, 124, 255, 0.6),
    0 0 52px 8px rgba(124, 124, 255, 0.35),
    0 0 80px 16px rgba(124, 124, 255, 0.18);
  animation-duration: 2s;
}
@keyframes orb-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan), var(--accent-pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 2s ease infinite;
}
.loader-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-progress {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 2px;
  animation: loadProgress 1.2s ease-out forwards;
}
@keyframes loadProgress {
  to { width: 100%; }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}
.nav.scrolled { background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(12px); }
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.9; }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--accent-light); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 124, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(110, 231, 224, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, var(--text-muted), var(--accent-cyan), var(--text-muted));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero-name {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent-cyan) 40%, var(--accent-pink) 70%, var(--accent-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s linear infinite;
}
.hero-role {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan), var(--accent-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
.hero-badge {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(124, 124, 255, 0.2), rgba(110, 231, 224, 0.15));
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  box-shadow: 0 0 20px rgba(124, 124, 255, 0.15);
  animation: textGlow 3s ease-in-out infinite;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 50%, var(--accent-pink) 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  animation: gradientShift 4s ease infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 124, 255, 0.4);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(124, 124, 255, 0.08), rgba(110, 231, 224, 0.05));
  box-shadow: 0 0 20px rgba(124, 124, 255, 0.15);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-cyan));
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

/* ===== Sections Common ===== */
.section {
  padding: var(--section-padding) 1.5rem;
  border-top: 1px solid var(--border);
}
.container { max-width: 900px; margin: 0 auto; }
.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 2px;
  animation: gradientShift 3s ease infinite;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.about-text strong { color: var(--text); }
.about-text blockquote {
  border-right: 3px solid var(--accent);
  padding-right: 1rem;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.stat-num, .stat-plus {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== Education ===== */
.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 560px;
  position: relative;
  transition: box-shadow 0.3s ease;
}
.education-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,124,255,0.3), rgba(110,231,224,0.2), rgba(124,124,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.education-card:hover { box-shadow: 0 8px 32px rgba(124, 124, 255, 0.1); }
.education-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.education-card .degree { color: var(--text-muted); margin-bottom: 0.25rem; }
.education-card .dates { font-size: 0.9rem; background: linear-gradient(90deg, var(--accent), var(--accent-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.skill-category:hover {
  border-color: rgba(124, 124, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.skill-category h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-category ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-category li {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

/* ===== Projects ===== */
.projects-list { display: flex; flex-direction: column; gap: 1.5rem; }
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(124, 124, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover {
  border-color: rgba(124, 124, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(124, 124, 255, 0.1);
  transform: translateY(-2px);
}
.project-card:hover::before { opacity: 1; }
.project-num {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.project-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-tags span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.project-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-light);
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}
.project-link:hover { opacity: 0.85; }

/* ===== Tools ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.tool-card:hover {
  border-color: rgba(124, 124, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.tool-icon { font-size: 1.75rem; }
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.tool-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-top: 0.25rem;
}
.tool-card:hover .tool-cta { text-decoration: underline; }

/* ===== My Apps ===== */
.apps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.app-card:hover {
  border-color: rgba(124, 124, 255, 0.35);
  box-shadow: 0 8px 28px rgba(124, 124, 255, 0.15);
  transform: translateY(-3px);
}
.app-icon-wrap { display: block; margin-bottom: 0.5rem; }
.app-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.app-icon { font-size: 2rem; opacity: 0.9; }
.app-title { font-weight: 600; font-size: 1.1rem; }
.app-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.app-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-top: 0.35rem; display: block; }
.app-cta { font-size: 0.85rem; color: var(--accent-light); margin-top: 0.5rem; }

/* ===== Latest Lenses ===== */
.lenses-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.lens-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.lens-card:hover {
  border-color: rgba(124, 124, 255, 0.35);
  box-shadow: 0 6px 24px rgba(124, 124, 255, 0.12);
  transform: translateY(-2px);
}
.lens-title { font-weight: 600; font-size: 1rem; }
.lens-desc { font-size: 0.85rem; color: var(--text-muted); }
.lens-arrow { font-size: 0.9rem; color: var(--accent-light); margin-top: auto; }

/* ===== Latest Tutorials ===== */
.tutorials-list { display: flex; flex-direction: column; gap: 1rem; }
.tutorial-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.tutorial-card:hover {
  border-color: rgba(124, 124, 255, 0.35);
  box-shadow: 0 6px 24px rgba(124, 124, 255, 0.12);
  transform: translateX(4px);
}
.tutorial-title { font-weight: 600; font-size: 1rem; flex: 1; }
.tutorial-platform { font-size: 0.85rem; color: var(--text-muted); }
.tutorial-arrow { color: var(--accent-light); }
.empty-message { color: var(--text-muted); font-size: 0.95rem; text-align: center; padding: 2rem; }

/* ===== Activities Timeline ===== */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
@media (min-width: 640px) {
  .timeline::before { right: 180px; }
}
.timeline-item {
  position: relative;
  padding-right: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .timeline-item { padding-right: 220px; display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: start; padding-right: 0; }
}
.timeline-item::before {
  content: '';
  position: absolute;
  right: -5px;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--bg);
}
@media (min-width: 640px) {
  .timeline-item::before { right: calc(180px - 5px); }
}
.timeline-date {
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .timeline-date { margin-bottom: 0; }
}
.timeline-content h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.timeline-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}
.timeline-link:hover { opacity: 0.9; }

/* ===== Contact ===== */
.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}
.contact-email:hover { opacity: 0.9; }
.contact-social-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.social-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover { color: var(--accent-light); transform: translateY(-2px); }
.social-links-direct { gap: 1rem; }
.social-links-direct a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-links-direct a:hover { border-color: var(--accent); color: var(--accent-light); }

/* ===== Footer ===== */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer a.footer-admin { color: var(--text-muted); font-size: 0.8rem; margin-right: 0.5rem; }
.footer a.footer-admin:hover { color: var(--accent-light); }

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}
