/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: radial-gradient(circle at top, #06121f, #03070f);
  color: white;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px 25px;
  z-index: 999;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: bold;
}

nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  opacity: 0.7;
}

nav a:hover {
  opacity: 1;
}

.contact-icon {
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  transition: 0.3s;
}

.contact-icon:hover {
  transform: scale(1.05);
}

/* HERO */
.hero {
  display: flex;
  min-height: 100vh;
  padding: 120px 40px;
  gap: 40px;
}

.hero-left {
  flex: 1.2;
}

.hero-right {
  flex: 1;
  position: relative;
}

/* 3D INFO CARDS */
.info-grid {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.card3d {
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  transform: perspective(600px) rotateY(10deg);
  transition: 0.3s;
}

.card3d:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.05);
}

/* DIAGRAM */
.diagram {
  position: absolute;
  top: 20%;
  left: 20%;
  text-align: center;
}

.node {
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 10px;
}

.line {
  width: 2px;
  height: 25px;
  background: cyan;
  margin: auto;
}

/* FLOATING BLOBS */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(25px);
  animation: float 6s infinite ease-in-out;
}

.b1 { width: 120px; height: 120px; background: cyan; top: 10%; left: 60%; }
.b2 { width: 160px; height: 160px; background: purple; top: 55%; left: 65%; }
.b3 { width: 90px; height: 90px; background: blue; top: 75%; left: 45%; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* PRODUCTS */
.products {
  padding: 120px 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  transition: 0.3s;
}

.product:hover {
  transform: scale(1.05);
}

.product img {
  width: 100%;
  border-radius: 10px;
}

/* MODAL (FIXED PROPERLY) */
.modal {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.85);

  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 250px;
}

.modal-box a {
  display: block;
  margin: 10px;
  color: white;
  text-decoration: none;
  transition: 0.2s;
}

.modal-box a:hover {
  transform: scale(1.05);
}

button {
  margin-top: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* RIPPLE ANIMATION */
@keyframes fade {
  to {
    transform: scale(8);
    opacity: 0;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .diagram {
    position: relative;
    margin-top: 30px;
    left: 0;
  }

  header {
    flex-wrap: wrap;
    gap: 10px;
  }
}