/* ═══════════════════════════════════════════════════════════
   VL GUITAR REPAIR — MAIN STYLESHEET
   Tron/Neon Dark Theme + Sacred Geometry as Circuit Patterns
   ═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --bg-deep: #060612;
  --bg-card: #0A0B1A;
  --bg-card-hover: rgba(255, 255, 255, 0.025);
  --bg-surface: rgba(255, 255, 255, 0.008);
  --bg-surface-hover: rgba(255, 255, 255, 0.04);

  --cyan: #00F0FF;
  --purple: #7B2FFF;
  --pink: #FF2D7B;
  --green: #00FF88;
  --orange: #FF6B3D;

  --text-primary: #C8D6E5;
  --text-muted: #4A5568;
  --text-dim: #2D3748;

  --border-subtle: rgba(255, 255, 255, 0.03);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-cyan: rgba(0, 240, 255, 0.05);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 60px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

h1 { font-size: clamp(34px, 6.5vw, 78px); letter-spacing: 2px; }
h2 { font-size: clamp(22px, 3.5vw, 34px); letter-spacing: 3px; }
h3 { font-size: 11px; letter-spacing: 2.5px; font-weight: 600; }

.section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.mono-sm {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mono-xs {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 72px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--tight {
  padding: 44px 20px;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 60px;
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid var(--border-cyan);
  margin: 0;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(255, 45, 123, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(255, 45, 123, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.08), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-sm {
  padding: 10px 28px;
  font-size: 9px;
}

.btn-xs {
  padding: 6px 16px;
  font-size: 8px;
  letter-spacing: 2px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(6, 6, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--border-cyan);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.12), inset 0 0 10px rgba(0, 240, 255, 0.04);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 2px;
}

.nav__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3.5px;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  transition: width 0.3s;
}

.nav__link:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--cyan);
  transition: all 0.3s;
}

/* ─── Background Effects ─── */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.02) 2px,
    rgba(0, 0, 0, 0.02) 4px
  );
}

/* ─── Animations ─── */
@keyframes pulse {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 8px currentColor; }
  50% { opacity: 1; text-shadow: 0 0 20px currentColor, 0 0 50px currentColor; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes sweepLine {
  from { width: 0; }
  to { width: 100%; }
}

.animate-in {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Cards ─── */
.card {
  padding: 28px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.card__accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover .card__accent-line {
  opacity: 0.35;
}

.card__corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover .card__corner {
  opacity: 0.25;
}

/* ─── Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 660px;
}

.stat {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
}

.stat__accent {
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  opacity: 0.3;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
}

/* ─── Service Grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
}

/* ─── Product Grid ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all 0.35s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-3px);
}

.product-card__image {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.012);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__info {
  padding: 16px 14px 18px;
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.product-card__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

/* ─── Location Ticker ─── */
.ticker-wrap {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  overflow: hidden;
}

.ticker {
  display: flex;
  gap: 36px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  width: fit-content;
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.2;
}

/* ─── Instagram Grid ─── */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.ig-post {
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.025);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-post:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: inset 0 0 16px rgba(0, 240, 255, 0.05);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-post:hover .ig-overlay {
  opacity: 1;
}

.ig-overlay span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 1.5px;
}

.ig-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
}

/* ─── Dealer Logos ─── */
.dealers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  max-width: 650px;
  margin: 0 auto;
}

.dealer {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  opacity: 0.35;
  text-transform: uppercase;
}

/* ─── Authorized Brands ─── */
.authorized-brands {
  display: flex;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.authorized-brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.3;
  letter-spacing: 5px;
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-cyan);
  padding: 28px 20px;
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.35;
  transition: all 0.3s;
}

.footer__link:hover {
  color: var(--cyan);
  opacity: 0.7;
}

.footer__copyright {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0.2;
  letter-spacing: 1.5px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 6, 18, 0.96);
    backdrop-filter: blur(20px);
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border-cyan);
  }

  .nav__toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: clamp(28px, 8vw, 48px);
  }
}

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