
:root{--bg:#0f1724;--card:#0b1220;--accent:#00c853;--muted:#9aa7b2;--glass:rgba(255,255,255,0.04)}
    *{box-sizing:border-box}
    body{font-family: 'Poppins', sans-serif;margin:0;background:linear-gradient(180deg,#071029 0%,#071c2a 60%);color:#e6eef6}
    .container{max-width:1200px;margin:36px auto;padding:24px}
    header{display:flex;align-items:center;gap:16px}
    .brand{display:flex;flex-direction:column}
    .brand h1{margin:0;font-size:20px;letter-spacing:0.6px;}
    .brand p{margin:0;color:var(--muted);font-size:13px}

/* ===== Utilities ===== */
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.center { text-align: center; }
.h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); margin: 0 0 20px; letter-spacing: 0.4px; }
.h3 { font-size: 1.25rem; margin: 12px 0 8px; }
.muted { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; }
.gap-32 { gap: 32px; }
.align-center { align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #04121f; box-shadow: 0 10px 20px rgba(0,212,255,0.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,212,255,0.25); }
.btn-ghost { color: var(--text); border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }

/* ================================
   NAVBAR
================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--nav-bg-solid);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  overflow: hidden; /* ensures image stays inside rounded box */
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* keeps image proportionate */
}


.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .title {
  font-size: 18px;
  font-weight: 700;
}

.logo-text .subtitle {
  font-size: 13px;
  color: #a7c4de;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.dropbtn {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #e6e6e6;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav-links a:hover,
.dropbtn:hover {
  color: #64a2d5;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 200px;
  background: #0f4a58;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #d8d8d8;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: #64a2d5;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Request Button */
.start span {
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(to right, #64a2d5, #3b45d7);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================
   MOBILE STYLES
================================ */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #fff;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 250px;
    background: var(--nav-bg-solid);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 1rem;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
  }

  .dropdown-content a {
    padding: 10px 0;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disable hover effect on mobile */
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

 /* search & controls */
    .controls{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}
    .search{flex:1;min-width:220px}
    input,input[type=select]{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.06);background:var(--card);color:inherit}
    .filters{display:flex;gap:8px}
    .btn{background:var(--accent);border:none;padding:10px 14px;border-radius:10px;color:#042018;font-weight:600;cursor:pointer}
    .chip{background:var(--glass);padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,0.03);font-size:13px;color:var(--muted)}

    /* grid */
    .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
    @media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
    @media(max-width:640px){.grid{grid-template-columns:1fr}}

    .card{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,0.03);display:flex;gap:14px;align-items:flex-start;transition:transform .18s ease,box-shadow .18s ease}
    .card:hover{transform:translateY(-6px);box-shadow:0 0 20px 4px rgba(0,200,255,0.7)}
    .thumb{width:110px;height:86px;border-radius:8px;background:linear-gradient(135deg,#081728,#06202b);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--muted);font-size:12px}
    .meta{flex:1}
    .meta h3{margin:0;font-size:16px}
    .meta p{margin:6px 0;color:var(--muted);font-size:13px}
    .specs{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
    .spec{background:rgba(255,255,255,0.02);padding:6px 8px;border-radius:8px;font-size:12px;color:var(--muted)}
    .actions{display:flex;gap:8px;margin-top:10px}
    .link{background:transparent;border:1px solid rgba(255,255,255,0.06);padding:8px 10px;border-radius:8px;color:var(--muted);cursor:pointer}

    /* modal */
    /* Modal content sizing */
.modal {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;   /* Limit width */
  width: 90%;         /* Responsive shrink */
  max-height: 80vh;   /* Prevent overflow */
  overflow-y: auto;   /* Scroll inside if content is too tall */
  position: relative; /* Keep close button aligned */
  z-index: 1001;      /* Above navbar */
}

/* Ensure backdrop covers screen */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

    .modal .row{display:flex;gap:18px}
    .modal .row .left{flex:0 0 260px}
    .spec-table{width:100%;border-collapse:collapse;margin-top:10px}
    .spec-table td{padding:6px 8px;border-top:1px dashed rgba(255,255,255,0.03);font-size:13px;color:var(--muted)}
      
    footer{margin-top:28px;color:var(--muted);font-size:13px;text-align:center}

    /* subtle entrance */
    .fade-in{animation:fade .45s ease both}
    @keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

    /* mini chart canvas style */
    canvas.miniChart{width:100%;height:50px;margin-top:6px}

  /* ================================
   RESPONSIVE FIXES (ENHANCED)
================================ */

/* Tablets */
@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .grid-2 {
    grid-template-columns: 1fr; /* collapse two-column grids */
  }

  .modal .row {
    flex-direction: column;
    gap: 12px;
  }
  .modal .row .left {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .brand p {
    font-size: 0.8rem;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .thumb {
    width: 100%;
    height: 160px;
  }

  .meta {
    width: 100%;
  }

  .h2 {
    font-size: 1.4rem;
  }

  /* Navbar mobile menu */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* hidden by default */
    position: absolute;
    top: 60px;
    right: 12px;
    width: 220px;
    background: rgba(15, 74, 88, 0.95);
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
    gap: 1rem;
  }

  .dropdown-content {
    background: none;
    box-shadow: none;
    padding-left: 0;
  }

  .dropdown-content a {
    padding: 8px 0;
  }

  .modal {
    padding: 1.2rem;
    width: 95%;
    max-height: 85vh;
  }
}
