/* ========================= */
/* GLOBAL SETTINGS */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #0b0f19;
  color: white;
  overflow-x: hidden;
}


/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
  width: 100%;
  padding: 22px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;

  z-index: 1000;

  background: rgba(11, 15, 25, 0.75);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-btn {
  text-decoration: none;
  color: white;

  background: #00bfff;

  padding: 12px 24px;
  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s ease;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}


/* ========================= */
/* HERO SECTION */
/* ========================= */

.hero {
  min-height: 100vh;

  padding: 140px 8% 80px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-text span {
  color: #00bfff;
}

.hero-text p {
  color: #c5c5c5;
  font-size: 1.1rem;
  max-width: 550px;
  line-height: 1.8;
  margin-bottom: 35px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #00bfff;
}

.hero-btn {
  display: inline-block;

  text-decoration: none;
  color: white;

  background: #00bfff;

  padding: 16px 34px;
  border-radius: 14px;

  font-weight: 600;

  transition: 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
}


/* ========================= */
/* HERO IMAGE */
/* ========================= */

.hero-image {
  flex: 1;

  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 320px;

  border-radius: 25px;

  box-shadow:
    0 0 30px rgba(0, 191, 255, 0.25);

  animation: float 4s ease-in-out infinite;
}


/* FLOAT ANIMATION */

@keyframes float {

  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }

}


/* ========================= */
/* FEATURES */
/* ========================= */

.features {
  padding: 100px 8%;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 30px;
}

.feature-card {
  background: #121826;

  padding: 35px;

  border-radius: 24px;

  transition: 0.3s ease;

  border: 1px solid rgba(255,255,255,0.05);
}

.feature-card:hover {
  transform: translateY(-8px);

  border-color: rgba(0,191,255,0.4);
}

.feature-card h3 {
  margin-bottom: 15px;
  color: #00bfff;
}

.feature-card p {
  color: #bdbdbd;
  line-height: 1.7;
}


/* ========================= */
/* PREVIEW SECTION */
/* ========================= */

.preview {
  padding: 100px 8%;
}

.preview h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 60px;
}

.preview-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 30px;
}

.preview-grid img {
  width: 100%;
  border-radius: 20px;
  transform: scale(1.0);
  transition: 0.4s ease;
  cursor: pointer;
}

.preview-grid img:hover {
  transform: scale(1.08);

  box-shadow:
    0 0 25px rgba(0,191,255,0.4);
}


/* ========================= */
/* ORDER SECTION */
/* ========================= */

.order {
  padding: 120px 8%;
}

.order h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 50px;
}

.order-box {
  max-width: 550px;

  margin: auto;

  background: #121826;

  padding: 40px;

  border-radius: 30px;

  border: 1px solid rgba(255,255,255,0.05);
}

.order-box input {
  width: 100%;

  padding: 18px;

  margin-bottom: 20px;

  border: none;
  outline: none;

  border-radius: 14px;

  background: #1a2235;

  color: white;

  font-size: 1rem;
}


/* QUANTITY */

.quantity-box {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 25px;

  margin: 25px 0;
}

.quantity-box button {
  width: 45px;
  height: 45px;

  border: none;

  border-radius: 12px;

  background: #00bfff;

  color: white;

  font-size: 1.4rem;

  cursor: pointer;
}

.quantity-box span {
  font-size: 1.4rem;
  font-weight: 600;
}


/* TOTAL */

.total {
  text-align: center;

  margin-bottom: 30px;

  font-size: 1.2rem;
}


/* ORDER BUTTON */

.order-btn {
  width: 100%;

  padding: 18px;

  border: none;

  border-radius: 14px;

  background: #00bfff;

  color: white;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;
}

.order-btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 0 25px rgba(0,191,255,0.5);
}

/* ========================= */
/* LIGHTBOX (POPUP IMAGE) */
/* ========================= */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.9);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 2000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0,191,255,0.4);
  animation: pop 0.25s ease;


  /* IMPORTANT FOR ZOOM */
  transform-origin: center;
  transition: transform 0.05s linear;
  touch-action: none; /* enables custom pinch handling */
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;

  font-size: 2.5rem;
  color: white;

  cursor: pointer;
}


/* ========================= */
/* FOOTER */
/* ========================= */

footer {
  padding: 40px 8%;

  text-align: center;

  color: #888;
}


/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

@media (max-width: 950px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    margin: auto auto 35px;
  }

  .hero-image img {
    width: 260px;
  }

}