/* ═══════════════════════════════════════════════
   CONTACT US PAGE - STYLES
   ═══════════════════════════════════════════════ */

/* Layout & Hero Constraints */
.nd-contact-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px; /* Offset for header */
}

/* Atmospheric Glow Background */
.nd-contact-hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--triny-glow-strong) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
  animation: pulseGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Glassmorphism Content Card */
.nd-contact-card {
  position: relative;
  z-index: 4;
  width: 90%;
  max-width: 650px;
  background: var(--nd-surface-1);
  border: 1px solid var(--nd-border);
  border-radius: 24px;
  padding: 4rem 3.5rem;
  box-shadow: 0 24px 80px var(--nd-shadow-elevated), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Icon / Graphic */
.nd-contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--triny-accent), var(--corner-accent));
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  margin-bottom: 1.5rem;
  animation: subtleFloat 4s ease-in-out infinite;
}

/* Text Elements */
.nd-contact-card__title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--nd-text);
  margin-bottom: 0.8rem;
}

.nd-contact-card__subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--nd-text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* Email Container (Glass Pill) */
.nd-email-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 500px;
  background: var(--nd-surface-2);
  border: 1px solid var(--nd-border);
  border-radius: 12px;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nd-email-container:hover {
  border-color: var(--nd-border-hover);
  background: var(--nd-surface-3);
}

.nd-email-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nd-text);
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nd-email-link:hover {
  color: var(--triny-accent);
}

/* Copy Button */
.nd-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--triny-glow);
  color: var(--triny-accent);
  border: 1px solid var(--triny-glow-strong);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nd-copy-btn:hover {
  background: var(--triny-accent);
  color: var(--nd-btn-text-on-accent);
  box-shadow: 0 4px 16px var(--triny-glow-strong);
  transform: translateY(-1px);
}

.nd-copy-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.nd-copy-icon {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.nd-copy-btn.copied {
  background: #10b981; /* Green success color */
  color: #fff;
  border-color: #10b981;
}

.nd-copy-btn.copied .nd-copy-icon {
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="20 6 9 17 4 12"></polyline></svg>');
  mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><polyline points="20 6 9 17 4 12"></polyline></svg>');
}

/* Responsive Breakpoints */
@media (max-width: 600px) {
  .nd-contact-card {
    padding: 3rem 1.5rem;
  }
  .nd-email-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .nd-email-link {
    text-align: center;
  }
  .nd-copy-btn {
    width: 100%;
  }
}
