/* ==========================================================================
   HAMZASHAIKHAI.COM — DESIGN SYSTEM & STUDIO ROSY RED COLOR GRADING
   ========================================================================== */

:root {
  --bg: #07080d;
  --bg-elevated: #0e1119;
  --surface: rgba(14, 18, 28, 0.82);
  --surface-strong: #121622;
  --border: rgba(148, 163, 184, 0.16);
  --border-focus: rgba(255, 64, 113, 0.45);
  
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  
  /* Studio Ruby / Rosy Red Grading */
  --accent: #ff4071;
  --accent-soft: #ff6b8b;
  --accent-glow: rgba(255, 64, 113, 0.35);
  --accent-grad: linear-gradient(120deg, #ffffff 0%, #ff8ba7 50%, #ff3366 100%);
  
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body {
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fixed Canvas Scroll Background */
.scroll-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  object-fit: cover;
  pointer-events: none;
}

.canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 28%, rgba(7, 8, 13, 0.15) 0%, rgba(7, 8, 13, 0.65) 60%, rgba(7, 8, 13, 0.94) 100%),
              linear-gradient(to bottom, rgba(7, 8, 13, 0.30) 0%, rgba(7, 8, 13, 0.55) 50%, rgba(7, 8, 13, 0.90) 100%);
}

.container {
  width: 100%;
  max-width: min(96vw, 1800px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 2vw, 32px);
  padding-right: clamp(14px, 2vw, 32px);
}

.mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Preloader completely removed */
.preloader {
  display: none !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  max-width: min(96vw, 1800px);
  margin: 0 auto;
  padding: 14px clamp(14px, 2vw, 32px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-monogram {
  width: 32px;
  height: 32px;
  background: rgba(255, 64, 113, 0.15);
  border: 1px solid rgba(255, 64, 113, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-ver-pill {
  display: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.btn-build {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform 0.2s, background 0.2s;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-inner {
  max-width: 1200px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(20, 24, 34, 0.85);
  border: 1px solid rgba(255, 64, 113, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  margin-bottom: 24px;
}

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

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: #ff6b8b;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  font-weight: 600;
}

.hero-copy {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 1050px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #ff2a5f;
  box-shadow: 0 8px 30px rgba(255, 64, 113, 0.5);
}

.btn-glass {
  background: rgba(14, 18, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(22, 28, 42, 0.92);
  border-color: rgba(255, 64, 113, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 18, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: all 0.2s;
  cursor: pointer;
}

.social-chip:hover {
  background: rgba(255, 64, 113, 0.12);
  border-color: rgba(255, 64, 113, 0.3);
  color: #fff;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-heading {
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding: 24px 32px;
  background: rgba(14, 18, 28, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #ff6b8b;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 1100px;
}

/* Smoked Glass Base */
.spotlight-card {
  background: rgba(14, 18, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-card {
  padding: 32px 36px;
  margin-bottom: 30px;
}

.about-card p {
  font-size: 1.02rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-pill {
  background: rgba(14, 18, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: rgba(22, 28, 42, 0.9);
  color: #fff;
}

.filter-pill.active {
  background: rgba(255, 64, 113, 0.16);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px var(--accent-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.project-card {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 64, 113, 0.35);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 6px;
}

.badge-systems {
  background: rgba(255, 64, 113, 0.12);
  border: 1px solid rgba(255, 64, 113, 0.35);
  color: #ff6b8b;
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.badge-green {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.project-ext-link {
  color: var(--muted);
  transition: color 0.2s;
}

.project-ext-link:hover {
  color: var(--accent);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.project-card p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}

/* ==========================================================================
   PROJECT COMPARISON MATRIX
   ========================================================================== */
.matrix-card {
  padding: 24px;
}

.matrix-overflow {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.matrix-table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #ff6b8b;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matrix-table td {
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.status-rc {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-active {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.status-oss {
  background: rgba(255, 64, 113, 0.12);
  border: 1px solid rgba(255, 64, 113, 0.3);
  color: #ff6b8b;
}

.status-archived {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.source-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

/* ==========================================================================
   SKILLS GRID
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.skill-card {
  padding: 28px;
}

.skill-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon {
  font-size: 1.1rem;
  color: var(--accent);
}

.skill-head h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

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

.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-soft);
}

/* ==========================================================================
   CURRENT FOCUS / ROADMAP
   ========================================================================== */
.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.focus-card {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.focus-badge {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.focus-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.focus-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
}

.faq-body {
  padding: 0 28px 24px 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item:not(.active) .faq-body {
  display: none;
}

/* ==========================================================================
   HAVE AN IDEA? LET'S BUILD (CONTACT)
   ========================================================================== */
.collab-card {
  padding: 36px 40px;
}

.collab-header {
  margin-bottom: 24px;
}

.collab-title {
  display: block;
  font-size: 0.74rem;
  color: #ff6b8b;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.collab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collab-pill {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.collab-pill.active {
  background: rgba(255, 64, 113, 0.18);
  border-color: var(--accent);
  color: #fff;
}

.collab-textbox {
  margin-bottom: 24px;
}

.collab-textarea {
  width: 100%;
  background: rgba(7, 8, 13, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

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

.collab-footer {
  margin-bottom: 28px;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 24, 34, 0.95);
  border: 1px solid rgba(255, 64, 113, 0.35);
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-email:hover {
  background: rgba(255, 64, 113, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.collab-socials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: #121622;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

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

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}
