/* ── Google Fonts ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ──────────────────────────────── */
:root {
  /* Character palette */
  --ice:         #B8E8F0;   /* hair / paw blue */
  --ice-dim:     #7ACFDF;
  --teal:        #3D8B8A;   /* ear / eye teal */
  --teal-deep:   #256060;
  --mint:        #8FC4A8;   /* bandana green */
  --sparkle:     #FFE44D;   /* eye stars */
  --blush:       #FFB3C8;   /* cheek pink */
  --white-fur:   #EEF8FC;   /* off-white fur */

  /* Space background tones */
  --space-0:     #020610;
  --space-1:     #06101e;
  --space-2:     #0b1a2e;
  --space-3:     #0f2240;

  /* Glows */
  --glow-ice:    rgba(184, 232, 240, 0.35);
  --glow-teal:   rgba(61, 139, 138, 0.45);
  --glow-sparkle:rgba(255, 228, 77, 0.5);
  --glow-mint:   rgba(143, 196, 168, 0.35);

  --radius:      14px;
  --transition:  0.3s ease;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Body + starfield ───────────────────────────── */
body {
  background: var(--space-0);
  color: var(--white-fur);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated starfield */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(184,232,240,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 8%,  rgba(143,196,168,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 55%, rgba(184,232,240,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(255,228,77,0.5)  0%, transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(184,232,240,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 65%, rgba(143,196,168,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(184,232,240,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 10%, rgba(255,228,77,0.4)  0%, transparent 100%),
    radial-gradient(2px 2px   at 5%  50%,  rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(2px 2px   at 95% 90%,  rgba(184,232,240,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Nebula blobs */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 15% 20%,  rgba(61,139,138,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 75%,  rgba(184,232,240,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 60% 10%,  rgba(143,196,168,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Container ──────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
  max-width: 860px;
  width: 100%;
}

@media (min-width: 640px) {
  .hero__inner { flex-direction: row; text-align: left; }
}

/* Avatar */
.hero__avatar-wrapper {
  flex-shrink: 0;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  position: relative;
}

/* Spinning aurora ring */
.hero__avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--ice),
    var(--teal),
    var(--mint),
    var(--sparkle),
    var(--ice),
    var(--teal-deep),
    var(--ice)
  );
  animation: spin-ring 5s linear infinite;
  z-index: -1;
}

/* Dark inset mask for ring gap */
.hero__avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--space-0);
  z-index: -1;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero__avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--space-2);
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--ice);
  letter-spacing: 2px;
  text-shadow: 0 0 20px var(--glow-ice);
}

/* Text */
.hero__name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--white-fur) 0%, var(--ice) 45%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px var(--glow-ice));
}

.hero__title {
  margin-top: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  text-shadow: 0 0 12px var(--glow-teal);
}

.hero__bio {
  margin-top: 1rem;
  color: rgba(238, 248, 252, 0.65);
  font-size: 1rem;
  max-width: 400px;
}

/* Links */
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  justify-content: center;
}
@media (min-width: 640px) { .hero__links { justify-content: flex-start; } }

.hero__skills-inline {
  margin-top: 1.5rem;
}

.hero__skills-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(122, 207, 223, 0.45);
  background: rgba(6, 16, 30, 0.65);
  color: var(--ice);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-hint:hover {
  box-shadow: 0 0 18px rgba(122, 207, 223, 0.25);
  transform: translateX(-50%) translateY(-1px);
}

.scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint__icon {
  animation: bob-down 1.1s ease-in-out infinite alternate;
}

@keyframes bob-down {
  from { transform: translateY(0); }
  to { transform: translateY(3px); }
}

.scroll-controls {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scroll-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(122, 207, 223, 0.45);
  background: rgba(6, 16, 30, 0.78);
  color: var(--ice);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.scroll-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(122, 207, 223, 0.25);
}

.scroll-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn--outline {
  border: 1.5px solid var(--ice-dim);
  color: var(--ice);
  background: rgba(184, 232, 240, 0.05);
  backdrop-filter: blur(6px);
}

.btn--outline:hover {
  background: rgba(184, 232, 240, 0.15);
  border-color: var(--ice);
  box-shadow: 0 0 20px var(--glow-ice), inset 0 0 12px rgba(184,232,240,0.1);
  color: var(--white-fur);
}

/* ── Sections ───────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.section--alt {
  background: rgba(11, 26, 46, 0.5);
  backdrop-filter: blur(4px);
}

.section__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--ice);
  text-shadow: 0 0 16px var(--glow-ice);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  margin-top: 8px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--mint), transparent);
  border-radius: 2px;
}

/* ── Skills ─────────────────────────────────────── */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(61, 139, 138, 0.12);
  border: 1px solid rgba(61, 139, 138, 0.4);
  color: var(--ice);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: default;
}

.skill-tag::before {
  content: '✦ ';
  color: var(--sparkle);
  font-size: 0.65rem;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px var(--glow-sparkle));
}

.skill-tag:hover {
  background: rgba(184, 232, 240, 0.12);
  border-color: var(--ice);
  box-shadow: 0 0 14px var(--glow-ice);
  color: var(--white-fur);
}

/* ── Highlights / Data Blocks ───────────────────── */
.section--metrics {
  background:
    radial-gradient(ellipse 70% 60% at 20% 15%, rgba(143, 196, 168, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 65% 60% at 80% 80%, rgba(184, 232, 240, 0.08) 0%, transparent 75%),
    rgba(6, 16, 30, 0.35);
  backdrop-filter: blur(4px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 1.1rem 1rem;
  border: 1px solid rgba(122, 207, 223, 0.22);
  background: linear-gradient(145deg, rgba(6, 16, 30, 0.9), rgba(15, 34, 64, 0.75));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(122, 207, 223, 0.15);
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: -120% -10%;
  background: linear-gradient(120deg, transparent 25%, rgba(184, 232, 240, 0.23) 50%, transparent 75%);
  transform: rotate(6deg);
  animation: sweep 5s ease-in-out infinite;
}

.metric-card__value {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  font-weight: 900;
  color: var(--sparkle);
  text-shadow: 0 0 14px var(--glow-sparkle);
}

.metric-card__label {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  color: rgba(238, 248, 252, 0.75);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.panel {
  position: relative;
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(122, 207, 223, 0.25);
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(184, 232, 240, 0.18), transparent 45%);
  pointer-events: none;
}

.panel--glass {
  background: linear-gradient(160deg, rgba(11, 26, 46, 0.85), rgba(6, 16, 30, 0.78));
  box-shadow: 0 0 22px rgba(122, 207, 223, 0.12);
}

.panel--project {
  background: linear-gradient(160deg, rgba(37, 96, 96, 0.32), rgba(11, 26, 46, 0.84));
  box-shadow: 0 0 20px rgba(143, 196, 168, 0.12);
}

.panel__title {
  position: relative;
  z-index: 1;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--ice);
  margin-bottom: 0.95rem;
}

.panel__description {
  position: relative;
  z-index: 1;
  color: rgba(238, 248, 252, 0.82);
  line-height: 1.7;
  font-size: 0.95rem;
}

.app-mockup {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
}

.app-mockup__frame {
  width: 140px;
  height: 250px;
  border-radius: 26px;
  background: linear-gradient(155deg, #121826, #091222);
  border: 1px solid rgba(184, 232, 240, 0.35);
  box-shadow: 0 0 30px rgba(122, 207, 223, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.03);
  padding: 8px;
  position: relative;
  animation: float-device 4.2s ease-in-out infinite;
}

.app-mockup__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 10px;
  border-radius: 0 0 10px 10px;
  background: rgba(0, 0, 0, 0.55);
}

.app-mockup__screen {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  padding: 14px 11px;
  background:
    radial-gradient(circle at 75% 20%, rgba(143, 196, 168, 0.25), transparent 45%),
    radial-gradient(circle at 25% 70%, rgba(184, 232, 240, 0.25), transparent 45%),
    linear-gradient(180deg, #102238 0%, #0a1524 100%);
  border: 1px solid rgba(184, 232, 240, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
}

.app-mockup__badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.62rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.7px;
  color: var(--sparkle);
  border: 1px solid rgba(255, 228, 77, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 228, 77, 0.08);
}

.app-mockup__line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(184, 232, 240, 0.7), rgba(61, 139, 138, 0.25));
}

.app-mockup__line--short {
  width: 62%;
}

@keyframes float-device {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


.info-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.info-list li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px dashed rgba(122, 207, 223, 0.22);
}

.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(184, 232, 240, 0.65);
}

.info-list__value {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--white-fur);
}

.pill-group {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-block;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 228, 77, 0.28);
  color: var(--sparkle);
  font-size: 0.74rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.7px;
  background: rgba(255, 228, 77, 0.08);
  text-decoration: none;
  text-shadow: 0 0 10px var(--glow-sparkle);
  animation: pulse-glow 3s ease-in-out infinite;
  transition: var(--transition);
}

.pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 228, 77, 0.16);
}

.pill--status {
  border-color: rgba(143, 196, 168, 0.38);
  background: rgba(143, 196, 168, 0.12);
  color: #d6ffe8;
  text-shadow: none;
  animation: none;
  cursor: default;
}

.pill--status:hover {
  transform: none;
  background: rgba(143, 196, 168, 0.12);
}

@keyframes sweep {
  0% { transform: translateX(-25%) rotate(6deg); opacity: 0; }
  20% { opacity: 1; }
  60% { opacity: 0.8; }
  100% { transform: translateX(30%) rotate(6deg); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 228, 77, 0.1); }
  50% { box-shadow: 0 0 16px rgba(255, 228, 77, 0.18); }
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

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

/* ── About ──────────────────────────────────────── */
.about__text {
  color: rgba(238, 248, 252, 0.65);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.85;
}

/* ── Scroll Fade-in ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  color: rgba(184, 232, 240, 0.35);
  font-size: 0.8rem;
  letter-spacing: 1px;
  border-top: 1px solid rgba(61, 139, 138, 0.2);
  font-family: 'Orbitron', sans-serif;
}

/* ── Language Switcher ──────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 1.1rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 16, 30, 0.7);
  border: 1px solid rgba(61, 139, 138, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  backdrop-filter: blur(10px);
}

.lang-sep {
  color: rgba(61, 139, 138, 0.5);
  font-size: 0.75rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(184, 232, 240, 0.45);
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--ice);
}

.lang-btn.active {
  color: var(--ice);
  text-shadow: 0 0 10px var(--glow-ice);
}

/* ── Mini Header ────────────────────────────────── */
.mini-header {
  position: fixed;
  top: 0.9rem;
  left: 1rem;
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 207, 223, 0.4);
  background: rgba(6, 16, 30, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(122, 207, 223, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition);
  cursor: pointer;
}

.mini-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mini-header__avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(184, 232, 240, 0.55);
  background: rgba(11, 26, 46, 0.85);
  display: grid;
  place-items: center;
}

.mini-header__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-header__avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  color: var(--ice);
}

.mini-header__text {
  display: grid;
  line-height: 1.1;
}

.mini-header__name {
  font-size: 0.78rem;
  color: var(--white-fur);
  letter-spacing: 0.2px;
}

.mini-header__role {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.7px;
  color: rgba(184, 232, 240, 0.9);
}

@media (max-width: 640px) {
  .mini-header {
    top: 0.72rem;
    left: 0.7rem;
    padding: 0.34rem 0.56rem;
  }

  .mini-header__avatar-wrap {
    width: 30px;
    height: 30px;
  }

  .mini-header__name {
    font-size: 0.72rem;
  }

  .mini-header__role {
    font-size: 0.54rem;
  }

  .scroll-controls {
    right: 0.9rem;
    bottom: 0.9rem;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
  }
}

