/* =========================================
   MOHAMMAD ZAKI — PORTFOLIO CSS
   Theme: Data Analytics Dashboard
   ========================================= */

/* === CSS VARIABLES === */
:root {
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --bg: #F8FAFC;
  --bg-alt: #EFF6FF;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --secondary: #1E293B;
  --success: #10B981;
  --nav-h: 68px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 12px 48px rgba(37, 99, 235, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-alt: #0D1526;
  --surface: #1E293B;
  --surface-2: #263349;
  --border: #334155;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --secondary: #1E293B;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.1; }
.section-label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-label::before { content: '// '; opacity: 0.6; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.accent-text { color: var(--accent); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
[data-theme="light"] .navbar:not(.scrolled) .nav-logo { color: #F8FAFC; }
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-icon-btn:hover { color: var(--primary); background: rgba(37, 99, 235, 0.08); }
.nav-icon-btn svg { width: 18px; height: 18px; }
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 1rem;
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--primary); background: rgba(37, 99, 235, 0.08); }
.theme-icon { line-height: 1; }
[data-theme="light"] .moon { display: none; }
[data-theme="dark"] .sun { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }
.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); }

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--secondary);
}
[data-theme="dark"] .hero { background: #080F1E; }
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 24px 24px;
  animation: heroFadeIn 1s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-name {
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 800;
  color: #F1F5F9;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
}
.hero-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: var(--text-light);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-role .sep { color: var(--accent); margin: 0 4px; }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94A3B8;
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}
.btn-outline {
  background: transparent;
  color: #F1F5F9;
  border: 1.5px solid rgba(241, 245, 249, 0.25);
}
.btn-outline:hover {
  background: rgba(241, 245, 249, 0.08);
  border-color: rgba(241, 245, 249, 0.5);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.8rem; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

/* === HERO SCROLL === */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeInUp 1.5s ease forwards;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
  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; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === ABOUT === */
.about-section { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.avatar-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.4;
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  overflow: hidden;
}
.avatar-placeholder svg { width: 160px; height: 160px; }
.avatar-badge {
  position: absolute;
  bottom: 12px; right: 0;
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow);
}
.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-suffix { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* === SKILLS === */
.skills-section { background: var(--bg-alt); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.skill-category:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-icon { font-size: 2rem; margin-bottom: 12px; }
.skill-category h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.skill-items { display: flex; flex-direction: column; gap: 16px; }
/* .skill-item {} */
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.skill-pct { color: var(--primary); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.skill-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.core-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.core-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.core-tag:hover { background: rgba(6, 182, 212, 0.2); transform: translateY(-2px); }

/* === EXPERIENCE === */
.experience-section { background: var(--bg); }
.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tl-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tl-company {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}
.tl-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tl-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.tl-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* === PROJECTS === */
.projects-section { background: var(--bg-alt); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-thumb {
  height: 160px;
  overflow: hidden;
  position: relative;
}
.thumb-graphic {
  width: 100%; height: 100%;
  position: relative;
}
.thumb-graphic.sales { background: linear-gradient(135deg, #1E40AF 0%, #0369A1 100%); }
.thumb-graphic.inventory { background: linear-gradient(135deg, #065F46 0%, #0F766E 100%); }
.thumb-graphic.courier { background: linear-gradient(135deg, #7C2D12 0%, #92400E 100%); }
.thumb-graphic.customer { background: linear-gradient(135deg, #581C87 0%, #1D4ED8 100%); }
.thumb-graphic.mis { background: linear-gradient(135deg, #1E293B 0%, #0E7490 100%); }
.thumb-graphic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.thumb-graphic.modal-graphic { height: 220px; }
.project-body { padding: 24px; }
.project-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 10px;
}
.project-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tech-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  z-index: 10;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--primary); color: white; }
.modal-thumb { height: 220px; overflow: hidden; }
.modal-thumb .thumb-graphic { height: 100%; }
.modal-body { padding: 32px; }
.modal-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 16px;
}
.modal-body p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.modal-meta { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; }
.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

/* === EDUCATION === */
.education-section { background: var(--bg); }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edu-icon { font-size: 2rem; flex-shrink: 0; }
.edu-content { display: flex; flex-direction: column; gap: 6px; }
.edu-degree { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.edu-inst { font-size: 0.85rem; color: var(--primary); font-weight: 600; }
.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

/* === HIGHLIGHTS === */
.highlights-section { background: var(--bg-alt); padding: 80px 0; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.hl-icon { font-size: 2.5rem; margin-bottom: 16px; }
.highlight-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.highlight-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* === CONTACT === */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group textarea { resize: vertical; }
.contact-info { padding-top: 8px; }
.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

a.contact-item:hover,
a.contact-item:focus-visible {
  color: var(--primary);
  transform: translateX(4px);
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.ci-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}
.ci-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* === FOOTER === */
.footer {
  background: var(--secondary);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .footer { background: #080F1E; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer-left .nav-logo { font-size: 1.1rem; color: #F1F5F9; margin-bottom: 8px; display: block; }
.footer-left p { font-size: 0.8rem; color: #64748B; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: #94A3B8; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.75rem; color: #475569; text-align: right; font-family: 'JetBrains Mono', monospace; }

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }
  .nav-link { padding: 12px 24px; width: 100%; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .stats-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
  .timeline { padding-left: 28px; }
  .timeline-dot { left: -22px; }
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 8px; }
  .section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(2rem, 11vw, 3rem); letter-spacing: -0.01em; }
  .hero-role { font-size: 0.68rem; letter-spacing: 0.04em; word-break: break-word; }
  .hero-desc { font-size: 0.9rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .nav-actions .nav-icon-btn { display: none; }
  .section { padding: 56px 0; }
  .contact-grid { gap: 40px; }
}
