/* 🔥 PREMIUM BASE */
* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 50% 20%, #0a0a0a, #000);
  letter-spacing: 0.3px;
}

/* smooth rendering */
img {
  display: block;
  backface-visibility: hidden;
}

/* glass blur effect */
.glass {
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

body {
  margin: 0;
  font-family: Arial;
  background: #050505;
  color: white;
}

/* BACKGROUND */
.bg {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #111, #000);
  z-index: -1;
}

/* 🔥 HEADER */
.header {
  position: sticky;
  top: 15px;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.nav-container {
  width: 90%;
  max-width: 100%;
  padding: 14px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-radius: 60px;

  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.06);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 1px rgba(255,255,255,0.05);
}

.left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 40px;
  border-radius: 50%;
}

.brand {
  font-weight: 600;
}

.right a {
  margin: 0 15px;
  color: #ccc;
  text-decoration: none;
}

.right a:hover {
  color: red;
}

.cta {
  width: 60px;
  height: 30px;
  background: #4fd1c5;
  border-radius: 50px;
}

/* HERO */
.hero {
  position: relative;

  min-height: 100vh;   /* 🔥 use min-height NOT height */
  display: flex;
  justify-content: center;
  align-items: center;

  padding-top: 00px;
  padding-bottom: 80px;

  overflow: hidden;
}
.hero img {
  width: 800px;
  max-width: 100%;
  height: auto;
}



/* PRODUCTS */
.products {
  padding: 100px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;

  max-width: 100%;
  margin: 60px auto;
  padding: 0 20px;
}

/* CARD SIZE CONTROL */
.card {
  max-width: 100%;   /* 🔥 THIS MAKES IT SMALL */
  margin: auto;       /* center inside grid */
}

/* IMAGE BOX (FOR PERFECT SIZE) */
.img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
}

/* IMAGE FIT */
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* IMAGE WRAPPER (VERY IMPORTANT FIX) */

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}



/* TEXT */

.card h3 {
  margin-top: 15px;
  font-size: 18px;
  text-align: center;
  min-height: 24px; /* 🔥 SAME TEXT HEIGHT */
}


.card:hover {
  transform: translateY(-10px);
}

/* SECTIONS */
.section {
  padding: 80px;
  text-align: center;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #000;
}.page-title {
  text-align: center;
  padding: 100px 0 40px;
}

/* PRODUCT DETAIL PAGE */
.product-detail {
  display: flex;
  gap: 50px;
  padding: 100px;
}

.product-left img {
  width: 100%;
  border-radius: 20px;
}

.product-right {
  max-width: 100%;
}

.product-right table {
  width: 100%;
  margin-top: 20px;
}

.product-right td {
  padding: 10px;
  border-bottom: 1px solid #333;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: red;
  color: white;
  text-decoration: none;
}
/* PRODUCT PAGE */
.product-container {
  display: flex;
  gap: 60px;
  padding: 120px 10%;
  align-items: flex-start;   /* 🔥 FIX: TOP ALIGN */
}

/* LEFT */
.product-gallery {
  flex: 1;
  position: sticky;
  top: 140px;   /* 🔥 keeps image fixed while scrolling */
}

.main-image {
  width: 100%;
  border-radius: 20px;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.thumbs img:hover {
  opacity: 1;
}

/* RIGHT */
.product-info {
  flex: 1;
}

.product-info h1 {
  font-size: 40px;
}

.desc {
  color: #aaa;
  margin: 20px 0;
}

/* SPECS */
.specs {
  margin-top: 20px;
}

.specs div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.specs span:first-child {
  color: #aaa;
}

/* BUTTON */
.download-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 20px;
  background: red;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
/* spacing for product page (header overlap fix) */
.product-container {
  margin-top: 120px;
}
.card {
  text-decoration: none;
  color: white;   /* default text color */
}

.card:visited {
  color: white;   /* 🔥 stops purple */
}

.card h3 {
  color: white;
  margin-top: 10px;
} 
.card:hover h3 {
  color: red;
} 
/* 🔥 PREMIUM CARD HOVER UPGRADE (ADD ONLY) */

/* smooth animation base */
.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

/* lift + depth */
.card:hover {
  transform: translateY(-12px) scale(1.02);
}

/* image zoom */
.card img {
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.08);
}

/* soft glow effect */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: 0.4s ease;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* text animation upgrade */
.card h3 {
  transition: all 0.3s ease;
}

.card:hover h3 {
  color: #ff3b3b;
  letter-spacing: 1px;
}

/* smoother rendering */
.card img {
  will-change: transform;
}
/* 🔥 IMAGE VIEWER */
.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 9999;
}

.img-viewer.active {
  opacity: 1;
  pointer-events: all;
}

.img-viewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  transform: scale(0.8);
  transition: 0.4s ease;
}

.img-viewer.active img {
  transform: scale(1);
}
/* 🔥 PAGE TRANSITION OVERLAY */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transform: translateY(100%);
  z-index: 99999;
}
.product-info h2 {
  margin-top: 30px;
  font-size: 20px;
  border-left: 3px solid red;
  padding-left: 10px;
}
.about {
  padding: 100px 10%;
  text-align: center;
}

.about-main {
  max-width: 100%;
  margin: 20px auto;
  color: #aaa;
  font-size: 16px;
  line-height: 1.8;
}

/* GRID */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* BOX */
.about-box {
  background: #111;
  padding: 30px;
  border-radius: 15px;
  transition: 0.3s;
}

.about-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.about-box h3 {
  margin-bottom: 10px;
}

.about-box p {
  color: #aaa;
  font-size: 14px;
}


/* DARK OVERLAY (VERY IMPORTANT) */
.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: -1;
}

.card:active {
  transform: scale(0.97);
}
/* INNER LAYER (THIS WAS MISSING) */
.card-inner {
  width: 100%;
  padding: 20px;
  border-radius: 20px;

  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.05);

  transition: 0.4s ease;
}

/* HOVER DEPTH */
.card:hover .card-inner {
  transform: translateY(-5px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.8),
    0 0 40px rgba(255,0,0,0.15);
}
.img-box {
  border-radius: 16px;
  overflow: hidden;
}

.img-box img {
  transition: transform 0.6s ease;
}

.card:hover img {
  transform: scale(1.1);
}
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-container {
    width: 95%;
    padding: 10px 15px;
  }

  .right {
    display: none; /* hide desktop menu */
  }

  /* HERO */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 60px;
  }

  .hero img {
    width: 250px;
    max-width: 90%;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 14px;
  }

  /* PRODUCT GRID */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }

  /* CARD */
  .card {
    width: 100%;
  }

  .card h3 {
    font-size: 14px;
  }

  /* PRODUCT PAGE */
  .product-container {
    flex-direction: column;
    padding: 100px 20px;
  }

  .product-gallery {
    position: static;
  }

  .main-image {
    width: 100%;
  }

  .thumbs img {
    width: 60px;
    height: 60px;
  }

  /* ABOUT */
  .about {
    padding: 60px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  /* SECTION SPACING */
  .section {
    padding: 60px 20px;
  }

}