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

body {
  background: black;
  overflow-x: hidden;
  font-family: Inter, sans-serif;
}

/* Keep the hero intact and normalize spacing between later sections. */
body > section:not(:first-of-type) {
  padding-top: 46px !important;
  padding-bottom: 46px !important;
}

@media (min-width: 768px) {
  body > section:not(:first-of-type) {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}

@media (min-width: 1024px) {
  body > section:not(:first-of-type) {
    padding-top: 66px !important;
    padding-bottom: 66px !important;
  }
}



button {
  transition: 0.3s;
}

button:hover {
  transform: translateY(-4px);
}

.phone-slider {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-slider {
  overflow: hidden;
  width: 100%;
}

.project-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: moveCards 80s linear infinite;
}

.project-card {
  width: 380px;
  height: 720px;
  background: #ececf4;
  border-radius: 18px;
  padding: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card h3 {
  font-size: 38px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card p {
  text-align: center;
  color: #9a9aab;
  font-size: 16px;
  line-height: 1.8;
}

.phone {
  width: 220px;
  height: 340px;
  margin-top: 30px;
  margin-bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone img {
  margin-top: 50px;
  width: 120%;
  height: auto;
  object-fit: contain;
}

.project-card button {
  width: 180px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b62eff, #5a73ff);
  color: white;
  font-weight: 600;
}

@keyframes moveCards {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.project-slider:hover .project-track {
  animation-play-state: paused;
}

@media (min-width: 1024px) {
  .project-card h3 {
    width: 100%;
    min-height: 38px;
    font-size: clamp(20px, 1.75vw, 28px);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .project-card p {
    width: 100%;
    min-height: 43px;
    margin-top: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .project-card .phone {
    width: 260px;
    height: 410px;
    margin: 18px 0;
    flex-shrink: 0;
  }

  .project-card .phone img {
    width: auto;
    max-width: 120%;
    max-height: 100%;
    margin-top: 0;
  }

  .project-card button {
    margin-top: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 1023px) {
  .project-card { width: 320px; height: 650px; padding: 30px; }
  .project-card h3 { font-size: 34px; }
  .phone { width: 190px; height: 300px; margin-bottom: 60px; }
}

@media (max-width: 767px) {
  .prev,
  .next { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
  .faq-btn { align-items: flex-start; }
  .faq-icon { width: 34px; height: 34px; min-width: 34px; min-height: 34px; flex-shrink: 0; }
  .project-track { gap: 18px; }
  .project-card { width: min(280px, calc(100vw - 40px)); height: 560px; padding: 24px; overflow: hidden; }
  .project-card h3 {
    width: 100%;
    min-height: 31px;
    font-size: clamp(17px, 6vw, 24px);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  .project-card p {
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .phone { width: 190px; height: 300px; margin: 12px 0 6px; flex-shrink: 0; }
  .phone img { width: auto; max-width: 120%; max-height: 100%; margin-top: 0; }
  .project-card button { margin-top: auto; flex-shrink: 0; }
}

@media (max-width: 374px) {
  .project-card { width: min(252px, calc(100vw - 32px)); height: 530px; padding: 22px; }
  .project-card h3 { font-size: clamp(15px, 5.2vw, 19px); }
  .phone { width: 165px; height: 260px; }
}

@media (min-width: 1024px) {
  .feature-card {
    position: relative;
    border-right: 0 !important;
  }

  .feature-card::after {
    content: "";
    position: absolute;
    top: 28px;
    right: 0;
    bottom: 28px;
    width: 1px;
    background: #7047a8;
  }
}
/* Contact rows: keep mail, phone, and location icons in one vertical column */
div:has(> div > .contact-icon) {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

div:has(> .contact-icon) {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left;
}

.contact-icon {
  width: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;
  margin-top: 2px;
}

.contact-icon + span {
  display: inline-block;
  text-align: left;
  line-height: 1.35;
}

@media (min-width: 1024px) {
  div:has(> div > .contact-icon) {
    margin-left: 0;
    margin-right: 0;
  }
}
