/* 
   Steven Garone — Portfolio & AI Engineering Showcase
   Vibrant, Fun, High-Energy Design System
*/

:root {
  /* Bright, energetic palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);

  --fun-coral: #ff5e7e;
  --fun-yellow: #f59e0b;
  --fun-cyan: #06b6d4;
  --fun-emerald: #10b981;
  --fun-purple: #8b5cf6;
  --fun-indigo: #6366f1;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 22px 40px -6px rgba(79, 70, 229, 0.22);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  --theme-transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* NIGHT / DARK THEME */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #0f172a;
  --bg-card: #131b2e;
  --bg-card-subtle: #1c263c;
  --nav-bg: rgba(11, 15, 25, 0.92);
  --border-color: #24324f;
  --border-hover: #3d5077;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --primary-light: rgba(99, 102, 241, 0.2);
  --primary-glow: rgba(99, 102, 241, 0.45);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.55), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 35px -5px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 22px 40px -6px rgba(129, 140, 248, 0.35);
}

[data-theme="dark"] body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(#1e293b 1.2px, transparent 1.2px),
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(219, 39, 119, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 70%, rgba(245, 158, 11, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 40%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  /* Fun energetic background pattern: subtle dot grid + warm color washes */
  background-image: 
    radial-gradient(#cbd5e1 1.2px, transparent 1.2px),
    radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 90% 25%, rgba(255, 94, 126, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(245, 158, 11, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 35%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-fun {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Fun Sticker / Badge */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  transform: rotate(-1.5deg);
  transition: var(--transition);
}
.sticker:hover {
  transform: rotate(1deg) scale(1.04);
}

/* Theme Toggle (Day / Night) & Sound Toggle */
.theme-toggle,
.sound-toggle {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.theme-toggle:hover,
.sound-toggle:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  color: var(--primary);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--theme-transition);
}

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

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

.nav-brand-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4f46e5, #db2777);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-brand-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
  transition: var(--transition);
}

.nav-brand:hover .nav-brand-avatar-img {
  transform: scale(1.06);
  border-color: var(--secondary);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* MOBILE HAMBURGER BUTTON */
.mobile-menu-btn {
  display: none;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.25s ease-in-out;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* PULSE INDICATOR UTILITY */
.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  display: inline-block;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

/* Primary "Let's Talk" & Main Action Button — High Contrast, Vivid, Crisp */
.btn-primary,
.nav-links a.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover,
.nav-links a.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
}

.nav-links .btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
  border-radius: var(--radius-full);
}

.btn-fun {
  background: linear-gradient(135deg, #db2777 0%, #ff5e7e 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.28);
}
.btn-fun:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.4);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* HERO SECTION: SPACIOUS 2-COLUMN GRID */
.hero {
  padding: 130px 0 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 52px;
  align-items: center;
  margin-bottom: 56px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* EXECUTIVE PROFILE CARD (RIGHT COLUMN) */
.hero-right {
  display: flex;
  justify-content: center;
}

.executive-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  max-width: 350px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.executive-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.executive-avatar-frame {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
}

.executive-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.executive-badge-status {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: var(--bg-card);
  border: 1.5px solid var(--emerald);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.executive-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.executive-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.executive-location {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.executive-creds-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.cred-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cred-chip:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 36px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--theme-transition);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* SECTION COMMONS */
.section {
  padding: 90px 0;
}

/* VALUE / UNIQUE DIFFERENTIATOR SECTION */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.value-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

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

.value-block {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.value-problem {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  color: var(--text-muted);
}

.value-solution {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  color: var(--text-main);
  font-weight: 500;
}

/* TESTIMONIALS & SOCIAL PROOF */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.testimonial-quote-icon {
  font-size: 36px;
  font-family: serif;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 8px;
  line-height: 1;
}

.testimonial-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 22px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.author-role {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.author-company {
  font-size: 12px;
  color: var(--text-dim);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 52px;
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 12px;
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-description {
  font-size: 17px;
  color: var(--text-muted);
}

/* AI LAB SECTION */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.lab-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--theme-transition);
}

.lab-card::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #db2777, #f59e0b);
  border-radius: 4px;
}

.lab-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.lab-feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #eef2ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* Code Window */
.code-window {
  background: #1e1e2e;
  border: 1.5px solid #313244;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-header {
  background: #181825;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #313244;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #f38ba8; }
.dot-yellow { background: #f9e2af; }
.dot-green { background: #a6e3a1; }

.code-filename {
  font-family: monospace;
  font-size: 12px;
  color: #a6adc8;
  margin-left: 8px;
  font-weight: 600;
}

.code-body {
  padding: 22px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #cdd6f4;
  overflow-x: auto;
}

.code-kw { color: #cba6f7; font-weight: 600; }
.code-fn { color: #89b4fa; }
.code-str { color: #a6e3a1; }
.code-num { color: #fab387; }
.code-comm { color: #6c7086; font-style: italic; }

/* PORTFOLIO & PROJECTS */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transform: scale(1.04);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.category-tag {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.badge-wip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.badge-coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed #f59e0b;
}

.project-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.project-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-tag {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: #475569;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-weight: 600;
}

.card-actions {
  display: flex;
  gap: 12px;
}

/* ENTERPRISE ARCHITECTURE SECTION */
.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.enterprise-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-md);
  transition: var(--theme-transition);
}

.enterprise-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

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

.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.timeline-role {
  font-weight: 800;
  color: var(--text-main);
  font-size: 15.5px;
}

.timeline-company {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.timeline-dates {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* RESUME SECTION */
.section-resume {
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-color);
  transition: var(--theme-transition);
}

.resume-preview-card {
  padding: 44px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  transition: var(--theme-transition);
}

.resume-preview-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.resume-preview-card p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 16px;
}

.resume-highlights {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.highlight-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

/* FOOTER & CONNECT */
.footer {
  border-top: 1.5px solid var(--border-color);
  padding: 80px 0 40px;
  background: var(--bg-surface);
  transition: var(--theme-transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand h4 {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 440px;
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-links h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-main);
  margin-bottom: 18px;
  font-weight: 800;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ARCHITECTURE MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  max-width: 740px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transition: var(--theme-transition);
}

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

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-main);
  transform: scale(1.1);
}

/* SECTION GAMES & SECTION CONTACT */
.section-games {
  background: var(--bg-main);
  border-top: 1.5px solid var(--border-color);
  transition: var(--theme-transition);
}

.section-contact {
  background: var(--bg-surface);
  border-top: 1.5px solid var(--border-color);
  padding: 80px 0;
  transition: var(--theme-transition);
}

.contact-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header .section-subtitle {
  margin: 0 auto;
}

form[name="contact"] p {
  margin-bottom: 20px;
}

form[name="contact"] label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

form[name="contact"] input[type="text"],
form[name="contact"] input[type="email"],
form[name="contact"] textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  transition: var(--transition);
  box-sizing: border-box;
}

form[name="contact"] input[type="text"]:focus,
form[name="contact"] input[type="email"]:focus,
form[name="contact"] textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

form[name="contact"] textarea {
  resize: vertical;
  min-height: 110px;
}

form[name="contact"] button[type="submit"] {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 24px;
}

/* EXECUTIVE CASE STUDY CARDS */
.case-studies-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.case-study-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.case-study-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border-color);
}

.case-study-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-study-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.case-study-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 8px;
  margin-bottom: 6px;
}

.case-study-role {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.case-study-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .case-study-body {
    grid-template-columns: 1fr;
  }
  .case-study-card {
    padding: 24px 20px;
  }
}

.case-part {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.case-part-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-part-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-main);
}

.case-outcome-bar {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 22px;
}

[data-theme="dark"] .case-outcome-bar {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.case-outcome-title {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #15803d;
  margin-bottom: 6px;
}

[data-theme="dark"] .case-outcome-title {
  color: #34d399;
}

.case-outcome-metrics {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
}

.case-witness {
  background: var(--bg-surface);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.case-witness-quote {
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.case-witness-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}


/* COMPREHENSIVE RESPONSIVE STYLING */
@media (max-width: 960px) {
  .hero-title { font-size: 38px; }
  .stats-ribbon { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lab-grid, .enterprise-grid, .value-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

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

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  /* Mobile Navigation Drawer */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    padding: 24px 20px;
    gap: 14px;
    align-items: stretch;
    transform: translateY(-160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    background: var(--bg-card-subtle);
    border: 1px solid var(--border-color);
  }

  .nav-links a:not(.btn):hover,
  .nav-links a:not(.btn):active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
  }

  .theme-toggle,
  .sound-toggle {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 14px;
  }

  .nav-links .btn-primary {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    border: none;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 100px 0 50px 0;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .executive-card {
    padding: 28px 18px;
    max-width: 100%;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* 2x2 grid for mobile stats ribbon */
  .stats-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 12px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-label {
    font-size: 11px;
  }

  /* Smooth horizontal swipe chip tabs for mobile */
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 4px 12px 4px;
    margin-bottom: 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12.5px;
    padding: 8px 14px;
  }

  .project-card, 
  .enterprise-card, 
  .lab-card, 
  .contact-card,
  .resume-preview-card {
    padding: 22px 16px;
  }

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

  .modal-content {
    padding: 24px 16px;
    width: 94%;
    max-height: 88vh;
  }

  .section-title {
    font-size: 26px;
  }

  .section-description {
    font-size: 14.5px;
  }

  .card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
