/* ==================================================================
   RESEARCHER PROFILE STYLESHEET
   Scoped entirely to .profile-* classes so it cannot affect any
   other page or component on the site. Reuses --brand-accent and
   other custom properties already defined in extra.css.
   ================================================================== */

/* ------------------------------------------------------------------
   1. HERO
   ------------------------------------------------------------------ */
.profile-hero {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.profile-photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--brand-accent);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 0 8px var(--brand-accent-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 10px var(--brand-accent-soft);
}

.profile-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.profile-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-accent);
  margin: 0 0 0.3rem;
}

.profile-subtitle {
  font-size: 0.95rem;
  color: var(--md-default-fg-color--light);
  margin: 0 0 1.25rem;
}

.profile-current-research {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 1.75rem;
}

.profile-current-research-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.25rem;
}

.profile-hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-hero-buttons .md-button {
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-hero-buttons .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-accent-soft);
}

/* ------------------------------------------------------------------
   2. RESEARCH INTEREST CHIPS
   ------------------------------------------------------------------ */
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.profile-chip:hover {
  border-color: var(--brand-accent);
  background: var(--brand-accent-soft);
  transform: translateY(-2px);
}

.profile-chip svg {
  width: 1rem;
  height: 1rem;
  fill: var(--brand-accent);
}

/* ------------------------------------------------------------------
   3. TECHNICAL EXPERTISE CARDS (Material native grid cards)
   ------------------------------------------------------------------ */
.profile-expertise-grid.grid.cards {
  margin-top: 1.5rem;
}

.profile-expertise-grid.grid.cards > ul > li,
.profile-expertise-grid.grid.cards > .grid > li {
  border-radius: 16px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-expertise-grid.grid.cards > ul > li:hover,
.profile-expertise-grid.grid.cards > .grid > li:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--brand-accent-soft);
}

.profile-expertise-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--brand-accent);
  margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------------
   4. TIMELINE (Current Position / Previous Experience)
   ------------------------------------------------------------------ */
.profile-timeline {
  position: relative;
  margin: 1.5rem 0;
  padding-left: 1.75rem;
}

.profile-timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.profile-timeline-item:last-child {
  margin-bottom: 0;
}

.profile-timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--md-default-fg-color--light);
  border: 2px solid var(--md-default-bg-color);
}

.profile-timeline-dot--active {
  background: var(--brand-accent);
  box-shadow: 0 0 0 4px var(--brand-accent-soft);
}

.profile-timeline-content {
  border-radius: 14px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.profile-timeline-content:hover {
  border-color: var(--brand-accent);
  transform: translateX(3px);
}

.profile-timeline-content p:first-child {
  margin-top: 0;
}

.profile-timeline-date {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-accent);
  font-weight: 600;
  margin: 0.2rem 0 0.6rem;
}

/* ------------------------------------------------------------------
   5. EDUCATION CARD
   ------------------------------------------------------------------ */
.profile-education-card {
  border-radius: 16px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.75rem 1.25rem;
  margin: 1.5rem 0;
  transition: border-color 0.2s ease;
}

.profile-education-card:hover {
  border-color: var(--brand-accent);
}

.profile-education-card h3 {
  margin-top: 0;
}

.profile-cgpa-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.profile-cgpa-stat {
  flex: 1;
  min-width: 8rem;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: var(--brand-accent-soft);
}

.profile-cgpa-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.profile-cgpa-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-default-fg-color--light);
  margin-top: 0.25rem;
}

/* ------------------------------------------------------------------
   6. PUBLICATION CARDS (Material native grid cards)
   ------------------------------------------------------------------ */
.profile-publication-grid.grid.cards {
  margin-top: 1.5rem;
}

.profile-publication-grid.grid.cards > ul > li,
.profile-publication-grid.grid.cards > .grid > li {
  border-radius: 16px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.profile-publication-grid.grid.cards > ul > li:hover,
.profile-publication-grid.grid.cards > .grid > li:hover {
  transform: translateY(-6px);
  border-color: var(--brand-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--brand-accent-soft);
}

.profile-publication-grid.grid.cards > ul > li .md-button,
.profile-publication-grid.grid.cards > .grid > li .md-button {
  margin-top: 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

/* ------------------------------------------------------------------
   7. SKILL BADGES
   ------------------------------------------------------------------ */
.profile-skills-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--md-default-fg-color--light);
  margin: 1.5rem 0 0.6rem;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--md-code-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--md-default-fg-color);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-badge:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   8. LANGUAGE PROFICIENCY
   ------------------------------------------------------------------ */
.profile-languages {
  margin: 1.5rem 0;
}

.profile-lang-item {
  display: grid;
  grid-template-columns: 6rem 1fr 8rem;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.profile-lang-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-lang-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.profile-lang-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-accent);
}

.profile-lang-fill--native {
  width: 100%;
}

.profile-lang-fill--fluent {
  width: 88%;
}

.profile-lang-fill--beginner {
  width: 32%;
  background: #8FBCBB;
}

.profile-lang-level {
  font-size: 0.78rem;
  color: var(--md-default-fg-color--light);
  text-align: right;
}

/* ------------------------------------------------------------------
   9. CONTACT CARD
   ------------------------------------------------------------------ */
.profile-contact-card {
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--md-code-bg-color) 0%, var(--brand-accent-soft) 220%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem;
  margin: 1.5rem 0;
}

.profile-contact-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
}

.profile-contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-contact-buttons .md-button {
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-contact-buttons .md-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--brand-accent-soft);
}

/* ------------------------------------------------------------------
   10. PAGE FOOTER NOTE
   ------------------------------------------------------------------ */
.profile-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ------------------------------------------------------------------
   11. RESPONSIVE ADJUSTMENTS
   ------------------------------------------------------------------ */
@media screen and (max-width: 44.9375em) {
  .profile-photo {
    width: 8.5rem;
    height: 8.5rem;
  }

  .profile-hero-buttons,
  .profile-contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-cgpa-grid {
    flex-direction: column;
  }

  .profile-lang-item {
    grid-template-columns: 5rem 1fr;
    grid-template-rows: auto auto;
  }

  .profile-lang-level {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 30em) {
  .profile-hero {
    padding: 2rem 1rem 1.5rem;
  }
}
