/* ===== CONTACT SECTION (FULL SCREEN) ===== */
.contact-section {
  min-height: calc(var(--vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  position: relative;
  max-width: 820px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-pulse {
  position: absolute;
  inset: -40px;
  border-radius: 32px;
  background: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.08), transparent 60%), radial-gradient(circle at 100% 100%, rgba(248,250,252,0.06), transparent 60%);
  opacity: 0.9;
  filter: blur(4px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.6; }
}

.contact-core {
  position: relative;
  padding: 60px 50px;
  border-radius: 28px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(148,163,184,0.5);
  backdrop-filter: blur(26px);
  box-shadow: 0 22px 80px rgba(15,23,42,1), inset 0 0 0 1px rgba(30,64,175,0.6);
  text-align: center;
  z-index: 1;
  max-width: 600px;
}

.contact-core h2 {
  font-size: 3.2rem;
  color: #e5e7eb;
  margin-bottom: 16px;
}

.contact-core h2 span {
  background: linear-gradient(120deg, #60a5fa, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-core p {
  color: #9ca3af;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(96,165,250,0.9);
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.35), rgba(15,23,42,0.98));
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(15,23,42,0.9);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  display: block;
}

.mail-orbit {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(191,219,254,0.45), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.mail-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(15,23,42,0.9), rgba(37,99,235,0.8));
  font-size: 1rem;
  font-weight: bold;
}

.mail-text {
  font-size: 0.95rem;
}

.contact-mail:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(15,23,42,1), 0 0 36px rgba(56,189,248,0.5);
  border-color: rgba(125,211,252,1);
}

.btn-contact-launch {
  padding: 18px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  box-shadow: 0 20px 60px rgba(34,197,94,0.4);
  transition: all 0.3s ease;
}

.btn-contact-launch:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(34,197,94,0.6);
}

.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #6c63ff; /* accent color */
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease, transform 0.2s ease;
}

/* underline animation */
.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6c63ff, #9f9cff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.contact-email:hover {
  color: #4b44d4;
  transform: translateY(-1px);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* click feedback */
.contact-email:active {
  transform: scale(0.97);
}



.contact-email-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* Email text */
.contact-email {
  color: #60a5fa;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Tooltip */
.copy-tooltip {
  margin-top: 6px; 
  position: absolute;
  top: 150%;              /* ⬇️ below the email */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);

  padding: 6px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);

  border-radius: 10px;
  border: 1px solid rgba(96,165,250,0.35);

  box-shadow:
    0 0 20px rgba(96,165,250,0.25),
    inset 0 0 12px rgba(96,165,250,0.15);

  opacity: 0;
  pointer-events: none;
  white-space: nowrap;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}



/* Tooltip arrow */

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;          /* arrow above tooltip */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);

  width: 8px;
  height: 8px;
  background: inherit;

  border-left: 1px solid rgba(96,165,250,0.35);
  border-top: 1px solid rgba(96,165,250,0.35);
}


/* Hover reveal */
.contact-email-wrapper:hover .copy-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-tooltip.copied {
  color: #22c55e;
  border-color: rgba(34,197,94,0.6);
  animation: neuralPulse 1.2s ease-in-out infinite;
}



@keyframes neuralPulse {
  0% {
    box-shadow:
      0 0 12px rgba(96,165,250,0.4),
      0 0 24px rgba(96,165,250,0.2),
      inset 0 0 10px rgba(96,165,250,0.2);
  }
  50% {
    box-shadow:
      0 0 24px rgba(96,165,250,0.9),
      0 0 48px rgba(96,165,250,0.6),
      inset 0 0 16px rgba(96,165,250,0.35);
  }
  100% {
    box-shadow:
      0 0 12px rgba(96,165,250,0.4),
      0 0 24px rgba(96,165,250,0.2),
      inset 0 0 10px rgba(96,165,250,0.2);
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {

  .contact-core {
    padding: 40px 30px;
    margin: 0 20px;
  }
  .contact-core h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  .contact-core h2 { font-size: 2rem; }
}

