@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap";

:root {
  --accent: #d8b4fe;
  --accent-2: #f9a8d4;
  --accent-3: #f0abfc;
  --border-primary: #3b2f4a;
  --border-active: #5a3d6b;
  --background-color: #140e1c;
  --background-secondary: #1e1430;
  --background-card: #241a35;
  --hover-color: #2d1f45;
  --text-primary: #f5f0ff;
  --text-inactive: #c4b5d6;
  --text-muted: #9a86b3;
}

* { box-sizing: border-box; }

body {
  background-color: var(--background-color);
  background-image:
    radial-gradient(ellipse 900px 450px at 50% -10%, rgba(216,180,254,0.18), transparent 70%),
    radial-gradient(ellipse 700px 350px at 85% 15%, rgba(249,168,212,0.14), transparent 70%),
    radial-gradient(ellipse 600px 300px at 10% 40%, rgba(240,171,252,0.08), transparent 70%),
    linear-gradient(rgba(216,180,254,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,180,254,0.02) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 32px 32px;
  color: var(--text-primary);
  margin: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
  min-height: 100vh;
}

.centered {
  text-align: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: flex;
}

.page-transition { animation: .35s ease-out both page-enter; }
@keyframes page-enter {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion:reduce) { .page-transition { animation: none; } }

h1 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { color: var(--text-primary); font-weight: 700; letter-spacing: -0.01em; }
h2:has(+p) { margin-bottom: 0; }
p {
  color: var(--text-inactive);
  overflow-wrap: break-word;
  width: 90%;
  max-width: 620px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
}

.accent { color: var(--accent); font-weight: 800; }
.accent-gradient {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 45%, #f0abfc 75%, var(--accent) 100%);
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  -webkit-background-clip: text;
  animation: 4s linear infinite shimmer;
  filter: drop-shadow(0 0 22px rgba(216,180,254,0.4));
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
.mono { font-family: "JetBrains Mono", monospace; }

.hero-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(216,180,254,0.12);
  border: 1px solid rgba(216,180,254,0.22);
  padding: .3rem .7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Navbar - glass pill, distinct from theo */
.navbar {
  background: rgba(36,26,53,0.88);
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  width: fit-content;
  min-width: 320px;
  max-width: 90vw;
  margin: auto;
  padding: .5rem .6rem .5rem 1.1rem;
  display: flex;
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.05) inset;
  position: sticky;
  top: 1rem;
  z-index: 10;
}
.navbar-brand {
  color: var(--text-primary);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  display: flex; align-items: center; gap: .4rem;
  letter-spacing: -0.02em;
}
.navbar-brand span { color: var(--accent); }
.navbar-brand-dot {
  width: 8px; height: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: inline-block;
}
.navbar-links { align-items: center; gap: .15rem; display: flex; }
.navbar-link {
  color: var(--text-inactive);
  border-radius: 999px;
  padding: .45rem .7rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  letter-spacing: -.02em;
}
.navbar-link:hover { color: var(--text-primary); background: rgba(216,180,254,0.1); }
.navbar-link-active {
  color: var(--text-primary);
  background: var(--text-primary);
  color: #0c0c12 !important;
}

/* Links */
.link-container {
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  max-width: 640px;
  display: flex;
  margin-top: 1rem;
}
.link-button {
  background: var(--background-card);
  border: 1px solid var(--border-primary);
  border-radius: .9rem;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  padding: .6rem .95rem;
  text-decoration: none;
  transition: all .2s ease;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}
.link-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(216,180,254,0.08));
  opacity: 0;
  transition: opacity .2s;
}
.link-button:hover {
  border-color: var(--border-active);
  background-color: var(--hover-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.link-button:hover::before { opacity: 1; }
.link-text-container { flex-direction: column; align-items: start; display: inline-flex; position: relative; }
.link-text-lower { color: var(--text-primary); font-size: .8rem; font-weight: 600; }
.link-text-upper { color: var(--text-muted); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-family: "JetBrains Mono", monospace; }
.link-icon {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: rgba(216,180,254,0.14);
  border-radius: .5rem;
}

/* Discord Card - upgraded */
.discord-card {
  text-align: left;
  background: var(--background-card);
  border: 1px solid var(--border-primary);
  width: 340px;
  max-width: 90vw;
  height: 168px;
  color: var(--text-primary);
  border-radius: 1.1rem;
  margin-bottom: 1.4rem;
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.discord-card:hover { border-color: var(--border-active); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.discord-card-banner {
  width: 100%; height: 78px;
  background: linear-gradient(135deg, #2d1b4e 0%, #7c3aed 45%, #f9a8d4 85%, #f0abfc 100%);
  position: relative;
  overflow: hidden;
}
.discord-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: banner-shine 3s linear infinite;
}
@keyframes banner-shine { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.discord-card-avatar-wrapper {
  width: 72px; height: 72px;
  position: absolute;
  top: 36px; left: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  overflow: visible;
}
.discord-card-avatar {
  width: 72px; height: 72px;
  border: 3px solid var(--background-card);
  object-fit: cover;
  border-radius: 50%;
  background: #2b2d31;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.6rem; color: white;
  overflow: hidden;
  position: relative;
  z-index: 0;
}
.discord-card-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display:block; }
.discord-card-avatar-deco {
  position: absolute;
  width: 86px; height: 86px;
  top: -7px; left: -7px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  transform: translateZ(0);
}
.discord-status {
  border: 3px solid var(--background-card);
  border-radius: 50%;
  width: 16px; height: 16px;
  position: absolute; bottom: 0; right: 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  z-index: 2;
}
.discord-status-online { background: #23a559; }
.discord-status-idle { background: #f0b132; }
.discord-status-dnd { background: #f23f43; }
.discord-status-offline { background: #80848e; }
.discord-card-content { margin-top: 28px; padding-left: 16px; padding-right: 40px; }
.discord-card-name { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; letter-spacing: -0.01em; }
.discord-card-name .clan-tag {
  font-size: .6rem; font-weight: 800;
  background: rgba(216,180,254,0.18);
  border: 1px solid rgba(216,180,254,0.28);
  color: var(--accent);
  padding: .15rem .35rem;
  border-radius: .35rem;
  font-family: "JetBrains Mono", monospace;
}
.discord-card-username { color: var(--text-muted); font-size: .72rem; font-weight: 500; font-family: "JetBrains Mono", monospace; }
.discord-card-icon { color: var(--text-muted); position: absolute; top: 88px; right: 14px; font-size: .9rem; opacity: .5; }

/* Projects */
.project-container {
  flex-flow: wrap;
  justify-content: center;
  align-items: stretch;
  gap: .75rem;
  max-width: 90vw;
  display: flex;
}
.project-card {
  text-align: start;
  background: var(--background-card);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  flex-direction: column;
  align-items: start;
  width: 400px;
  max-width: 80vw;
  min-height: 120px;
  padding: 1.1rem;
  text-decoration: none;
  transition: all .2s ease;
  display: flex;
  position: relative;
}
.project-card:hover { border-color: var(--border-active); background-color: var(--hover-color); transform: translateY(-1px); }
.project-title { color: var(--text-primary); margin: 0 0 .4rem; font-size: 1.05rem; font-weight: 700; }
.project-description { color: var(--text-inactive); flex: 1; width: 100%; margin: 0 0 1rem; font-size: .85rem; line-height: 1.5; }

/* Footer */
.footer { text-align: center; width: fit-content; margin: 3rem auto 1rem; }
.footer-text { color: var(--text-muted); font-size: .75rem; font-weight: 500; font-family: "JetBrains Mono", monospace; letter-spacing: -.02em; }

/* Responsive */
@media (width<=480px) {
  .navbar { gap: .5rem; padding: .45rem .5rem .45rem .8rem; min-width: auto; }
  .navbar-brand { font-size: .85rem; }
  .navbar-link { padding: .4rem .5rem; font-size: .7rem; }
  body { margin: .8rem; }
  h1 { font-size: 1.9rem !important; }
}
