/* ==========================================================================
   Shripad Jyothinath Portfolio — Mobile & Responsive Enhanced Styles
   ========================================================================== */

:root {
  /* Color Palette - Dark Obsidian */
  --bg-main: #0a0d14;
  --bg-surface: #101522;
  --bg-surface-hover: #161c2e;
  --bg-card: #131927;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(56, 189, 248, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.15);
  --accent-emerald: #34d399;
  --accent-emerald-glow: rgba(52, 211, 153, 0.15);
  --accent-violet: #a78bfa;
  --accent-violet-glow: rgba(167, 139, 250, 0.15);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Light Theme Overrides */
html.light {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-card: #ffffff;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.16);
  --border-accent: rgba(2, 132, 199, 0.3);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.1);
  --accent-emerald: #059669;
  --accent-violet: #6d28d9;

  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Visibility Helpers */
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex !important; }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), var(--accent-emerald));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Mouse Ambient Spotlight Glow */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
}

/* Grid Pattern Background */
.ambient-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

html.light .ambient-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* Typography & Fluid Scaling */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

.highlight-cyan { color: var(--accent-cyan); }
.highlight-violet { color: var(--accent-violet); }
.highlight-emerald { color: var(--accent-emerald); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #0a0d14;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.btn-primary:active, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

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

.btn-secondary:active, .btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:active, .btn-outline:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-surface);
}

.btn-full {
  width: 100%;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 38px; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; min-height: 32px; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; min-height: 48px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:active, .icon-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-hover);
}

.dark-icon { display: block; }
.light-icon { display: none; }
html.light .dark-icon { display: none; }
html.light .light-icon { display: block; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background-color var(--transition-normal);
}

html.light .navbar {
  background-color: rgba(248, 250, 252, 0.88);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-cyan);
  color: #0a0d14;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-medium);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  transition: background var(--transition-fast);
}

.mobile-nav-link svg {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
}

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

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Mobile Bottom Touch Navigation Dock */
.mobile-bottom-dock {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 420px;
  height: 62px;
  background: rgba(19, 25, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

html.light .mobile-bottom-dock {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  flex-grow: 1;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast);
}

.dock-item svg {
  width: 19px;
  height: 19px;
}

.dock-item:active, .dock-item.active {
  color: var(--accent-cyan);
}

/* Sections & Layout */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 1.5rem 0;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 5vw, 2.3rem);
  max-width: 750px;
  margin-bottom: 2rem;
}

.section-subhead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 100%;
}

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

.typewriter-text {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 950px;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hero-description {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.metric-value {
  display: inline;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-plus {
  display: inline;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 0.4rem;
}

.metric-sub {
  font-size: 0.775rem;
  color: var(--text-dim);
}

/* Perspective Filter Bar */
.perspective-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.perspective-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  flex-shrink: 0;
}

.perspective-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.persp-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.persp-tab.active {
  background: var(--accent-cyan);
  color: #0a0d14;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.lead-text {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.about-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quote-icon {
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

/* System Workflow Architecture Card */
.system-workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.workflow-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-overflow-scrolling: touch;
}

.wf-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.wf-tab.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  border-bottom: 2px solid var(--accent-cyan);
}

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.workflow-display {
  padding: 2rem 1.5rem;
}

.wf-content {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.wf-content.active {
  display: grid;
}

.wf-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.wf-info h3 {
  font-size: 1.4rem;
  margin-top: 0.3rem;
  margin-bottom: 0.85rem;
}

.wf-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.wf-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.wf-bullets li::before {
  content: '⚡ ';
  color: var(--accent-cyan);
}

.code-box {
  background: #06090e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #0e131d;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.725rem;
  color: var(--text-dim);
}

.dot-green { color: var(--accent-emerald); font-weight: 700; }
.dot-cyan { color: var(--accent-cyan); font-weight: 700; }

.code-box pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.45;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

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

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-badge {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.product-status {
  font-size: 0.775rem;
  color: var(--text-dim);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.product-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.product-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.product-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  background: var(--bg-surface);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.hl-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.hl-text {
  font-size: 0.725rem;
  color: var(--text-dim);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.725rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

/* Sequential Sticky Stacked Capabilities Section */
.sticky-stack-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 85px;
  transition: all 0.3s ease;
}

.stack-card.active-stack {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.stack-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.stack-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.stack-title-group h3 {
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

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

.stack-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stack-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

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

/* Developer Terminal */
.terminal-card {
  background: #070a10;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: #0e131f;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-dim);
}

.terminal-status {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--accent-emerald);
  font-weight: 700;
}

.terminal-quick-btns {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: #0a0e17;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.term-btn {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  background: #141b2a;
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.term-btn:active, .term-btn:hover {
  background: var(--accent-cyan);
  color: #070a10;
}

.terminal-body {
  padding: 1.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: #cbd5e1;
  min-height: 160px;
  max-height: 250px;
  overflow-y: auto;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #0a0e17;
  border-top: 1px solid var(--border-subtle);
}

.term-prompt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 700;
  flex-shrink: 0;
}

#terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-main);
  width: 100%;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  padding-left: 48px;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: 9px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 3px solid var(--accent-cyan);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-cyan);
}

.timeline-title {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.timeline-role {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.timeline-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact Card */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
}

.contact-header {
  max-width: 650px;
  margin-bottom: 2.25rem;
}

.contact-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.method-info { flex-grow: 1; overflow: hidden; }
.method-label { font-size: 0.725rem; color: var(--text-dim); text-transform: uppercase; }
.method-value { font-weight: 600; font-size: 0.875rem; color: var(--text-main); word-break: break-all; }
.method-arrow { color: var(--text-dim); flex-shrink: 0; }

/* Footer */
.footer {
  padding: 2.5rem 0 6rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-dim);
}

@media (min-width: 769px) {
  .footer {
    padding-bottom: 2.5rem;
  }
}

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

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

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
}

.modal-header h2 { font-size: 1.4rem; margin-top: 0.4rem; }
.modal-body h4 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.modal-body p, .modal-body ul { color: var(--text-muted); font-size: 0.875rem; }

/* Responsive Adjustments */
@media (max-width: 900px) {
  .about-grid, .wf-content { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .hero-cta-group .btn { width: 100%; }
  .stack-card { padding: 1.5rem; top: 75px; }
  .stack-card-header { flex-direction: row; gap: 1rem; }
  .stack-num { width: 44px; height: 44px; font-size: 1.4rem; }
  .stack-title-group h3 { font-size: 1.2rem; }
}
