
/* =========================================
   TEAM INFORMATION PORTAL
   Premium Dark SaaS Design System
========================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =========================================
   DESIGN TOKENS
========================================= */

:root {
  color-scheme: dark;

  --bg: #0a0911;
  --bg-soft: #0e0c17;

  --surface: rgba(22, 19, 33, 0.78);
  --surface-hover: rgba(32, 26, 47, 0.9);

  --border: rgba(184, 153, 255, 0.13);
  --border-hover: rgba(184, 153, 255, 0.3);

  --text: #f5f2fc;
  --text-secondary: #b0a9c0;
  --muted: #777185;

  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-dark: #7c3aed;

  --gradient: linear-gradient(
    120deg,
    #c4b5fd 0%,
    #a78bfa 45%,
    #8b5cf6 100%
  );

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --container: 820px;
}

/* =========================================
   RESET
========================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      ellipse at 50% -15%,
      rgba(111, 65, 190, 0.19),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 100% 70%,
      rgba(83, 44, 139, 0.08),
      transparent 40%
    ),
    var(--bg);

  color: var(--text);

  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

/* =========================================
   GLOBAL ELEMENTS
========================================= */

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

::selection {
  background: rgba(167, 139, 250, 0.3);
  color: white;
}

.container {
  width: min(90%, var(--container));

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  margin: 0 auto;
  padding: 48px 0 60px;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -2px;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  color: var(--text-secondary);
}

.muted {
  color: var(--muted);
}

/* =========================================
   EYEBROW / LABELS
========================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  color: var(--primary-light);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: var(--primary);

  box-shadow: 0 0 12px rgba(167, 139, 250, 0.9);
}

/* =========================================
   BUTTONS
========================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 12px 21px;

  border: 1px solid rgba(196, 181, 253, 0.25);
  border-radius: var(--radius-sm);

  background: linear-gradient(
    135deg,
    #b7a0ff,
    #8b5cf6
  );

  color: #100b1c;

  font-size: 0.9rem;
  font-weight: 700;

  box-shadow:
    0 5px 25px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.3);

  transition: 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 9px 35px rgba(124, 58, 237, 0.3);
}

.button.secondary {
  background: rgba(167, 139, 250, 0.07);

  border: 1px solid var(--border);
  color: var(--primary-light);

  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--border-hover);
}

/* =========================================
   BACK NAVIGATION
========================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;

  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary-light);
}

/* =========================================
   PROFILE CARD
========================================= */

.profile-card {
  position: relative;
  overflow: hidden;

  width: 100%;

  margin-top: 30px;
  padding: clamp(25px, 6vw, 48px);

  background:
    linear-gradient(
      145deg,
      rgba(31, 25, 46, 0.94),
      rgba(16, 14, 25, 0.96)
    );

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.035);
}

.profile-card::before {
  content: "";

  position: absolute;

  top: -150px;
  right: -100px;

  width: 300px;
  height: 300px;

  border-radius: 50%;

  background: rgba(139, 92, 246, 0.15);
  filter: blur(90px);

  pointer-events: none;
}

.profile-card > * {
  position: relative;
}

/* =========================================
   PROFILE IDENTITY
========================================= */

.profile-header {
  display: flex;
  align-items: center;
  gap: 25px;

  margin-top: 28px;
}

.profile-identity {
  min-width: 0;
  flex: 1;
}

.profile-avatar {
  width: 112px;
  height: 112px;

  flex-shrink: 0;
  object-fit: cover;

  border-radius: 22px;
  border: 1px solid var(--border-hover);

  background: var(--surface);

  box-shadow:
    0 10px 35px rgba(124, 58, 237, 0.18);
}

/* =========================================
   MEMBER ID
========================================= */

.member-id {
  display: inline-flex;
  align-items: center;

  margin: 0 0 13px;
  padding: 5px 11px;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: rgba(167, 139, 250, 0.06);

  color: var(--primary-light);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.3px;
}

/* =========================================
   MEMBER NAME
========================================= */

.profile-card h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -1.7px;

  overflow-wrap: anywhere;
}

.nickname {
  font-size: 1.5rem;
  font-weight: 400;

  color: var(--text-secondary);
}

/* =========================================
   MEMBER DESIGNATION / ROLE
========================================= */

.designation {
  margin-top: 12px;

  color: var(--primary-light);

  font-size: 1rem;
  font-weight: 600;
}

.profile-identity .role {
  margin-top: 5px;

  color: var(--text-secondary);

  font-size: 0.86rem;
  font-weight: 500;
}

.profile-identity .location {
  margin-top: 8px;

  color: var(--muted);

  font-size: 0.85rem;
}

/* =========================================
   PERSONAL INFORMATION
   DOB / MEMBER SINCE
========================================= */

.profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;

  margin-top: 30px;
}

.profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;

  min-width: 0;

  padding: 15px 17px;

  background: rgba(167, 139, 250, 0.045);

  border: 1px solid var(--border);
  border-radius: 12px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.profile-meta-item:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: var(--border-hover);
}

.profile-meta-label {
  color: var(--muted);

  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.profile-meta-value {
  color: var(--text);

  font-size: 0.9rem;
  font-weight: 600;

  overflow-wrap: anywhere;
}

/* =========================================
   CONTENT SECTIONS
========================================= */

.section {
  margin-top: 36px;
  padding-top: 27px;

  border-top: 1px solid var(--border);
}

.section h2 {
  margin-bottom: 13px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.section h2::before {
  content: "";

  width: 3px;
  height: 17px;

  flex-shrink: 0;

  border-radius: 10px;

  background: var(--gradient);

  box-shadow:
    0 0 12px rgba(167, 139, 250, 0.4);
}

.section > p {
  max-width: 650px;

  line-height: 1.9;
  font-size: 0.94rem;
}

/* =========================================
   SKILLS / TAGS
========================================= */

.tags,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;

  padding: 7px 13px;

  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 8px;

  background: rgba(167, 139, 250, 0.055);

  color: #c9bfdc;

  font-size: 0.82rem;
  font-weight: 500;

  transition: 0.2s ease;
}

.tag:hover {
  border-color: var(--border-hover);
  background: rgba(167, 139, 250, 0.12);
}

/* =========================================
   DYNAMIC LISTS
========================================= */

.profile-list {
  display: grid;
  gap: 12px;

  padding-left: 20px;

  color: var(--text-secondary);
}

.profile-list li {
  padding-left: 5px;
}

.profile-list li::marker {
  color: var(--primary);
}

/* =========================================
   DYNAMIC CARDS
========================================= */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  min-width: 0;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: rgba(167, 139, 250, 0.035);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.info-card:hover {
  transform: translateY(-3px);

  border-color: var(--border-hover);

  background: rgba(167, 139, 250, 0.075);
}

.info-card h3 {
  font-size: 1rem;
  margin: 8px 0;
}

.info-card p {
  font-size: 0.86rem;
  line-height: 1.7;
}

.card-meta {
  color: var(--primary-light);

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.info-card a {
  display: inline-block;

  margin-top: 15px;

  color: var(--primary-light);

  font-size: 0.83rem;
  font-weight: 600;
}

.info-card a:hover {
  color: white;
}

/* =========================================
   CONTACT INFORMATION
========================================= */

.contacts-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  min-width: 0;

  padding: 13px 16px;

  background: rgba(167, 139, 250, 0.035);

  border: 1px solid var(--border);
  border-radius: 10px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.contact-item:hover {
  background: rgba(167, 139, 250, 0.075);
  border-color: var(--border-hover);
}

.contact-label {
  flex-shrink: 0;

  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.contact-value {
  min-width: 0;

  color: var(--primary-light);

  font-size: 0.87rem;
  font-weight: 500;

  text-align: right;
  overflow-wrap: anywhere;

  transition: color 0.2s ease;
}

a.contact-value:hover {
  color: white;

  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================
   ERROR STATE
========================================= */

.error {
  width: 100%;

  margin-top: 35px;
  padding: 30px;

  background: rgba(60, 27, 48, 0.2);

  border: 1px solid rgba(244, 114, 182, 0.2);
  border-radius: var(--radius-md);
}

.error h2 {
  margin-bottom: 10px;
  color: #f0abfc;
}

.error p {
  margin-bottom: 18px;
}

/* =========================================
   FOOTER
========================================= */

footer {
  width: 100%;

  margin-top: 55px;
  padding-top: 22px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 0.78rem;
  text-align: center;
}

footer p {
  font-size: inherit;
  letter-spacing: 0.3px;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 600px) {

  .container {
    width: min(91%, 820px);

    padding-top: 30px;
    padding-bottom: 40px;
  }

  .landing {
    min-height: 82vh;
  }

  .landing > p {
    font-size: 0.95rem;
  }

  /* Profile */

  .profile-card {
    margin-top: 24px;
    border-radius: 18px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
  }

  .profile-avatar {
    width: 112px;
    height: 112px;

    border-radius: 22px;
  }

  .profile-identity {
    width: 100%;
    text-align: center;
  }

  .profile-identity .member-id {
    margin: 0 0 13px;
  }

  .profile-identity h1 {
    font-size: 1.9rem;
    letter-spacing: -1px;

    overflow-wrap: anywhere;
  }

  .nickname {
    font-size: 1.25rem;
  }

  .designation,
  .role,
  .location {
    text-align: center;
  }

  /* Personal information */

  .profile-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;

    margin-top: 25px;
  }

  .profile-meta-item {
    padding: 12px;
  }

  .profile-meta-label {
    font-size: 0.63rem;
  }

  .profile-meta-value {
    font-size: 0.8rem;
  }

  /* Sections */

  .section {
    margin-top: 28px;
    padding-top: 23px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  /* Contacts */

  .contact-item {
    padding: 12px;
    gap: 10px;
  }

  .contact-label {
    font-size: 0.73rem;
  }

  .contact-value {
    font-size: 0.79rem;
  }

  /* Buttons */

  .button {
    padding: 11px 17px;
  }

  /* Footer */

  footer {
    margin-top: 40px;
  }
}

/* =========================================
   EXTRA SMALL SCREENS
========================================= */

@media (max-width: 360px) {

  .profile-identity h1 {
    font-size: 1.7rem;
  }

  .nickname {
    font-size: 1.15rem;
  }

  .profile-card {
    padding: 22px 17px;
  }

  .profile-meta-item {
    padding: 10px;
  }

  .profile-meta-value {
    font-size: 0.76rem;
  }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .contact-value {
    text-align: left;
  }

}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

}
