/* ═══════════════════════════════════════════════
   M Zubair Aslam — Portfolio Stylesheet
   Typography: Syne (Display) + DM Sans (Body)
   Theme: Dark-first with light mode toggle
═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --accent: #00D9FF;
  --accent-2: #A78BFA;
  --accent-glow: rgba(0, 217, 255, 0.25);

  /* Dark theme (default) */
  --bg: #070B14;
  --bg-2: #0D1220;
  --bg-3: #131929;
  --bg-card: #111827;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 217, 255, 0.3);
  --text: #F1F5F9;
  --text-muted: #8B9BB4;
  --text-faint: #4A5568;
  --nav-bg: rgba(7, 11, 20, 0.85);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  /* ── Profile Photo ── */
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--accent-glow);
}

/* ── Hero Photo ── */
.hero-photo-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  animation: fadeUp 0.9s ease both;
}

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 50px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #F8FAFD;
  --bg-2: #EFF2F8;
  --bg-3: #E8EDF7;
  --bg-card: #FFFFFF;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 121, 200, 0.3);
  --text: #0F172A;
  --text-muted: #475569;
  --text-faint: #94A3B8;
  --nav-bg: rgba(248, 250, 253, 0.9);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --accent: #0079C8;
  --accent-glow: rgba(0, 121, 200, 0.15);
  --accent-2: #7C3AED;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

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

/* ── Utilities ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid var(--border-hover);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.mt-2 { margin-top: 2rem; }

/* ── Custom Cursor ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring.hovered { width: 50px; height: 50px; opacity: 0.3; }

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.2);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-glow);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--spring);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-glow);
}

.btn-full { width: 100%; justify-content: center; }
.btn-loading { display: none; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--nav-h) 24px 60px;
  overflow: hidden;
}

/* Background grid */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 8s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  bottom: -100px; left: -100px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: #10B981;
  top: 40%; left: 60%;
  animation-delay: 4s;
}

@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -30px) scale(1.05); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeDown 0.8s var(--ease) both;
}

.tag-dot {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.name-line {
  display: block;
  animation: fadeUp 0.9s var(--ease) both;
}

.name-line:nth-child(2) { animation-delay: 0.1s; }

.name-line.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.typing-wrapper {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}

.cursor-blink {
  color: var(--accent);
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  animation: fadeUp 0.9s var(--ease) 0.3s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat > span:not(.stat-num):not(.stat-label) {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  display: inline;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 1s var(--ease) 0.8s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 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; }
}

/* ═══════════════ ABOUT ═══════════════ */
.about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

/* Avatar */
.about-img-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 60px auto;
}

.about-avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.avatar-initials {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #000;
}

.avatar-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px dashed var(--border-hover);
  animation: spin-slow 20s linear infinite;
}

.ring-1 { width: 260px; height: 260px; }
.ring-2 { width: 310px; height: 310px; animation-direction: reverse; animation-duration: 30s; }

@keyframes spin-slow { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.about-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.badge-1 { top: 0; right: -10px; }
.badge-2 { bottom: 0; left: -10px; }

/* About text */
.about-desc { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }

.about-highlights {
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight i {
  color: var(--accent);
  width: 16px;
  flex-shrink: 0;
}

/* ═══════════════ SKILLS ═══════════════ */
.skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.skill-card:hover::before { opacity: 1; }

.skill-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--clr);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.skill-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative; z-index: 1;
}

.skill-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative; z-index: 1;
}

.skill-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative; z-index: 1;
}

.skill-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 8px var(--accent-glow);
}

.skill-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  text-align: right;
}

/* ═══════════════ PROJECTS ═══════════════ */
.projects { background: var(--bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.project-card:hover::after { transform: scaleX(1); }

.project-card.featured {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  grid-column: span 1;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  margin-bottom: 12px;
  width: fit-content;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--clr) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--clr);
}

.project-links { display: flex; gap: 8px; }

.project-link {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}

.project-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tech span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ═══════════════ SERVICES ═══════════════ */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.service-list i {
  color: var(--accent);
  font-size: 0.75rem;
  width: 14px;
}

.services-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════ EDUCATION / TIMELINE ═══════════════ */
.education { background: var(--bg-2); }

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
  display: flex;
  gap: 40px;
  padding-bottom: 48px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--accent-glow), 0 0 20px var(--accent-glow);
  z-index: 1;
  position: relative;
}

.timeline-dot::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #000;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  flex: 1;
  transition: all 0.3s var(--ease);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

/* ═══════════════ CONTACT ═══════════════ */
.contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-item a, .contact-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--accent); }

/* Social buttons */
.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  transition: all 0.25s var(--spring);
}

.social-btn:hover {
  transform: translateY(-4px);
  color: #fff;
}

.social-btn.github:hover  { background: #333; border-color: #555; }
.social-btn.linkedin:hover{ background: #0077B5; border-color: #0077B5; }
.social-btn.fiverr:hover  { background: #1DBF73; border-color: #1DBF73; }
.social-btn.freelancer:hover { background: #29B2FE; border-color: #29B2FE; }

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
}

.form-error {
  font-size: 0.78rem;
  color: #EF4444;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-success.show { display: flex; }

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo a {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-logo p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: var(--accent-glow);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ═══════════════ BACK TO TOP ═══════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s var(--spring);
  z-index: 500;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-4px); }

/* ═══════════════ AOS-LIKE ANIMATIONS ═══════════════ */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Keyframe helpers */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-img-wrap { margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.35s var(--ease);
    backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link { padding: 12px 16px; font-size: 1rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.8rem; }

  .section { padding: 72px 0; }

  .hero-cta { gap: 10px; }
  .btn { padding: 11px 22px; font-size: 0.9rem; }

  .footer-content { flex-direction: column; gap: 28px; }
  .timeline::before { left: 18px; }
  .timeline-item { gap: 20px; }
  .contact-form { padding: 24px; }
  .about-highlights { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(2.5rem, 13vw, 4rem); }
  .projects-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
  .hero-tag span { font-size: 0.75rem; }
}
