/* ==========================================================================
   PRANIT PATIL - CREATIVE ANIMATED PORTFOLIO
   Design System & Styling
   Theme: Cyber-Luxe Fintech & Engineering (Dark Mode / Neon Accents)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Colors */
  --bg-primary: #07090e;
  --bg-secondary: #0c1017;
  --bg-tertiary: #121824;
  --bg-card: rgba(16, 23, 38, 0.75);
  --bg-card-hover: rgba(22, 32, 54, 0.85);
  --bg-glass: rgba(14, 20, 33, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-active: rgba(0, 240, 255, 0.6);

  /* Vibrant Accents */
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-glow: #e2e8f0;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-cyan-glow: 0 0 25px rgba(0, 240, 255, 0.25);
  --shadow-purple-glow: 0 0 25px rgba(139, 92, 246, 0.25);
  --shadow-emerald-glow: 0 0 25px rgba(16, 185, 129, 0.25);

  /* Layout */
  --max-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 76px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Accent Themes */
body.theme-purple {
  --accent-cyan: #a855f7;
  --accent-cyan-glow: rgba(168, 85, 247, 0.35);
  --border-glow: rgba(168, 85, 247, 0.3);
}
body.theme-emerald {
  --accent-cyan: #10b981;
  --accent-cyan-glow: rgba(16, 185, 129, 0.35);
  --border-glow: rgba(16, 185, 129, 0.3);
}
body.theme-amber {
  --accent-cyan: #f59e0b;
  --accent-cyan-glow: rgba(245, 158, 11, 0.35);
  --border-glow: rgba(245, 158, 11, 0.3);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-cyan);
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  z-index: 9999;
  mix-blend-mode: exclusion;
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  box-shadow: 0 0 10px var(--accent-cyan);
}
.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: rgba(0, 240, 255, 0.15);
  border-color: #fff;
}

@media (pointer: coarse) {
  .custom-cursor, .cursor-dot {
    display: none !important;
  }
}

/* --- Interactive Canvas Background --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Ambient Radial Glow Gradients */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.15;
  transition: transform 0.8s ease-out;
}
.glow-1 {
  top: -100px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}
.glow-2 {
  top: 45%;
  right: 5%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}
.glow-3 {
  bottom: 5%;
  left: 20%;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
}

/* --- Container & Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-emerald) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Glass Card System --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  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.2), transparent);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-cyan-glow);
  transform: translateY(-4px);
}

/* --- Button Component System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00a8ff 100%);
  color: #050b14;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, #4ef3ff 0%, #1ab1ff 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cyan-glow);
}

.btn-accent-purple {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-accent-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.55);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* --- Badges & Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.tag:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.tag-cyan {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}

.tag-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
  position: relative;
  overflow: hidden;
}

.logo-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-k-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-k-badge:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.cmd-k-badge kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.7rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

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

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-emerald);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--accent-cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-role .divider {
  color: var(--text-dim);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Quick Metrics Bar */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.metric-value .accent {
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

/* --- Hero Terminal Window / 3D Card --- */
.hero-visual {
  position: relative;
}

.terminal-card {
  background: #090e17;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  position: relative;
  transition: transform 0.3s ease;
}

.terminal-header {
  background: #0f1624;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.terminal-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-body {
  padding: 20px;
  min-height: 380px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
}

.term-line {
  display: flex;
  gap: 8px;
}

.term-prompt {
  color: var(--accent-cyan);
  user-select: none;
}

.term-cmd {
  color: #f8fafc;
  font-weight: 500;
}

.term-output {
  color: var(--text-muted);
  padding-left: 16px;
}

.term-success {
  color: var(--accent-emerald);
}

.term-highlight {
  color: var(--accent-purple);
}

.term-interactive-tabs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.term-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.term-tab-btn.active, .term-tab-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.floating-badge {
  position: absolute;
  background: rgba(14, 20, 33, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glow);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.floating-badge-1 {
  top: -20px;
  right: -15px;
  border-color: rgba(0, 240, 255, 0.4);
}

.floating-badge-2 {
  bottom: -20px;
  left: -20px;
  animation-delay: -3s;
  border-color: rgba(139, 92, 246, 0.4);
}

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

/* ==========================================================================
   FLAGSHIP PROJECTS SECTION
   ========================================================================== */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.featured-project:hover {
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-cyan-glow);
}

.project-badge-corner {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, var(--accent-cyan), #0088ff);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.project-title {
  font-size: 1.85rem;
  margin-bottom: 14px;
}

.project-tagline {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 18px;
}

.project-narrative {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-glow);
}

.project-features li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

.tech-stack-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.project-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Interactive Simulator Containers --- */
.project-interactive-panel {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.sim-controls {
  display: flex;
  gap: 8px;
}

/* ResumeForge ATS Demo Widget */
.ats-demo-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.ats-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ats-input-group label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.ats-textarea {
  width: 100%;
  height: 85px;
  background: rgba(14, 20, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
}

.ats-textarea:focus {
  border-color: var(--accent-cyan);
}

.ats-score-meter-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.score-card {
  background: rgba(15, 22, 36, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.score-card.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.keywords-detected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kw-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
  animation: fadeIn 0.3s ease;
}

.resume-preview-sheet {
  background: #ffffff;
  color: #1e293b;
  border-radius: 6px;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.resume-sheet-header {
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 4px;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-page-tag {
  background: #10b981;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Pipeline Simulator Widget */
.pipeline-visualizer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pipeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14, 20, 33, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.pipeline-node.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
}

.node-meta {
  flex: 1;
}

.node-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.node-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.node-status-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.pipeline-node.active .node-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.pipeline-output-log {
  background: #060910;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
  min-height: 90px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Secondary Grid Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}

.project-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  margin-bottom: 24px;
}

.card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.card-icon-wrap.purple {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.card-icon-wrap.emerald {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ==========================================================================
   INTERACTIVE FINTECH SANDBOX SECTION
   ========================================================================== */
.sandbox-wrapper {
  background: linear-gradient(180deg, #090e18 0%, #060910 100%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 240, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}

.sandbox-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.form-input, .form-select {
  background: rgba(14, 20, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-cyan);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(12, 18, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.flow-step.processing {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
}

.flow-step.success {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.step-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.flow-step.processing .step-indicator {
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
  animation: pulse 1s infinite;
}

.flow-step.success .step-indicator {
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
}

.step-content {
  flex: 1;
}

.step-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.step-detail {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   TECHNICAL SKILLS MATRIX
   ========================================================================== */
.skills-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-normal);
}

.skill-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-icon-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-icon-name svg {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan);
}

.skill-name {
  font-weight: 600;
  font-size: 1rem;
}

.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 3px;
  transition: width 1s ease;
}

.skill-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   EXPERIENCE & CAREER TIMELINE
   ========================================================================== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 50%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -37px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
}

.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
}

.timeline-card {
  padding: 30px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.role-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.company-name {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.timeline-highlights {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-highlights li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

.key-project-pill {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-glow);
}

.key-project-pill strong {
  color: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT & CONNECT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-normal);
}

.contact-info-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(6px);
  box-shadow: var(--shadow-cyan-glow);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.contact-val {
  font-size: 1rem;
  font-weight: 600;
}

.contact-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-textarea {
  width: 100%;
  height: 120px;
  background: rgba(14, 20, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-textarea:focus {
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   COMMAND PALETTE MODAL (CTRL+K)
   ========================================================================== */
.cmd-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 12, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cmd-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-modal {
  width: 100%;
  max-width: 600px;
  background: #0c121d;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.2);
  overflow: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: transform var(--transition-spring);
}

.cmd-modal-backdrop.active .cmd-modal {
  transform: translateY(0) scale(1);
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-input-wrap svg {
  color: var(--accent-cyan);
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #fff;
}

.cmd-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
}

.cmd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-footer {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0d1422;
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070c;
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .featured-project, .sandbox-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links, .cmd-k-badge {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }

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

  .featured-project {
    padding: 24px;
  }

  .sandbox-wrapper {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-container {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -27px;
  }
}
