:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-alt: #f5f0ff; /* very light lavender */

  /* Cards */
  --card: #ffffff;
  --border: #e4d7ff;

  /* Accent Purples */
  --accent: #6a38ff;       /* main purple */
  --accent-soft: #f3eaff;  /* soft lavender */

  /* Text */
  --text: #1a1a1a;         /* blackish */
  --muted: #6b6b6b;        /* soft grey */

  /* Pills */
  --pill-bg: #f4edff;
}


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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #f7f2ff 0, #ffffff 55%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Global floating glows behind the whole page */
body::before,
body::after {
  content: "";
  position: fixed;           /* stay put while you scroll */
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
}

/* Left glow – near top / experience */
body::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center,
    rgba(106, 56, 255, 0.45),
    rgba(243, 234, 255, 0)
  );
  top: -40px;
  left: -60px;
  animation: floatGlow1 16s ease-in-out infinite alternate;
}

/* Right glow – near hero image / lower sections */
body::after {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at center,
    rgba(180, 120, 255, 0.4),
    rgba(243, 234, 255, 0)
  );
  bottom: -120px;
  right: -40px;
  animation: floatGlow2 20s ease-in-out infinite alternate;
}


/* Make all sections transparent to match hero background */
section {
  background: transparent !important;
}


h1, h2, h3 {
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* Layout helpers */

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: transparent;
}

h1, h2, h3 {
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Header */

/* Header – minimal floating nav */

.site-header {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 0;
  background: transparent;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at top, #4f46e5, #1f2937);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f9fafb;
}

/* show the nav! */
.nav {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

/* Links: subtle, no bar */
.nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s ease;
}

/* Underline on hover */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

/* Slightly tighter on mobile */
@media (max-width: 768px) {
  .nav {
    gap: 12px;
    font-size: 0.8rem;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;

  /* full screen hero */
  min-height: 100vh;

  /* center the hero content */
  display: flex;
  align-items: center;

  /* header is absolute, so we give top breathing room */
  padding: 120px 0 72px;
}


.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
}

.hero-text {
  max-width: 540px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 8px;
}

.hero-roles {
  font-size: 1.2rem;
  margin: 4px 0 14px;
  color: var(--muted);
}

/* Typed role text (purple accent) */
.hero-roles #role-typed {
  color: var(--accent);
  font-weight: 600;
}

/* Blinking cursor effect (if your JS adds a cursor span or border) */
.hero-roles #role-typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--accent);
  animation: blinkCursor 1s steps(1) infinite;
  vertical-align: bottom;
}


.hero-subtitle {
  font-size: 0.98rem;
  max-width: 540px;
  margin: 0;
}

/* One big frame slider (replaces 2x2 collage) */
.hero-slider {
  width: 520px;          /* tweak if needed */
  height: 340px;         /* tweak if needed */
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 700ms cubic-bezier(.22, .9, .2, 1);
  will-change: transform;
}

.hero-track img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-slider {
    width: min(520px, 100%);
    height: 300px;
    margin: 0 auto;
  }
}



/* Floating keyframes */


@keyframes blinkCursor {
  0% { border-color: transparent; }
  50% { border-color: var(--accent); }
  100% { border-color: transparent; }
}

@keyframes floatGlow1 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(60px, 40px); }
  100% { transform: translate(20px, 80px); }
}

@keyframes floatGlow2 {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-50px, -50px); }
  100% { transform: translate(-80px, -10px); }
}



.hero-card {
  background: var(--accent-soft);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(55, 65, 81, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-card h3 {
  font-size: 1rem;
}

.hero-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}



/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(to right, #4f46e5, #6366f1);
  color: #e5e7eb;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.5);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.7);
}

.btn.ghost {
  background: #ffffff;
  color: var(--muted);
  border-color: var(--border);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}


/* Cards & grids */

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.card ul {
  padding-left: 18px;
}

/* Timeline */

.timeline {
  border-left: 1px solid rgba(55, 65, 81, 0.8);
  margin-left: 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-item {
  position: relative;
}

.timeline-badge {
  position: absolute;
  left: -31px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.25);
}

.timeline-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

/* Contact */

.contact-links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

/* Footer */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 20px 0 26px;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  /* DO NOT hide the nav on mobile */
  /* .nav { display: none; }  <-- deleted */

  .section {
    padding: 56px 0;
  }
}


/* Experience polish */

.timeline {
  border-left: 1px solid rgba(55, 65, 81, 0.12);
  margin-left: 14px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-content.card {
  position: relative;
  overflow: hidden;
}

/* Soft gradient strip on the left of each card */
.timeline-content.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #4f46e5, #a855f7);
  opacity: 0.8;
}

/* Push inner content so it doesn't sit under the strip */
.timeline-content.card > * {
  margin-left: 6px;
}

.role-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 14px 0 10px;
}

.role-subtitle {
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 600;
}

/* Reveal-on-scroll animation */

.timeline-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* Publications */
.pub-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  margin-bottom: 20px; /* keep spacing between cards */
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
}

.pub-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-info {
  max-width: 680px;
}

/* 🔹 BADGES 🔹 */
.pub-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e9e9e9;
  color: #111;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pub-badge-purple {
  background: var(--accent-soft);
  color: var(--accent);
}

.pub-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}

.pub-link {
  margin: 6px 0 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}
