/* ==========================================
   DESIGN SYSTEM & BRAND CSS TOKENS
   ========================================== */
:root {
  --bg-primary: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #111111;
  --bg-card: #050505;
  --bg-card-hover: #0a0a0a;

  --text-primary: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;

  /* Official Brand Colors from Logo */
  --brand-mint: #08CE9A;
  --brand-white: #FFFFFF;
  --accent-cyan: #FFFFFF;
  --accent-blue: #FFFFFF;
  --accent-violet: #FFFFFF;
  
  --accent-gradient: linear-gradient(135deg, #08CE9A 0%, #111111 100%);
  --accent-gradient-text: linear-gradient(180deg, #FFFFFF 0%, #08CE9A 100%);
  --accent-glow: rgba(8, 206, 154, 0.15);

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.2);
  --border-active: rgba(8, 206, 154, 0.45);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --max-width: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Background Canvas */
#bg-canvas {
  display: none;
}

/* Overlay Grid Line Effect */
.grid-overlay {
  display: none;
}

/* Layout Wrapper */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
  padding: 14px 0;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}

.brand-name-img {
  height: 38px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s var(--ease-out), filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.65));
}

.brand-logo:hover .brand-name-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}

.brand-text-elvyn {
  color: var(--text-primary);
}

.brand-text-forge {
  color: var(--brand-mint);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand-mint);
  transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  border-color: var(--brand-mint);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.nav-search-btn:hover {
  border-color: var(--brand-mint);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--brand-mint);
}

/* Mobile Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 15, 0.96);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-drawer a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-drawer a:hover {
  color: var(--brand-mint);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 10px var(--brand-mint);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(3.8rem, 8.5vw, 7.8rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin-bottom: 28px;
  max-width: 1000px;
}

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

.hero-subtext {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 44px;
  font-weight: 400;
}

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

/* Sophisticated Custom Integrated Primary CTA */
.btn-integrated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  background: #0B0F19;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  isolation: isolate;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Clean minimalist border aura */
.btn-integrated::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-md) + 1px);
  background: var(--border-medium);
  z-index: -1;
  opacity: 1;
  transition: background 0.3s ease;
}

.btn-integrated::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  z-index: -1;
}

.btn-integrated:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(8, 206, 154, 0.2);
}

.btn-integrated:hover::before {
  background: rgba(8, 206, 154, 0.8);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Technical Studio Metrics Bar */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
  max-width: 720px;
}

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

.metric-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ==========================================
   COMMON SECTION STYLES
   ========================================== */
section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-mint);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.section-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 420px;
}

/* ==========================================
   SECTION 01 / WHAT WE BUILD
   ========================================== */
.build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Cursor Radial Glow Overlay */
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 80%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spotlight-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.12);
}

.spotlight-card:hover::before {
  opacity: 1;
}

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

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mint);
}

.card-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

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

/* ==========================================
   SECTION 02 / SELECTED WORK
   ========================================== */
.work-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--brand-mint);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 480px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 255, 255, 0.15);
}

/* Dynamic Canvas Image Placeholder Frame */
.project-media-frame {
  position: relative;
  width: 100%;
  height: 280px;
  background: #05070D;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-media-frame canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.project-media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media-frame canvas,
.project-card:hover .project-media-frame video {
  transform: scale(1.04);
}

.placeholder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 9, 15, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
  z-index: 5;
}

/* Custom Interactive Video Play/Pause Control Button */
.video-play-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 9, 15, 0.85);
  border: 1px solid var(--border-medium);
  color: var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.video-play-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-mint);
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.project-meta {
  padding: 28px 32px;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-mint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.stacked-projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stacked-projects .project-card {
  min-height: 230px;
}

.stacked-projects .project-media-frame {
  height: 160px;
}

/* Bottom Full Width Project Card */
.project-card.full-width {
  margin-top: 20px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  align-items: stretch;
}

.project-card.full-width .project-media-frame {
  position: relative;
  height: 100%;
  min-height: 280px;
  border-bottom: none;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Flagship Paari Card Custom Styles */
.flagship-card {
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.15) !important;
  margin-bottom: 24px;
}

.flagship-card:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 255, 255, 0.3) !important;
}

.paari-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.paari-overlay-content {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.paari-card-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
  background: rgba(11, 15, 25, 0.85);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.paari-hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 9, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--brand-mint);
  backdrop-filter: blur(8px);
}

.pulse-green-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
  box-shadow: 0 0 8px var(--brand-mint);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

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

.title-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(53, 191, 255, 0.1);
  border: 1px solid rgba(53, 191, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-accent {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--brand-mint) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-sm {
  padding: 12px 22px !important;
  font-size: 13px !important;
}

/* ==========================================
   SECTION 03 / OPEN SOURCE
   ========================================== */
.opensource-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.opensource-container::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.opensource-header {
  max-width: 600px;
  margin-bottom: 40px;
}

.repo-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(7, 9, 15, 0.6);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  max-width: 400px;
}

.repo-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
}

.repo-search-bar input::placeholder {
  color: var(--text-dim);
}

.repo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.repo-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-medium);
  transform: translateX(4px);
}

.repo-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.repo-name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.repo-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-mint);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.repo-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(53, 191, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(53, 191, 255, 0.25);
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.repo-stars {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.btn-copy-code {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-copy-code:hover {
  color: var(--text-primary);
  border-color: var(--brand-mint);
}

/* ==========================================
   SECTION 04 / PHILOSOPHY
   ========================================== */
.philosophy-section {
  text-align: center;
  padding: 160px 0;
  position: relative;
}

.philosophy-quote {
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: 960px;
  margin: 0 auto 36px;
}

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

.philosophy-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================
   SECTION 05 / FINAL CTA & CONTACT MODAL
   ========================================== */
.cta-box {
  text-align: center;
  padding: 100px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(11, 15, 25, 0.4) 100%);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-headline {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-subtext {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Interactive Contact Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  width: min(520px, 100%);
  background: #0B0F19;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-mint);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

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

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 15, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--brand-mint);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: #0B0F19;
  border: 1px solid var(--brand-mint);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s var(--ease-out);
  z-index: 300;
}

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

/* ==========================================
   FOOTER
   ========================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 60px;
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-name-img {
  height: 28px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-brand-link:hover .footer-logo-img,
.footer-brand-link:hover .footer-name-img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.5));
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a:hover {
  color: var(--brand-mint);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .project-card.full-width {
    grid-template-columns: 1fr;
  }
  .project-card.full-width .project-media-frame {
    height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-search-btn {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-headline {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .build-grid {
    grid-template-columns: 1fr;
  }
  .opensource-container {
    padding: 32px 24px;
  }
  .repo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .repo-meta {
    width: 100%;
    justify-content: space-between;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    gap: 8px;
  }
  .brand-logo-img {
    height: 30px;
  }
  .brand-name-img {
    height: 28px;
    max-width: 180px;
  }
  .footer-logo-img {
    height: 24px;
  }
  .footer-name-img {
    height: 22px;
    max-width: 150px;
  }
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ==========================================
   COMMAND PALETTE MODAL (CMD + K)
   ========================================== */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

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

.cmd-card {
  width: min(640px, calc(100vw - 32px));
  background: #0B0F19;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s var(--ease-out);
}

.cmd-overlay.active .cmd-card {
  transform: translateY(0) scale(1);
}

.cmd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.cmd-header input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
}

.cmd-header input::placeholder {
  color: var(--text-dim);
}

.kbd-esc {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  cursor: pointer;
}

.cmd-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 8px 12px 4px;
  text-transform: uppercase;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cmd-item:hover svg, .cmd-item.selected svg {
  color: var(--brand-mint);
}

.cmd-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cmd-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cmd-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.cmd-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--brand-mint);
}

.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(7, 9, 15, 0.5);
}

.cmd-footer kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ==========================================
   CASE STUDY SLIDE-OVER DRAWER MODAL
   ========================================== */
.casestudy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

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

.casestudy-card {
  width: min(720px, 92vw);
  height: 100vh;
  background: #07090F;
  border-left: 1px solid var(--border-medium);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
  padding: 40px;
  overflow-y: auto;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}

.casestudy-overlay.active .casestudy-card {
  transform: translateX(0);
}

.casestudy-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.casestudy-close-btn:hover {
  border-color: var(--brand-mint);
  color: var(--brand-mint);
  background: rgba(255, 255, 255, 0.1);
}

.casestudy-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-mint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.casestudy-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.casestudy-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.casestudy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.cs-info-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.cs-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cs-info-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.cs-section {
  margin-bottom: 36px;
}

.cs-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--brand-mint);
}

.cs-body-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.arch-code-block {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #0B0F19;
  border: 1px solid var(--border-subtle);
  color: #35BFFF;
  overflow-x: auto;
  margin-top: 12px;
}
