/* ============================================================
   Dr. Ekta Shah — Space Theme CSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #06070f;
  --bg-card:     rgba(13, 14, 28, 0.90);
  --border:      rgba(55, 60, 110, 0.55);
  --border-light:rgba(55, 60, 110, 0.30);
  --text:        #e8eaf6;
  --text-muted:  #7b82b0;
  --text-dim:    #4a5080;
  --purple:      #8b7cf8;
  --teal:        #38d9c0;
  --pink:        #d07cf8;
  --glow-purple: rgba(139, 124, 248, 0.35);
  --glow-teal:   rgba(56, 217, 192, 0.20);
  --radius:      16px;
  --font:        'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ===== STAR FIELD CANVAS ===== */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== LAYOUT ===== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 680px; }

.section { padding: 72px 0; }
.section.section-sm { padding: 20px 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-nebula {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(80, 60, 200, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* ===== PHOTO ===== */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 {
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  border: 1px solid rgba(139, 124, 248, 0.22);
}
.ring-2 {
  width: calc(100% + 72px);
  height: calc(100% + 72px);
  border: 1px dashed rgba(56, 217, 192, 0.12);
}

.photo-frame {
  width: clamp(200px, 28vw, 300px);
  height: clamp(200px, 28vw, 300px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(139, 124, 248, 0.55);
  background: #0a0b1a;
  box-shadow: 0 0 50px rgba(139, 124, 248, 0.25), 0 0 100px rgba(139, 124, 248, 0.10);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.photo-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(139, 124, 248, 0.12);
  border: 1px solid rgba(139, 124, 248, 0.38);
  color: rgba(200, 190, 255, 0.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ===== HERO TEXT ===== */
.hero-text {
  flex: 1;
  min-width: 280px;
  max-width: 560px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #c8c0ff 0%, #38d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(220, 225, 255, 0.80);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== DIVIDER ===== */
.divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 2px;
  margin-bottom: 28px;
  opacity: 0.6;
}
.divider.center { margin: 0 auto 32px; }

/* ===== PILLS ===== */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 18, 42, 0.85);
  border: 1px solid var(--border);
  color: rgba(210, 215, 255, 0.85);
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6c5ce7, #38d9c0);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(108, 92, 231, 0.40);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 0 40px rgba(108, 92, 231, 0.55); }
.btn-primary.full { width: 100%; justify-content: center; font-size: 16px; padding: 15px 32px; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(180, 170, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 248, 0.45);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 16px;
}
.btn-outline:hover { background: rgba(139, 124, 248, 0.10); border-color: rgba(139, 124, 248, 0.70); }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-purple { background: rgba(139, 124, 248, 0.14); border: 1px solid rgba(139, 124, 248, 0.38); color: var(--purple); }
.icon-teal   { background: rgba(56, 217, 192, 0.12); border: 1px solid rgba(56, 217, 192, 0.35); color: var(--teal); }
.icon-pink   { background: rgba(208, 124, 248, 0.12); border: 1px solid rgba(208, 124, 248, 0.35); color: var(--pink); }

.card-title        { font-size: 15px; font-weight: 700; color: rgba(210, 200, 255, 0.95); }
.card-title.teal   { color: rgba(160, 240, 230, 0.95); }
.card-title.pink   { color: rgba(230, 190, 255, 0.95); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: rgba(210, 205, 255, 0.95);
  margin-bottom: 20px;
}
.section-title.gradient-text {
  background: linear-gradient(135deg, #c8c0ff 0%, #38d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BODY TEXT ===== */
.body-text {
  font-size: 16px;
  color: rgba(185, 190, 230, 0.82);
  line-height: 1.75;
  margin-bottom: 18px;
}
.body-text.sm   { font-size: 14px; }
.body-text.muted { color: var(--text-dim); }
.body-text:last-child { margin-bottom: 0; }
.max-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 20px; }

.highlight { color: rgba(200, 190, 255, 0.95); font-weight: 600; }
.text-center { text-align: center; }

/* ===== DEGREE LIST ===== */
.degree-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.degree-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(55, 60, 110, 0.30);
}
.degree-list li:last-child { border-bottom: none; }
.degree-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
  margin-top: 6px;
}
.degree-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(220, 220, 255, 0.92);
  margin-bottom: 3px;
}
.degree-list span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== PUBLICATIONS ===== */
.publications-section { padding: 72px 0; }

.pub-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(139, 124, 248, 0.12);
  border: 1px solid rgba(139, 124, 248, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--purple);
}

.pub-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ===== CONTACT SECTION ===== */
.contact-section { padding: 80px 0; }

.section-header { margin-bottom: 40px; }
.section-header .body-text { max-width: 520px; margin: 0 auto; }

/* ===== FORM ===== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(180, 185, 230, 0.90);
}
.req { color: #e07070; }

.field input,
.field textarea {
  background: rgba(10, 11, 26, 0.80);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: rgba(240, 242, 255, 0.95);
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  border-color: rgba(139, 124, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 124, 248, 0.12);
}
.field input.error,
.field textarea.error,
.select-wrap select.error {
  border-color: rgba(224, 100, 100, 0.65);
}
.field textarea { resize: none; }

/* Select */
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(10, 11, 26, 0.80);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: rgba(240, 242, 255, 0.95);
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 40px 11px 14px;
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.select-wrap select:focus {
  border-color: rgba(139, 124, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 124, 248, 0.12);
}
.select-wrap select option { background: #0d0e1e; color: #e8eaf6; }
.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.field-error {
  font-size: 12px;
  color: #e07070;
  min-height: 16px;
}

/* ===== FORM STATES ===== */
.form-success {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  backdrop-filter: blur(16px);
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(139, 124, 248, 0.14);
  border: 2px solid rgba(139, 124, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--purple);
}
.form-success h3 { font-size: 1.4rem; font-weight: 700; color: rgba(210, 200, 255, 0.95); margin-bottom: 10px; }
.form-success p  { color: var(--text-muted); font-size: 15px; }

.form-error-msg {
  background: rgba(200, 60, 60, 0.10);
  border: 1px solid rgba(200, 60, 60, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  color: #f08080;
  font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px 40px;
}
.footer .divider { margin: 0 auto 24px; }
.footer p { font-size: 13px; color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .hero-inner { gap: 40px; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 80px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
  .pills { justify-content: center; }
  .divider { margin-left: auto; margin-right: auto; }
  .card { padding: 28px 22px; }
  .contact-form { padding: 28px 22px; }
  .section { padding: 52px 0; }
}
