/* ====================================================
   JOSE NARVAEZ — DEV OS COMMAND CENTER — styles.css
   Mobile-First & 100% Symmetrical Uniform Grid System
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────── */
:root {
  /* Core Colors */
  --clr-bg:           #07080B;
  --clr-panel:        #0D0F14;
  --clr-window:       #12151F;
  --clr-window-header:#181C2A;
  
  /* Vibrant Technical Accents */
  --clr-acid:         #CCFF00; /* Acid Lime */
  --clr-acid-glow:    rgba(204, 255, 0, 0.25);
  --clr-acid-dim:     rgba(204, 255, 0, 0.08);
  
  --clr-orange:       #FF5500; /* Cyber Orange */
  --clr-orange-glow:  rgba(255, 85, 0, 0.25);
  --clr-orange-dim:   rgba(255, 85, 0, 0.08);
  
  --clr-violet:       #9D4EDD; /* Cyber Violet */
  --clr-violet-dim:    rgba(157, 78, 221, 0.12);

  --clr-green:        #00FF66; /* Live Status Green */
  --clr-whatsapp:     #25D366; /* WhatsApp Brand Green */

  /* Text & Syntax */
  --clr-text:         #F3F4F6;
  --clr-text-muted:   #9CA3AF;
  --clr-text-dim:     #4B5563;

  /* Borders & Grids */
  --clr-border:       rgba(255, 255, 255, 0.08);
  --clr-border-acid:  rgba(204, 255, 0, 0.35);
  --clr-border-window:rgba(255, 255, 255, 0.14);

  /* Fonts */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Radius */
  --section-pad: clamp(3.5rem, 7vw, 7rem);
  --radius-window: 10px;
  --radius-sm: 6px;
  
  /* Shadow & Glows */
  --shadow-window: 0 15px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--clr-border);
  --shadow-acid:   0 0 25px rgba(204, 255, 0, 0.15);
}

/* ─── RESET & MOBILE-FIRST BASE ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: #262B3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-acid); }

/* ─── CONTAINER & TYPOGRAPHY (MOBILE FIRST) ──────────── */
.container {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

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

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-acid);
  background: var(--clr-acid-dim);
  border: 1px solid var(--clr-border-acid);
  padding: 4px 10px;
  border-radius: 4px;
}
.tag-badge .status-dot {
  width: 6px; height: 6px;
  background: var(--clr-acid);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-acid);
  animation: pulseDot 2s infinite;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.section-title .highlight {
  color: var(--clr-acid);
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  max-width: 65ch;
}
.section-header {
  margin-bottom: 2rem;
}

/* Touch-Friendly Buttons (Mobile First) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.btn-acid {
  background: var(--clr-acid);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.2);
}
.btn-acid:hover {
  background: #d8ff33;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--clr-whatsapp);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: #34e775;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(37, 211, 102, 0.4);
}

.btn-outline-dev {
  background: var(--clr-panel);
  color: var(--clr-text);
  border: 1px solid var(--clr-border-window);
}
.btn-outline-dev:hover {
  border-color: var(--clr-acid);
  color: var(--clr-acid);
  background: var(--clr-acid-dim);
}

/* Floating WhatsApp Quick Button */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--clr-whatsapp);
  color: #000;
  padding: 12px 18px;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.floating-wa-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
  background: #34e775;
}

/* ─── SYSTEM TOP BAR (MOBILE FIRST) ──────────────────── */
.sys-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 48px;
  background: rgba(13, 15, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.sys-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--clr-text);
}
.sys-logo-prompt { color: var(--clr-acid); }

.sys-nav { display: none; } /* Hidden on mobile */

.sys-status-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sys-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--clr-text-muted);
  font-size: 0.725rem;
}
.sys-indicator .green-dot {
  width: 6px; height: 6px;
  background: var(--clr-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--clr-green);
  animation: pulseDot 1.5s infinite;
}

/* ─── APP WINDOW FRAME (MOBILE FIRST) ────────────────── */
.app-window {
  background: var(--clr-window);
  border: 1px solid var(--clr-border-window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-window:hover {
  border-color: var(--clr-border-acid);
  transform: translateY(-3px);
}

.window-header {
  background: var(--clr-window-header);
  border-bottom: 1px solid var(--clr-border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.window-controls {
  display: flex;
  gap: 6px;
}
.window-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #27C93F; }

.window-title {
  color: var(--clr-text-muted);
  font-weight: 500;
  font-size: 0.725rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-status-tag {
  color: var(--clr-acid);
  background: rgba(204, 255, 0, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
}

/* ─── HERO SECTION (MOBILE FIRST) ────────────────────── */
.hero-dev {
  min-height: 100vh;
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.hero-tag { margin-bottom: 1rem; }

.hero-headline {
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-headline .text-acid { color: var(--clr-acid); }
.hero-headline .text-orange { color: var(--clr-orange); }

.hero-description {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Terminal Widget Mobile */
.terminal-window { width: 100%; }
.terminal-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #A9B1D6;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #090B10;
}
.terminal-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 220px;
}
.log-line { line-height: 1.45; word-break: break-word; }
.log-prompt { color: var(--clr-acid); font-weight: 700; }
.log-cmd { color: var(--clr-text); font-weight: 600; }
.log-info { color: #7AA2F7; }
.log-success { color: var(--clr-green); }
.log-warn { color: var(--clr-orange); }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  padding-top: 8px;
  border-top: 1px solid var(--clr-border);
}
.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  flex: 1;
}
.terminal-quick-cmds {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cmd-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
}
.cmd-chip:hover {
  border-color: var(--clr-acid);
  color: var(--clr-acid);
}

/* ─── SERVICES: BENTO MODULES ────────────────────────── */
.services-dev { padding: var(--section-pad) 0; }
.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.module-card { display: flex; flex-direction: column; }
.module-content { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.module-code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--clr-acid); margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.module-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--clr-text); }
.module-desc { font-size: 0.875rem; color: var(--clr-text-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.module-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.spec-pill { font-family: var(--font-mono); font-size: 0.675rem; background: rgba(255,255,255,0.04); border: 1px solid var(--clr-border); color: var(--clr-text-muted); padding: 2px 7px; border-radius: 3px; }

/* ─── PROJECTS: 100% UNIFORM & SYMMETRICAL GRID ─────── */
.projects-dev { padding: var(--section-pad) 0; }

.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 1.5rem;
  scrollbar-width: none;
}
.projects-filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-panel);
  border: 1px solid var(--clr-border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-btn.active {
  background: var(--clr-acid-dim);
  border-color: var(--clr-acid);
  color: var(--clr-acid);
}

/* 100% Uniform Equal Cards Grid */
.projects-uniform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card-uniform {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-card-uniform.hidden-by-filter { display: none !important; }

.project-preview-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--clr-border);
}
.project-preview-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform 0.4s ease;
}
.project-card-uniform:hover .project-preview-wrap img { transform: scale(1.04); }

.project-badge-overlay {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--clr-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-acid);
}

.project-info-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-type-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--clr-orange); margin-bottom: 0.3rem; }
.project-title-text { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--clr-text); }
.project-summary { font-size: 0.85rem; color: var(--clr-text-muted); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.project-tech-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem; }

.project-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--clr-border);
  margin-top: auto;
}
.project-domain { font-family: var(--font-mono); font-size: 0.725rem; color: var(--clr-text-dim); }

.btn-launch {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  color: #000;
  background: var(--clr-acid);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card 8 CTA - Special Uniform Card */
.project-cta-card {
  background: linear-gradient(135deg, var(--clr-window) 0%, rgba(204,255,0,0.06) 100%);
  border: 1px dashed var(--clr-border-acid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}
.project-cta-card:hover {
  border-style: solid;
  border-color: var(--clr-acid);
  box-shadow: var(--shadow-acid);
}

/* Direct Contact Chips Container */
.contact-quick-chips {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.contact-chip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--clr-window);
  border: 1px solid var(--clr-border-window);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--clr-text);
  transition: all 0.25s ease;
  text-decoration: none;
}
.contact-chip-item:hover {
  border-color: var(--clr-acid);
  color: var(--clr-acid);
  background: var(--clr-acid-dim);
  transform: translateY(-2px);
}
.contact-chip-item.wa-chip:hover {
  border-color: var(--clr-whatsapp);
  color: var(--clr-whatsapp);
  background: rgba(37, 211, 102, 0.1);
}

/* ─── TECH MATRIX (MOBILE FIRST) ─────────────────────── */
.matrix-dev { padding: var(--section-pad) 0; background: rgba(13, 15, 20, 0.5); }
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.matrix-cell {
  background: var(--clr-window);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 1rem 0.75rem;
  text-align: center;
}
.matrix-cell-icon { font-size: 1.5rem; margin-bottom: 4px; }
.matrix-cell-name { font-family: var(--font-mono); font-size: 0.725rem; font-weight: 600; }

/* ─── ABOUT SECTION (MOBILE FIRST) ──────────────────── */
.about-dev { padding: var(--section-pad) 0; }
.about-console-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.avatar-frame {
  border-radius: var(--radius-window);
  overflow: hidden;
  border: 1px solid var(--clr-border-acid);
  background: #000;
  max-width: 320px;
  margin-inline: auto;
}
.avatar-status-overlay {
  background: rgba(7, 8, 11, 0.9);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.725rem;
}
.about-spec-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-key { font-family: var(--font-mono); font-size: 0.75rem; color: var(--clr-acid); }
.spec-value { font-size: 0.9rem; color: var(--clr-text-muted); }

/* ─── CONTACT SECTION (MOBILE FIRST) ────────────────── */
.contact-dev { padding: var(--section-pad) 0; }
.dispatch-window { width: 100%; }
.dispatch-form { padding: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dev-input-group { margin-bottom: 1rem; }
.dev-label { font-family: var(--font-mono); font-size: 0.725rem; color: var(--clr-acid); margin-bottom: 4px; }
.dev-input, .dev-select, .dev-textarea {
  width: 100%;
  background: #090B10;
  border: 1px solid var(--clr-border-window);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--clr-text);
  outline: none;
}
.dev-textarea { height: 110px; }

/* ─── FOOTER (MOBILE FIRST) ─────────────────────────── */
.footer-sys { background: var(--clr-panel); border-top: 1px solid var(--clr-border); padding: 1.5rem 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--clr-text-dim); }
.footer-inner { display: flex; flex-direction: column; gap: 0.5rem; text-align: center; }

/* ─── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }


/* ====================================================
   DESKTOP & TABLET BREAKPOINTS (MEDIA QUERIES)
   ==================================================== */

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; width: auto; }
  .btn { width: auto; }
  .matrix-grid { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .spec-item { flex-direction: row; gap: 1rem; }
  .spec-key { width: 140px; }

  /* Tablet: 2 Columns Symmetrical Grid (2x4 = 8 Cards) */
  .projects-uniform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sys-nav { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .services-bento { grid-template-columns: repeat(3, 1fr); }
  .module-featured { grid-column: span 2; }
  .matrix-grid { grid-template-columns: repeat(6, 1fr); }
  .about-console-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .dispatch-form { padding: 2rem; }

  /* Desktop: 4 Columns Symmetrical Grid (4x2 = 8 Equal Cards) */
  .projects-filter-bar { justify-content: center; }

  .projects-uniform-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
