/* ============================================================
   Ankit Jaiswal — Portfolio Design System
   Premium dark theme · Indigo/Violet/Cyan aurora
   ============================================================ */

:root {
  /* Base surfaces */
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: rgba(20, 24, 40, 0.55);
  --surface-hover: rgba(28, 34, 56, 0.78);
  --surface-solid: #101426;

  /* Borders */
  --border: rgba(148, 163, 220, 0.12);
  --border-strong: rgba(148, 163, 220, 0.26);

  /* Text */
  --text: #eef1fb;
  --text-muted: #a5adc9;
  --text-soft: #6b7391;

  /* Brand accents */
  --indigo: #6366f1;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;

  --gradient: linear-gradient(115deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --gradient-warm: linear-gradient(115deg, #f472b6, #a855f7);
  --glow-indigo: rgba(99, 102, 241, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.28);

  /* Effects */
  --shadow-lg: 0 30px 90px rgba(2, 4, 12, 0.6);
  --shadow-md: 0 16px 40px rgba(2, 4, 12, 0.45);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --nav-h: 74px;
  --container: 1180px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered aurora + grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(50rem 40rem at 92% 4%, rgba(168, 85, 247, 0.18), transparent 52%),
    radial-gradient(50rem 45rem at 50% 120%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(180deg, #06070d 0%, #080a13 60%, #06070d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 220, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section + .section {
  padding-top: 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

/* ---------------- Navigation ---------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(6, 7, 13, 0.72);
  border-color: var(--border);
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-copy span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(16, 20, 38, 0.5);
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav-links a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 20px var(--glow-indigo);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #05070f;
  background: var(--gradient);
  box-shadow: 0 12px 34px var(--glow-indigo);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px var(--glow-indigo);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--indigo);
}

.icon-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.icon-link:hover {
  color: #fff;
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.14);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}

/* ---------------- Hero ---------------- */
.hero {
  padding-top: calc(var(--nav-h) + 4.5rem);
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0 0 1.2rem;
  font-weight: 700;
}

.hero-copy h1 span {
  display: block;
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text);
  font-weight: 500;
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--indigo);
}

.hero-summary {
  max-width: 60ch;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

/* Hero panel / profile card */
.hero-panel {
  position: relative;
  padding: 1.4rem;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.profile-card {
  text-align: center;
}

.profile-card img {
  width: 168px;
  height: 168px;
  margin: 0.5rem auto 1.35rem;
  border-radius: 30px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1), var(--shadow-md);
}

.profile-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.profile-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.social-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------------- Marquee ---------------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 22, 0.6);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------------- Cards & grids ---------------- */
.card-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(24rem 18rem at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16));
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 1.15rem;
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.03);
}

.highlight-banner {
  position: relative;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.1));
  overflow: hidden;
}

.highlight-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: rotate(18deg);
}

.highlight-banner strong {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
  color: var(--cyan);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.highlight-banner p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ---------------- Timeline ---------------- */
.timeline {
  display: grid;
  gap: 1.1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.timeline-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.timeline-date {
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.timeline-item .company {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------- Projects ---------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-body {
  padding: 1.6rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.badge {
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-react {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.badge-swift {
  color: #fda4af;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.project-body h3 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.project-body p,
.project-body li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-body ul {
  margin: 0.8rem 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.role-label {
  display: inline-block;
  margin: 1.1rem 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.store-links a:hover {
  color: #fff;
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.12);
}

/* ---------------- Contributions ---------------- */
.contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.contribution-item {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contribution-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contribution-item::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7rem;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin-top: 0.15rem;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.18));
  color: var(--cyan);
  flex-shrink: 0;
}

.contribution-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.contribution-item a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* ---------------- Reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Mobile drawer ---------------- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  padding: 1.25rem;
  background: rgba(6, 7, 13, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  border-top: 1px solid var(--border);
}

.mobile-drawer.open {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.mobile-drawer a {
  display: block;
  padding: 1rem 0.3rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.mobile-drawer a:last-child {
  border-bottom: 0;
  margin-top: 0.75rem;
  color: var(--cyan);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .card-grid.three,
  .card-grid.two,
  .project-grid,
  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .footer-inner .btn {
    width: 100%;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-copy h1 span,
  .marquee-track {
    animation: none;
  }
}
