/* CONTACT PAGE – matches your soft, bubbly NIL-STEM vibe */

@keyframes floatAroundA {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(24px, -16px); }
  50%  { transform: translate(0, -28px); }
  75%  { transform: translate(-20px, -8px); }
  100% { transform: translate(0, 0); }
}

@keyframes floatAroundB {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-18px, 20px); }
  50%  { transform: translate(10px, 30px); }
  75%  { transform: translate(26px, 6px); }
  100% { transform: translate(0, 0); }
}

@keyframes underlineSweep {
  0%   { transform: scaleX(0); opacity: 0; }
  30%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page::before,
  .contact-page::after {
    animation: none;
  }
  .contact-hero h1::before,
  .contact-hero h1::after,
  .contact-card h2::before,
  .contact-card h2::after {
    animation: none;
  }
}

/* Main wrapper – sits on your global gradient */
.contact-page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) 8vw clamp(96px, 12vh, 140px);
  font-family: "Nunito Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #132042;
  background: transparent;
  overflow: visible;
}

/* Background bubbles for contact page */
.contact-page::before,
.contact-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  transform-origin: center;
}

.contact-page::before {
  width: 220px;
  height: 220px;
  top: -60px;
  left: -40px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 30px rgba(13, 38, 76, 0.2);
  animation: floatAroundA 24s ease-in-out infinite alternate;
}

.contact-page::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  right: -40px;
  background: rgba(48, 91, 179, 0.9);
  box-shadow: 0 22px 36px rgba(13, 38, 76, 0.3);
  animation: floatAroundB 30s ease-in-out infinite alternate;
}

/* Keep actual content above bubbles */
.contact-page > * {
  position: relative;
  z-index: 1;
}

/* Hero / intro text */
.contact-hero {
  text-align: left;
  max-width: 720px;
  margin-bottom: 40px;
}

.contact-hero h1 {
  font-size: clamp(32px, 5.5vw, 46px);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
}

.contact-hero p {
  font-size: 16px;
  line-height: 1.6;
}

/* Heading flourishes */
.contact-hero h1::after,
.contact-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #ffffff 0%, #7096D1 35%, #305bb3 100%);
  border-radius: 999px;
  transform-origin: left center;
  animation: underlineSweep 4.5s ease-in-out infinite;
}

/* Grid of cards */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 28px);
  margin-top: 32px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(13, 38, 76, 0.15);
  padding: 24px 22px 26px;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-card h2 {
  font-size: 22px;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Primary card spans full height on left for balance */
.contact-card--primary {
  grid-row: span 2;
}

/* Email / contact items */
.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.contact-item i {
  font-size: 18px;
  margin-top: 2px;
  color: #305bb3;
}

.contact-item .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(19, 32, 66, 0.7);
}

.contact-item a {
  display: block;
  font-size: 15px;
  color: #132042;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Social list */
.contact-card--social {
  background: rgba(208, 227, 255, 0.98);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list li + li {
  margin-top: 10px;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #132042;
  text-decoration: none;
}

.social-list a i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 10px rgba(13, 38, 76, 0.18);
  color: #305bb3;
}

.social-list a:hover span {
  text-decoration: underline;
}

/* Little “graphic” card */
.contact-card--graphic {
  background: rgba(255, 255, 255, 0.9);
}

.graphic-inner {
  position: relative;
  padding-top: 8px;
}

.contact-card--graphic h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card--graphic p {
  margin-bottom: 18px;
}

/* Decorative dots row (simple graphic) */
.dot-row {
  display: flex;
  gap: 10px;
}

.dot-row span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7096D1;
  box-shadow: 0 4px 8px rgba(13, 38, 76, 0.2);
}

.dot-row span:nth-child(2) {
  background: #d0e3ff;
}

.dot-row span:nth-child(3) {
  background: #305bb3;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card--primary {
    grid-row: auto;
  }
}