/* ==========================================================================
   Brandon Portfolio PWA - Mobile-First High-Performance Stylesheet
   Design Language: Obsidian Glassmorphism, Cyber Cyan & Sapphire Glow
   ========================================================================== */

:root {
  --bg-main: #07090e;
  --bg-surface: #0f1422;
  --bg-card: rgba(18, 25, 41, 0.75);
  --bg-card-hover: rgba(28, 38, 62, 0.9);
  
  --primary-cyan: #38bdf8;
  --primary-blue: #2563eb;
  --accent-purple: #a855f7;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --whatsapp-green: #25D366;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --border-active: rgba(56, 189, 248, 0.6);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ==========================================================================
   Navigation Bar (Mobile-First)
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.brand-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.brand-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.brand-title {
  font-size: 0.65rem;
  color: var(--primary-cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: none; /* Shown on desktop */
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-pwa-install {
  display: none; /* Shown dynamically on supporting desktop/mobile */
}

.btn-nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section (Mobile-First)
   ========================================================================== */
.hero-section {
  width: 100%;
  padding: 24px 16px 36px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--primary-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
  width: fit-content;
}

.hero-pill-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.hero-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #7ce2fe, #60a5fa 50%, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  width: 100%;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  width: 100%;
}

.stat-item h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.stat-item p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Interactive Device Mockup Stage (Mobile-First)
   ========================================================================== */
.hero-mockup-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Device View Toggle */
.mockup-view-toggle {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  background: rgba(15, 20, 34, 0.9);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  background: var(--primary-cyan);
  color: #07090e;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* Project Switcher Bar */
.mockup-switcher-bar {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  margin-bottom: 16px;
  background: rgba(15, 20, 34, 0.85);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  scrollbar-width: none;
}

.mockup-switcher-bar::-webkit-scrollbar {
  display: none;
}

.mockup-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mockup-tab-btn.active {
  background: var(--primary-cyan);
  color: #07090e;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* Mockup Device Wrapper */
.hero-mockup-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

/* iPhone View on Mobile (Default) */
.hero-mockup-wrapper.show-mobile-view .macbook-frame {
  display: none;
}

.hero-mockup-wrapper.show-mobile-view .iphone-floating-frame {
  display: flex;
  flex-direction: column;
  width: 240px;
  height: 480px;
  background: #0e1118;
  border-radius: 36px;
  padding: 6px;
  border: 3px solid #273549;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.25);
  position: relative;
  margin: 0 auto;
}

.iphone-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 12px 5px;
  font-size: 0.65rem;
  color: #f1f5f9;
}

.ios-time {
  font-weight: 700;
}

.iphone-island {
  width: 44px;
  height: 10px;
  background: #000;
  border-radius: 9999px;
}

.ios-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.55rem;
}

.iphone-screen {
  flex: 1;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.iphone-home-indicator {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  margin: 5px auto 2px;
}

/* MacBook View on Mobile */
.hero-mockup-wrapper.show-desktop-view .iphone-floating-frame {
  display: none;
}

.hero-mockup-wrapper.show-desktop-view .macbook-frame {
  display: block;
  width: 100%;
  max-width: 540px;
  background: #11141d;
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  border: 2px solid #2d3748;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.macbook-camera-notch {
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  margin: 0 auto 5px;
}

.macbook-screen {
  background: #090d16;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.macbook-browser-bar {
  height: 24px;
  background: #161d2f;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #ef4444; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #10b981; }

.macbook-url-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  height: 16px;
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-family: monospace;
  overflow: hidden;
  white-space: nowrap;
}

.macbook-display-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.macbook-bottom-chassis {
  height: 12px;
  background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  border-radius: 0 0 8px 8px;
}

.macbook-bottom-notch {
  width: 60px;
  height: 4px;
  background: #111827;
  border-radius: 0 0 3px 3px;
  margin: 0 auto;
}

/* ==========================================================================
   Showcase Section (Mobile-First)
   ========================================================================== */
.section-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 16px;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.filter-pills-row {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.filter-pills-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.project-card-header {
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-category-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.project-visual-container {
  margin: 0 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.device-window-chrome {
  background: #141b2b;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.window-url-bar {
  flex: 1;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: monospace;
}

.card-img-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.card-hover-overlay {
  display: none;
}

.project-card-body {
  padding: 14px 16px;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  cursor: pointer;
}

.project-card-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.project-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.project-card-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

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

.stat-num {
  font-size: 1.05rem;
  font-weight: 800;
}

.stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
}

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

.btn-card-details,
.btn-card-quote {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-card-details {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-card-quote {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #fff;
  border: none;
}

/* ==========================================================================
   Quote Estimator (Mobile-First)
   ========================================================================== */
.estimator-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  border: 1px solid var(--border-subtle);
}

.estimator-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimator-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.estimator-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: #090d16;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #090d16;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.estimator-result-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(37, 99, 235, 0.15));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
}

.estimator-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.estimator-result-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}

.estimator-result-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.btn-estimator-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

/* ==========================================================================
   CTA Banner (Mobile-First)
   ========================================================================== */
.cta-banner-section {
  width: 100%;
  padding: 24px 16px 40px;
}

.cta-banner-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
}

.cta-banner-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-cyan);
  display: block;
  margin-bottom: 8px;
}

.cta-banner-title {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cta-banner-lead {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-cta-call,
.btn-cta-wa,
.btn-cta-copy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-cta-call {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-cta-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
}

.btn-cta-copy {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--border-glow);
  color: var(--primary-cyan);
}

/* ==========================================================================
   Modal Dialog (Mobile-First)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-overlay.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  z-index: 210;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0d121f;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header-section {
  margin-bottom: 16px;
}

.modal-project-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0;
}

.modal-client-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-mockup-frame {
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.modal-img-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.modal-grid-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 8px;
}

.modal-desc-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.modal-highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-highlights-list li {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.modal-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.modal-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary-cyan);
}

.modal-stat-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-stat-item {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
}

.stat-large {
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.modal-cta-box {
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-md);
}

.btn-primary-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}

.btn-secondary-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

/* PWA Floating Install Banner */
.pwa-float-banner {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.2);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideUpFloat 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-float-banner.show {
  display: flex;
}

.banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.banner-text-group {
  flex: 1;
  min-width: 0;
}

.banner-text-group h5 {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.banner-text-group p {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.banner-btn-install {
  padding: 7px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.banner-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes slideUpFloat {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 1000;
  display: none;
  white-space: nowrap;
}

.toast-msg.show {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04060b;
  padding: 30px 16px;
  text-align: center;
}

.footer-phone-highlight {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 6px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Desktop Responsive Scaling (min-width: 769px & min-width: 1025px)
   ========================================================================== */
@media (min-width: 769px) {
  .site-nav {
    padding: 14px 24px;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  .nav-links a:hover {
    color: var(--primary-cyan);
  }
  .btn-pwa-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--border-glow);
    color: var(--primary-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }
  .btn-nav-contact {
    padding: 9px 18px;
    font-size: 0.86rem;
  }
  .hero-section {
    padding: 60px 24px 40px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .hero-cta-group {
    flex-direction: row;
    width: auto;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: auto;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
  }
  .project-card-footer {
    flex-direction: row;
  }
  .btn-card-details,
  .btn-card-quote {
    width: auto;
    flex: 1;
  }
  .estimator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
  }
  .checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner-actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
  }
  .btn-cta-call,
  .btn-cta-wa,
  .btn-cta-copy {
    width: auto;
    padding: 12px 24px;
  }
  .modal-grid-details {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (min-width: 1025px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .hero-title {
    font-size: 3rem;
  }
  .mockup-view-toggle {
    display: none; /* Desktop always shows dual mockups */
  }
  .hero-mockup-wrapper.show-mobile-view .macbook-frame,
  .hero-mockup-wrapper.show-desktop-view .macbook-frame {
    display: block;
    width: 100%;
    max-width: 540px;
    background: #11141d;
    border-radius: 14px 14px 0 0;
    padding: 10px 10px 0;
    border: 2px solid #2d3748;
    box-shadow: var(--shadow-glow), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  }
  .hero-mockup-wrapper.show-mobile-view .macbook-display-img,
  .hero-mockup-wrapper.show-desktop-view .macbook-display-img {
    height: 280px;
  }
  .hero-mockup-wrapper.show-mobile-view .iphone-floating-frame,
  .hero-mockup-wrapper.show-desktop-view .iphone-floating-frame {
    display: flex;
    position: absolute;
    bottom: -20px;
    right: 5px;
    width: 155px;
    height: 310px;
    border-radius: 34px;
    padding: 6px;
    animation: floatSubtle 4s ease-in-out infinite;
  }
  @keyframes floatSubtle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }
}
