/* =========================================================
   GLOBAL THEME – ULDX Controllers
   Use in: index.html, products.html, contact.html,
           product detail pages, contact.php
   ========================================================= */

:root {
  --blue: #1a73e8;
  --blue-dark: #0f4fb5;
  --yellow: #ffcc00;
  --red: #ff3b30;
  --bg: #050816;
  --card-bg: rgba(10, 25, 47, 0.94);
  --text-main: #e6edf7;
  --text-muted: #9aa4c2;
}

/* -------- RESET / GLOBAL -------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #102a6b 0, #050816 45%, #020412 100%);
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   NAVBAR (COMMON)
   Used classes:
   - .navbar
   - .navbar-left (index)
   - .navbar-links (index)
   - .nav-left (inner pages)
   - .nav-right (product detail)
   - .nav-links (products.html, contact.html, contact.php)
   ========================================================= */

.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    90deg,
    rgba(10, 25, 47, 0.9),
    rgba(10, 25, 47, 0.75),
    rgba(10, 25, 47, 0.9)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left side branding (both index + inner pages) */
.navbar-left,
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-left img,
.nav-left img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}

.navbar-left span,
.nav-left span {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Main nav links (all pages) */
.navbar-links,
.nav-links {
  display: flex;
  gap: 20px;
}

.navbar-links a,
.nav-links a {
  font-size: 14px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 2px;
}

.navbar-links a::after,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  transition: width 0.2s ease-out;
}

.navbar-links a:hover::after,
.nav-links a:hover::after {
  width: 100%;
}

/* Right mini link on product detail pages */
.nav-right a {
  font-size: 14px;
  color: var(--text-main);
  opacity: 0.9;
}
.nav-right a:hover {
  color: var(--yellow);
}

/* =========================================================
   HOME – HERO / INTRO
   (.intro used only on index)
   ========================================================= */

.intro {
  max-width: 1100px;
  margin: 32px auto 16px;
  padding: 28px 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(26, 115, 232, 0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgba(255, 204, 0, 0.25), transparent 55%),
    rgba(5, 8, 22, 0.92);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro h1 {
  font-size: 30px;
  margin: 0 0 10px;
  text-align: center;
  background: linear-gradient(90deg, #ffffff, #dbe9ff, #ffe082);
  -webkit-background-clip: text;
  color: transparent;
}

.intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  text-align: center;
  color: var(--text-muted);
}

/* Extra text block under hero on index */
.intro-details {
  max-width: 1100px;
  margin: 10px auto 24px;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.intro-details h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #e2ebff;
}

.intro-details h3 {
  margin: 18px 0 6px;
  font-size: 16px;
  color: var(--yellow);
}

.intro-details ul {
  margin: 6px 0 10px 18px;
  padding: 0;
}

.intro-details li {
  margin-bottom: 5px;
}

.intro-details strong {
  color: #e6edf7;
}

/* =========================================================
   HOME – PRODUCT GRID (index)
   ========================================================= */

header#products {
  max-width: 1100px;
  margin: 12px auto 4px;
  padding: 10px 22px 4px;
  background: transparent;
  text-align: left;
  font-size: 22px;
  font-weight: 600;
  color: #e2ebff;
}

header#products::after {
  content: "";
  display: block;
  margin-top: 6px;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--red));
}

.container {
  max-width: 1100px;
  margin: 10px auto 40px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
  overflow: hidden;
}

/*.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
*/

/* For products.html grid cards */
.grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;   /* ✅ add this line */
}
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;   /* ✅ add this line */
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 204, 0, 0.7);
}

.product:hover::before {
  opacity: 1;
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.product_hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.product h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: #f5f7ff;
}

.product p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Badge used on product cards and detail pages */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--yellow), var(--red));
  color: #1b1b1b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9);
}

/* Buttons (global) */

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #050816;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.75);
}

/* =========================================================
   FAQ (index)
   ========================================================= */

.faq {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.faq h2 {
  margin-top: 0;
  font-size: 22px;
  color: #e2ebff;
}

.faq h3 {
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--yellow);
}

.faq p {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================================
   CONTACT SUMMARY (index)
   ========================================================= */

#contact-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 20px 18px 22px;
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
}

#contact-section h2 {
  margin-top: 0;
  font-size: 20px;
  color: #ffb74d;
}

#contact-section p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================================
   FLOATING WHATSAPP BUTTON (global)
   ========================================================= */

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.floating-contact:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* =========================================================
   GENERIC PAGE WRAPPER / TITLES
   Used in products.html, contact.html, product detail pages, contact.php
   ========================================================= */

.page {
  max-width: 1100px;
  margin: 30px auto 50px;
  padding: 0 16px;
}

.title-block h1,
.page-title {
  font-size: 26px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #ffffff, #e0ecff, #ffe082);
  -webkit-background-clip: text;
  color: transparent;
}

.title-block p,
.page-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================================
   CARD STYLE (shared)
   ========================================================= */

.card {
  position: relative;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #e2ebff;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* =========================================================
   PRODUCTS LIST PAGE (products.html)
   ========================================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card-img {
  width: 100%;
  height: 190px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* card hover for products list */
.grid .card {
  cursor: pointer;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.grid .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.grid .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 204, 0, 0.7);
}

.grid .card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 16px;
  margin: 2px 0 4px;
  color: #f5f7ff;
  font-weight: 600;
}

.card-model {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.price-tag {
  font-size: 13px;
  color: var(--text-muted);
}

.price-tag span {
  color: var(--yellow);
  font-weight: 600;
}

.view-link {
  font-size: 13px;
  color: var(--yellow);
}

.view-link:hover {
  color: #ffe28a;
}

/* =========================================================
   CONTACT PAGE (contact.html)
   ========================================================= */

.title-block {
  margin-bottom: 18px;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.info-list li {
  margin-bottom: 6px;
}

.info-label {
  color: #e6edf7;
  font-weight: 500;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
}

.whatsapp-cta:hover {
  filter: brightness(1.05);
}

/* Contact layout grid (form + info) */
.contact-grid,
.grid.contact-grid { /* alias just in case */
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
}

/* Map */
.map-wrap {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-wrap iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
}

.note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   FORMS (contact.html + contact.php)
   ========================================================= */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

label {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 2px;
}

input,
textarea {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 22, 0.92);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 204, 0, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.35);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  margin-top: 4px;
}

/* =========================================================
   CONTACT.PHP STATUS BOX
   ========================================================= */

.status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid transparent;
}

.status h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.status.success {
  border-color: rgba(76, 175, 80, 0.6);
  background: rgba(56, 142, 60, 0.2);
}

.status.error {
  border-color: rgba(255, 59, 48, 0.7);
  background: rgba(255, 59, 48, 0.18);
}

.status.success h2 {
  color: #a5d6a7;
}

.status.error h2 {
  color: #ffb3aa;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--yellow);
}

.back-link:hover {
  color: #ffe28a;
}

/* =========================================================
   PRODUCT DETAIL PAGES (uldx-01, ha-02, dr-1ph, ach-mss-03)
   ========================================================= */

.product-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: center;
}

.product-image-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.product-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}

.product-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.product-title {
  font-size: 24px;
  margin: 0 0 8px;
  background: linear-gradient(90deg, #ffffff, #dbe9ff, #ffe082);
  -webkit-background-clip: text;
  color: transparent;
}

.product-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.15);
  border: 1px solid rgba(112, 173, 255, 0.5);
  color: #e3edff;
}

.price-line {
  font-size: 16px;
  margin: 4px 0 12px;
}

.price-label {
  color: var(--text-muted);
  font-size: 13px;
}

.price-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--yellow);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons specific variants for detail pages */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(90deg, var(--yellow), var(--red));
  color: #050816;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--text-main);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

/* Sections inside product detail card */
.section {
  margin-top: 26px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #e2ebff;
}

.section p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.7;
}

/* Feature lists & specs */
.features {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.features li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 16px;
}

.features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

.specs-table td {
  padding: 8px 8px;
  font-size: 14px;
}

.specs-table tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.02);
}

.spec-label {
  color: var(--text-muted);
  width: 45%;
}

.spec-value {
  color: #e6edf7;
}

.contact-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-note a {
  color: var(--yellow);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

@media (max-width: 800px) {
  /* product detail header grid & contact grid */
  .product-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid,
  .grid.contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links,
  .nav-links {
    gap: 14px;
  }

  .intro {
    margin: 20px 12px;
    padding: 20px 16px;
  }

  .intro-details,
  .faq,
  #contact-section,
  .page {
    margin-inline: 12px;
  }

  .container {
    padding-inline: 12px;
  }
}

@media (max-width: 600px) {
  .page {
    margin-top: 22px;
  }

  .title-block h1,
  .page-title {
    font-size: 22px;
  }

  .card {
    padding: 16px 14px 18px;
  }

  .product-title {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .navbar-left span,
  .nav-left span {
    font-size: 17px;
  }

  .intro h1 {
    font-size: 24px;
  }

  .intro p {
    font-size: 14px;
  }

  .product {
    padding: 12px;
  }

  .product img {
    height: 180px;
  }
}

