:root {
  --bg:#0b1220;
  --panel:#0f172a;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --accent:#22d3ee;
  --glass-bg:rgba(15,23,42,0.65);
  --glass-border:rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
* { box-sizing: border-box; }
html, body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(34,211,238,.15), transparent), var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 8px; }
h1, h2 { color: var(--accent); z-index: 1000;}
p {position: relative; z-index: 1000;}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 2rem;
}
.navbar ul {
  font-size: 1rem;
  font-weight:350;
  list-style: none;
  display: flex;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.navbar a, .navbar li{ transition:transform 0.09s ease; }
.navbar a:hover, .navbar li:hover { 
  color: var(--accent); 
  transform:translateY(-1px);
  text-shadow: 0px 0px 10px var(--accent);
}
.navlogo { 
  height: 40px; 
  border-radius: 4px;
  position: relative;
  left: -20px;
}
main{
  max-width:800px;
  padding:1rem; margin:auto;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1rem;
}
.hero h1 { color: var(--accent); margin: 1rem;}
.hero p {margin: 0px;}
.herologo{
  width:150px;height:auto;filter:drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

.product-scroller { 
  padding: 0.5rem 1rem;
  position:relative;
  overflow:hidden;
}

.product-scroller h2 { text-align: center; margin: 0.5rem; }

.scroll-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  gap: 1rem;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  padding-top: 1rem;
  scrollbar-width: none; /* Firefox */
}
.scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.scroll-container * {
  user-select: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in{
  opacity: 0;           /* start invisible */
  transform: translateY(20px); /* optional: slight upward motion */
  animation: fadeIn 0.5s forwards;
}

.product-card {
  flex: 0 0 auto;
  width: 300px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 390px; /* <-- fixed consistent height */
  -webkit-user-drag: none; /* Chrome, Safari, Edge */
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.product-card img {
  width: 100%;
  height: 130px; /* fixed height area */
  object-fit: cover; /* crop instead of squish */
  border-radius: 10px;
  margin-bottom: 0.5rem;
  -webkit-user-drag: none; /* Chrome, Safari, Edge */
  pointer-events: none;     /* optional, prevents accidental clicks/dragging */
}
.price {
  color: var(--accent);
  font-weight: bold;
  display: block;
  margin: 0.5rem 0;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: 0.8rem;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

footer {
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
footer a{color:var(--accent)}

.scroll-btn{
  position:absolute;
  display: none;
  top:50%; transform:translateY(-50%);
  background:rgba(15,23,42,0.8);
  border:none;color:var(--accent);
  font-size:2rem; padding:0.3rem 0.6rem;
  cursor:pointer;z-index:10;border-radius:8px;
}
.scroll-btn.left{left:0}
.scroll-btn.right{right:0}

.cta{
  margin:32px auto 0;
  background:rgba(15,23,42,.6); backdrop-filter:saturate(120%) blur(6px);
  border:1px solid var(--glass-border); border-radius:16px;
  padding:18px 18px 10px; box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.cta h2{margin:4px 4px 10px;font-size:18px;color:var(--accent);}
.downloads{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:1fr;gap:8px
}
.downloads a{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;border-radius:12px;background:#0b1220;border:1px solid rgba(255,255,255,.06);transition:transform .08s ease, border-color .15s ease
}
.downloads a:hover{transform:translateY(-1px);border-color:rgba(34,211,238,.45)}
.file-title{font-weight:600}
.file-meta{font-size:12px;color:var(--muted); margin: 0px 1rem;}

.wrapper{
  display: flex;
  min-height: 100%;
}
.product-heading{
  display: flex;
  justify-content: space-between;
}
.product-heading h1{
  pointer-events: none; /* this lets clicks pass through! */
  width: 40%;
}
.product-heading img{
  width: 50%;
}
table{
  border-collapse: separate; /* so border-radius works */
  border-spacing: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  background: var(--panel);
  color: var(--accent);
  font-weight: 600;
}

td {
  color: var(--text);
}

tr:last-child td {
  border-bottom: none; /* remove last row border */
}

tr:hover {
  background: rgba(34, 211, 238, 0.05); /* subtle hover */
}

td:nth-child(3), td:nth-child(4) {
  text-align: right; /* right-align prices */
  color: var(--accent);
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin: 0.75rem 0; }
.contact-info a {color:var(--accent)}
  form { display: flex; flex-direction: column; gap: 1rem; }
  input, textarea { padding: 0.5rem; font-size: 1rem; border-radius: 5px; border: 1px solid var(--glass-border); }
  .message { padding: 0.75rem; border-radius: 5px; margin-bottom: 1rem; }
  .success { background: #d4edda; color: #155724; }
  .error { background: #f8d7da; color: #721c24; }

.product-grid{
  display: grid;
  grid-template-columns:1fr;
  gap:10px;
  justify-content: center; /* centers the row if it’s not full */
}
.wide{max-width: 1000px;}

.about-wrapper p{
  padding: 1rem;
}

/* Wrapper for the model viewer */
.product-model-wrapper{
  position: absolute;
  top:-45px;
  right: -35px;
  width: 100%;
  z-index: 1;
}
.product-model-wrapper model-viewer {
  width: 100%;
  height: 300px;
  cursor: grab;
  transition: box-shadow 0.3s ease;
}
.product-model-wrapper model-viewer:active {
  cursor: grabbing;
}


/* ------ Responsive Design ------*/
@media (min-width:700px){
  :root{font-size: 1rem;}
  .product-grid{grid-template-columns: 1fr 1fr;}
  .downloads{grid-template-columns:1fr 1fr}
  .features{grid-template-columns:1fr 1fr}
  .scroll-container{flex-direction: row;}
  .scroll-btn{display: block;}
  .navbar ul {
    gap: 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .navlogo { height: 60px; }
  .product-model-wrapper{
    top:-120px;
    right: -80px;
  }
  .product-model-wrapper model-viewer {
    height: 400px !important;
  }
}

@media (min-width:1400px){
  .product-grid{grid-template-columns: 1fr 1fr 1fr;}
}