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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  position: relative;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.chat-btn {
  background: #e31e24;
  color: white;
  text-decoration: none;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.chat-btn:hover {
  background: #c41e3a;
}

/* Desktop and Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 200px;
}

.nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu ul {
  list-style: none;
  padding: 10px 0;
}

.nav-menu li {
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease;
}

.nav-menu a:hover {
  background: #f8f9fa;
  color: #e31e24;
}

/* Main Content */
.main {
  padding: 3rem 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0; /* Allow cards to shrink */
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(227, 30, 36, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
  padding: 20px;
}

.overlay-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.overlay-content p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-text {
  text-align: center;
  margin-top: 1rem;
  padding: 0 10px;
}

.card-text h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.card-text p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Footer */
.footer {
  background: #e31e24;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.company-description h4 {
  color: #e31e24;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.company-description p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.quick-links h4 {
  margin-bottom: 1rem;
  color: #e31e24;
}

.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links a:hover {
  color: #e31e24;
}

.contact-section h4 {
  margin-bottom: 1rem;
  color: #e31e24;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.social-section h4 {
  margin-bottom: 1rem;
  color: #e31e24;
}

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

.social-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #e31e24;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: #c41e3a;
}

.social-link.tiktok {
  background: #000000;
}

.social-link.tiktok:hover {
  background: #333333;
}

.social-link.instagram {
  background: #e4405f;
}

.social-link.instagram:hover {
  background: #c13584;
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.linkedin:hover {
  background: #005885;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 1rem;
  text-align: center;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Added visually-hidden class for SEO content that should be hidden from visual users but accessible to screen readers and search engines */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile overlay auto-show animation */
@media (max-width: 768px) {
  .card-overlay.auto-show {
    opacity: 1;
    animation: autoShowOverlay 2s ease-in-out;
  }

  @keyframes autoShowOverlay {
    0% {
      opacity: 0;
      transform: scale(0.95);
    }
    20% {
      opacity: 1;
      transform: scale(1);
    }
    80% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(0.95);
    }
  }
}

/* Mobile Styles */
@media (max-width: 1024px) {
  .header .container {
    padding: 1rem 15px;
    gap: 1rem; /* Add gap to bring elements closer */
  }

  .chat-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-right: 1rem; /* Bring closer to hamburger */
  }

  .logo-img {
    height: 40px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card {
    height: 150px;
  }

  .card-text h3 {
    font-size: 1.1rem;
  }

  .card-text p {
    font-size: 0.85rem;
  }

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

  .company-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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

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

  .overlay-content h4 {
    font-size: 1.1rem;
  }

  .overlay-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 2rem 0;
  }

  .container {
    padding: 0 0px;
  }

  .logo-img {
    height: 45px;
  }

  .footer-logo-img {
    height: 50px;
  }

  .company-description p {
    font-size: 0.9rem;
  }

  /* Keep 2 cards per row on mobile */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card {
    height: 120px;
  }

  .card-text h3 {
    font-size: 1rem;
  }

  .card-text p {
    font-size: 0.8rem;
  }
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}
