/* =====================================================
   Arpan Mukherjee — Portfolio Stylesheet
   ===================================================== */

:root {
  --bg: #050508;
  --surface: #0d0d14;
  --surface2: #13131e;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.11);
  --text: #e2e2ee;
  --muted: #5c5c78;
  --muted2: #8888a8;
  --accent: #00e5a0;
  --accent2: #7c6aff;
  --warm: #ff8c42;
  --cold: #4fc3f7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cabinet Grotesk', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ─────────────────────────────── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, background .15s;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(0,229,160,0.35);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .08s linear, width .2s, height .2s, opacity .2s;
}
body:hover #cursor { opacity: 1; }

/* ── Grid Background ───────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,160,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── Glow Blobs ────────────────────────────────── */
.blob {
  position: fixed; border-radius: 50%; filter: blur(120px);
  pointer-events: none; z-index: 0; opacity: 0.07;
}
.blob1 { width: 600px; height: 600px; background: #00e5a0; top: -200px; right: -200px; }
.blob2 { width: 500px; height: 500px; background: #7c6aff; bottom: -150px; left: -150px; }

/* ── Layout ────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ── Nav ───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, backdrop-filter .3s;
}
nav.scrolled {
  border-color: var(--border);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--accent);
  letter-spacing: -0.01em; text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--muted2); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ──────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(0,229,160,0.25);
  background: rgba(0,229,160,0.06);
  display: inline-block; padding: 5px 14px; border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}
.hero h1 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(42px,5vw,68px);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 .line2 { color: var(--accent); }
.hero h1 .line3 { color: var(--muted); }
.hero-sub {
  font-size: 16px; color: var(--muted2); line-height: 1.7;
  margin-top: 24px; max-width: 440px;
  animation: fadeUp .6s .2s ease both;
}
.hero-cta {
  display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 12px 28px; border-radius: 2px;
  letter-spacing: 0.04em; text-decoration: none;
  transition: all .2s; cursor: none;
}
.btn-primary { background: var(--accent); color: #050508; border: 1px solid var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero Visual ───────────────────────────────── */
.hero-visual { animation: fadeUp .6s .15s ease both; position: relative; }
.hero-visual svg { width: 100%; height: auto; }

/* ── Stats Strip ───────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0; margin-top: 20px;
}
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item { padding: 0 32px; border-right: 1px solid var(--border); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Clash Display', sans-serif; font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-num span { font-size: 18px; color: var(--muted2); }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Section Titles ────────────────────────────── */
.section { padding: 100px 0; }
.section-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(28px,4vw,44px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.section-title em { font-style: normal; color: var(--muted); }

/* ── About ─────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
.about-text p { color: var(--muted2); line-height: 1.8; margin-bottom: 16px; font-size: 15px; }
.about-text p strong { color: var(--text); font-weight: 500; }
.about-cards { display: flex; flex-direction: column; gap: 12px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.about-card:hover { border-color: var(--border2); transform: translateX(4px); }
.about-card-icon {
  width: 40px; height: 40px; border-radius: 4px;
  background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.about-card-text strong { font-size: 14px; font-weight: 500; display: block; color: var(--text); }
.about-card-text span { font-size: 12px; color: var(--muted2); }

/* ── Skills ────────────────────────────────────── */
.skills-section { padding: 100px 0; }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 50px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px; transition: border-color .2s;
}
.skill-group:hover { border-color: var(--border2); }
.skill-group-title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 18px; font-weight: 500;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag {
  font-size: 12px; padding: 4px 11px; border-radius: 2px;
  border: 1px solid var(--border2); color: var(--muted2);
  transition: border-color .15s, color .15s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }
.skill-tag.hot { border-color: rgba(0,229,160,0.3); color: var(--accent); background: rgba(0,229,160,0.06); }

/* ── Projects ──────────────────────────────────── */
.projects-section { padding: 100px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 50px; }
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent, var(--accent));
  opacity: 0; transition: opacity .25s;
}
.project-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.project-card:hover::before { opacity: 1; }
.project-card.featured {
  grid-column: 1/-1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: start;
}
.project-number {
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--muted); font-family: 'Clash Display', sans-serif;
}
.project-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text);
}
.project-desc { font-size: 14px; color: var(--muted2); line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 2px;
  border: 1px solid var(--border2); color: var(--muted);
}
.project-highlights { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.project-highlights li {
  font-size: 13px; color: var(--muted2);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.project-highlights li::before {
  content: '▸'; position: absolute; left: 0;
  color: var(--card-accent, var(--accent)); font-size: 10px; top: 1px;
}
.project-badge {
  font-size: 10px; padding: 3px 10px; border-radius: 2px;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  width: fit-content;
}
.badge-new { background: rgba(0,229,160,0.1); color: var(--accent); border: 1px solid rgba(0,229,160,0.25); }
.badge-build { background: rgba(124,106,255,0.1); color: var(--accent2); border: 1px solid rgba(124,106,255,0.25); }
.badge-ai { background: rgba(255,140,66,0.1); color: var(--warm); border: 1px solid rgba(255,140,66,0.25); }

/* ── GitHub Button ─────────────────────────────── */
.project-links { margin-top: auto; padding-top: 16px; }
.btn-github {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--muted2); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--border2);
  border-radius: 4px; background: rgba(255,255,255,0.02);
  width: fit-content; transition: all 0.2s; cursor: none;
}
.btn-github:hover { color: var(--text); border-color: var(--card-accent, var(--accent)); background: rgba(255,255,255,0.05); }
.btn-github svg { width: 14px; height: 14px; fill: currentColor; }

/* ── Experience ────────────────────────────────── */
.exp-section { padding: 100px 0; }
.exp-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 40px;
  padding: 36px 0; border-bottom: 1px solid var(--border);
}
.exp-item:first-of-type { padding-top: 50px; }
.exp-date { font-size: 12px; color: var(--muted); padding-top: 4px; letter-spacing: 0.04em; }
.exp-company { font-family: 'Clash Display', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.exp-role { font-size: 13px; color: var(--accent); margin: 4px 0 14px; letter-spacing: 0.04em; }
.exp-points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exp-points li {
  font-size: 14px; color: var(--muted2); padding-left: 18px;
  position: relative; line-height: 1.6;
}
.exp-points li::before { content: '—'; position: absolute; left: 0; color: var(--muted); font-size: 12px; top: 1px; }

/* ── Achievements ──────────────────────────────── */
.achieve-section { padding: 100px 0; }
.achieve-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 50px; }
.achieve-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s;
}
.achieve-card:hover { border-color: var(--border2); }
.achieve-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.icon-gold { background: rgba(255,179,71,0.1); border: 1px solid rgba(255,179,71,0.2); }
.icon-blue { background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.2); }
.icon-green { background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.2); }
.icon-purple { background: rgba(124,106,255,0.1); border: 1px solid rgba(124,106,255,0.2); }
.achieve-title { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.achieve-desc { font-size: 12px; color: var(--muted2); line-height: 1.6; }

/* ── Certifications ────────────────────────────── */
.cert-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 50px; }
.cert-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  transition: border-color .2s;
}
.cert-item:hover { border-color: var(--border2); }
.cert-name { font-size: 13px; font-weight: 500; color: var(--text); }
.cert-org { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cert-date { font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }

/* ── Contact ───────────────────────────────────── */
.contact-section { padding: 100px 0 120px; border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-left h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(32px,4vw,52px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 20px;
}
.contact-left h2 span { color: var(--accent); }
.contact-left p { font-size: 15px; color: var(--muted2); line-height: 1.7; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; text-decoration: none;
  color: var(--text); font-size: 14px;
  transition: border-color .2s, transform .2s;
}
.contact-link:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-link-icon {
  width: 32px; height: 32px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.contact-link span.label { color: var(--muted2); font-size: 12px; margin-left: auto; }

/* ── Footer ────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0; text-align: center;
  font-size: 12px; color: var(--muted); letter-spacing: 0.05em;
}

/* ── Animations ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; } 50% { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat-item { padding: 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .achieve-grid, .cert-row { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  nav .nav-links { display: none; }
}