/* General */
body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 4rem 0;
}

.bg-light {
  background: #f8f9fa;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background-color: #000;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: 220px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3b82f6;
  /* Blue hover */
}

/* Hamburger menu (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 3px;
}

/* --- Section Setup --- */
#products {
  background: url('assets/product_bg.png') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  color: #fff;
  padding: 5rem 1rem;
}

#products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

#products .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

#products h1 {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #fff;
}

#products h1::after {
  content: "";
  display: block;
  width: 290px;
  height: 4px;
  background-color: #007bff;
  margin: 8px auto 0;
  border-radius: 2px;
}

#products .section-text {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-size: 22px;
  line-height: 1.8;
  color: #f3f4f6;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* gap: 2rem; */
  max-width: 1100px;
  margin: 0 auto;
}


@media(min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product Card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Icon Circle */
.icon-circle {
  width: 110px;
  height: 110px;
  background-color: #324158;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

.icon-circle img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}


/* Product Card Titles */
.product-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 20px 0;
  color: white;
}

/* Paragraph */
.product-card p {
  font-size: 16px;
  color: white;
  margin-bottom: 1.5rem;
  width: 51%;
  line-height: 1.8;
}

/* Button Link */
.btn-link {
  padding: 0.5rem 1.5rem;
  margin-top: 20px;
  width: 160px;
  background: #324158;
  color: white;
  font-weight: 600;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background: white;
  color: #2c2c2c;
}




/* Responsive section */
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  /* .container {
    max-width: 768px;
  } */
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    height: calc(100vh - 70px);
    width: 100%;
    text-align: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    gap: 2rem;
    padding: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  #products h1 {
    font-size: 30px;
  }

  #products h1::after {
    width: 270px;
  }

  #products .section-text {
    font-size: 18px;
  }

  .product-card p {
    width: 80%;
  }
}

/* Extra small screens */
@media (max-width: 480px) {

  .navbar {
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    padding: 1.5rem;
    gap: 1.5rem;
    align-items: center;
  }

  .logo img {
    height: 40px;
    width: 180px;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  #products h1 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  #products .section-text {
    font-size: 16px;
    margin: 0 auto 2rem auto;
  }


  .icon-circle {
    width: 100px;
    height: 100px;
  }

  .product-card p {
    width: 100%;
  }
}

/* Very small screens (320px) */
@media (max-width: 320px) {
  .nav-links {
    width: 160px;
    padding: 1rem;
    gap: 1rem;
  }

  .logo img {
    height: 35px;
    width: 150px;
  }
}