/* ===================================================================
   NAMRATA SHARMA — CV PORTFOLIO
   File: contact.css  (Contact Page)
   Theme: Aurora Violet — Indigo, Purple, Green Aurora & Gold Accents
   =================================================================== */

:root {
  --bg:      #06030f;
  --panel:   rgba(18,12,36,.72);
  --violet:  #7c3aed;
  --aurora1: #6d28d9;
  --aurora2: #0ea5e9;
  --aurora3: #10b981;
  --gold:    #d4af37;
  --ivory:   #f1ecf8;
  --muted:   #8b82a8;
  --ink:     #040210;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: 'Outfit', sans-serif; font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Aurora bg ---- */
.aurora {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.aurora-band {
  position: absolute; left: -20%; right: -20%; height: 40%;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .18;
  mix-blend-mode: screen;
  animation: aurShift 18s ease-in-out infinite;
}
.band-1 { top: -10%; background: var(--aurora1); animation-delay: 0s; }
.band-2 { top: 20%; background: var(--aurora2); animation-delay: 6s; animation-duration: 22s; }
.band-3 { top: 50%; background: var(--aurora3); animation-delay: 3s; animation-duration: 15s; }
.aurora-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(124,58,237,.12), transparent 60%);
}
@keyframes aurShift {
  0%,100% { transform: translateX(0) scaleY(1); opacity: .18; }
  50%      { transform: translateX(5%) scaleY(1.15); opacity: .28; }
}

/* ---- Grid overlay ---- */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- Pill nav ---- */
.pill-nav {
  position: fixed; top: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; gap: .4rem;
  background: rgba(6,3,15,.7);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 40px;
  padding: .4rem .5rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none; color: var(--muted);
  font-size: .72rem; letter-spacing: .03em;
  padding: .5rem .9rem; border-radius: 30px;
  transition: background .3s, color .3s;
}
.pill:hover { background: rgba(124,58,237,.18); color: var(--ivory); }
.pill-active { background: var(--gold); color: var(--ink) !important; font-weight: 600; }

/* ---- Main layout ---- */
.contact-main {
  position: relative; z-index: 5;
  max-width: 1100px; margin: 0 auto;
  padding: clamp(5rem,12vw,8rem) 6vw 4rem;
}

/* ---- Hero ---- */
.contact-hero {
  text-align: center;
  margin-bottom: clamp(3rem,6vw,5rem);
}
.eyebrow {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .8rem;
}
.contact-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem,6vw,4.5rem);
  font-weight: 400;
  margin: 0 0 1rem; line-height: 1.1;
  color: var(--ivory);
}
.contact-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--aurora2), var(--aurora3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sub {
  max-width: 560px; margin: 0 auto; color: var(--muted);
  font-size: 1rem; line-height: 1.7;
}

/* ---- Contact grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 2.4rem;
}

/* ---- Info panel ---- */
.info-panel {
  display: flex; flex-direction: column; gap: 1rem;
}
.info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--panel);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s;
}
.info-card:hover { border-color: rgba(124,58,237,.6); transform: translateX(4px); }
.info-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(124,58,237,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--aurora2);
  flex-shrink: 0;
}
.info-body { display: flex; flex-direction: column; gap: .15rem; }
.info-label { margin: 0; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-value { margin: 0; font-size: .9rem; color: var(--ivory); font-weight: 400; }
a.info-value { color: var(--aurora2); text-decoration: none; }
a.info-value:hover { text-decoration: underline; }

/* ---- Tag cloud ---- */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 1rem 0 .5rem;
}
.tag {
  padding: .35rem .8rem;
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,.4);
  font-size: .72rem; letter-spacing: .04em;
  color: var(--muted);
  transition: all .3s;
}
.tag:hover { background: rgba(124,58,237,.2); color: var(--ivory); border-color: rgba(124,58,237,.7); }

/* ---- Form panel ---- */
.form-panel {
  background: var(--panel);
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 16px;
  padding: clamp(1.6rem,3vw,2.6rem);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.form-panel h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--ivory);
  margin: 0 0 1.8rem;
  border-bottom: 1px solid rgba(124,58,237,.2);
  padding-bottom: 1rem;
}

.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap i {
  position: absolute; left: .9rem;
  color: var(--muted); font-size: .85rem; pointer-events: none;
}
.input-wrap input,
.input-wrap textarea {
  width: 100%; padding: .85rem .9rem .85rem 2.4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 8px;
  color: var(--ivory);
  font-family: 'Outfit', sans-serif;
  font-size: .95rem; font-weight: 300;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  resize: none;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: rgba(139,130,168,.5); }
.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--aurora2);
  background: rgba(14,165,233,.06);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.textarea-wrap { align-items: flex-start; }
.textarea-wrap i { top: .9rem; }

.btn-submit {
  width: 100%; padding: 1rem;
  background: linear-gradient(135deg, var(--violet), var(--aurora2));
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; letter-spacing: .04em;
  transition: opacity .3s, transform .3s, box-shadow .3s;
  margin-top: .4rem;
}
.btn-submit:hover { opacity: .92; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124,58,237,.4); }

.form-note {
  margin: .8rem 0 0;
  text-align: center;
  font-size: .72rem; color: rgba(139,130,168,.6);
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}

/* ---- Success state ---- */
.form-success {
  text-align: center; padding: 3rem 1rem;
}
.success-icon { font-size: 3rem; color: var(--aurora3); margin-bottom: 1rem; }
.form-success h3 { font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400; margin: 0 0 .6rem; }
.form-success p  { color: var(--muted); margin: 0 0 1.8rem; }
.btn-back {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; padding: .8rem 1.8rem;
  background: var(--gold); color: var(--ink);
  border-radius: 6px; font-weight: 600; font-size: .9rem;
  transition: background .3s;
}
.btn-back:hover { background: #f2dfa0; }

/* ---- Footer ---- */
.contact-footer {
  position: relative; z-index: 5;
  text-align: center; padding: 2rem 6vw;
  border-top: 1px solid rgba(124,58,237,.15);
  color: var(--muted); font-size: .78rem;
}
.contact-footer a { color: var(--muted); text-decoration: none; margin: 0 .2rem; }
.contact-footer a:hover { color: var(--aurora2); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .field-group  { grid-template-columns: 1fr; }
  .pill-nav .pill span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-band { animation: none; }
}
