/* ==========================================================================
   Vishal Khatri - Personal Portfolio Stylesheet
   Designed with clean typography, responsive layout tokens, and subtle accents.
   ========================================================================== */

:root {
  --bg-main: #09090b;       /* Zinc 950 deep dark background */
  --bg-surface: #121215;    /* Elevated surface */
  --bg-card: #18181b;       /* Card background */
  --bg-card-hover: #1f1f23; /* Interactive hover */
  
  --border-subtle: #27272a; /* Zinc 800 subtle borders */
  --border-active: #3f3f46; /* Highlight border */
  
  --text-main: #f4f4f5;     /* High-contrast crisp text */
  --text-muted: #a1a1aa;    /* Secondary text */
  --text-dim: #71717a;      /* Tertiary / metadata */
  
  --accent: #3b82f6;        /* Clean Electric Blue */
  --accent-glow: rgba(59, 130, 246, 0.15);
  --figma-cyan: #06b6d4;
  --success-green: #10b981;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --max-width: 900px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.logo-badge {
  background: #27272a;
  color: #60a5fa;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #3f3f46;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-btn {
  background: #27272a !important;
  color: var(--text-main) !important;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #3f3f46;
  font-size: 13px !important;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: #3f3f46 !important;
  border-color: #52525b;
}

/* Main Content Container */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 75px 0 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 28px;
}

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

/* Meta Strip */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 30px;
  width: fit-content;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.meta-val {
  color: var(--text-main);
  font-weight: 500;
}

.meta-sep {
  color: var(--border-active);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: #09090b;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

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

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

/* Section Shared Layout */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.sub-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-main);
}

.section-note {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  position: relative;
}

.project-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-type {
  color: #94a3b8;
  background: #27272a;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.card-title a {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-title a:hover {
  color: #60a5fa;
}

.card-external {
  font-size: 16px;
  color: var(--text-dim);
}

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

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #d4d4d8;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 2px solid #3b82f6;
}

.feature-bullets code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #27272a;
  padding: 1px 5px;
  border-radius: 4px;
  color: #93c5fd;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  font-size: 12px;
  font-family: var(--font-mono);
  background: #27272a;
  color: #d4d4d8;
  padding: 3px 9px;
  border-radius: 4px;
}

.tag-figma {
  background: rgba(6, 182, 212, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: #60a5fa;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.card-status-note {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Toolkit Cards */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.toolkit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}

.toolkit-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.toolkit-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.toolkit-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 12px;
  background: #27272a;
  color: #e4e4e7;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #3f3f46;
}

.pill-highlight {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-weight: 500;
}

/* Contact Box */
.contact-box {
  background: linear-gradient(180deg, #18181b 0%, #121215 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
}

.contact-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 6px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.contact-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.copy-email-btn {
  background: #27272a;
  color: var(--text-main);
  border: 1px solid #3f3f46;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.copy-email-btn:hover {
  background: #3f3f46;
  border-color: #52525b;
}

.copy-tooltip {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 6px;
  font-family: var(--font-mono);
}

.contact-social-link {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-social-link:hover {
  color: var(--text-main);
  border-color: var(--border-active);
  background: #18181b;
}

/* Footer */
.footer {
  padding: 30px 20px;
  background: #09090b;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 640px) {
  .hero-heading {
    font-size: 28px;
  }
  .br-desktop {
    display: none;
  }
  .section-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .contact-box {
    padding: 28px 18px;
  }
}
