@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #02050b;
  --panel: rgba(6, 14, 27, 0.72);
  --panel-bright: rgba(255, 255, 255, 0.07);
  --text-main: #f8fafc;
  --text-muted: #a7adbb;
  --accent-primary: #2563eb;
  --accent-secondary: #38bdf8;
  --accent-tertiary: #60a5fa;
  --accent-hot: #93c5fd;
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
}

body[data-theme="light"] {
  --bg-dark: #f3f8ff;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-bright: rgba(15, 23, 42, 0.05);
  --text-main: #07111f;
  --text-muted: #334155;
  --accent-primary: #1d4ed8;
  --accent-secondary: #0369a1;
  --accent-tertiary: #2563eb;
  --accent-hot: #0ea5e9;
  --glass-border: rgba(15, 23, 42, 0.16);
  --glass-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(56, 189, 248, 0.14), transparent 28rem),
    #02050b;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.1), transparent 30rem),
    radial-gradient(circle at 82% 18%, rgba(37, 99, 235, 0.08), transparent 28rem),
    #f3f8ff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 75%);
}

::view-transition-group(root) {
  animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
  z-index: 1000;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: theme-gif-reveal 1.75s cubic-bezier(0.7, 0, 0.84, 0) both;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  -webkit-mask: url("../images/shigure-ui-smol.gif") 50% / 0 no-repeat;
  mask: url("../images/shigure-ui-smol.gif") 50% / 0 no-repeat;
}

@keyframes theme-gif-reveal {
  0% {
    -webkit-mask-size: 0;
    mask-size: 0;
  }

  10% {
    -webkit-mask-size: 25vmax;
    mask-size: 25vmax;
  }

  90% {
    -webkit-mask-size: 25vmax;
    mask-size: 25vmax;
  }

  100% {
    -webkit-mask-size: 750vmax;
    mask-size: 750vmax;
  }
}

body[data-theme="light"]::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 78%);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #1d4ed8, #38bdf8);
  border-radius: 10px;
}

a,
button {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-secondary);
  box-shadow: 0 0 18px var(--accent-secondary);
}

.cursor-outline {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.48);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-dark);
}

.theme-gif-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.theme-gif-overlay img {
  width: 0;
  max-width: none;
  image-rendering: auto;
}

.theme-gif-overlay.is-running {
  visibility: visible;
  opacity: 1;
}

.theme-gif-overlay.is-running img {
  animation: fallback-gif-burst 1.75s cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes fallback-gif-burst {
  0% {
    width: 0;
    opacity: 0;
    transform: scale(0.92);
  }

  10% {
    width: 25vmax;
    opacity: 1;
    transform: scale(1);
  }

  84% {
    width: 25vmax;
    opacity: 1;
    transform: scale(1);
  }

  100% {
    width: 130vmax;
    opacity: 0;
    transform: scale(1.08);
  }
}

.aurora-blob {
  position: absolute;
  width: 60rem;
  height: 60rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-1 {
  left: -15rem;
  top: -10rem;
  background: rgba(37, 99, 235, 0.5);
  animation-duration: 20s;
}

.blob-2 {
  right: -10rem;
  top: 20rem;
  background: rgba(56, 189, 248, 0.4);
  animation-delay: -6s;
  animation-duration: 22s;
}

.blob-3 {
  left: 25%;
  bottom: -20rem;
  background: rgba(14, 165, 233, 0.35);
  animation-delay: -12s;
  animation-duration: 24s;
}

.blob-4 {
  right: 20%;
  top: -5rem;
  background: rgba(124, 58, 237, 0.3);
  animation-delay: -3s;
  animation-duration: 19s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 7, 0.82) 72%);
}

@keyframes floatBlob {
  to {
    transform: translate3d(8rem, -4rem, 0) scale(1.12);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10rem 5% 4rem;
}

.hero-section {
  padding-top: 13rem;
}

.heading {
  margin-bottom: 4rem;
  font-size: clamp(3.4rem, 5vw, 5.6rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff 0%, #b9c2d5 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heading span {
  color: var(--accent-secondary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.header {
  position: fixed;
  top: 20px;
  left: 50%;
  width: min(92%, 1180px);
  padding: 1.2rem 1.4rem 1.2rem 2.6rem;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 7, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 70px rgba(37, 99, 235, 0.12);
}

.logo {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.logo span {
  color: var(--accent-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar a {
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.navbar a:hover,
.navbar a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .navbar a:hover,
body[data-theme="light"] .navbar a.active {
  background: rgba(37, 99, 235, 0.1);
}

.theme-toggle {
  width: 7.8rem;
  height: 4.2rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.theme-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: inherit;
  background: #06101f;
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.12), 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.theme-track::before,
.theme-track::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.theme-track::before {
  width: 0.4rem;
  height: 0.4rem;
  left: 1.5rem;
  top: 0.9rem;
  background: #dbeafe;
  box-shadow: 1.2rem 0.9rem 0 #93c5fd, 3.2rem -0.2rem 0 #bfdbfe;
  opacity: 0.78;
}

.theme-track::after {
  width: 5.8rem;
  height: 5.8rem;
  right: -3.4rem;
  top: -2.8rem;
  background: rgba(56, 189, 248, 0.2);
  opacity: 0.78;
}

.theme-thumb {
  position: absolute;
  top: 50%;
  left: 0.35rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #f8fbff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  transform: translateY(-50%);
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease, box-shadow 0.45s ease;
}

.theme-icon {
  position: absolute;
  top: 50%;
  z-index: 2;
  font-size: 1.8rem;
  transform: translateY(-50%);
  transition: opacity 0.32s ease, transform 0.45s ease, color 0.45s ease;
}

.theme-icon.moon {
  left: 0.95rem;
  color: #07111f;
  opacity: 1;
}

.theme-icon.sun {
  right: 0.95rem;
  color: #0f172a;
  opacity: 0.36;
}

body[data-theme="light"] .theme-track {
  border-color: rgba(37, 99, 235, 0.24);
  background: #dff3ff;
  box-shadow: inset 0 0 22px rgba(14, 165, 233, 0.16), 0 10px 28px rgba(37, 99, 235, 0.14);
}

body[data-theme="light"] .theme-track::before {
  opacity: 0;
  transform: translateX(-1rem) scale(0.6);
}

body[data-theme="light"] .theme-track::after {
  opacity: 0.9;
  transform: translate(-2.2rem, 2.1rem) scale(1.1);
  background: rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .theme-thumb {
  background: #ffffff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
  transform: translate(3.55rem, -50%);
}

body[data-theme="light"] .theme-icon.moon {
  opacity: 0.35;
  transform: translateY(-50%) rotate(-28deg);
}

body[data-theme="light"] .theme-icon.sun {
  opacity: 1;
  transform: translateY(-50%) rotate(180deg);
}

.menu-toggle {
  display: none;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 2.6rem;
  cursor: pointer;
}

.hero-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
  gap: 2.2rem;
  align-items: stretch;
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 4vw, 4.8rem);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12), transparent 42%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%, rgba(34, 211, 238, 0.08));
  opacity: 0.72;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 32px 100px rgba(34, 211, 238, 0.12), var(--glass-shadow);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.hero-main {
  min-height: 58rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #dff9ff;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--accent-secondary);
  box-shadow: 0 0 18px var(--accent-secondary);
}

.hero-main h3 {
  color: var(--text-muted);
  font-size: clamp(2rem, 2.6vw, 2.8rem);
  font-weight: 600;
}

.hero-main h1 {
  margin: 0.6rem 0 0.6rem;
  font-size: clamp(5.2rem, 9vw, 10.6rem);
  font-weight: 900;
  line-height: 0.92;
  color: #f8fbff;
  text-shadow: 0 0 34px rgba(56, 189, 248, 0.18);
}

.glitch-text {
  position: relative;
  width: fit-content;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  -webkit-text-fill-color: initial;
  pointer-events: none;
}

.glitch-text:hover::before {
  color: var(--accent-secondary);
  opacity: 0.55;
  transform: translate(3px, -2px);
}

.glitch-text:hover::after {
  color: #1d4ed8;
  opacity: 0.45;
  transform: translate(-3px, 2px);
}

.text-animation {
  min-height: 4.4rem;
  margin-bottom: 2rem;
  color: var(--accent-secondary);
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 800;
}

.cursor {
  border-right: 3px solid var(--accent-secondary);
  animation: blink 1s infinite;
}

.hero-main p {
  max-width: 62rem;
  color: var(--text-muted);
  font-size: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 3rem;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 5.2rem;
  padding: 1.3rem 2rem;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 900;
  transition: var(--transition);
}

.primary-cta {
  color: #f8fbff;
  background: #1d4ed8;
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.2);
}

.secondary-cta {
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.primary-cta:hover,
.secondary-cta:hover {
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.hero-stats span {
  min-height: 8.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-stats strong {
  color: var(--text-main);
  font-size: 2.5rem;
  line-height: 1;
}

.hero-img-card {
  min-height: 58rem;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(56, 189, 248, 0.18), transparent 25rem),
    #07111f;
}

.portrait-orbit {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 7%;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.025),
    0 0 80px rgba(34, 211, 238, 0.22);
  animation: orbitPulse 4s ease-in-out infinite alternate;
}

@keyframes orbitPulse {
  to {
    transform: scale(1.04);
    border-color: rgba(96, 165, 250, 0.42);
  }
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.04) saturate(1.08);
}

.hero-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.08);
}

.portrait-badge {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.68);
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  margin: 5rem 0;
  padding: 2rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.58);
  white-space: nowrap;
}

.marquee-content {
  display: flex;
  gap: 4rem;
  width: max-content;
  padding-right: 4rem;
  animation: scroll-left 22s linear infinite;
}

.marquee-content span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.42);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
}

.marquee-content span.filled {
  color: var(--accent-secondary);
  -webkit-text-stroke: 0;
}

@keyframes scroll-left {
  to {
    transform: translateX(-50%);
  }
}

.about-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-intro {
  grid-column: span 2;
}

.about-intro h2 {
  margin-bottom: 1rem;
  font-size: 3.6rem;
}

.about-intro p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 1.8rem;
}

.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(30, 64, 175, 0.18), rgba(255, 255, 255, 0.04));
}

.stats-card i {
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  font-size: 5rem;
}

.stats-card h4 {
  font-size: 2.2rem;
}

.stats-card p,
.skills-card > p {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.skills-card {
  grid-column: span 3;
}

.skills-card h3 {
  margin-bottom: 0.8rem;
  font-size: 2.6rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 2.2rem;
}

.skill-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

.skill-meter {
  padding: 1.4rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.skill-meter div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 800;
}

.skill-meter strong {
  color: var(--accent-secondary);
}

.skill-meter i {
  position: relative;
  display: block;
  height: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-meter i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.28);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-main);
  font-size: 1.55rem;
  font-weight: 800;
  transition: var(--transition);
}

.skill-tag i {
  color: var(--accent-secondary);
  font-size: 2rem;
}

.skill-tag:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.discord-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 3rem;
  align-items: center;
  padding: clamp(3rem, 5vw, 5.2rem);
}

.discord-identity {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.discord-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.discord-avatar {
  width: 12.4rem;
  height: 12.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-secondary);
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.07), 0 22px 50px rgba(0, 0, 0, 0.28);
}

.discord-status-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid var(--bg-dark);
  background: #747f8d;
}

.discord-status-indicator.online {
  background: #43b581;
}

.discord-status-indicator.idle {
  background: #faa61a;
}

.discord-status-indicator.dnd {
  background: #f04747;
}

.discord-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.presence-kicker {
  width: fit-content;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-secondary);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discord-info h3 {
  color: var(--text-main);
  font-size: 2.4rem;
  font-weight: 900;
}

.discord-info p {
  color: var(--text-muted);
  font-size: 1.6rem;
}

.discord-bio {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.55rem;
}

.discord-activity-time {
  color: var(--accent-tertiary);
  font-size: 1.3rem;
  opacity: 0.8;
}

.github-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.github-stat-card {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.github-stat-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.github-stat-card:hover {
  transform: translateY(-5px);
}

.spotify-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  overflow: hidden;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.project-card {
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.featured-project {
  grid-column: span 2;
  background:
    radial-gradient(circle at 18% 8%, rgba(56, 189, 248, 0.14), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-topline span,
.project-topline small {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-secondary);
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  color: var(--text-main);
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1;
}

.project-card p {
  color: var(--text-muted);
  font-size: 1.62rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
}

.project-stack span {
  padding: 0.7rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 800;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 4.2rem;
  padding: 1rem 1.35rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #f8fbff;
  font-size: 1.35rem;
  font-weight: 900;
  transition: var(--transition);
}

.project-links a:hover {
  transform: translateY(-3px);
  background: var(--accent-secondary);
}

.spotify-album-art {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spotify-offline-art {
  background: linear-gradient(135deg, #1db954, #191414);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-offline-art::after {
  content: '\f1bc';
  font-family: 'Boxicons';
  font-size: 4rem;
  color: white;
}

.spotify-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.whats-up-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.spotify-icon {
  color: var(--accent-secondary);
  font-size: 2.1rem;
  width: fit-content;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.28));
}

.spotify-info h3 {
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-info p {
  color: var(--text-muted);
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-top: 1rem;
  overflow: hidden;
}

.spotify-progress {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 999px;
  width: 0%;
  transition: width 0.5s linear;
}

.spotify-album-art {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #07111f, #2563eb);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-album-art::after {
  content: '\f1bc';
  font-family: 'Font Awesome 6 Brands';
  font-size: 4rem;
  color: white;
  opacity: 0.7;
}

.spotify-album-art.has-album-art::after {
  display: none;
}

.spotify-offline-art {
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.spotify-offline-art::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .spotify-card {
    flex-direction: column;
    text-align: center;
  }

  .spotify-album-art {
    width: 150px;
    height: 150px;
  }
}

.discord-activity {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.12), transparent 12rem),
    rgba(255,255,255,0.035);
  border: 1px solid var(--glass-border);
  flex: 1;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.discord-activity.is-spotify {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.18), transparent 12rem),
    rgba(255, 255, 255, 0.04);
}

.discord-activity-icon {
  position: relative;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(51, 65, 85, 0.72));
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.24);
}

.discord-activity-icon::after {
  content: '\f1bc';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Font Awesome 6 Brands';
  font-size: 3.2rem;
}

.discord-activity-icon.has-art::after {
  display: none;
}

.discord-activity-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.discord-activity-name {
  color: var(--accent-secondary);
  font-weight: 900;
  font-size: 1.85rem;
  margin: 0;
}

.discord-activity-info {
  color: var(--text-muted);
  font-size: 1.4rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  .discord-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .discord-identity {
    justify-content: center;
  }
  
  .discord-activity {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .discord-activity {
    flex-direction: column;
    text-align: center;
  }
  
  .discord-activity-icon {
    margin: 0 auto;
  }
}

.social-card {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}

.social-card i.main-icon {
  color: var(--accent-primary);
  font-size: 6rem;
  transition: var(--transition);
}

.social-card:hover i.main-icon {
  color: var(--accent-secondary);
  transform: scale(1.12) translateY(-8px);
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.5));
}

.social-card h4 {
  font-size: 2.4rem;
  font-weight: 900;
}

.social-card p {
  color: var(--text-muted);
  font-size: 1.4rem;
}

.btn-icon {
  width: 5.2rem;
  height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text-main);
  color: var(--bg-dark);
  font-size: 2.4rem;
  transition: var(--transition);
}

.social-card:hover .btn-icon {
  color: #f8fbff;
  background: #1d4ed8;
  transform: scale(1.08);
}

.footer {
  margin-top: 5rem;
  padding: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-align: center;
  font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-img-card {
    min-height: auto;
  }

  .hero-img-card {
    height: 58rem;
  }

  .about-bento {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro,
  .skills-card {
    grid-column: span 2;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-project {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .header {
    top: 10px;
    width: 95%;
    padding: 1rem 1rem 1rem 1.8rem;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .navbar {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1.2rem;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    width: 100%;
    font-size: 1.8rem;
  }

  .hero-section {
    padding-top: 11rem;
  }

  section {
    padding: 9rem 5% 3rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-img-card {
    height: 46rem;
  }

  .about-bento {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .skills-card {
    grid-column: span 1;
  }

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

  .project-grid,
  .skill-bars {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: span 1;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 58%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-cta,
  .secondary-cta {
    width: 100%;
  }

  .hero-img-card {
    height: 40rem;
  }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }

  .theme-gif-overlay,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    display: none;
  }
}

@media (max-width: 768px) {
  .theme-gif-overlay,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    display: none;
  }
}

body[data-theme="light"] .aurora-bg {
  background: #eef6ff;
}

body[data-theme="light"] .blob-1 {
  background: rgba(14, 165, 233, 0.28);
}

body[data-theme="light"] .blob-2 {
  background: rgba(37, 99, 235, 0.22);
}

body[data-theme="light"] .blob-3 {
  background: rgba(125, 211, 252, 0.34);
}

body[data-theme="light"] .grid-glow {
  background: radial-gradient(circle at center, transparent 0%, rgba(243, 248, 255, 0.82) 72%);
}

body[data-theme="light"] .heading {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

body[data-theme="light"] .heading span {
  color: #0284c7;
  background: none;
  -webkit-text-fill-color: currentColor;
}

body[data-theme="light"] .bento-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    var(--panel);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .bento-card::after {
  opacity: 0.42;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), transparent 34%, rgba(37, 99, 235, 0.06));
}

body[data-theme="light"] .bento-card:hover {
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: 0 22px 58px rgba(2, 132, 199, 0.14);
}

body[data-theme="light"] .hero-main h1 {
  color: #07111f;
  text-shadow: 0 0 34px rgba(37, 99, 235, 0.12);
}

body[data-theme="light"] .secondary-cta {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.08);
}

body[data-theme="light"] .hero-stats span,
body[data-theme="light"] .skill-tag,
body[data-theme="light"] .skill-meter,
body[data-theme="light"] .project-stack span {
  border-color: rgba(2, 132, 199, 0.24);
  background: rgba(239, 246, 255, 0.9);
  color: #0f172a;
}

body[data-theme="light"] .skill-meter i {
  background: rgba(15, 23, 42, 0.1);
}

body[data-theme="light"] .project-card h3,
body[data-theme="light"] .skill-meter div {
  color: #07111f;
}

body[data-theme="light"] .project-card p {
  color: #334155;
}

body[data-theme="light"] .project-topline span,
body[data-theme="light"] .project-topline small {
  border-color: rgba(2, 132, 199, 0.24);
  background: rgba(2, 132, 199, 0.08);
  color: #0369a1;
}

body[data-theme="light"] .featured-project {
  background:
    radial-gradient(circle at 18% 8%, rgba(2, 132, 199, 0.09), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92)),
    var(--panel);
}

body[data-theme="light"] .skill-tag i,
body[data-theme="light"] .stats-card i,
body[data-theme="light"] .social-card i.main-icon {
  color: #0284c7;
}

body[data-theme="light"] .hero-img-card {
  background:
    radial-gradient(circle at 50% 28%, rgba(14, 165, 233, 0.15), transparent 25rem),
    #dcecff;
}

body[data-theme="light"] .portrait-badge {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.14);
}

body[data-theme="light"] .marquee-container {
  border-block-color: rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .marquee-content span {
  -webkit-text-stroke-color: rgba(15, 23, 42, 0.28);
}

body[data-theme="light"] .stats-card {
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.96);
}

body[data-theme="light"] .btn-icon {
  background: #07111f;
  color: #f8fbff;
}

body[data-theme="light"] .about-intro h2,
body[data-theme="light"] .skills-card h3,
body[data-theme="light"] .stats-card h4,
body[data-theme="light"] .social-card h4,
body[data-theme="light"] .discord-info h3,
body[data-theme="light"] .spotify-info h3 {
  color: #07111f;
}

body[data-theme="light"] .about-intro p,
body[data-theme="light"] .skills-card > p,
body[data-theme="light"] .stats-card p,
body[data-theme="light"] .social-card p,
body[data-theme="light"] .discord-info p,
body[data-theme="light"] .discord-activity-info,
body[data-theme="light"] .spotify-info p,
body[data-theme="light"] .footer {
  color: #334155;
}

body[data-theme="light"] .discord-activity {
  background:
    radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.1), transparent 12rem),
    rgba(248, 251, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.14);
}

body[data-theme="light"] .discord-activity.is-spotify {
  background:
    radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.14), transparent 12rem),
    rgba(248, 251, 255, 0.95);
  border-color: rgba(2, 132, 199, 0.24);
}

body[data-theme="light"] .discord-activity-icon {
  background: linear-gradient(135deg, #dbeafe, #bae6fd);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .spotify-progress-container {
  background: rgba(15, 23, 42, 0.12);
}

body[data-theme="light"] .footer {
  border-top-color: rgba(15, 23, 42, 0.12);
}

@media (max-width: 768px) {
  body[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  ::view-transition-new(root) {
    -webkit-mask: none;
    mask: none;
  }

  .theme-gif-overlay {
    display: none;
  }

  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}
