* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

#home,
#software,
#diagnostic,
#key,
#about {
  scroll-margin-top: 100px;
}

body {
  overflow-x: hidden;
  background-color: #fdfdfd;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 55px;
  width: auto;
}

.logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo h1 span {
  color: #e31e26;
}

/* ===== NAVBAR ===== */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #e31e26;
}

/* ===== CONTACT INFO ===== */
.contact-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== HAMBURGER MENU ===== */
#hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

#hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
}

#hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 992px) {
  .header {
    padding: 10px 20px;
    justify-content: space-between;
  }

  .logo h1 {
    display: none;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    color: #fff;
  }

  .contact-info {
    display: none;
  }

  #hamburger {
    display: flex;
  }
}

/* HERO SECTION */
.hero {
  margin-top: 4px;
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
}

.carousel .slides {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel .slides.active {
  opacity: 1;
  z-index: 1;
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ff3131;
}

/* ===== PRODUCT SECTIONS ===== */
.product-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
  position: relative;
}

.product-section:nth-child(even) {
  background: #fff;
}

.product-section h2 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 30px;
}

/* Slider Container */
.product-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.product-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

/* Individual Product Box - FIXED SIZE */
.product-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px;
  height: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-box h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #222;
}

.product-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.show-more-btn {
  background: #e31e26;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
  margin-top: auto;
}

.show-more-btn:hover {
  background: #c0171e;
}

/* View All Button */
.view-all-container {
  margin-top: 30px;
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  background: #111;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.view-all-btn:hover {
  background: #e31e26;
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.8);
  color: #fff;
  font-size: 24px;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn:hover,
.next-btn:hover {
  background: #ff3131;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Hide buttons on mobile */
@media (max-width: 768px) {
  .prev-btn,
  .next-btn {
    display: none;
  }

  .product-slider {
    padding: 10px 5px;
  }
}

/* ===== PRODUCT DETAIL MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.modal-overlay.active .product-modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: #222;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #777;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #e31e26;
}

.modal-content {
  display: flex;
  padding: 20px;
  gap: 30px;
}

.modal-image {
  flex: 1;
}

.modal-image img {
  width: 100%;
  border-radius: 10px;
  max-height: 350px;
  object-fit: cover;
}

.modal-details {
  flex: 1;
  text-align: left;
}

.modal-details h3 {
  margin-bottom: 15px;
  color: #222;
}

.modal-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-features {
  list-style: none;
  margin-bottom: 20px;
}

.modal-features li {
  padding: 5px 0;
  color: #555;
}

.modal-features li:before {
  content: "✓";
  color: #e31e26;
  margin-right: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: #e31e26;
  color: white;
}

.btn-primary:hover {
  background: #c0171e;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }

  .modal-image img {
    max-height: 250px;
  }
}

/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 40px;
  gap: 30px;
}

.footer-info ul {
  list-style: none;
  margin-top: 10px;
}

.footer-info ul li {
  margin-bottom: 5px;
}

.footer-info a {
  color: #ff3131;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 8px;
}

/* RESPONSIVE HERO */
@media (max-width: 900px) {
  .hero {
    height: 60vh;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 50vh;
  }
}

/* WhatsApp Float Button */
.whatsapp_float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 15px;
  font-size: 30px;
  z-index: 100;
  box-shadow: 2px 2px 5px #888;
  text-align: center;
}

.whatsapp-icon {
  color: #fff;
}

/* Gallery Page Styles */
.gallery-section {
  padding: 80px 20px;
  background: #f9f9f9;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-header h1 {
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 15px;
}

.gallery-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-item-content {
  padding: 20px;
}

.gallery-item h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 10px;
}

.gallery-item p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.gallery-features {
  list-style: none;
  margin-bottom: 15px;
}

.gallery-features li {
  padding: 3px 0;
  color: #555;
  font-size: 0.9rem;
}

.gallery-features li:before {
  content: "✓";
  color: #e31e26;
  margin-right: 8px;
}

.gallery-actions {
  display: flex;
  gap: 10px;
}

.gallery-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  flex: 1;
}

.back-home {
  text-align: center;
  margin-top: 50px;
}

.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.back-home a:hover {
  background: #e31e26;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-header h1 {
    font-size: 2rem;
  }
}

.contact-section {
    padding: 60px 20px;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
}

.contact-container {
    background: #fff;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.contact-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 25px;
    color: #666;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 15px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    background: #fff;
}

.captcha-box {
    margin: 20px 0;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #007bff;
    color: white;
    font-size: 17px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #005ec7;
}
