@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  color: #333;
}

header {
  background: #004d40;
  color: white;
  padding: 1.5em 0;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}



.logo-container {
  position: relative;
  display: inline-block;
  width: fit-content; /* Ensures container wraps tightly around the image */
  height: 90px; /* Match the image height */
}

.logo {
  display: block;
  height: 100%;
}

.light-effect {
  position: absolute;
  top: 0;
  left: 30%;
  width: 30%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(50,255,255,0.4) 0%, transparent 60%);
  animation: moveLight 15s infinite ease-in-out alternate;
}

@keyframes moveLight {
  0% {
    transform: translate(0%, 0%);
  }
  100% {
    transform: translate(90%, 70%);
  }
}







nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 1em 0 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #80cbc4;
}

.hero {
  text-align: center;
  padding: 4em 2em;
  background: linear-gradient(to right, #80deea, #a5d6a7);
  color: #004d40;
}

.hero button {
  background: #004d40;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero button:hover {
  background: #00796b;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  padding: 2em;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  margin: 1em 0;
  font-size: 1.2em;
}

footer {
  background: #004d40;
  color: white;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}

.product-row {
  display: flex;
  align-items: center;
  background: rgb(224, 246, 214);
  margin: 1.5em auto;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 800px;
}


.product-row img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.5em;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  margin: 0 0 0.5em;
  font-size: 1.4em;
  color: #004d40;
}

.product-info p {
  margin: 0;
  font-size: 1em;
  color: #333;
}

.product-list {
  position: relative;
  z-index: 1;
  padding: 2em;
}
.shero {
  background: url('images/panorama.jpg') center/cover no-repeat;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.hero {
  background: url('images/panorama.jpg') center/cover no-repeat;
  padding: 4em 2em; /* Add padding instead */
  position: relative;
  overflow: hidden;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 2em;
  color: white;
}




.shero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  top: 40%;
  transform: translateY(-40%);
  color: white;
}


.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  animation: moveLight 5s infinite linear;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 77, 64, 0.6);
  z-index: 0;
}



@keyframes moveLight {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}



/*######################*/
/*    ROTATING CUBE     */
/*######################*/

.cube-container {
  display: inline-block;
  left: 300px;
  vertical-align: middle;
  width: 100px;
  height: 10px;
  margin: 0 10px;
}

  .inline-cube {
      display: inline-block;
      width: 66px;
      height: 100px;
      vertical-align: middle;
      perspective: 600px;
      margin-left: 10px;
    }

    .cube-wrapper {
	display: inline-block;
      width: 66px;
      height: 100px;
      margin: 0 auto 20px;
      perspective: 1000px;
    }

    .scene {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      animation: rotateCube 20s infinite linear;
    }

    .face {
      position: absolute;
      width: 66px;
      height: 100px;
      background-size: cover;
      background-position: center;
      border: 0px solid #fff;
    }
      /* ########################################################## */    
      /*  ekardio/front.jpg    in my laptop                         */
      /*  /ekardio/front.jpg   in cpanel to read from public folder */
      /* ########################################################## */    
    .front1  { transform: rotateY(  0deg) translateZ(33px); background-image: url('/images/front1.jpg'); }
    .back1   { transform: rotateY(180deg) translateZ(33px); background-image: url('/images/back1.jpg'); }
    .right1  { transform: rotateY( 90deg) translateZ(33px); background-image: url('/images/right1.jpg'); }
    .left1   { transform: rotateY(-90deg) translateZ(33px); background-image: url('/images/left1.jpg'); }
    .top1    { transform: rotateX( 90deg) translateZ(33px); background-image: url('/images/top1.jpg'); }
    .bottom1 { transform: rotateX(-90deg) translateZ(33px); background-image: url('/images/bottom1.jpg'); }
    
    .front2  { transform: rotateY(  0deg) translateZ(33px); background-image: url('/images/front2.jpg'); }
    .back2   { transform: rotateY(180deg) translateZ(33px); background-image: url('/images/back2.jpg'); }
    .right2  { transform: rotateY( 90deg) translateZ(33px); background-image: url('/images/right2.jpg'); }
    .left2   { transform: rotateY(-90deg) translateZ(33px); background-image: url('/images/left2.jpg'); }
    .top2    { transform: rotateX( 90deg) translateZ(33px); background-image: url('/images/top2.jpg'); }
    .bottom2 { transform: rotateX(-90deg) translateZ(33px); background-image: url('/images/bottom2.jpg'); }

    .front3  { transform: rotateY(  0deg) translateZ(33px); background-image: url('/images/front3.jpg'); }
    .back3   { transform: rotateY(180deg) translateZ(33px); background-image: url('/images/back3.jpg'); }
    .right3  { transform: rotateY( 90deg) translateZ(33px); background-image: url('/images/right3.jpg'); }
    .left3   { transform: rotateY(-90deg) translateZ(33px); background-image: url('/images/left3.jpg'); }
    .top3    { transform: rotateX( 90deg) translateZ(33px); background-image: url('/images/top3.jpg'); }
    .bottom3 { transform: rotateX(-90deg) translateZ(33px); background-image: url('/images/bottom3.jpg'); }
    @keyframes rotateCube {
      from { transform: rotateX(0deg) rotateY(0deg); }
      to   { transform: rotateX(0deg) rotateY(360deg); }
    }
    
    
    
    /* MOBILE RESPONSIVENESS */
    @media (max-width: 768px) {
  header {
    padding: 1em;
  }

  .logo-container {
    height: auto;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 1em;
    margin-top: 1em;
  }

  .hero {
    padding: 2em 1em;
    background-position: center;
    background-size: cover;
  }

  .hero-content {
    padding-top: 1em;
  }

  .hero button {
    width: 100%;
    max-width: 300px;
    font-size: 1em;
  }

  .product-row {
    flex-direction: column;
    text-align: center;
    padding: 1em;
    margin: 1em auto;
  }

  .product-row img {
    margin: 0 auto 1em;
  }

  .product-info {
    padding: 0 1em;
  }

  .product-info p {
    font-size: 0.95em;
    text-align: justify;
  }

  .cube-container,
  .inline-cube {
    margin: 1em auto;
    display: block;
  }

  footer {
    padding: 1em;
    font-size: 0.9em;
  }
}