@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

* {
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.hero-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
}

#home {
  background-image: url("../images/tech.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 16, 48, 0.75);
  z-index: 0;
}

#home > * {
  position: relative;
  z-index: 1;
}

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.smooth-scroll {
  scroll-behavior: smooth;
}

.product-image-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.view-label {
  background: rgba(6, 182, 212, 0.9);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  letter-spacing: 0.02em;
}

.product-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 28, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dialog-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.2);
  animation: slideUp 0.25s ease;
}

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

.dialog-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: white;
  padding: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.dialog-image-wrap {
  width: 100%;
  clear: both;
}

.dialog-image {
  width: 100%;
  height: auto;
  display: block;
}

.dialog-body {
  padding: 1.5rem 2rem 2rem;
}

.dialog-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dialog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.75rem;
}

.dialog-desc {
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.dialog-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dialog-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .dialog-body {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .dialog-title {
    font-size: 1.25rem;
  }
}
