.contact {
  padding: 8rem 2rem;
  background-color: #0f0f0f;
  color: #f5f5f7;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
}

.contact-bg.left {
  left: -28%;
  top: -10%;
}

.contact-bg.right {
  right: -20%;
  top: -15%;
}

.contact-bg svg {
  width: 120%;
  height: 120%;
}


.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #f8fafc;
  position: relative;
}

.contact-title::after {
  content: "";
  display: none;
  width: 5ch;
  height: 2px;
  background-color: rgba(0, 145, 125, 0.685);
  margin: 0.5rem auto 2rem auto;
  border-radius: 1px;
}

.contact-intro {
  font-size: 1rem;
  line-height: 1.6;
  color: #cbd5e1;
  text-align: center;
  margin-bottom: 6rem;
}

/* Layout */
.contact-layout {
  display: flex;
  gap: 6rem;
  flex-wrap: wrap;
}

/* Left column */
.contact-left {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #555555;
}

.contact-tagline {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-note {
  font-size: 0.95rem;
}

/* Right column */
.contact-right {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Contact item */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: transform 0.4s, opacity 0.4s;
}

.contact-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10%;
  width: 2px;
  height: 80%;
  background: rgba(0, 145, 125, 0.685);
  border-radius: 2px;
}

/* Icons */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 26px;
}
.contact-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
  display: block;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* Text */
.contact-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #f8fafc;
}

.contact-text a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1;
}

.contact-text a:hover {
  color: rgba(0, 255, 221, 0.726);
}

.contact-text span {
  font-size: 0.85rem;
  color: #555555;
}

/* Slide-in animation */
.contact-item:nth-child(1) { animation: slideIn 0.5s forwards 0.2s; }
.contact-item:nth-child(2) { animation: slideIn 0.5s forwards 0.4s; }
.contact-item:nth-child(3) { animation: slideIn 0.5s forwards 0.6s; }

@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    line-height: 1.1;
  }
  .contact-intro{
    line-height: 1.1;
  }
  .contact-layout {
    flex-direction: column;
    gap: 3rem;
  }
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
  }
  .contact-text a {
    padding-bottom: 5px;;
  }
  .contact-item::before {
    display: none;
  }
  .contact-bg {
    display:none;
  }
  .contact-left {
    text-align: center;
  }
  .icon-wrapper {
    padding-left: 0px;
  }
}
