/* ==========================================================================
   OM TIWARI PORTFOLIO — PREMIUM DESIGN SYSTEM (Apple / Linear / Vercel / Stripe)
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Canvas & Backgrounds */
  --bg:           #030712; /* True Deep Charcoal / Vercel Black */
  --bg-soft:      #0b0f19;
  --bg-subtle:    #111827;
  --card:         #0d1424;
  --card-hover:   #121b2f;
  --card-glass:   rgba(13, 20, 36, 0.94);
  --grad-card:    linear-gradient(135deg, rgba(56,189,248,.07), rgba(124,58,237,.04));
  
  /* Text & Hierarchy */
  --text:         #f8fafc;
  --muted:        #94a3b8;
  --muted-2:      #64748b;
  --heading:      #ffffff;

  /* Electric Accents */
  --accent:       #38bdf8; /* Linear Cyan */
  --accent-hover: #7dd3fc;
  --accent-2:     #818cf8; /* Electric Indigo */
  --purple:       #c084fc; /* Vibrant Violet */
  --pink:         #f472b6; /* Hot Pink Accent */
  --emerald:      #34d399; /* Status Green */
  --accent-glow:  rgba(56, 189, 248, 0.28);

  /* Borders & Dividers */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --border-light: rgba(255, 255, 255, 0.14);
  --ring:         rgba(56, 189, 248, 0.5);

  /* Vibrant Multi-Color Mixing Gradients */
  --grad-hero:    linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #a855f7 80%, #f472b6 100%);
  --grad-text:    linear-gradient(90deg, #ffffff 0%, #a5b4fc 25%, #38bdf8 50%, #c084fc 75%, #ffffff 100%);
  --grad-glow:    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.22) 0%, rgba(124, 58, 237, 0.16) 40%, rgba(244, 114, 182, 0.1) 70%, transparent 100%);

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow:       0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg:    0 25px 60px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow:  0 0 50px rgba(56, 189, 248, 0.22);

  /* Radii */
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-pill:  999px;

  /* Transitions & Curves */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1); /* Apple/Framer Spring */
  --t-fast:       0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --t-mid:        0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography (Unified Inter Font Family) */
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  position: relative;
  width: 100%;
}

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

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

/* Background Particle Canvas */
#bgParticles {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.6;
  pointer-events: none;
}

/* Ambient Radial Multi-Color Glow Background */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 650px;
  background: var(--grad-glow);
  z-index: -2;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* NOISE TEXTURE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

/* ===== STICKY CAPSULE HEADER ===== */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  width: min(1140px, 94%);
  margin: 0 auto;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--t-mid), background var(--t-mid);
}

.site-header:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--heading);
}

.brand .logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 45%, #a855f7 80%, #f472b6 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  font-family: 'Shadows Into Light', cursive, var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.brand:hover .logo {
  transform: scale(1.05) rotate(-3deg);
}

/* ===== NAVIGATION ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav a {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.08);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform var(--t-fast);
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ===== BUTTON SYSTEM ===== */
.btn {
  background: var(--accent);
  color: #030712;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn.small {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
}

.btn.outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  color: var(--heading);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.15);
}

.btn.small.outline {
  border-color: var(--border);
}

.btn .ripple-el {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes ripple {
  to { transform: scale(8); opacity: 0; }
}

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.08);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: live-ping 1.8s infinite cubic-bezier(0, 0, 0.2, 1);
}

@keyframes live-ping {
  70%, 100% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.hero p strong {
  color: var(--heading);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-socials {
  margin-bottom: 2rem;
}

/* HERO STATS BAR */
.stats {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.stats > div {
  background: var(--card-glass);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 95px;
}

.stats strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.stats span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stats > div:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

/* HERO ART / IDE CODE BLOCK WITH MULTI-COLOR RADIAL MESH */
.hero-art .card-xl {
  min-height: 360px;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 85% 65% at 20% -10%, rgba(56, 189, 248, 0.22), transparent),
    radial-gradient(ellipse 65% 85% at 85% 110%, rgba(168, 85, 247, 0.2), transparent),
    var(--card-glass);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.glass {
  position: relative;
  overflow: hidden;
}

.radar {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.3) 0%, rgba(168, 85, 247, 0.2) 45%, transparent 70%);
  filter: blur(35px);
  animation: pulseRadar 7s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulseRadar {
  0%   { transform: scale(1); opacity: 0.6; }
  50%  { transform: scale(1.15) translate(-10px, 10px); opacity: 0.85; }
  100% { transform: scale(1.25) translate(6px, -6px); opacity: 0.7; }
}

.code-block {
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1.35rem;
  margin-top: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.code-block-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red    { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green  { background: #10b981; }

.code-filename {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-left: 0.5rem;
  font-weight: 500;
}

.code-block pre {
  font-family: var(--font-code);
  font-size: 0.84rem;
  line-height: 1.75;
  color: #cbd5e1;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.float-subtle {
  animation: float-subtle 6s ease-in-out infinite;
}

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

/* ===== SECTIONS & HEADINGS ===== */
.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.04) 0%, rgba(168, 85, 247, 0.02) 50%, transparent 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 1.5rem;
  margin: 1.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 1.75rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-hero);
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: 1.25rem;
}
.cards-3       { grid-template-columns: repeat(3, 1fr); }
.skills-grid   { grid-template-columns: repeat(2, 1fr); }

/* ===== CARDS (Multi-Color Gradient Spotlight + Gradient Overlay) ===== */
.card {
  position: relative;
  background: var(--grad-card), var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Interactive Mouse Spotlight Glow on Card Hover (Subtle & Soft) */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.07), rgba(124, 58, 237, 0.04) 50%, transparent 75%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

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

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--heading);
  margin: 0.3rem 0 0.6rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.card.hover:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(56, 189, 248, 0.06);
}

/* Gradient Border Mask Glow (Subtle & Soft) */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, #7c3aed, transparent, #0ea5e9);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.glow:hover::after {
  opacity: 0.3;
}

/* ===== PILL TAGS ===== */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  margin: 0.2rem 0.25rem 0.2rem 0;
  letter-spacing: 0.01em;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent);
}

/* ===== KBD KEYBOARD BADGE ===== */
kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.1rem 0.38rem;
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  vertical-align: middle;
}

.light kbd {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.shortcut-badge-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
  opacity: 0.85;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  margin-left: 0.35rem;
}

.shortcut-badge-btn:hover {
  opacity: 1;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

/* ===== SEARCH & FILTER CONTROLS ===== */
.projects-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.1rem 0.75rem 2.75rem;
  background: var(--card-glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.project-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== PROJECT BADGES ===== */
.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.project-badge.flagship {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-badge.devops {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.project-badge.ai {
  background: rgba(168, 85, 247, 0.14);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ===== COPY EMAIL BOX & TOAST ===== */
.copy-email-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(3, 7, 18, 0.6);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  margin: 1rem 0;
  width: fit-content;
}

.copy-email-box code {
  font-family: var(--font-code);
  font-size: 0.88rem;
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  color: var(--heading);
  border: 1px solid var(--accent);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 25px rgba(56,189,248,0.25);
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== CARD LISTS & SKILLS ===== */
.card ul {
  padding-left: 1.35rem;
  margin: 0.5rem 0;
}

.card ul li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.bullets li::marker {
  color: var(--accent);
}

.bullets.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 1rem;
}

.card.skill header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.96rem;
}

.card.skill header strong {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ===== TIMELINE ===== */
.timeline {
  padding-left: 1.35rem;
  border-left: 2px solid var(--border);
}

.t-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  padding-left: 1.65rem;
}

.t-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
  border: 2px solid var(--bg);
  flex-shrink: 0;
}

.t-content {
  margin-bottom: 0.75rem;
}

/* ===== RESUME ===== */
.resume-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "left  right"
    "certs certs";
  gap: 1.5rem 1.35rem;
  margin-top: 1.5rem;
}

.resume-left  { grid-area: left; }
.resume-right { grid-area: right; }
.resume-certs { grid-area: certs; }

.resume-grid section h2,
.resume-left h2,
.resume-right h2,
.resume-certs h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.certs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ===== INTERNSHIP ===== */
.internship-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.internship-text {
  flex: 1;
}

.internship-badge {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.internship-badge img {
  width: 130px;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ===== FORM ===== */
.form .row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input, textarea {
  background: rgba(3, 7, 18, 0.75);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

input::placeholder, textarea::placeholder {
  color: var(--muted-2);
}

#formStatus {
  font-weight: 600;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  transition: color 0.3s;
}

/* ===== SOCIAL ICONS ===== */
.icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.icons .icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.icons .icon:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  font-size: 0.88rem;
  color: var(--muted);
  width: 100%;
  margin: 4rem 0 0 0;
  border-radius: 0;
  transform: none !important;
}

.muted { color: var(--muted); }

/* RESUME PROJECT LINKS */
.muted-links {
  font-size: 0.82rem;
  margin-left: 6px;
}

.muted-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast);
}

.muted-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-down {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-down.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger card reveals */
.grid .card:nth-child(1) { transition-delay: 0.04s; }
.grid .card:nth-child(2) { transition-delay: 0.08s; }
.grid .card:nth-child(3) { transition-delay: 0.12s; }
.grid .card:nth-child(4) { transition-delay: 0.16s; }
.grid .card:nth-child(5) { transition-delay: 0.20s; }
.grid .card:nth-child(6) { transition-delay: 0.24s; }
.grid .card:nth-child(7) { transition-delay: 0.28s; }

.tilt { will-change: transform; }

/* ===== VIBRANT GRADIENT TEXT ===== */
.gradient-text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff 0%, #a5b4fc 25%, #38bdf8 50%, #c084fc 75%, #ffffff 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 25s linear infinite;
}

@keyframes shine {
  0%   { background-position: 0%; }
  100% { background-position: 300%; }
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: url('../img/logo-512.png') no-repeat center / cover;
  animation: preloader-pulse 1.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5);
  font-size: 0; /* Hide text content inside preloader-logo div */
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 6px 50px rgba(99, 102, 241, 0.65); }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-hero);
  z-index: 1000;
  width: 0%;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-mid), visibility var(--t-mid), transform var(--t-mid), box-shadow var(--t-fast), border-color var(--t-fast);
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

/* ===== CUSTOM CURSOR ===== */
@media (pointer: fine) {
  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease, background 0.25s ease;
  }

  .cursor-ring.hover {
    width: 54px;
    height: 54px;
    border-color: rgba(168, 85, 247, 0.8);
    background: rgba(56, 189, 248, 0.08);
  }

  html, body, a, button, input, textarea, select, label, .btn, .icon, .card, .nav a, .pill, [data-filter] {
    cursor: none !important;
  }
}

/* ===== ENHANCED IMAGE HOVER ===== */
.card.hover .project-img {
  transition: transform var(--t-mid), filter var(--t-mid);
  border-radius: var(--radius);
}

.card.hover:hover .project-img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* ===== CERTIFICATE CARDS ===== */
.cert-card { margin-bottom: 0.25rem; }

.cert-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.cert-logos { display: flex; gap: 0.4rem; align-items: center; }

.cert-org-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.cert-org-badge.nasscom {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent);
}

.cert-org-badge.ibm {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--accent-2);
}

.accent-link {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== COMPLETE LIGHT MODE (Apple Crisp Aesthetic) ===== */
.light {
  --bg:           #f8fafc;
  --bg-soft:      #ffffff;
  --bg-subtle:    #f1f5f9;
  --card:         #ffffff;
  --card-hover:   #ffffff;
  --card-glass:   #ffffff;
  --text:         #334155;
  --heading:      #0f172a;
  --muted:        #64748b;
  --muted-2:      #94a3b8;
  --accent:       #0284c7;
  --accent-hover: #0369a1;
  --accent-glow:  rgba(2, 132, 199, 0.14);
  --border:       #e2e8f0;
  --border-hover: rgba(2, 132, 199, 0.4);
  --border-light: #cbd5e1;
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow:       0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow:  0 0 40px rgba(2, 132, 199, 0.1);
}

.light body::after {
  opacity: 0.2;
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.12) 0%, rgba(147, 51, 234, 0.05) 50%, transparent 100%);
  mix-blend-mode: multiply;
}

.light body::before {
  opacity: 0.015;
}

.light .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.light .nav {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.light .nav a {
  color: var(--muted);
}

.light .nav a:hover {
  color: var(--heading);
  background: rgba(0, 0, 0, 0.06);
}

.light .btn.outline {
  background: #ffffff;
  color: var(--heading);
  border-color: var(--border-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.light .btn.outline:hover {
  background: #f8fafc;
  border-color: var(--accent);
  color: var(--accent);
}

.light .hero-art .card-xl {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.light .code-block {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.light .code-block-header {
  border-bottom: 1px solid #e2e8f0;
}

.light .code-block pre {
  color: #334155;
}

.light .gradient-text {
  background: linear-gradient(90deg, #0f172a 0%, #3b82f6 35%, #8b5cf6 70%, #0f172a 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.light input, .light textarea {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--heading);
}

.light .pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.light .pill:hover {
  background: #e2e8f0;
  border-color: rgba(0, 119, 204, 0.4);
  color: var(--accent);
}

.light .copy-email-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.light .toast {
  background: #ffffff;
  color: var(--heading);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.light .icons .icon {
  background: #ffffff;
  border-color: #e2e8f0;
  color: var(--muted);
}

.light .icons .icon:hover {
  background: #f8fafc;
  color: var(--accent);
  border-color: var(--accent);
}

.light .site-footer {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.light .back-to-top {
  background: #ffffff;
  border-color: #e2e8f0;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.light .section.alt {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.04), transparent);
}

.light #bgParticles { opacity: 0.25; }

/* ===== RESPONSIVE BREAKPOINTS (Mobile-First Perfection) ===== */
#menuToggle { display: none; }

/* Tablet & Mobile (<= 900px) */
@media (max-width: 900px) {
  .container {
    width: 92%;
    padding: 1.75rem 0 3.5rem;
  }

  .site-header {
    width: 100%;
    top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0.65rem 1.25rem;
  }

  .shortcut-badge-btn {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
  }

  .cards-3       { grid-template-columns: 1fr; }
  .skills-grid   { grid-template-columns: 1fr; }
  .resume-grid   { grid-template-columns: 1fr; grid-template-areas: "left" "right" "certs"; }
  .certs-row     { grid-template-columns: 1fr; }
  .bullets.two-col { grid-template-columns: 1fr; }

  .hero-art .card-xl {
    min-height: auto;
    padding: 1.25rem;
  }

  .code-block {
    min-height: 180px;
  }

  .code-block pre {
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 62px;
    background: #0b0f19;
    border: 1px solid var(--border-hover);
    border-radius: 18px;
    padding: 0.6rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 25px rgba(56, 189, 248, 0.15);
    z-index: 1000;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.75rem 1.1rem;
    width: 100%;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: 12px;
    transition: background var(--t-fast), color var(--t-fast);
  }

  .nav a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
  }

  .nav a.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    font-weight: 600;
  }

  .light .nav {
    background: #ffffff;
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 0 0 20px rgba(2, 132, 199, 0.1);
  }

  #menuToggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--heading);
  }

  .light #menuToggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
    color: var(--heading);
  }

  .hero-cta {
    gap: 0.75rem;
    width: 100%;
  }

  .hero-cta .btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-height: 44px;
  }

  .hero-cta .btn:nth-child(3) {
    flex-basis: 100%;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
  }
}

/* Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  .container {
    width: 93%;
    padding: 1.25rem 0 3rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand .logo {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
    margin-bottom: 0.85rem;
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .live-status {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-cta .btn {
    flex-basis: 100%;
    min-height: 46px;
    font-size: 0.92rem;
  }

  .stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stats > div {
    min-width: 0;
    padding: 0.65rem 0.35rem;
  }

  .stats strong {
    font-size: 1.05rem;
  }

  .stats span {
    font-size: 0.7rem;
  }

  .internship-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .internship-badge img {
    width: 100px;
  }

  .projects-controls {
    gap: 1rem;
  }

  .filters {
    gap: 0.4rem;
  }

  .filters .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }

  .copy-email-box {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
  }

  .copy-email-box code {
    font-size: 0.78rem;
    overflow-x: auto;
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.75rem 1rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }

  /* Disable transform jumps on mobile reveal */
  .reveal, .reveal-up, .reveal-down {
    transform: none !important;
    transition: opacity 0.4s ease;
  }
}

/* Extra Small Phones (<= 400px) */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

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

/* ===== PRINT STYLES ===== */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .site-header, .site-footer, .back-to-top, #bgParticles, .preloader, .scroll-progress, .btn, .filters, .search-wrapper {
    display: none !important;
  }
  .card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; color: #111 !important; }
  .gradient-text { color: #111 !important; background: none !important; }
  a { text-decoration: underline !important; color: #111 !important; }
}