/* ============================================
   Hardik Chauhan — Dense, Info-Packed Website
   ============================================ */

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

:root {
  --bg: #fafaf8;
  --bg-alt: #f4f2ee;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-2: #4a4a60;
  --text-3: #7e7e96;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;
  --accent-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --border: #e5e5e0;
  --border-lt: #eeeeea;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: 0.25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 64px; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo {
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  background: var(--accent-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-logo:hover { filter: brightness(1.15); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--text-2); transition: all var(--ease); }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.btn-nav {
  background: var(--accent-grad); color: #fff !important;
  padding: 6px 16px; border-radius: 7px; font-weight: 600; font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.15);
}
.btn-nav:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.3); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---- Hero (compact) ---- */
.hero {
  padding: 80px 0 32px;
  background: linear-gradient(160deg, #fafaf8 0%, #eef2ff 40%, #f0eaff 70%, #f5f3ff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -180px; right: -120px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.04) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -100px; left: -80px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, rgba(99,102,241,0.02) 40%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

.hero-top {
  display: flex; gap: 36px; align-items: center; margin-bottom: 28px;
}
.hero-photo {
  width: 140px; height: 140px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--accent-grad);
  background-origin: border-box; background-clip: content-box, border-box;
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(99,102,241,0.06), 0 0 24px rgba(99,102,241,0.12);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-intro { flex: 1; }
.hero-greeting {
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px;
}
.hero-name { font-size: 2.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 4px; }
.name-accent {
  background: var(--accent-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-title {
  font-size: 1.05rem; font-weight: 600; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-summary { font-size: 0.92rem; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; max-width: 560px; }
.hero-summary strong { color: var(--text); }
.hero-social { display: flex; align-items: center; gap: 12px; }
.hero-social a { color: var(--text-3); padding: 4px; border-radius: 6px; transition: all var(--ease); display: flex; align-items: center; }
.hero-social a:hover { color: var(--accent); background: var(--accent-light); }
.social-resume {
  font-size: 0.78rem; font-weight: 700; color: #fff !important;
  background: var(--accent-grad); padding: 5px 14px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.social-resume:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.35); color: #fff !important; }

/* Stats */
.hero-stats {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.stat {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; text-align: center;
  transition: all var(--ease);
}
.stat:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stat-num {
  display: block; font-size: 1.5rem; font-weight: 800;
  background: var(--accent-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.2;
}
.stat-label { font-size: 0.7rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Demo card */
.demo-card {
  display: flex; gap: 20px; align-items: center;
  background: #0f0f1a; border-radius: var(--radius); padding: 12px;
  color: #fff; transition: all var(--ease); text-decoration: none;
  box-shadow: var(--shadow-md);
}
.demo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.demo-video {
  width: 320px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
}
.demo-video video { width: 100%; display: block; border-radius: 10px; }
.demo-info { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 4px 0; }
.demo-badge {
  display: inline-block; width: fit-content;
  background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 16px;
}
.demo-label { font-size: 1.1rem; font-weight: 700; color: #fff; }
.demo-desc { font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* ---- Sections ---- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 28px; position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 36px; height: 3px; background: var(--accent-grad); border-radius: 2px;
}

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 12px; font-size: 0.92rem; color: var(--text-2); line-height: 1.7; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.about-skills span {
  background: var(--accent-light); color: var(--accent);
  padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500;
  transition: all var(--ease);
}
.about-skills span:hover { background: var(--accent); color: #fff; }

.about-service h3 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  transition: all var(--ease);
}
.service-tags span:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

/* ---- Experience ---- */
.exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  transition: all var(--ease);
}
.exp-card:hover { border-color: rgba(99,102,241,0.25); box-shadow: var(--shadow-sm); }
.exp-main { border-left: 3px solid var(--accent); }

/* Promotion badge */
.exp-promo-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  color: #fff; background: var(--accent-grad);
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
  animation: badge-glow 2s ease-in-out infinite alternate;
}
@keyframes badge-glow {
  0% { box-shadow: 0 2px 8px rgba(99,102,241,0.2); }
  100% { box-shadow: 0 2px 16px rgba(99,102,241,0.35); }
}

/* Promotion timeline */
.exp-promo-timeline {
  display: flex; gap: 0; margin: 12px 0 4px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.promo-step {
  flex: 1; padding: 10px 16px; border-right: 1px solid var(--border);
  background: var(--bg-alt); transition: all var(--ease);
}
.promo-step:last-child { border-right: none; }
.promo-step:hover { background: var(--accent-light); }
.promo-current { background: var(--accent-light); border-bottom: 2px solid var(--accent); }
.promo-title { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text); }
.promo-current .promo-title { color: var(--accent); }
.promo-date { display: block; font-size: 0.68rem; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.exp-header h3 { font-size: 1rem; font-weight: 700; }
.exp-company { font-size: 0.88rem; color: var(--accent); font-weight: 600; margin-top: 1px; }
.exp-date {
  font-size: 0.72rem; font-weight: 600; color: var(--text-3);
  background: var(--bg-alt); padding: 3px 10px; border-radius: 14px; white-space: nowrap; flex-shrink: 0;
}
.exp-body { margin-top: 8px; }
.exp-group { margin-bottom: 12px; }
.exp-group:last-child { margin-bottom: 0; }
.exp-group h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text); margin-bottom: 4px;
  padding-bottom: 4px; border-bottom: 1px solid var(--border-lt);
}
.exp-card ul { list-style: none; margin-top: 4px; }
.exp-card li {
  position: relative; padding-left: 16px; margin-bottom: 5px;
  font-size: 0.85rem; color: var(--text-2); line-height: 1.55;
}
.exp-card li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
}

.exp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.exp-small { padding: 18px; }
.exp-small h3 { font-size: 0.9rem; }
.exp-small .exp-header { margin-bottom: 6px; flex-direction: column; gap: 4px; }
.exp-small .exp-date { align-self: flex-start; }

/* ---- Publications ---- */
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  transition: all var(--ease);
}
.pub-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pub-venue {
  display: inline-block; font-size: 0.65rem; font-weight: 700; color: #fff;
  background: var(--accent-grad); padding: 3px 10px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(99,102,241,0.2);
}
.pub-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.pub-authors { font-size: 0.78rem; color: var(--text-3); line-height: 1.4; margin-bottom: 6px; }
.pub-authors strong { color: var(--text-2); }
.pub-link { font-size: 0.76rem; font-weight: 600; }
.pub-footer { text-align: center; margin-top: 20px; }
.pub-footer a { font-weight: 600; font-size: 0.88rem; }

/* ---- Education ---- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--ease);
}
.edu-card:hover { border-color: rgba(99,102,241,0.3); box-shadow: var(--shadow-sm), 0 0 0 3px rgba(99,102,241,0.05); }
.edu-degree { font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.edu-school {
  font-size: 0.9rem; font-weight: 600; margin-bottom: 4px;
  background: var(--accent-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.edu-meta { font-size: 0.8rem; color: var(--text-3); margin-bottom: 10px; }
.edu-courses { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-courses span { background: var(--bg-alt); color: var(--text-2); padding: 3px 10px; border-radius: 14px; font-size: 0.72rem; font-weight: 500; }

/* ---- Contact ---- */
.contact-row { text-align: center; max-width: 600px; }
.contact-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 0.85rem;
  transition: all var(--ease);
}
.contact-chip:hover { border-color: rgba(99,102,241,0.4); color: var(--accent); box-shadow: var(--shadow-sm), 0 0 0 3px rgba(99,102,241,0.06); transform: translateY(-2px); }
.contact-chip svg { color: var(--text-3); transition: color var(--ease); flex-shrink: 0; }
.contact-chip:hover svg { color: var(--accent); }

/* ---- Footer ---- */
.footer { padding: 24px 0; text-align: center; border-top: 1px solid var(--border); }
.footer p { font-size: 0.78rem; color: var(--text-3); }

/* ============= Responsive ============= */
@media (max-width: 900px) {
  .hero-top { flex-direction: column; text-align: center; gap: 20px; }
  .hero-photo { margin: 0 auto; width: 120px; height: 120px; }
  .hero-intro { text-align: center; }
  .hero-summary { max-width: 100%; }
  .hero-social { justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: calc(50% - 6px); }
  .demo-card { flex-direction: column; }
  .demo-video { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .exp-row { grid-template-columns: 1fr; }
  .exp-promo-timeline { flex-direction: column; }
  .promo-step { border-right: none; border-bottom: 1px solid var(--border); }
  .promo-step:last-child { border-bottom: none; }
  .pub-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .exp-header { flex-direction: column; gap: 6px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 24px; gap: 12px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 72px 0 24px; }
  .hero-name { font-size: 1.8rem; }
  .hero-title { font-size: 0.95rem; }
  .section { padding: 36px 0; }
  .section-title { font-size: 1.3rem; margin-bottom: 20px; }
  .contact-links { flex-direction: column; align-items: center; }
}

/* ---- Animations ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
