@font-face {
  font-family: "Yekan";
  src: url("catalog/fonts/Yekan.eot");
  src: url("catalog/fonts/Yekan.eot") format("embedded-opentype"),
    url("catalog/fonts/Yekan.woff2") format("woff2"),
    url("catalog/fonts/Yekan.woff") format("woff"),
    url("catalog/fonts/Yekan.ttf") format("truetype"),
    url("catalog/fonts/Yekan.svg#Yekan") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* Reset horizontal scroll issues */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Yekan", tahoma, sans-serif;
  background: linear-gradient(#222, #111);
  color: #fff;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.header {
  background-color: gold;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows wrapping on small screens */
  gap: 50px; /* reduced gap to avoid overflow */
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 150px;
}

@media (min-width: 992px) {
  .container {
    gap: 200px;
  }
}

@media (max-width: 768px) {
}

.title {
  color: #000;
  font-size: 26px;
  margin: 0;
}

p {
  font-size: 21px;
  color: #414141;
  margin: 0;
}

h2 {
  font-size: 20px;
  font-weight: normal;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5px;
  display: inline-block;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 0;
  margin-top: 20px;
}

.icon-link {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 992px) {
  .icon-link {
    border: 1px solid yellow;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .icon-link:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
  }
}

.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.circle img {
  max-width: 50%;
  max-height: 50%;
}

.label {
  font-size: 12px;
}

/* Floating Chat Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: gold;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
}

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgb(1, 218, 19);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease;

  .icon {
    width: 90%;
  }
}

#chat-icon:hover {
  transform: scale(1.1);
}

/* Chat Modal */
#chat-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

#chat-content {
  background: #222;
  color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 500px;
}

#chat-content h3 {
  margin-top: 0;
  text-align: center;
}

#messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  background: #111;
}

#user-input {
  padding: 8px;
  flex: none;
  border: none;
  border-radius: 4px;
  margin-bottom: 5px;
  width: calc(100% - 16px);
}

#send-btn {
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: gold;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}

#close-chat {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  color: #fff;
}

/* Extra Mobile Tweaks */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 0;
    .item {
      height: 250px;
    }
  }
  .title {
    font-size: 20px;
  }
  .subtitle {
    font-size: 16px;
  }
}
