/* ============================================================
   AISHWARYA JAUHARI SHARMA — Portfolio Design System
   Dark-themed, glassmorphism, gradient accents
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #16161f;
  --bg-card: rgba(22, 22, 31, 0.65);
  --bg-card-hover: rgba(30, 30, 45, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.09);

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a85;
  --text-accent: #c4b5fd;

  /* Gradient Accents */
  --gradient-primary: linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
  --gradient-secondary: linear-gradient(135deg, #a78bfa, #818cf8, #67e8f9);
  --gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
  --gradient-card-border: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.3));

  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-teal: #06b6d4;
  --accent-violet: #a78bfa;
  --accent-indigo: #818cf8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
  --shadow-glow-teal: 0 0 30px rgba(6, 182, 212, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 58, 237, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(59, 130, 246, 0.06), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(6, 182, 212, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-violet);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-teal);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

/* --- Section Base --- */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo .logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: var(--space-sm) var(--space-lg) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition-base) !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.hero-gradient-orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.2);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero-gradient-orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.15);
  top: 50%;
  right: 10%;
  animation-delay: -3s;
}

.hero-gradient-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.12);
  bottom: 10%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-4xl);
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero-name .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-lg);
  min-height: 2em;
}

.hero-tagline .typed-cursor {
  color: var(--accent-violet);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--space-2xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-3px);
}

.hero-socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  color: var(--accent-violet);
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero Image */
.hero-visual {
  flex: 0 0 auto;
  position: relative;
}

.hero-image-wrapper {
  width: 340px;
  height: 340px;
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.6;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: -2;
  filter: blur(40px);
  opacity: 0.2;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
}

/* Floating tech badges around image */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  animation: float-badge 4s ease-in-out infinite;
  white-space: nowrap;
}

.floating-badge:nth-child(2) {
  top: 5%;
  right: -30%;
  animation-delay: -1s;
}

.floating-badge:nth-child(3) {
  bottom: 15%;
  left: -25%;
  animation-delay: -2s;
}

.floating-badge:nth-child(4) {
  bottom: 5%;
  right: -20%;
  animation-delay: -3s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.stat-item {
  padding: var(--space-lg);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tech Stack */
.tech-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.tech-category {
  padding: var(--space-lg);
}

.tech-category-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.tech-category h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-violet);
  font-weight: 500;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.project-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--accent-violet);
  border-color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.project-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.project-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.project-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  border: 1px solid;
}

.project-tag.purple {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.08);
  border-color: rgba(196, 181, 253, 0.2);
}

.project-tag.blue {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.08);
  border-color: rgba(147, 197, 253, 0.2);
}

.project-tag.teal {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.08);
  border-color: rgba(94, 234, 212, 0.2);
}

.project-tag.amber {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.08);
  border-color: rgba(252, 211, 77, 0.2);
}

.project-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.project-card h3 a:hover {
  color: var(--accent-violet);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-link:hover {
  color: var(--accent-teal);
  transform: translateY(-1px);
}

.project-link.highlight {
  color: var(--accent-violet);
  font-weight: 600;
}

.project-link.highlight:hover {
  color: var(--accent-teal);
}

.project-link svg {
  width: 15px;
  height: 15px;
}

.project-link svg:not([fill="none"]) {
  fill: currentColor;
}

.project-link svg[fill="none"] {
  stroke: currentColor;
}

/* Featured project highlight */
.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.project-card.featured::after {
  content: 'FEATURED';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  padding: var(--space-xl);
  cursor: pointer;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-read-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-violet);
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--accent-violet);
}

a.blog-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.blog-card:hover {
  color: inherit;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-topic {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--space-2xl);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.contact-method:hover {
  transform: translateX(8px);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-violet);
}

.contact-method-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-method-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Visual */
.contact-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  position: relative;
}

.contact-cta-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card-border);
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.contact-cta-card .emoji-large {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.contact-cta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.contact-cta-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-text .heart {
  color: #ef4444;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-violet);
}

/* ============================================================
   ANIMATIONS — Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
/* --- About: career timeline (replaces the old tech-stack grid) --- */
.about-timeline {
  padding-top: var(--space-xs);
}

.timeline-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.career-timeline {
  position: relative;
  padding-left: 1.75rem;
}

/* Connector runs between consecutive dots only, so the rail does not
   trail off below the last entry. */
.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(-1.75rem + 5px);
  top: 1.2rem;
  bottom: -0.2rem;
  width: 2px;
  border-radius: 1px;
  background: rgba(124, 58, 237, 0.3);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 2px solid var(--accent-violet);
}

.timeline-item.study::before {
  border-color: var(--accent-teal);
}

/* The top entry is what she is doing now, so its dot is filled. */
.timeline-item.current::before {
  background: var(--accent-violet);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14);
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.timeline-role {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.15rem 0 0.1rem;
  line-height: 1.35;
}

.timeline-org {
  display: block;
  font-size: 0.84rem;
  color: var(--text-accent);
}


@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 260px;
  }

  .floating-badge {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--bg-glass-border);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: var(--space-md);
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 200px;
  }

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

  .tech-stack-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-name {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .project-filters {
    gap: var(--space-xs);
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: var(--space-xs) var(--space-md);
  }
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* ============================================================
   SELECTION STYLING
   ============================================================ */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: var(--text-primary);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   ARTICLE & DETAIL PAGES (Full Fidelity Blog & Project Pages)
   ============================================================ */
.detail-page {
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 100px;
  min-height: 100vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-violet);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(8px);
}

.back-link:hover {
  color: var(--accent-teal);
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-teal);
  transform: translateX(-4px);
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.back-link:hover svg {
  transform: translateX(-2px);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(4px);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-btn.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.action-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.action-btn.secondary:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Article Container Typography & Formatting */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-container h1:first-child,
.article-container h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-container h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #f8fafc;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
}

.article-container h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
}

.article-container h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-container p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.article-container strong {
  color: #f8fafc;
  font-weight: 600;
}

.article-container a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-container a:hover {
  color: #38bdf8;
}

.article-container hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3rem 0;
}

.article-container ul,
.article-container ol {
  padding-left: 1.75rem;
  margin-bottom: 1.75rem;
}

.article-container li {
  margin-bottom: 0.65rem;
}

.article-container li > p {
  margin-bottom: 0.5rem;
}

.article-container blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  border-left: 4px solid var(--accent-teal);
  background: rgba(6, 182, 212, 0.07);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #e2e8f0;
  backdrop-filter: blur(8px);
}

.article-container blockquote p:last-child {
  margin-bottom: 0;
}

/* Definition lists */
.article-container dl {
  margin: 2rem 0;
}

.article-container dt {
  font-weight: 700;
  color: #f8fafc;
  margin-top: 1.25rem;
}

.article-container dd {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

/* Inline Code */
.article-container code:not(pre code) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(139, 92, 246, 0.25);
  white-space: nowrap;
}

/* Code Blocks & Header Bar */
.code-wrapper {
  margin: 2.25rem 0;
  border-radius: 12px;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-lang {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-violet);
  letter-spacing: 0.05em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-violet);
  color: #f8fafc;
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.copy-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.code-wrapper pre {
  margin: 0 !important;
  padding: 1.25rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow-x: auto;
}

.code-wrapper pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #e2e8f0;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  white-space: pre;
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 2.25rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table-container th {
  background: rgba(139, 92, 246, 0.12);
  color: #f8fafc;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.table-container td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.table-container tr:last-child td {
  border-bottom: none;
}

.table-container tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Admonitions */
.admonition {
  margin: 2.25rem 0;
  padding: 1.25rem 1.6rem;
  border-radius: 10px;
  border-left: 4px solid var(--accent-violet);
  background: rgba(139, 92, 246, 0.08);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admonition-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admonition.note, .admonition.abstract {
  border-left-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.admonition.success {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.admonition.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.admonition p:last-child {
  margin-bottom: 0;
}

/* Mermaid Architecture Diagrams */
.mermaid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.mermaid-container pre.mermaid {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  width: 100%;
}

.mermaid svg {
  max-width: 100% !important;
  height: auto !important;
}

/* Profile Hero Card & Experience Cards (Resume Page) */
.profile-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  margin: 2rem 0 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.profile-hero-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.profile-hero-title {
  font-size: 1.05rem;
  color: var(--accent-violet);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.profile-hero-sub {
  color: #94a3b8;
  font-size: 0.98rem;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

.profile-hero-action {
  flex-shrink: 0;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  border-color: var(--accent-violet);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.experience-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.experience-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.experience-company {
  color: var(--accent-teal);
  font-weight: 600;
}

.experience-period {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.experience-highlights {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.experience-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.experience-highlights li:last-child {
  margin-bottom: 0;
}

.experience-highlights li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-violet);
  font-size: 1.1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .profile-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
}



/* buttons are not body links */
.article-container a.action-btn,
.article-container a.back-link,
.article-container a.project-link { text-decoration: none; }

/* keep the floating hero badges inside the viewport */
.floating-badge:nth-child(2) { right: -8%; }
.floating-badge:nth-child(3) { left: -8%; }
.floating-badge:nth-child(4) { right: -4%; }
