* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #4f46e5;
  --secondary: #10b981;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --light-gray: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--dark);
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: clamp(1rem, calc(1vw + 1.2rem), 1.8rem);
  font-weight: 700;
  color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.menu-and-cart-container {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  margin-top: -70.4px;
  min-height: 450px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  /* padding: 5rem 5%; */
  padding-top: 70.4px;
  padding-bottom: 10px;
  padding-inline: 5%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.2rem, calc(3vw + 1rem), 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(0.8rem, calc(1vw + 0.7rem), 1.2rem); /*  1.2rem */
  margin-bottom: 2.2rem;
  opacity: 0.9;
}


.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  /* margin-top: 10px;
  margin-bottom: -20px; */
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-products {
    background-color: var(--secondary);
}

.cta-button-services {
    background-color: transparent;
    border: 2px solid white;
}



/* Products Section */
.products {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

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

.category-btn {
  padding: 0.5rem 1.5rem;
  background-color: var(--light-gray);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
  background-color: var(--primary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.show-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.show-more-btn:hover {
  background-color: #4338ca;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-availability {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.availability-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.available {
    background-color: var(--secondary);
}

.not-available {
    background-color: #ef4444;
}

.add-to-cart {
  width: 100%;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #4338ca;
}

/* Services Section */
.services {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--light);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.service-link {
    color: var(--primary);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    text-decoration: underline;
}


/* Contact Section */
.contact {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-map {
  height: 100%;
  min-height: 300px;
  background-color: var(--light-gray);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  overflow: hidden;
}

.social-media {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-link {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-link:hover {
  background-color: #4338ca;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 5%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.footer-about h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-services {
  min-width: 400px;
}

.footer-services h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-services ul {
  list-style: none;
}

.footer-services li {
  margin-bottom: 0.5rem;
}

.dev-business {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.dev-business h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.dev-business p {
  margin-bottom: 0.5rem;
}

.dev-business a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.dev-business a:hover {
  text-decoration: underline;
}

.footer-socials {
  margin-top: 1rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s;
}

.footer-social-link:hover {
  background-color: #4338ca;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 0.9rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  scrollbar-width: none;
  overflow-y: auto;
  position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1rem;
    cursor: pointer;
    color: #222222d2;
    background: #9a9a9abb;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-modal i {
  margin: 0;
  padding: 0;
  line-height: normal;
}

.close-modal:hover {
  background-color: #9a9a9acd;
  color: #000;
}

.service-modal-content {
    padding: 2rem;
}

.service-modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-modal-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-modal-details {
    margin-bottom: 2rem;
}

.service-modal-details ul {
    padding-left: 1.5rem;
}

.service-modal-details li {
    margin-bottom: 0.5rem;
}

.request-service-btn {
    display: block;
    width: 100%;
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.request-service-btn:hover {
    background-color: #059669;
}



.modal-product-info {
    padding: 2rem;
}

/* .product-modal-content {
  padding: 2rem;
} */

.product-modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  /* border-radius: 10px; */
  margin-bottom: 1rem;
  cursor: zoom-in;
}

.product-modal-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.product-modal-price {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.product-modal-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cart-modal-content {
  padding: 2rem;
}

.cart-items {
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.cart-item-info {
  flex: 1;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--light-gray);
  background: white;
  cursor: pointer;
  border-radius: 5px;
}

.remove-item {
  color: #ef4444;
  cursor: pointer;
  margin-left: 1rem;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 0;
  text-align: right;
}

.checkout-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
}

.shipping-options {
    margin-bottom: 1.5rem;
}

.shipping-options h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
}

.shipping-options ul {
  padding-inline: 20px;
  margin-bottom: 1.4rem;
}

.shipping-select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.checkout-btn {
  width: 100%;
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .cart-icon.desktop {
    display: none;
  }

  .menu-and-cart-container {
    display: flex;
  }

  .cart-icon.mobile {
    margin-right: 20px;
  }

  .mobile-menu {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--dark);
  }

  .mobile-menu .cart-item-mobile {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--dark);
    cursor: pointer;
  }

  .categories {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .services-container {
      grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-services {
    min-width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .social-links,
  .footer-social-links {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}