/* Base layout */

:root {
  --bg-main: radial-gradient(circle at top left, #0b1020, #05060c);
  --card-bg: linear-gradient(135deg, rgba(11, 16, 32, 0.96), rgba(18, 26, 52, 0.96));
  --card-border: rgba(255, 255, 255, 0.06);
  --accent: #ffc74a;
  --accent-soft: #ffb53a;
  --accent-glow: rgba(255, 199, 74, 0.4);
  --text-main: #f7f8ff;
  --text-muted: rgba(235, 238, 255, 0.7);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* Page wrapper (keeps card + footer centered) */

.page {
  width: 100%;
  max-width: 1200px;
  padding: 32px 16px 40px;
}

/* Card */

.card {
  position: relative;
  margin: 0 auto;
  padding: 40px 48px 32px;
  border-radius: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  overflow: hidden;
}

/* Faint cover inside the card */

.card::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: url("images/cover.jpg") center / cover no-repeat;
  opacity: 0.18;          /* make it ghosted */
  filter: blur(4px);
  transform: scale(1.05);
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1; /* float above cover */
}

/* Left side */

.profile {
  flex: 1 1 280px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.7),
    0 18px 40px rgba(0, 0, 0, 0.8),
    0 0 40px var(--accent-glow);
}

.profile-text {
  max-width: 320px;
}

.headline {
  margin: 0 0 8px;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}

.tagline {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.subline {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.brand {
  color: var(--accent);
  font-weight: 600;
}

/* Button */

.profile-cta {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: radial-gradient(circle at 20% 0, #ffe38c, #f7a72f);
  color: #2b1b08;
  font-weight: 600;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.8),
    0 0 40px var(--accent-glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.9),
    0 0 48px var(--accent-glow);
}

/* Right side */

.content {
  flex: 1.3 1 360px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.section-copy {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
}

.section-copy.small {
  font-size: 0.85rem;
}

/* Groups */

.groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.group-card {
  display: block;
  padding: 12px 16px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at top left,
    rgba(255, 199, 74, 0.05),
    rgba(0, 0, 0, 0.65));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease, background 0.15s ease;
}

.group-card:hover {
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top left,
    rgba(255, 199, 74, 0.12),
    rgba(0, 0, 0, 0.78));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.9),
    0 0 32px rgba(255, 199, 74, 0.2);
  transform: translateY(-1px);
}

.group-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 241, 200, 0.9);
  margin-bottom: 4px;
}

.group-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.group-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(240, 242, 255, 0.6);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-label {
  opacity: 0.65;
}

.footer-handle {
  font-weight: 600;
}

/* Social icons (no Font Awesome needed) */

.footer-icons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.social-link {
  text-decoration: none;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  background: radial-gradient(circle at top,
    rgba(255, 255, 255, 0.06),
    rgba(0, 0, 0, 0.9));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease, background 0.12s ease;
}

.social-link:hover .social-icon {
  transform: translateY(-1px);
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top,
    rgba(255, 199, 74, 0.2),
    rgba(0, 0, 0, 0.9));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(255, 199, 74, 0.3);
}

/* Responsive */

@media (max-width: 820px) {
  .card {
    padding: 28px 20px 24px;
    gap: 28px;
  }

  .profile {
    flex-direction: row;
    align-items: flex-start;
  }

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

  .content {
    flex-basis: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-icons {
    margin-left: 0;
  }
}

@media (max-width: 540px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    max-width: 100%;
  }

  .section-copy {
    max-width: 100%;
  }
}