/* Ubuntu CurioTech — Agripina profile page */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

:root {
  --ink: #1b2033;
  --muted: #657084;
  --purple: #5b35b5;
  --purple-dark: #402281;
  --purple-soft: #f0ebfc;
  --cyan: #45d5dc;
  --orange: #ff9b57;
  --line: rgba(91, 53, 181, .13);
  --shadow: 0 22px 65px rgba(39, 25, 76, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 34px 18px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(69, 213, 220, .13), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(91, 53, 181, .15), transparent 32rem),
    linear-gradient(135deg, #fcfbff 0%, #f3efff 100%);
  background-attachment: fixed;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

.profile-panel {
  position: relative;
  width: min(100%, 980px);
  margin: auto;
  padding: clamp(24px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.profile-panel::before {
  position: absolute;
  z-index: 0;
  top: -170px;
  right: -170px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 53, 181, .11), transparent 70%);
  content: "";
  pointer-events: none;
}
.profile-panel > * { position: relative; z-index: 1; }

.close-button {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-dark);
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  transition: .2s ease;
}
.close-button:hover { transform: rotate(90deg); color: #fff; background: var(--purple); }

.profile-header {
  display: flex;
  align-items: center;
  gap: clamp(22px, 5vw, 48px);
  padding: 8px 30px 34px 0;
}
.profile-image {
  width: clamp(130px, 20vw, 190px);
  height: clamp(130px, 20vw, 190px);
  flex: 0 0 auto;
  padding: 7px;
  border: 1px solid rgba(91, 53, 181, .18);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(91, 53, 181, .16), rgba(69, 213, 220, .2));
  box-shadow: 0 14px 34px rgba(55, 36, 103, .14);
}
.profile-image img {
  width: 100%; height: 100%; display: block;
  border: 4px solid #fff; border-radius: 50%; object-fit:contain; object-position: center;
}
.profile-info h1 {
  margin: 0; color: var(--ink); font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(32px, 5vw, 49px); font-weight: 800; letter-spacing: -.05em; line-height: 1.1;
}
.profile-info h2 {
  margin: 10px 0 5px; color: var(--purple); font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(17px, 2.5vw, 22px); font-weight: 700;
}
.profile-info > p { margin: 0; color: var(--muted); font-size: 15px; }
.social-links { margin-top: 19px; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--purple);
  background: #fff; text-decoration: none; transition: .2s ease;
}
.social-links a:hover { transform: translateY(-3px); color: #fff; background: var(--purple); }

.profile-nav {
  margin: 0 0 30px; padding: 8px; display: flex; flex-wrap: wrap; gap: 5px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(246, 243, 253, .8);
}
.profile-nav a {
  min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; color: #5c6476; text-decoration: none; font-size: 13px; font-weight: 700;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.profile-nav a:hover, .profile-nav a.active {
  color: var(--purple); background: #fff; box-shadow: 0 4px 14px rgba(39, 25, 76, .07);
}

.about-section, .skills-section, .project-section { margin-top: 28px; }
.about-section h3, .skills-section h3, .project-section h3 {
  margin: 0 0 12px; color: var(--purple-dark); font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 21px; font-weight: 800; letter-spacing: -.02em;
}
.about-section p, .project-info p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-section p + p { margin-top: 10px; }
.about-section, .skills-section, .project-section {
  padding: 24px 26px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(130deg, rgba(255,255,255,.9), rgba(247,244,255,.72));
}

.details-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-card {
  min-width: 0; padding: 19px 20px; display: flex; align-items: center; gap: 15px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82);
}
.detail-icon {
  width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 14px; color: var(--purple); background: var(--purple-soft); font-size: 18px;
}
.detail-card h4, .project-info h4 {
  margin: 0 0 5px; color: var(--ink); font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px; font-weight: 800;
}
.detail-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.skills { display: flex; flex-wrap: wrap; gap: 9px; }
.skills span {
  padding: 9px 14px; border: 1px solid rgba(91, 53, 181, .12); border-radius: 999px;
  color: var(--purple-dark); background: var(--purple-soft); font-size: 13px; font-weight: 700;
}
.project-card {
  padding: 19px; display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid rgba(91, 53, 181, .1); border-radius: 15px;
  background: linear-gradient(130deg, #fff, #f7f4ff);
}
.project-card-spaced { margin-top: 14px; }
.project-icon {
  width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 14px; color: #fff; background: linear-gradient(145deg, #7954d5, #4a2b91);
  box-shadow: 0 8px 18px rgba(91, 53, 181, .2);
}
.project-info h4 { margin: 1px 0 7px; font-size: 16px; }

@media (max-width: 650px) {
  body { padding: 14px 10px; }
  .profile-panel { padding: 24px 17px; border-radius: 22px; }
  .close-button { top: 13px; right: 13px; width: 36px; height: 36px; }
  .profile-header { padding: 25px 0 24px; flex-direction: column; align-items: center; gap: 17px; text-align: center; }
  .profile-info h1 { font-size: 34px; }
  .social-links { justify-content: center; }
  .profile-nav { justify-content: center; gap: 3px; }
  .profile-nav a { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .details-grid { grid-template-columns: 1fr; gap: 10px; }
  .about-section, .skills-section, .project-section { padding: 19px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Return from a member profile to the full team listing. */
.back-to-team {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin: 0 0 20px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(39, 25, 76, .06);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.back-to-team span {
  font-size: 18px;
  line-height: 1;
}
.back-to-team:hover,
.back-to-team:focus-visible {
  transform: translateX(-3px);
  color: #fff;
  background: var(--purple);
  box-shadow: 0 8px 20px rgba(91, 53, 181, .2);
}
.back-to-team:focus-visible {
  outline: 3px solid rgba(91, 53, 181, .28);
  outline-offset: 3px;
}
