/* ═══════════════════════════════════════════════
   SIDDHESH ASATI PORTFOLIO — CLAYMORPHISM + SKEUOMORPHISM
   Design: Deep space dark + clay violet/cyan accents
   ═══════════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg-deep:    #0b0e1a;
  --bg-mid:     #111527;
  --bg-card:    #161c30;
  --bg-alt:     #0e1220;

  --clay-purple: #7c3aed;
  --clay-cyan:   #06b6d4;
  --clay-pink:   #ec4899;
  --clay-green:  #10b981;
  --clay-amber:  #f59e0b;

  --text-primary:   #f0f4ff;
  --text-secondary: #8b9bc8;
  --text-muted:     #4a5578;

  /* Clay shadow system (the "puffed" look) */
  --clay-shadow:
    0 8px 32px rgba(124,58,237,0.18),
    0 2px 8px  rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.07);

  --skeu-shadow:
    0 4px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.4);

  --clay-border: 1px solid rgba(124,58,237,0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --transition: 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── PLEXUS CANVAS ── */
#plexus-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader-ring {
  width: 56px; height: 56px;
  border: 3px solid rgba(124,58,237,0.2);
  border-top-color: var(--clay-purple);
  border-right-color: var(--clay-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-text {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  animation: pulse 1.4s ease infinite;
}
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.section { padding: 100px 0; }
.bg-alt  { background: var(--bg-alt); }

/* ── CLAY CARD (signature element) ── */
.clay-card {
  background: linear-gradient(145deg, var(--bg-card), rgba(22,28,48,0.9));
  border-radius: var(--radius-lg);
  border: var(--clay-border);
  box-shadow: var(--clay-shadow);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.clay-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 16px 48px rgba(124,58,237,0.28),
    0 4px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
/* Skeuomorphism layer: inner emboss on top of clay */
.skeu-card {
  box-shadow:
    var(--clay-shadow),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.3);
}

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 0.9rem; border: none; }

.clay-btn {
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  border: none;
  position: relative;
  overflow: hidden;
}
.clay-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.clay-btn.primary {
  background: linear-gradient(135deg, var(--clay-purple), #6d28d9);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.clay-btn.primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.clay-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(124,58,237,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.clay-btn.secondary:hover {
  background: rgba(124,58,237,0.15);
  transform: translateY(-2px);
}
.clay-btn.small { padding: 8px 18px; font-size: 0.82rem; }

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: all 0.3s ease;
}
header.scrolled {
  background: rgba(11,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--text-primary); }
.logo-bracket { color: var(--clay-cyan); }
.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: rgba(124,58,237,0.2);
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clay-cyan);
  background: rgba(6,182,212,0.1);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(6,182,212,0.25);
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #f0f4ff, var(--clay-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 1.1rem;
  color: var(--clay-cyan);
  margin-bottom: 8px;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.hero-name-accent {
  background: linear-gradient(135deg, var(--clay-purple), var(--clay-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 20px;
}
.typed-text { color: var(--clay-cyan); font-weight: 600; }
.cursor-blink { color: var(--clay-purple); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-bio { max-width: 520px; color: var(--text-secondary); margin-bottom: 32px; font-size: 1rem; }

.hero-btns { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}
.social-pill:hover {
  background: rgba(124,58,237,0.15);
  color: var(--text-primary);
  border-color: var(--clay-purple);
  transform: translateY(-2px);
}

/* Hero Card */
.hero-card {
  width: 280px;
  text-align: center;
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.profile-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  background: linear-gradient(135deg, var(--clay-purple), var(--clay-cyan));
  padding: 3px;
  box-shadow: 0 0 40px rgba(124,58,237,0.4), 0 0 80px rgba(6,182,212,0.15);
}
.profile-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}

.badge-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--clay-cyan);
  font-weight: 600;
}
.mini-stats { display: flex; gap: 12px; justify-content: center; }
.mini-stat { text-align: center; }
.mini-num { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--clay-cyan); display: block; }
.mini-label { font-size: 0.7rem; color: var(--text-muted); }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.mouse-icon {
  width: 24px; height: 38px;
  border: 2px solid rgba(124,58,237,0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  margin: 0 auto;
}
.mouse-icon span {
  width: 3px; height: 8px;
  background: var(--clay-purple);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown { 0%{transform:translateY(0);opacity:1} 100%{transform:translateY(10px);opacity:0} }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 16px; color: var(--text-secondary); }
.about-text strong { color: var(--text-primary); }
.about-details { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.2);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.detail-chip i { color: var(--clay-cyan); }

.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 260px;
}
.stat-clay {
  text-align: center;
  padding: 24px 16px;
}
.stat-big {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--clay-purple), var(--clay-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-desc { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clay-purple), var(--clay-cyan), transparent);
}
.timeline-item { display: flex; gap: 24px; margin-bottom: 32px; position: relative; }
.tl-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--clay-cyan);
  padding: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.15));
  border: 2px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 20px rgba(124,58,237,0.25);
}
.tl-body { flex: 1; }
.tl-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.tl-body h4 { font-size: 0.9rem; color: var(--clay-cyan); margin-bottom: 8px; font-weight: 500; }
.tl-body p  { font-size: 0.88rem; color: var(--text-secondary); }
.tl-date {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--clay-purple);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ── EXPERIENCE ── */
.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.exp-card { display: flex; flex-direction: column; gap: 12px; }
.exp-top { display: flex; gap: 16px; align-items: flex-start; }
.exp-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--clay-cyan);
  flex-shrink: 0;
}
.exp-card h3 { font-size: 1rem; font-weight: 700; }
.exp-card h4 { font-size: 0.85rem; color: var(--clay-cyan); }
.exp-date { font-size: 0.75rem; color: var(--text-muted); }
.exp-card p { font-size: 0.86rem; color: var(--text-secondary); flex: 1; }
.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tags span {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  color: var(--clay-cyan);
  font-weight: 500;
}

/* ── SKILLS ── */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.skill-group h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}
.skill-group h3 i { color: var(--clay-cyan); }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.skill-pill {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s;
}
.skill-pill:hover, .skill-pill.hot {
  background: rgba(124,58,237,0.2);
  border-color: var(--clay-purple);
  color: var(--text-primary);
}
.skill-pill.hot { color: var(--clay-cyan); border-color: rgba(6,182,212,0.4); background: rgba(6,182,212,0.08); }

.skill-bars { display: flex; flex-direction: column; gap: 10px; }
.skill-bar-item { display: grid; grid-template-columns: 100px 1fr 36px; align-items: center; gap: 10px; }
.skill-bar-item > span:first-child { font-size: 0.78rem; color: var(--text-secondary); }
.skill-bar-item > span:last-child  { font-size: 0.75rem; color: var(--clay-cyan); text-align: right; }
.bar-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--clay-purple), var(--clay-cyan));
  box-shadow: 0 0 8px rgba(124,58,237,0.5);
  transition: width 1.2s cubic-bezier(0.23,1,0.32,1);
}

/* ── PROJECTS ── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(124,58,237,0.3);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--clay-purple);
  color: #fff;
  border-color: var(--clay-purple);
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.project-card { position: relative; display: flex; flex-direction: column; gap: 14px; transition: all 0.3s ease; }
.project-card.featured { border-color: rgba(124,58,237,0.45); }
.project-badge {
  position: absolute;
  top: -10px; right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--clay-purple), var(--clay-pink));
  padding: 4px 12px;
  border-radius: 50px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.project-header { display: flex; align-items: center; gap: 14px; }
.project-icon-lg {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(6,182,212,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--clay-cyan);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.project-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.project-sub { font-size: 0.78rem; color: var(--text-muted); }
.project-card p { font-size: 0.86rem; color: var(--text-secondary); flex: 1; }
.project-tech-row { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tech-row span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  color: var(--clay-cyan);
  font-weight: 500;
}
.project-links-row { display: flex; gap: 10px; }

/* ── CERTIFICATIONS ── */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
}
.cert-seal {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-amber), #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(245,158,11,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.cert-card h3 { font-size: 0.95rem; font-weight: 700; }
.cert-card p { font-size: 0.78rem; color: var(--text-secondary); }
.cert-date { font-size: 0.72rem; color: var(--text-muted); }
.cert-link {
  font-size: 0.8rem;
  color: var(--clay-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: color 0.2s;
}
.cert-link:hover { color: var(--clay-purple); }

/* ── PUBLICATIONS ── */
.pub-tabs { display: flex; gap: 8px; margin-bottom: 32px; justify-content: center; }
.tab-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1px solid rgba(124,58,237,0.3);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--clay-purple);
  color: #fff;
  border-color: var(--clay-purple);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.blogs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; }
.blog-date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--clay-purple);
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}
.blog-card h3 { font-size: 1rem; font-weight: 700; }
.blog-card p  { font-size: 0.85rem; color: var(--text-secondary); flex: 1; }
.read-more { font-size: 0.82rem; color: var(--clay-cyan); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.read-more:hover { color: var(--clay-purple); }

.papers-list { display: flex; flex-direction: column; gap: 20px; }
.paper-card { display: flex; gap: 20px; }
.paper-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(124,58,237,0.1));
  border: 1px solid rgba(236,72,153,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--clay-pink);
  flex-shrink: 0;
}
.paper-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.paper-meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.paper-body p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info h3, .contact-form-wrap h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.contact-info p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 20px; }
.contact-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--clay-cyan); }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay-purple);
  flex-shrink: 0;
}
.social-contact { display: flex; gap: 12px; }
.social-contact a {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-contact a:hover {
  background: rgba(124,58,237,0.2);
  color: var(--clay-cyan);
  border-color: var(--clay-purple);
  transform: translateY(-2px);
}

/* Contact Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.3);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--clay-purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), inset 0 1px 4px rgba(0,0,0,0.3);
}
.form-group textarea { resize: vertical; }

/* ── FOOTER ── */
footer {
  background: var(--bg-mid);
  border-top: 1px solid rgba(124,58,237,0.15);
  padding: 48px 0 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding-bottom: 32px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }
.footer-links-grid { display: flex; gap: 60px; }
.footer-links-grid div { display: flex; flex-direction: column; gap: 8px; }
.footer-links-grid h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.footer-links-grid a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-links-grid a:hover { color: var(--clay-cyan); }
.footer-bottom {
  text-align: center;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 900;
  font-size: 0.9rem;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── CHATBOT ── */
.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--clay-purple), #6d28d9);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.3s ease;
  user-select: none;
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 12px 36px rgba(124,58,237,0.65); }
.chat-fab-label { font-size: 0.85rem; }

.chatbot-panel {
  position: fixed;
  bottom: 80px; right: 24px;
  width: 360px;
  max-height: 520px;
  z-index: 1099;
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.chatbot-panel.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.1));
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-purple), var(--clay-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.chat-header h4 { font-size: 0.95rem; font-weight: 700; flex: 1; }
.chat-status { font-size: 0.72rem; color: var(--clay-green); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--clay-green); animation: pulse 2s infinite; }
.chat-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.chat-close:hover { background: rgba(236,72,153,0.2); color: var(--clay-pink); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.55;
}
.chat-msg.bot .msg-bubble {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, var(--clay-purple), #6d28d9);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-typing .msg-bubble { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.dot-flashing { width: 6px; height: 6px; border-radius: 50%; background: var(--clay-cyan); animation: dotFlash 1.4s infinite; }
.dot-flashing:nth-child(2) { animation-delay: 0.2s; }
.dot-flashing:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotFlash { 0%,80%,100%{opacity:.2;transform:scale(0.8)} 40%{opacity:1;transform:scale(1)} }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(124,58,237,0.15);
  background: rgba(11,14,26,0.5);
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  outline: none;
}
#chat-input:focus { border-color: var(--clay-purple); box-shadow: 0 0 0 2px rgba(124,58,237,0.15); }
#chat-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── MODAL ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.modal.open { display: flex; }
.modal-box {
  width: 90%;
  max-width: 800px;
  position: relative;
}
.close-modal {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-card { display: none; }
  .hero-btns, .social-row { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(4, 1fr); min-width: unset; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,14,26,0.97);
    backdrop-filter: blur(20px);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(124,58,237,0.2);
  }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .chatbot-panel { width: calc(100vw - 32px); right: 16px; }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links-grid { flex-direction: column; gap: 24px; }
}

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
