/* === BASE STYLING === */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f6f6f6;
  color: #111;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #0c0c0c;
  color: #eee;
}

/* === LOADER === */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(255,0,0,0.3);
  z-index: 1000;
}
body.dark-mode .navbar {
  background: rgba(20, 20, 20, 0.95);
  box-shadow: 0 0 10px red;
}

.navbar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo img {
  height: 80px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: red;
  border-radius: 2px;
}

/* === NAV LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a,
.nav-links button {
  background: #e60000;
  color: white;
  padding: 10px 12px;
  border: none;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
.nav-links a:hover,
.nav-links button:hover {
  background: #b80000;
}
body.dark-mode .nav-links a,
body.dark-mode .nav-links button {
  background: #ff2020;
}

/* === HERO SECTION === */
.hero {
  margin-top: 100px;
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, #fff8f8, #f6f6f6);
  border-bottom: 1px solid #eee;
}
body.dark-mode .hero {
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-bottom: 1px solid #222;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: red;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hero-buttons .btn {
  background: red;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  margin: 10px;
  display: inline-block;
}

/* === INFO BOXES === */
.info-box {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255,0,0,0.15);
  transition: all 0.3s ease;
}
.info-box:hover {
  box-shadow: 0 6px 30px rgba(255,0,0,0.3);
}
body.dark-mode .info-box {
  background: #1b1b1b;
}
.info-box h2 {
  color: red;
  margin-bottom: 15px;
}

/* === PRODUCTS === */
.products-section {
  padding: 60px 20px;
  text-align: center;
}
.products-section h2 {
  color: red;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body.dark-mode .product-card {
  background: #1c1c1c;
}
.product-card:hover {
  box-shadow: 0 0 24px rgba(255,0,0,0.5);
  transform: translateY(-6px);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
}
.product-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
  color: red;
}
.product-card p {
  font-size: 0.95rem;
  color: #333;
}
body.dark-mode .product-card p {
  color: #ccc;
}

/* === FOOTER === */
.footer {
  background: #111;
  color: #eee;
  padding: 40px 20px 20px;
  margin-top: 40px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.footer-columns div {
  flex: 1 1 200px;
}
.footer h4 {
  color: red;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 10px;
  font-size: 0.9rem;
}

/* === BUTTONS === */
.btn {
  background: red;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
  transition: background 0.3s;
}
.btn:hover {
  background: darkred;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .image-section img {
    margin-top: 30px;
    max-width: 90%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    right: 10px;
    background: #222;
    width: 170px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 10px 0;
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .logo img {
    height: 70px;
  }
}
