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

:root {
  /* Core 80s Color Palette */
  --purple: #6a00ff;
  --pink: #ff007f;
  --blue: #00e5ff;
  --cyan: #00ffff;
  --yellow: #ffce00;
  --orange: #ff6b35;
  --neon-green: #39ff14;
  --dark: #0a001a;
  --darker: #050010;

  /* Modern Gradient Combinations */
  --bg-gradient: linear-gradient(135deg, #15002a 0%, #2d0055 20%, #4a0080 40%, #ff0060 60%, #00e5ff 80%, #15002a 100%);
  --gradient-1: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
  --gradient-2: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 50%, var(--neon-green) 100%);
  --gradient-3: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 50%, var(--pink) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(106, 0, 255, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 0, 127, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 229, 255, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(255, 206, 0, 0.3) 0px, transparent 50%);

  --text-color: #ffffff;

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: var(--text-color);
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientShift 30s ease-in-out infinite;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Gradient mesh overlay for modern depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
  animation: meshFloat 20s ease-in-out infinite alternate;
}

/* Subtle noise texture for added depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

@keyframes meshFloat {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.8;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

body.light-theme {
  --bg-gradient: #ffffff;
  --text-color: #0a001a;
}

body.light-theme header.navbar {
  background: rgba(255, 255, 255, 0.85);
}

body.light-theme nav a {
  color: #0a001a;
}

.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.bg-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: var(--blue);
  box-shadow: 0 0 16px 4px var(--pink), 0 0 32px 8px var(--blue);
  animation: floatParticle 18s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.18;
  }

  50% {
    opacity: 0.32;
  }

  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0.10;
  }
}

header.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70px;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 0, 26, 0.25);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 3rem;
  z-index: 20;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 0, 127, 0.1) 0%,
      rgba(106, 0, 255, 0.1) 50%,
      rgba(0, 229, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

header.navbar.scrolled {
  background: rgba(10, 0, 26, 0.75);
  box-shadow: 0 8px 32px rgba(255, 0, 127, 0.2),
    0 0 60px rgba(106, 0, 255, 0.15);
}

header.navbar.scrolled::before {
  opacity: 1;
}

.nav-toggle,
.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover,
.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle {
  margin-left: 1rem;
}

.nav-toggle {
  margin-left: 1rem;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 0, 127, 0.5));
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 20px rgba(255, 0, 127, 0.5));
  }

  100% {
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.7));
  }
}

header.navbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  margin-left: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-1);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--pink);
}

nav a:hover::before {
  opacity: 0.15;
}

nav a:hover::after {
  width: 80%;
}

nav a:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(255, 0, 127, 0.8);
}

nav a:active {
  transform: translateY(0);
  color: var(--yellow);
  text-shadow: 0 0 20px var(--yellow);
}

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 0, 127, 0.15) 0%, rgba(106, 0, 255, 0.12) 40%, rgba(0, 229, 255, 0.10) 70%, transparent 100%),
    var(--bg-gradient);
  background-size: 100%, 400% 400%;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 0, 127, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 229, 255, 0.2) 0%, transparent 50%);
  opacity: 0.7;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Enhanced floating particles for hero */
.hero-floating {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset: 0;
}

.hero-floating span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(1px);
  animation: heroFloat 20s ease-in-out infinite;
  box-shadow: 0 0 20px currentColor;
}

.hero-floating .hf1 {
  left: 15%;
  top: 20%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--pink), transparent);
  animation-delay: 0s;
  animation-duration: 25s;
}

.hero-floating .hf2 {
  right: 20%;
  top: 30%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--blue), transparent);
  animation-delay: 3s;
  animation-duration: 20s;
}

.hero-floating .hf3 {
  left: 50%;
  bottom: 25%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--yellow), transparent);
  animation-delay: 6s;
  animation-duration: 22s;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }

  25% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-20px, -60px) scale(0.95);
    opacity: 0.25;
  }

  75% {
    transform: translate(-30px, -30px) scale(1.05);
    opacity: 0.28;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

h1.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(5rem, 14vw, 18rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 30%, var(--blue) 60%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 8s ease-in-out infinite, titleFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 0, 127, 0.8)) drop-shadow(0 0 80px rgba(106, 0, 255, 0.6));
  position: relative;
  margin: 0;
}

@keyframes gradientText {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes titleFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Subtle flicker effect - much less aggressive */
@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
  }

  20%,
  24%,
  55% {
    opacity: 0.35;
  }
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 100px 150px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 200px 50px, #ffffff 50%, transparent 50%),
    radial-gradient(1px 1px at 250px 250px, #ffffff 50%, transparent 50%);
  background-size: 200px 200px;
  animation: twinkle 20s linear infinite;
  pointer-events: none;
}

@keyframes twinkle {
  to {
    transform: translateY(-200px);
  }
}

.scene {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 45vh;
  pointer-events: none;
  overflow: hidden;
}

.grid {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(to top, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 60px);
  transform: perspective(700px) rotateX(60deg) scale(1.6);
  animation: gridMove 12s linear infinite;
}

@keyframes gridMove {
  to {
    background-position: 0 1500px, 0 1500px;
  }
}

section.section {
  padding: 10rem 2rem 7rem;
  position: relative;
  text-shadow: 0 2px 10px rgba(10, 0, 26, 0.3);
}

section.section:nth-of-type(even) {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

section.section h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  position: relative;
}

section.section h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 2px;
  box-shadow: 0 0 20px var(--pink);
}

/* Enhanced scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: none;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Modern glassmorphic cards with 3D hover effect */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 2rem;
  backdrop-filter: blur(16px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 0, 127, 0.1) 0%,
      rgba(106, 0, 255, 0.1) 50%,
      rgba(0, 229, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 2rem;
}

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

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 60px rgba(255, 0, 127, 0.3),
    0 0 40px rgba(106, 0, 255, 0.2);
  border-color: rgba(255, 0, 127, 0.4);
}

.card:active {
  transform: translateY(-8px) scale(1.01);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  z-index: 1;
  position: relative;
}

.card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Neon label for app type */
.app-type-label.neon-label {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  padding: 0.25em 0.9em;
  margin-bottom: 0.7em;
  margin-right: 0.5em;
  border-radius: 0.7em;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  color: #fff;
  letter-spacing: 0.08em;
  box-shadow: 0 0 8px var(--blue), 0 0 16px var(--pink), 0 0 32px var(--blue);
  text-shadow: 0 0 6px #fff, 0 0 12px var(--pink);
  border: 1.5px solid var(--pink);
  animation: neonPulse 2.2s infinite alternate;
}

@keyframes neonPulse {
  0% {
    box-shadow: 0 0 8px var(--blue), 0 0 16px var(--pink), 0 0 32px var(--blue);
  }

  100% {
    box-shadow: 0 0 16px var(--pink), 0 0 32px var(--blue), 0 0 48px var(--pink);
  }
}

/* App status label with color variants */
.app-status-label {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.85rem;
  padding: 0.25em 0.9em;
  border-radius: 0.7em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: 0.1em;
  border: 1.5px solid #fff2;
  box-shadow: 0 0 6px #fff2;
  text-shadow: 0 0 4px #fff8;
  line-height: 1.2;
  vertical-align: middle;
}

.app-status-label.live {
  background: linear-gradient(90deg, #00e676, #00bfae);
  color: #fff;
  border-color: #00e676;
}

.app-status-label.wip {
  background: linear-gradient(90deg, #ffce00, #ff9800);
  color: #222;
  border-color: #ffce00;
}

.app-status-label.soon {
  background: linear-gradient(90deg, #ff007f, #ffce00);
  color: #fff;
  border-color: #ff007f;
}

/* Enhanced skill cards with glassmorphism and 3D tilt */
.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02) rotateX(2deg);
  box-shadow: 0 12px 40px rgba(255, 0, 127, 0.25),
    0 0 30px rgba(0, 229, 255, 0.2);
  border-color: rgba(255, 0, 127, 0.4);
}

.skill-card:hover::before {
  opacity: 0.08;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  height: 12px;
  margin: 1rem 0 0.5rem 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.skill-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

.skill-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  background-size: 200% 100%;
  border-radius: 0.75rem;
  box-shadow: 0 0 12px var(--pink), 0 0 24px var(--blue);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradientSlide 3s ease-in-out infinite;
  position: relative;
}

@keyframes gradientSlide {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.skill-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  letter-spacing: 0.05em;
}

/* Modern button with gradient border and ripple effect */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid transparent;
  background-image: linear-gradient(var(--dark), var(--dark)), var(--gradient-1);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 0.2;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.4),
    0 0 30px rgba(106, 0, 255, 0.3);
  animation: btnPulse 0.6s ease;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.4);
}

@keyframes btnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 127, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 127, 0);
  }
}

/* Accessibility: focus styles */
:focus-visible {
  outline: 2.5px solid var(--yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 206, 0, 0.18);
}

.btn:focus-visible,
.card:focus-visible,
.skill-card:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
}

/* Accessibility: visually hidden utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  position: fixed !important;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto !important;
  height: auto !important;
  padding: 0.8em 2em;
  background: var(--blue);
  color: #fff;
  border-radius: 0.7em;
  font-size: 1.1rem;
  z-index: 10000;
  box-shadow: 0 0 12px var(--pink);
  outline: 2.5px solid var(--yellow);
  outline-offset: 2px;
  text-align: center;
  white-space: normal !important;
}

.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 0, 26, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 1.5rem;
  color: #fff;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-indicator[hidden] {
  opacity: 0;
  pointer-events: none;
}

.loading-indicator:not([hidden]) {
  opacity: 1;
  pointer-events: all;
}

.resume-wrapper {
  text-align: center;
}

.resume-wrapper p {
  margin-bottom: 1rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.25);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 0, 127, 0.6);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: white;
}

@media (max-width: 600px) {
  header.navbar {
    padding: 0 0.8rem;
  }

  .nav-toggle,
  .theme-toggle {
    display: block;
  }

  header.navbar nav {
    position: absolute;
    top: 64px;
    right: 0;
    background: rgba(10, 0, 26, 0.95);
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem 2rem;
    display: none;
  }

  header.navbar nav.open {
    display: flex;
  }

  nav a {
    margin: 0.5rem 0;
    font-size: 0.95rem;
  }

  section.section {
    padding: 7rem 1rem 4rem;
  }

  h1.hero-title {
    font-size: 16vw;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}