.contact-section {
  position: relative;
  width: 100%;
  padding: 90px 8% 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 35, 127, 0.18), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(21, 155, 222, 0.14), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(184, 59, 247, 0.1), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #fbf7ff 46%, #f7fcff 100%);
  color: #000000;
  font-family: "Roboto", Arial, sans-serif;
  box-sizing: border-box;
  isolation: isolate;
}

.contact-section *,
.contact-section *::before,
.contact-section *::after {
  box-sizing: border-box;
}

/* Animated grid */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 35, 127, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 155, 222, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.38;
  animation: contactGridMove 18s linear infinite;
  pointer-events: none;
  z-index: -3;
}

/* Large glow */
.contact-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 35, 127, 0.18), transparent 66%);
  filter: blur(8px);
  animation: contactGlowFloat 9s ease-in-out infinite;
  pointer-events: none;
  z-index: -2;
}

@keyframes contactGridMove {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes contactGlowFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-32px, 24px) scale(1.08);
  }
}

/* Main container */
.contact-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

/* Background light beam */
.contact-container::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 120px;
  left: -230px;
  top: 80px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(99, 35, 127, 0.12),
    rgba(21, 155, 222, 0.11),
    transparent
  );
  transform: rotate(-18deg);
  filter: blur(4px);
  animation: contactBeamMove 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* Orbit ring */
.contact-container::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -180px;
  bottom: 70px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at center,
      transparent 44%,
      rgba(21, 155, 222, 0.12) 45%,
      transparent 60%
    ),
    conic-gradient(
      from 40deg,
      rgba(99, 35, 127, 0.18),
      transparent 28%,
      rgba(21, 155, 222, 0.18),
      transparent 58%,
      rgba(99, 35, 127, 0.12),
      transparent
    );
  mask: radial-gradient(circle, transparent 48%, #000 49%);
  -webkit-mask: radial-gradient(circle, transparent 48%, #000 49%);
  animation: contactOrbitReverse 18s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes contactBeamMove {
  0%,
  100% {
    transform: translateX(0) rotate(-18deg);
    opacity: 0.6;
  }

  50% {
    transform: translateX(80px) rotate(-18deg);
    opacity: 1;
  }
}

@keyframes contactOrbitReverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Main contact card */
.contact-card {
  position: relative;
  width: 100%;
  padding: 52px 48px;
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1.5px solid #000000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 34px 95px rgba(99, 35, 127, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

/* Purple backing shape */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(21, 155, 222, 0.12), transparent 28%),
    radial-gradient(circle at 48% 78%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(135deg, #63237f 0%, #7d35a1 42%, #52186b 100%);
  border-radius: 26px;
  pointer-events: none;
}

/* Top shine */
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.78) 50%,
      transparent 62%,
      transparent 100%
    );
  background-size: 240% 100%;
  background-position: -160% 0;
  opacity: 0.8;
  animation: contactCardShine 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes contactCardShine {
  0%,
  55% {
    background-position: -160% 0;
  }

  100% {
    background-position: 160% 0;
  }
}

/* Heading */
.contact-kicker {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin: 0 0 18px;
  color: #000000;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
  text-transform: none;
  font-family: "Roboto", Arial, sans-serif;
}

.contact-description {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 22px auto 40px;
  color: #111111;
  font-size: 15px;
  line-height: 1.72;
  font-weight: 400;
}

/* Single container for both persons */
.contact-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 30px 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #000000;
  box-shadow:
    0 24px 65px rgba(28, 4, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

/* Graphic inside single container */
.contact-row::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: rgba(99, 35, 127, 0.08);
  pointer-events: none;
}

.contact-row::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 20px;
  width: 100px;
  height: 42px;
  border-left: 2px solid rgba(99, 35, 127, 0.16);
  border-bottom: 2px solid rgba(21, 155, 222, 0.16);
  border-radius: 0 0 0 18px;
  pointer-events: none;
}

.contact-person {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 12px 30px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.35s ease;
}

.contact-person::before,
.contact-person::after {
  display: none;
}

.contact-person:hover {
  transform: translateY(-4px);
}

.contact-person h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.contact-person a {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px auto;
  padding: 9px 14px;
  color: #111111;
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.3;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(99, 35, 127, 0.06);
  border: 1px solid #000000;
  transition: 0.3s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-person a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #63237f, #159bde);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(99, 35, 127, 0.2);
}

/* Center divider */
.contact-divider {
  position: relative;
  width: 1px;
  min-height: 140px;
  align-self: center;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(99, 35, 127, 0.48),
    rgba(21, 155, 222, 0.42),
    transparent
  );
}

.contact-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 3px solid #63237f;
  box-shadow: 0 0 0 8px rgba(99, 35, 127, 0.08);
  animation: dividerPulse 2.5s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 0.7;
  }
}

/* Bottom area */
.contact-bottom {
  position: relative;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(99, 35, 127, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social a {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080707;
  font-size: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #000000;
  box-shadow: 0 14px 32px rgba(99, 35, 127, 0.11);
  transition: 0.35s ease;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #63237f, #159bde);
  opacity: 0;
  transition: 0.35s ease;
}

.footer-social a i {
  position: relative;
  z-index: 2;
}

.footer-social a:hover {
  transform: translateY(-7px) rotate(4deg);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(99, 35, 127, 0.26);
}

.footer-social a:hover::before {
  opacity: 1;
}

.contact-bottom p {
  margin: 0;
  color: rgba(10, 8, 8, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* Tablet */
@media (max-width: 900px) {
  .contact-section {
    padding: 76px 5% 30px;
  }

  .contact-container {
    max-width: 100%;
  }

  .contact-container::before,
  .contact-container::after {
    display: none;
  }

  .contact-card {
    padding: 44px 34px;
    border-radius: 32px;
  }

  .contact-description {
    margin-bottom: 36px;
  }

  .contact-row {
    padding: 28px 24px;
  }

  .contact-person {
    padding: 12px 22px;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 17px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-section {
    padding: 65px 20px 26px;
  }

  .contact-section::after {
    width: 320px;
    height: 320px;
    right: -150px;
    top: 8%;
  }

  .contact-card {
    padding: 38px 24px;
    border-radius: 28px;
  }

  .contact-card::before {
    inset: 12px;
    border-radius: 24px;
  }

  .contact-kicker {
    font-size: 28px;
  }

  .contact-description {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 30px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .contact-person {
    padding: 20px 10px;
  }

  .contact-person:hover {
    transform: none;
  }

  .contact-person h3 {
    font-size: 23px;
  }

  .contact-person a {
    font-size: 14px;
  }

  .contact-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
    margin: 4px 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(99, 35, 127, 0.48),
      rgba(21, 155, 222, 0.42),
      transparent
    );
  }

  .contact-divider::before {
    left: 50%;
    top: 50%;
  }

  .contact-bottom {
    margin-top: 36px;
    padding-top: 24px;
    gap: 18px;
  }

  .footer-social {
    gap: 10px;
  }

  .footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 16px;
  }

  .footer-social a:hover {
    transform: translateY(-4px);
  }

  .contact-bottom p {
    font-size: 13px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .contact-section {
    padding: 58px 14px 24px;
  }

  .contact-card {
    padding: 32px 18px;
    border-radius: 24px;
  }

  .contact-kicker {
    font-size: 24px;
  }

  .contact-description {
    font-size: 13.5px;
  }

  .contact-row {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .contact-person {
    padding: 18px 4px;
  }

  .contact-person h3 {
    font-size: 21px;
  }

  .contact-person a {
    width: 100%;
    font-size: 13.5px;
    padding: 9px 10px;
  }

  .footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 15px;
  }

  .contact-bottom p {
    font-size: 12.5px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .contact-section {
    padding: 52px 12px 22px;
  }

  .contact-card {
    padding: 28px 14px;
  }

  .contact-kicker {
    font-size: 22px;
  }

  .contact-row {
    padding: 18px 12px;
  }

  .footer-social {
    gap: 8px;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}