/* =========================
   CONNECT SECTION
========================= */
.connect {
  --connect-ink: #123247;
  --connect-muted: #486274;
  --connect-brand: #398fba;
  --connect-accent: #ff6c63;
  --connect-surface: rgba(255, 255, 255, 0.78);
  --connect-border: rgba(255, 255, 255, 0.42);
  --connect-shadow: 0 20px 48px rgba(15, 23, 32, 0.10);
  --connect-shadow-lg: 0 28px 60px rgba(15, 23, 32, 0.14);

  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 5%);
  background:
    radial-gradient(circle at 14% 20%, rgba(57, 143, 186, 0.16), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(255, 108, 99, 0.14), transparent 24%),
    linear-gradient(270deg, rgba(57, 143, 186, 0.10) 20.37%, rgba(255, 108, 99, 0.10) 57.73%);
}

.connect::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05) 0 18px,
      rgba(255, 255, 255, 0) 18px 48px
    );
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.connect::after {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.26), transparent 22%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: connectGlowShift 16s ease-in-out infinite alternate;
}

.connect-rail {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}

/* =========================
   TEXT PANEL
========================= */
.connect .content-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: 26px;
  background: var(--connect-surface);
  border: 1px solid var(--connect-border);
  box-shadow: var(--connect-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.connect .content-text::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.08)
  );
  pointer-events: none;
}

.connect .content-text > * {
  position: relative;
  z-index: 1;
}

.connect .content-text p {
  margin: 0;
  color: var(--connect-ink);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.85;
  font-weight: 400;
  max-width: 58ch;
  text-wrap: pretty;
}

.connect .content-text p:first-child {
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.78;
  font-weight: 600;
  color: #14384f;
}

/* =========================
   BUTTON
========================= */
.contact-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 6px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--connect-brand);
  color: #ffffff;
  border: 2px solid var(--connect-brand);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(57, 143, 186, 0.24);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

.contact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
  z-index: 0;
}

.contact-button .label {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .contact-button:hover {
    transform: translateY(-3px);
    color: var(--connect-brand);
    box-shadow: 0 18px 30px rgba(57, 143, 186, 0.20);
  }

  .contact-button:hover::before {
    transform: scaleX(1);
  }
}

/* =========================
   ART PANEL
========================= */
.connect-art {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--connect-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
}

.connect-art::before {
  content: "";
  position: absolute;
  inset: 10% 12%;
  background:
    radial-gradient(circle at 50% 50%, rgba(57, 143, 186, 0.18), transparent 48%),
    radial-gradient(circle at 70% 38%, rgba(255, 108, 99, 0.14), transparent 40%);
  filter: blur(18px);
  z-index: 0;
  animation: connectOrbFloat 7s ease-in-out infinite alternate;
}

.connect-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 18%,
    rgba(255, 255, 255, 0.34) 42%,
    transparent 66%
  );
  transform: translateX(-130%);
  z-index: 2;
  pointer-events: none;
  animation: connectShine 8s ease-in-out infinite;
}

.connect-art img {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 32, 0.12));
  transform-origin: center;
  animation: connectFloat 6.5s ease-in-out infinite;
  transition: transform 0.35s ease, filter 0.35s ease;
}

@media (hover: hover) {
  .connect-art:hover {
    box-shadow: var(--connect-shadow-lg);
  }

  .connect-art:hover img {
    transform: translateY(-8px) scale(1.02) rotate(-1deg);
    filter: drop-shadow(0 24px 38px rgba(15, 23, 32, 0.16));
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 960px) {
  .connect-rail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .connect .content-text,
  .connect-art {
    border-radius: 24px;
  }

  .connect-art {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .connect {
    padding: 44px 16px 56px;
  }

  .connect .content-text {
    padding: 20px 18px;
    gap: 14px;
    border-radius: 20px;
  }

  .connect .content-text p {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .connect .content-text p:first-child {
    font-size: 1.05rem;
  }

  .contact-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 12px;
  }

  .connect-art {
    padding: 18px;
    border-radius: 22px;
  }

  .connect-art img {
    width: min(420px, 100%);
  }
}

/* =========================
   MOTION
========================= */
@keyframes connectFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes connectOrbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -8px, 0) scale(1.04);
  }
}

@keyframes connectGlowShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes connectShine {
  0%, 72% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect::after,
  .connect-art::before,
  .connect-art::after,
  .connect-art img,
  .contact-button,
  .contact-button::before {
    animation: none !important;
    transition: none !important;
  }
}