/* Global Unified CSS for Midwest Mods */

:root {
  --bg:#0a0a0a;
  --bg2:#0d0f12;
  --text:#ffffff;
  --muted:#c7c7c7;
  --accent:#00e6ff;
  --radius:12px;
}

/* Base body with animated background */
body {
  margin:0;
  color:var(--text);
  font-family:Arial, sans-serif;
  background: linear-gradient(120deg, #050505, #0a0a0a, #00171f);
  background-size: 300% 300%;
  animation: bgShift 18s ease infinite;
}

/* HEADER */
.site-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 22px;
  background:var(--bg2);
  border-bottom:1px solid #111;
  position:sticky;
  top:0;
  z-index:50;
}

.brand {
  font-size:1.3rem;
  font-weight:bold;
  letter-spacing:0.03em;
}

/* NAV */
.main-nav {
  display:flex;
  gap:18px;
  align-items:center;
}

.main-nav a {
  color:var(--muted);
  text-decoration:none;
  font-size:0.95rem;
  padding:6px 8px;
  border-radius:999px;
  transition:0.2s background, 0.2s color;
}

.main-nav a:hover {
  background:#111;
  color:var(--accent);
}

/* MOBILE NAV */
.mobile-menu-btn {
  display:none;
  font-size:1.4rem;
  cursor:pointer;
}

.mobile-nav {
  display:none;
  flex-direction:column;
  gap:10px;
  padding:10px 16px 14px;
  background:var(--bg2);
  border-bottom:1px solid #111;
}

.mobile-nav a {
  color:var(--muted);
  text-decoration:none;
  font-size:0.95rem;
  padding:6px 0;
}

/* CART ICON */
.cart-link {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.cart-icon {
  width:22px;
  height:22px;
}

.cart-count {
  background:#ff4081;
  border-radius:999px;
  font-size:11px;
  padding:2px 6px;
  min-width:18px;
  text-align:center;
}

/* CONTAINER */
.container {
  max-width:1100px;
  margin:26px auto 60px;
  padding:0 16px;
}

/* HERO / TEXT */
h1, h2, h3 {
  margin-top:0;
}

.lead {
  color:var(--muted);
  max-width:640px;
}

/* BUTTONS */
.btn {
  background:var(--accent);
  color:#000;
  padding:10px 18px;
  border-radius:999px;
  border:none;
  font-weight:bold;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  margin-top:10px;
  transition:0.2s background, 0.2s transform, 0.2s box-shadow;
}

.btn:hover {
  background:#66f1ff;
  box-shadow:0 0 12px rgba(0,230,255,0.5);
  transform:translateY(-1px);
}

/* FLOATING CART BUTTON */
.floating-cart {
  position:fixed;
  right:16px;
  bottom:16px;
  background:#000000cc;
  border-radius:999px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:var(--text);
  border:1px solid #111;
  box-shadow:0 0 10px rgba(0,0,0,0.8);
}

/* SERVICES GRID & CARDS — NZXT/CLX style */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr)); /* 3 main cards on top row */
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
  align-items: stretch;
}
.services-grid {
  width: max-content;          /* shrink to content width */
  margin-left: auto;           /* center horizontally */
  margin-right: auto;
}


/* Perfectly centered second row */
.configurator-card {
  grid-column: 1 / -1;     /* spans the entire grid width */
  justify-self: center;    /* centers the card */
}


/* Card visuals (keep your existing look) */
.service-card {
  background: #0b0c0e;
  border: 1px solid rgba(0, 230, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: 0.2s transform, 0.2s box-shadow;
  max-width: 260px;
  padding-bottom: 12px;
}

.service-card img {
  width:100%;
  height:150px;
  object-fit:cover;
  display:block;
  border-bottom:1px solid #111;
}

.service-card h3 {
  margin:12px 14px 4px;
  font-size:0.95rem;
  color:var(--accent);
}

.service-card p {
  margin:0 14px 8px;
  font-size:0.85rem;
  color:var(--muted);
}

.service-card .price {
  color:#bfefff;
  margin:0 14px;
  font-weight:700;
  font-size:0.95rem;
}

.service-card:hover {
  transform:translateY(-3px);
  box-shadow:
    0 0 6px #00e6ff33,
    0 0 14px #00e6ff22;
}


/* BUILD PAGES */
.build {
  display:grid;
  grid-template-columns:1.2fr 1.1fr;
  gap:26px;
  align-items:center;
  margin-top:24px;
}

.media img {
  width:100%;
  max-width:480px;
  border-radius:var(--radius);
  display:block;
}

.info ul {
  padding-left:18px;
}

.info li {
  margin-bottom:4px;
}

.price {
  font-size:1.4rem;
  margin:14px 0;
  color:#bfefff;
}

/* CART PAGE */
.cart-item {
  display:grid;
  grid-template-columns:70px 1fr auto 40px;
  align-items:center;
  gap:10px;
  padding:12px;
  background:var(--bg2);
  border-radius:var(--radius);
  border:1px solid #111;
  margin-bottom:10px;
}

.cart-thumb {
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:8px;
}

.cart-info {
  display:flex;
  flex-direction:column;
}

.cart-name {
  font-weight:600;
}

.cart-qty {
  color:var(--muted);
}

.cart-price {
  font-weight:700;
}

.remove-btn {
  background:#ff4444;
  border:none;
  border-radius:8px;
  color:#fff;
  cursor:pointer;
  padding:6px 8px;
}

/* CONTACT / FORMS BASE */
.contact-form {
  max-width:520px;
}

/* CHECKOUT FORM   */
/* =============== */

.checkout-section {
  background: var(--bg2);
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid #111;
  margin-top: 20px;
}

.checkout-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 16px;
  color: var(--text);
  width: 100%;
  margin-bottom: 14px;
  transition: 0.2s border, 0.2s background;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00e6ff;
  background: #111;
}

.contact-form div.flex-row {
  display: flex;
  gap: 10px;
}

hr.section-divider {
  margin: 30px 0;
  border-color: #111;
}

/* PARTICLE BACKGROUND */
.particles {
  position:fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  overflow:hidden;
  z-index:-1;
}

.particle {
  position:absolute;
  width:6px;
  height:6px;
  background:#00e6ff;
  border-radius:50%;
  opacity:0.4;
  animation:floatUp 12s linear infinite;
}

/* Random positions / timings */
.particle:nth-child(1){left:10%;animation-duration:14s;animation-delay:0s;}
.particle:nth-child(2){left:25%;animation-duration:16s;animation-delay:-3s;}
.particle:nth-child(3){left:40%;animation-duration:18s;animation-delay:-6s;}
.particle:nth-child(4){left:55%;animation-duration:13s;animation-delay:-2s;}
.particle:nth-child(5){left:70%;animation-duration:19s;animation-delay:-4s;}
.particle:nth-child(6){left:85%;animation-duration:17s;animation-delay:-7s;}

@keyframes floatUp {
  0%   { transform:translateY(100vh) scale(0.7); opacity:0.2; }
  50%  { opacity:0.5; }
  100% { transform:translateY(-20vh) scale(1); opacity:0; }
}

/* ANIMATED GRADIENT BACKGROUND */
/* =========================== */

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* SUBTLE NEON GLOW ON FOCUS */
/* ========================= */

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00e6ff;
  background: #0f0f0f;
  box-shadow:
    0 0 4px #00e6ff55,
    0 0 8px #00e6ff33;
  outline: none;
}

.contact-form input,
.contact-form textarea {
  transition: 
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* FLOATING LABEL SYSTEM  */
/* ====================== */

.form-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 12px;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--text);
  transition: 0.25s;
  resize: vertical;
}

.form-group textarea {
  padding-top: 20px; /* makes room for label */
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
  transition: 0.25s ease;
  background: #0a0a0a;
  padding: 0 4px;
}

/* Float the label upward */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 13px;
  color: #00e6ff;
}

/* Neon focus glow for floating inputs */
.form-group input:focus,
.form-group textarea:focus {
  border-color: #00e6ff;
  box-shadow:
    0 0 4px #00e6ff55,
    0 0 8px #00e6ff33;
}

/* FLEX ROW utility for forms */
.flex-row {
  display: flex;
  gap: 10px;
}
/* HOME PAGE UPGRADE */

/* HERO SECTION */
.hero-section {
  margin-top: 60px;
  background: linear-gradient(135deg, #001017, #002028);
  padding: 60px 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 30px #00e6ff22;
  animation: fadeIn 1s ease;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-content p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero-btn {
  margin-top: 12px;
  font-size: 1rem;
}

/* FEATURED BUILDS */
.home-featured {
  margin-top: 70px;
}

.home-featured-grid {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.feat-card {
  background: #0b0c0e;
  border: 1px solid #111;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  width: 280px;
  padding-bottom: 12px;
  transition: 0.25s ease;
  box-shadow: 0 0 10px #000;
}

.feat-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.feat-card h3 {
  margin: 12px 12px 6px;
  color: var(--accent);
}

.feat-card p {
  margin: 0 12px 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px #00e6ff55;
}

/* WHY CHOOSE US */
.why-section {
  margin-top: 90px;
  text-align: center;
}

.why-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.why-card {
  background: #0d0f12;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #111;
  box-shadow: 0 0 12px #000;
  transition: 0.25s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 14px #00e6ff33;
}

/* BRAND STRIP */
.brand-strip {
  margin-top: 70px;
  display: flex;
  justify-content: center;
  gap: 40px;
  opacity: 0.7;
  flex-wrap: wrap;
}

.brand-strip img {
  height: 40px;
  filter: brightness(0.7);
  transition: 0.2s;
}

.brand-strip img:hover {
  filter: brightness(1);
}
/* ============================
   CUSTOMER REVIEWS CAROUSEL
   ============================ */

.reviews-section {
  margin-top: 100px;
  text-align: center;
  animation: fadeIn 1s ease;
}

.reviews-section h2 {
  margin-bottom: 30px;
}

.reviews-carousel {
  position: relative;
  max-width: 700px;
  margin: auto;
  padding: 30px;
  background: #0b0c0e;
  border: 1px solid #111;
  border-radius: 14px;
  box-shadow: 0 0 22px #00e6ff22;
}

.review {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.review.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.review-text {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.review-author {
  font-weight: bold;
  color: var(--accent);
}

/* Dots */
.review-dots {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e6ff33;
  cursor: pointer;
  transition: 0.3s ease;
}

.dot.active {
  background: #00e6ff;
  transform: scale(1.3);
}
/* Star Ratings */
.stars {
  font-size: 1.3rem;
  color: #ffdd55;   /* warm gold */
  margin-bottom: 10px;
  text-shadow: 0 0 8px #ffdd5533;
}
/* ============= STYLE UPGRADE SELECTOR ============= */

.upgrade-section {
  margin-top: 20px;
}

.upgrade-section h3 {
  margin-top: 25px;
  margin-bottom: 8px;
  color: var(--accent);
}

.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.option-card {
  background: #0b0c0e;
  border: 1px solid #111;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 0 6px #000;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px #00e6ff33;
}

.option-card.active {
  border-color: var(--accent);
  color: white;
  box-shadow: 0 0 14px #00e6ff66;
}
/* ============================
   Recommended Badge Styling
   ============================ */

.option-card {
  position: relative;
}

.badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px #00e6ff88;
  pointer-events: none;
  opacity: 0.95;
}

/* Optional: Card glows lightly when recommended */
.option-card .badge + p {
  margin-top: 10px;
}
/* ==========================================
   FPS PERFORMANCE GRAPH (NZXT-LIKE)
   ========================================== */

.fps-grid {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fps-row p {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.fps-bar {
  width: 100%;
  background: #0d0f12;
  border: 1px solid #111;
  height: 22px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.fps-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e6ff, #0088cc);
  width: var(--fill);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.8rem;
  color: #000;
  font-weight: bold;
  text-shadow: 0 0 4px #00e6ff;
  transition: width 0.6s ease;
}

/* ==========================================
   TIER BAR (GOOD → BETTER → BEST)
   ========================================== */

.tier-bar {
  margin-top: 20px;
  background: #0d0f12;
  border: 1px solid #111;
  height: 28px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.tier-fill {
  background: linear-gradient(90deg, #00e6ff, #00bcd4);
  width: var(--tier);
  height: 100%;
  border-radius: 14px;
  box-shadow: 0 0 12px #00e6ff88;
  transition: width 0.6s ease;
}

.tier-labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 32px;
  font-size: 0.8rem;
  color: var(--muted);
}
.fps-bar {
  width: 100%;
  background: #0d0f12;
  border: 1px solid #111;
  height: 22px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.fps-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e6ff, #0088cc);
  width: var(--fill);     /* ⭐ REQUIRED FOR UPDATE */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.8rem;
  color: #000;
  font-weight: bold;
  text-shadow: 0 0 4px #00e6ff;
  transition: width 0.6s ease; /* smooth animation */
}
.btn.outline {
  background: transparent;
  border: 2px solid #0fff;
  color: #0fff;
  margin-top: 10px;
  cursor: pointer;
}

.btn.outline:hover {
  background: #0fff;
  color: #000;
}


/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}


@media (max-width: 600px) {
  .flex-row {
    flex-direction: column;
  }
}

/* RESPONSIVE */
@media (max-width:900px) {
  .main-nav { display:none !important; }
  .mobile-menu-btn { display:block; }
  .floating-cart { display:block; }
  .build { grid-template-columns:1fr; }
  .media img { max-width:100%; }
}
/* ---------- Responsive layout for the grid ---------- */

/* Large tablets / smaller desktops: 2 columns */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  /* Put configurator centered on its own row */
  .configurator-card {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Tablets: 2-up, tighter */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    justify-content: center;
  }
}

/* Mobile: single column centered */
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: minmax(260px, 1fr);
    justify-items: center;
  }

  .configurator-card {
    grid-column: auto; /* just acts like a normal card in the column */
  }
}
