/* ========== VARIABLES & RESET ========== */
:root {
  --dark: #2c3e50;
  --primary: #e67e22;
  --accent: #2980b9;
  --light-bg: #f7f7f7;
  --text: #333;
  --card-shadow: rgba(0, 0, 0, 0.08);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}
.hidden {
  display: none !important;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--dark);
  color: #fff;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img {
  height: 50px;
}
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}
.dark-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  margin-left: 16px;
}
.navlist {
  list-style: none;
  display: flex;
  gap: 20px;
}
.navlist li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}
.navlist li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .navlist {
    position: absolute;
    right: 16px;
    top: 65px;
    background: var(--dark);
    flex-direction: column;
    padding: 12px;
    border-radius: 8px;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .navlist.show {
    display: flex;
  }
}

/* ========== HERO ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-text h1 {
  font-size: 3rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.hero-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}
.hero-text button {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-text button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.hero-image {
  position: relative;
}
.hero-image .circle {
  width: 24px;
  height: 24px;
  background: #f1c40f;
  border-radius: 50%;
  position: absolute;
  opacity: 0.9;
  animation: pulse 4s ease-in-out infinite;
}
.hero-image .circle:nth-child(1) {
  top: -10px;
  left: -10px;
  animation-delay: 0s;
}
.hero-image .circle:nth-child(2) {
  top: 10px;
  right: -15px;
  animation-delay: 1s;
}
.hero-image .circle:nth-child(3) {
  bottom: -10px;
  left: 20px;
  animation-delay: 2s;
}
.hero-image img {
  max-width: 420px;
  width: 100%;
  display: block;
  border-radius: 8px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ========== SECTIONS ========== */
section {
  margin: 60px 0;
}
.sec2 h2,
.products-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.products-subtext {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
}

/* SERVICES GRID */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.container > div {
  background: #fff;
  padding-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--card-shadow);
  transition: transform 0.3s;
}
.container > div:hover {
  transform: translateY(-5px);
}
.container img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.container h4 {
  padding: 12px;
  color: var(--text);
}

/* ABOUT US */
.sec3 {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.sec3 img {
  width: 100%;
  border-radius: 12px;
}
.about-text h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}
.about-text p {
  color: #555;
  margin-bottom: 16px;
}
.about-text button {
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.about-text button:hover {
  transform: translateY(-2px);
}

/* QUESTION BOX */
.question-box {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}
.question-box h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.question-box p {
  color: #666;
  margin-bottom: 20px;
}
.question-box form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.question-box input,
.question-box button {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.question-box button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.question-box button:hover {
  background: var(--dark);
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-price {
  font-weight: 700;
  color: var(--dark);
}
.product-meta button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.product-meta button:hover {
  transform: translateY(-2px);
}

/* CART PANEL & BUTTON */
.cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--card-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -12px 0 40px var(--card-shadow);
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.2s;
  opacity: 0;
  z-index: 200;
  overflow-y: auto;
}
.cart-panel.cart-open {
  transform: translateX(0);
  opacity: 1;
}
.cart-panel h3 {
  color: var(--dark);
  margin-bottom: 16px;
}
.cart-item-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  animation: fadeIn 0.3s ease;
}
.cart-summary,
.cart-footer {
  margin-top: 16px;
}
.cart-footer {
  display: flex;
  gap: 12px;
}
.cart-footer button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.cart-footer button:first-child {
  background: var(--primary);
  color: #fff;
}
.cart-footer button:last-child {
  background: #bdc3c7;
  color: #333;
}
.cart-footer button:hover {
  filter: brightness(0.9);
}

/* CONTACT FORM */
.contact-section {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-section input,
.contact-section textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  resize: vertical;
}
.contact-section button {
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s;
}
.contact-section button:hover {
  filter: brightness(0.9);
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.footer a {
  color: #fff;
  text-decoration: underline;
}
.footer a:hover {
  color: var(--primary);
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 40px 20px;
  }
}
@media (max-width: 600px) {
  .sec3 {
    flex-direction: column;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
