/* ===============================
   GLOBAL VARIABLES & BASE STYLES
================================= */
:root {
  --bg: #232629;
  --panel: #32363B;
  --accent: #B2ABF2;
  --accent2: #F1D302;
  --highlight: #A0A2A3;
  --text: #f2f2f2;
  --radius: 10px;
  font-family: 'Roboto Mono', monospace;
}

* {
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===============================
   ACCESSIBILITY
================================= */
:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

/* ===============================
   ASCII BACKGROUND
================================= */
.ascii-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  white-space: pre;
  font-family: monospace;
  font-size: 18px;
  line-height: 1em;
  color: rgba(255, 255, 255, 0.25);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-align: center;
  text-shadow: 0 0 5px rgba(241, 211, 2, 0.6),
               0 0 10px rgba(178, 171, 242, 0.6),
               0 0 20px rgba(178, 171, 242, 0.4);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 4px rgba(178, 171, 242, 0.3),
                 0 0 10px rgba(178, 171, 242, 0.1);
  }
  50% {
    text-shadow: 0 0 10px rgba(178, 171, 242, 0.6),
                 0 0 20px rgba(178, 171, 242, 0.3);
  }
}

/* ===============================
   NAVIGATION DOCK
================================= */
.dock {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 99px;
  padding: 8px 16px;
  gap: 16px;
  z-index: 9999;
  animation: fadeInDock 1s ease forwards;
  max-width: 95vw;
  overflow-x: auto;
  scrollbar-width: none;
}

@keyframes fadeInDock {
  from { opacity: 0; transform: translate(-50%, -50px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.dock-item,
.dock-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.dock-item {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.dock-item img { width: 20px; height: 20px; }
.dock-logo img { width: 30px; height: 30px; }

.dock-item:hover { transform: scale(1.3); }

/* Tooltip */
.dock-item::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -24px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.dock-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   MAIN STAGE
================================= */
.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10;
}

.stage {
  width: clamp(320px, 92vw, 1100px);
  min-height: clamp(400px, 70vh, 600px);
  border-radius: var(--radius);
  background-color: rgba(50, 54, 59, 0.4);
  backdrop-filter: blur(10px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: center;
  animation: floatIn 900ms cubic-bezier(.2, .9, .3, 1) both;
}

@keyframes floatIn {
  from { transform: translateY(150px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ===============================
   ARTIST CARD
================================= */
.artist {
  background-color: rgba(50, 54, 59, 0.4);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.name { font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; letter-spacing: 0.6px; }
.handle { color: var(--highlight); font-size: 12px; }

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent2);
  color: #232629;
}

.meta { font-size: clamp(10px, 1.4vw, 12px); margin-top: 8px; }

/* ===============================
   CONTENT
================================= */
.content {
  padding: 8px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

h1, h2, h3 { font-family: 'Tiny5', cursive; }

h1 { font-size: clamp(20px, 3.6vw, 34px); margin: 0; color: var(--accent); }
h2 { margin: 0; font-size: 18px; color: var(--highlight); letter-spacing: 0.4px; }
p { margin-top: 8px; color: rgba(255, 255, 255, 0.85); line-height: 1.5; font-size: clamp(13px, 2vw, 15px); }

.accent-link { color: var(--accent2); text-decoration: none; }

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
  border-radius: 4px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
}
.prompt {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
}

/* ===============================
   SECTIONS
================================= */
.section {
  width: clamp(320px, 92vw, 1100px);
  margin: 100px auto;
  padding: 40px 30px;
  border-radius: var(--radius);
  background-color: rgba(50, 54, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 10;
}
.section h2 {
  text-align: center;
  color: var(--accent);
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 40px;
}

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-col { display: flex; flex-direction: column; gap: 20px; }

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(178, 171, 242, 0.4);
}
.card h3 { color: var(--accent2); margin: 0 0 6px; font-size: 17px; }
.card p { color: var(--highlight); margin: 0; font-size: 14px; }

/* SKILLS */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(178, 171, 242, 0.4);
}
.skill-card h3 { color: var(--accent2); margin-bottom: 6px; }
.skill-card p { color: rgba(255, 255, 255, 0.8); font-size: 13px; }

.core-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}
.core-card h3 {
  color: var(--accent2);
  text-align: center;
  margin-bottom: 10px;
}
.core-card ul { list-style: none; margin: 0; padding: 0; }
.core-card li {
  margin: 20px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meter {
  flex: 1;
  height: 6px;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--accent2);
}

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.portfolio-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.portfolio-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(178, 171, 242, 0.4);
}
.portfolio-card h3 { color: var(--accent2); margin: 0 0 6px; }
.portfolio-card p { color: rgba(255, 255, 255, 1); font-size: 14px; }

/* FOOTER */
.footer {
  background: var(--bg);
  backdrop-filter: blur(15px);
  color: var(--highlight);
  text-align: center;
  padding: 30px 10px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 240px;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 820px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .artist {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 14px;
  }
  .avatar { width: 80px; height: 80px; }
  .name { font-size: clamp(16px, 3vw, 20px); }
  .edu-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .dock { top: 16px; }
  .page { padding-top: 100px; }
  .stage { padding: 12px; gap: 12px; }
  .artist { flex-direction: column; text-align: center; }
  .avatar { width: 70px; height: 70px; }
  p { font-size: 14px; }
}

/* ===============================
   SCROLL FADE-IN ANIMATIONS
================================= */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}