/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  --first-color: #ff0040;
  --first-color-alt: #e53e3e;
  --title-color: #ffffff;
  --text-color: #b3b3b3;
  --text-color-light: #8a8a8a;
  --body-color: #0a0a0a;
  --container-color: #1a1a1a;
  --border-color: #2d2d2d;
  --gradient-color: linear-gradient(135deg, #ff0040 0%, #ff6b6b 100%);
  --shadow-color: rgba(255, 0, 64, 0.15);

  /* ========== Font and typography ========== */
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Orbitron', monospace;
  --biggest-font-size: 2.75rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /* ========== Font weight ========== */
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding-block: 5rem 1rem;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  background: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5rem;
  background: var(--gradient-color);
  color: var(--title-color);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: var(--font-medium);
  transition: all 0.4s;
  border: 2px solid transparent;
  text-align: center;
  min-width: 140px;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow-color);
}

.button--ghost {
  background: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.button--ghost:hover {
  background: var(--first-color);
  color: var(--title-color);
}

.button--product {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: var(--small-font-size);
}

.button--cta {
  padding: 1.25rem 2.5rem;
  font-size: var(--h3-font-size);
  border-radius: 1rem;
}

/* ===== HEADER & NAV ===== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: background 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo .logo-text {
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  background: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__menu {
  position: fixed;
  top: -100%;
  left: 0;
  background-color: var(--container-color);
  width: 100%;
  padding-block: 1.8rem 5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: top 0.4s;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: color 0.4s;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--title-color);
}

.nav__toggle {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--title-color);
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add blur to header */
.blur-header::after {
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* ===== HERO ===== */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  row-gap: 3rem;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__data {
  text-align: center;
}

.hero__title {
  font-family: var(--title-font);
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.hero__highlight {
  background: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
}

.hero__stat-text {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.hero__img {
  position: relative;
  justify-self: center;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.3);
}

.hero__img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 0, 64, 0.1), rgba(255, 107, 107, 0.1));
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.hero__img:hover .hero__img-overlay {
  opacity: 1;
}

/* ===== KATALOG ===== */
.katalog {
  background-color: var(--container-color);
}

.katalog__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product__card {
  background-color: var(--body-color);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.product__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.1), transparent);
  transition: left 0.6s;
}

.product__card:hover::before {
  left: 100%;
}

.product__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--first-color);
}

.product__img {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
}

.product__img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s;
}

.product__card:hover .product__img img {
  transform: scale(1.1);
}

.product__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  z-index: 1;
}

.product__badge--discount {
  background-color: var(--first-color);
  color: var(--title-color);
}

.product__badge--bestseller {
  background-color: #ffd700;
  color: #000;
}

.product__badge--new {
  background-color: #00ff88;
  color: #000;
}

.product__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.75rem;
}

.product__price {
  margin-bottom: 1rem;
}

.product__price-old {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.product__price-new {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
}

.product__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product__feature {
  font-size: var(--smaller-font-size);
  background-color: var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  color: var(--text-color);
}

/* ===== FITUR ===== */
.fitur__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.fitur__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.4s;
}

.fitur__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--first-color);
}

.fitur__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.fitur__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  color: var(--title-color);
}

.fitur__description {
  font-size: var(--small-font-size);
  line-height: 1.6;
}

/* ===== TESTIMONI ===== */
.testimoni {
  background-color: var(--container-color);
}

.testimoni__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.testimoni__title {
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimoni__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.testimoni__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.testimoni__stat {
  text-align: center;
}

.testimoni__number {
  display: block;
  font-family: var(--title-font);
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
}

.testimoni__text {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.testimoni__images {
  margin-top: 3rem;
}

.testimoni__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.testimoni__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.4s;
}

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

/* ===== FOOTER ===== */
.footer {
  background-color: var(--body-color);
  border-top: 1px solid var(--border-color);
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
}

.footer__logo-text {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  background: var(--gradient-color);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__description {
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__social-link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color 0.4s;
}

.footer__social-link:hover {
  color: var(--first-color);
}

.footer__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
  color: var(--title-color);
}

.footer__contact-item {
  margin-bottom: 0.75rem;
  font-size: var(--small-font-size);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__copy {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background: var(--gradient-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  color: var(--title-color);
  border-radius: 0.25rem;
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-4px);
}

/* Show Scroll Up*/
.show-scroll {
  bottom: 3rem;
}

/* ===== BREAKPOINTS ===== */
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
  }
  
  .katalog__container {
    grid-template-columns: 1fr;
  }
  
  .testimoni__stats {
    gap: 1.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .hero__buttons {
    justify-content: center;
  }
  
  .katalog__container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 767px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  
  .nav__toggle,
  .nav__close {
    display: none;
  }
  
  .nav__menu {
    position: initial;
    background-color: transparent;
    padding: 0;
    width: initial;
  }
  
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .hero__content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .hero__data {
    text-align: left;
  }
  
  .hero__buttons {
    justify-content: flex-start;
  }
  
  .katalog__container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .fitur__container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimoni__container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
  
  .hero__content {
    gap: 6rem;
  }
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}