/* Modern CSS Design System - Shivansh Nigam Portfolio */

:root {
  /* Dark Theme (Default) */
  --bg-color: #0b0c0e;
  --bg-secondary: #121418;
  --bg-card: rgba(22, 25, 31, 0.7);
  --bg-card-hover: rgba(30, 35, 45, 0.8);
  --text-main: #f0f2f5;
  --text-muted: #949ba6;
  --text-dim: #606773;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent-color: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --acid-color: #c9ff4a;
  --acid-glow: rgba(201, 255, 74, 0.15);
  --violet-color: #a855f7;
  --blue-color: #38bdf8;
  --green-color: #22c55e;
  --nav-bg: rgba(11, 12, 14, 0.75);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-color: #f6f5f0;
  --bg-secondary: #eae8e1;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-main: #141619;
  --text-muted: #5a606b;
  --text-dim: #8b929e;
  --border-color: rgba(20, 22, 25, 0.1);
  --border-hover: rgba(20, 22, 25, 0.25);
  --accent-color: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.15);
  --acid-color: #10b981;
  --acid-glow: rgba(16, 185, 129, 0.15);
  --nav-bg: rgba(246, 245, 240, 0.85);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Custom Selection */
::selection {
  background: var(--accent-color);
  color: #ffffff;
}

/* Noise & Ambient Background */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 99;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.3s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
  100% { transform: translate(1%, -1%); }
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

.ambient-hero {
  top: 5vh;
  right: 5vw;
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
  opacity: 0.6;
}

/* Top Progress Line */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
  background: transparent;
}

.scroll-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--acid-color));
  transition: width 0.1s linear;
}

/* Typography Utilities */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-pad {
  padding-left: clamp(20px, 6vw, 100px);
  padding-right: clamp(20px, 6vw, 100px);
}

.section-label {
  color: var(--accent-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

/* Header & Glass Navigation */
.nav-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(40px, 12vw, 200px));
  max-width: 1200px;
  height: 64px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-main);
  display: inline-block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

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

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.availability:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.availability-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile Hamburger Button */
.menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
  position: fixed;
  top: 96px;
  left: 20px;
  right: 20px;
  z-index: 490;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

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

.hero-meta {
  color: var(--accent-color);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-title h1 {
  font-size: clamp(52px, 8.5vw, 110px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-title h1 span.gradient-text {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Hero Portrait Frame */
.hero-portrait-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1.25;
  border-radius: 140px 140px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.portrait-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturation(1.1);
  transition: transform var(--transition-smooth);
}

.portrait-card:hover img {
  transform: scale(1.03);
}

.portrait-location {
  margin-top: 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

/* Hero Footer */
.hero-footer {
  width: 100%;
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
}

/* Statement Section */
.statement {
  padding-top: 100px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
}

.statement-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.giant-text {
  font-size: clamp(38px, 5vw, 84px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  color: var(--text-main);
}

.giant-text span {
  color: var(--text-muted);
}

.statement-body {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Work Cards Section */
.work {
  padding-top: 100px;
  padding-bottom: 60px;
  border-top: 1px solid var(--border-color);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 45px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1.05;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--bg-card-hover);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 390px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s, border-color 0.3s;
  position: relative;
}

.project.featured {
  grid-column: 1 / -1;
  grid-template-columns: 46% 54%;
  min-height: 480px;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  border-color: var(--border-hover);
}

.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: var(--bg-secondary);
}

.project-visual img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
  transition: transform 0.5s;
}

.project:hover .project-visual img {
  transform: scale(1.07) rotate(-2deg);
}

.project-visual.warm { background: rgba(245, 158, 11, 0.12); }
.project-visual.dark { background: rgba(255, 255, 255, 0.04); }
.project-visual.blue { background: rgba(56, 189, 248, 0.12); }
.project-visual.violet { background: rgba(168, 85, 247, 0.12); }

[data-theme="light"] .project-visual.warm { background: #e8dfca; }
[data-theme="light"] .project-visual.dark { background: #e2e8f0; }
[data-theme="light"] .project-visual.blue { background: #dcebf4; }
[data-theme="light"] .project-visual.violet { background: #e6e1ed; }

.visual-ring {
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.02);
}

.project-info {
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-top {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 10px;
}

.project-info h3 {
  font-size: clamp(26px, 2.8vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 18px 0 12px;
  color: var(--text-main);
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}

.project-info p {
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 420px;
  margin: 0;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
}

.tags span {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
  font: 11px var(--font-mono);
  color: var(--text-muted);
  background: transparent;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  transition: filter var(--transition-fast);
}

[data-theme="dark"] .btn-icon-github,
[data-theme="dark"] .btn-icon-web {
  filter: invert(1);
}

/* Unified Pill Action Buttons */
.project-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.project-btn.btn-playstore:hover {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

.project-btn.btn-demo:hover {
  background: var(--accent-glow);
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.project-btn.btn-github:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.all-work {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 3px 0;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

.all-work a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}

.all-work a:hover {
  text-decoration: underline;
}

/* Approach Section */
.approach-section {
  padding-top: 80px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
}

.approach-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 40px;
  margin-top: 40px;
}

.principles-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.principle-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
}

.principle-num {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
  padding-top: 4px;
}

.principle-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.principle-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Interactive Toolkit Grid */
.stack-section {
  padding-top: 80px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.toolkit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-fast);
}

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

.toolkit-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolkit-card h3 span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-chip {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  font-weight: 500;
}

/* Career Timeline */
.career-section {
  padding-top: 80px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border-color);
}

.timeline {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 30px;
  align-items: start;
  transition: all var(--transition-fast);
}

.timeline-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.timeline-date {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 500;
}

.timeline-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

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

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

.timeline-bullets {
  list-style-type: none;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.status-badge {
  padding: 5px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  background: var(--bg-secondary);
}

.status-badge.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-color);
}

/* Contact Section - High Contrast Dark Block */
.contact-section {
  background: #0b0c0e !important;
  color: #f0f2f5 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 100px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.contact-aura {
  position: absolute;
  bottom: -20vw;
  right: -10vw;
  width: 55vw;
  height: 55vw;
  max-width: 750px;
  max-height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5) 0%, rgba(116, 104, 255, 0.25) 45%, rgba(0,0,0,0) 70%);
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.85;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.contact-section .section-label {
  color: #a855f7 !important;
}

.contact-section .section-label::before {
  background-color: #a855f7 !important;
}

.contact-title {
  font-size: clamp(42px, 7vw, 100px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff !important;
  margin: 30px 0 60px;
}

.email-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.email-copy-box:hover {
  border-color: #a855f7;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.email-address {
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 700;
  color: #ffffff !important;
}

.copy-icon {
  width: 20px;
  height: 20px;
  color: #a855f7;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 50px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa !important;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

.social-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  color: #ffffff !important;
}

.social-link:hover .social-icon {
  color: #a855f7;
  transform: translateY(-1px);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 24px 0 0;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #71717a !important;
}

.footer a {
  color: #a1a1aa !important;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff !important;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--text-main);
  color: var(--bg-color);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Dialog Component */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  color: #f59e0b;
  font-size: 11px;
  margin-bottom: 20px;
  font-weight: 500;
}

.pulse-amber {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse-amber 2s infinite;
}

@keyframes pulse-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.modal-title {
  font-size: clamp(22px, 3.5vw, 26px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.modal-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
}

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

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

/* Reveal Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Cursor (Desktop Only) */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.15s ease-out;
  }
  
  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    transform: translate(-50%, -50%);
  }

  .cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    transform: translate(-50%, -50%);
  }
}

/* Media Queries & Responsive Adaptations */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-portrait-wrapper {
    justify-content: flex-start;
  }

  .portrait-card {
    max-width: 280px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .project.featured {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .status-badge {
    justify-self: flex-start;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .availability {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .nav-header {
    width: calc(100% - 40px);
    padding: 0 16px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

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

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}