/* Base floating page with subtle red tint and background image */
body {
  position: relative; /* for particle overlay */
  background:
    linear-gradient(rgba(11, 27, 55, 0.6), rgba(11, 27, 55, 0.6)),
    url('https://4kwallpapers.com/images/wallpapers/anime-girl-purple-1920x1200-15298.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #e0f1ff;
  font-family: Tahoma, Verdana, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  animation: pageFloat 12s ease-in-out infinite;
  backdrop-filter: blur(2px);
  z-index: 0;
}

/* Particle container fills entire viewport, pointer-events none so it doesn't block clicks */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.7;
  user-select: none;
  filter: drop-shadow(0 0 2px rgba(255, 77, 77, 0.3));
  will-change: transform;
}

/* Each particle */
.particle {
  position: absolute;
  background: radial-gradient(circle at center, rgba(255, 100, 100, 0.8), transparent 60%);
  border-radius: 50%;
  filter: drop-shadow(0 0 3px rgba(255, 100, 100, 0.6));
  animation-name: driftGlow;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Particle drifting and glowing */
@keyframes driftGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
    filter: drop-shadow(0 0 2px rgba(255, 100, 100, 0.4));
  }
  50% {
    transform: translate(var(--dx), var(--dy)) scale(1.1);
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.8));
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
    filter: drop-shadow(0 0 2px rgba(255, 100, 100, 0.4));
  }
}

/* Whole page dreamy float */
@keyframes pageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating trippy effect for all elements */
#profile, .main-content, .container, .content, .box,
h1, h2, h3,
img,
button, .btn,
.marquee, .blink {
  animation: floatPulse 5s ease-in-out infinite alternate;
  filter: blur(0.5px) brightness(1.1) saturate(1.2);
  will-change: transform, filter;
}

/* Fever dream floating motion */
@keyframes floatPulse {
  0% {
    transform: translateY(0px) scale(1);
    filter: blur(0.4px);
  }
  50% {
    transform: translateY(-10px) scale(1.01);
    filter: blur(0.7px) brightness(1.2);
  }
  100% {
    transform: translateY(0px) scale(1);
    filter: blur(0.4px);
  }
}

/* Sharp box layout with subtle inner and outer glow */
#profile, .main-content, .container, .content, .box {
  background-color: rgba(27, 45, 80, 0.85); /* semi-transparent dark blue */
  border: 2px solid #ff4d4d;
  padding: 16px;
  margin: 30px auto;
  max-width: 850px;
  box-shadow:
    0 0 8px 2px rgba(255, 77, 77, 0.3),  /* subtle outer red glow */
    inset 0 0 10px rgba(170, 200, 255, 0.2), /* soft inner blue glow */
    4px 4px 0 #000000; /* sharp shadow */
  transition: box-shadow 0.3s ease;
}
#profile:hover, .main-content:hover, .container:hover, .content:hover, .box:hover {
  box-shadow:
    0 0 14px 4px rgba(255, 77, 77, 0.45),
    inset 0 0 14px rgba(170, 200, 255, 0.35),
    4px 4px 0 #000000;
}

/* Headings with subtle glow */
h1, h2, h3 {
  font-family: "Courier New", monospace;
  color: #add8ff;
  border-bottom: 2px solid #ff5c5c;
  padding-bottom: 4px;
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 0 4px rgba(173, 216, 255, 0.8),
    0 0 8px rgba(255, 92, 92, 0.6);
}

/* Links */
a {
  color: #9ddfff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px dashed #ff6666;
  transition: 0.2s ease;
  text-shadow: 0 0 3px rgba(157, 223, 255, 0.8);
}
a:hover {
  color: #ffffff;
  background-color: #cc3333;
  text-shadow: 0 0 12px #ff9999;
}

/* Images glow and float with subtle ambient glow */
img {
  border: 2px solid #ff6666;
  padding: 2px;
  margin: 10px 0;
  box-shadow:
    0 0 10px 3px rgba(255, 100, 100, 0.35),
    0 0 30px 10px rgba(255, 100, 100, 0.15);
  animation: imgGlow 3s ease-in-out infinite, floatPulse 5s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
img:hover {
  box-shadow:
    0 0 16px 5px rgba(255, 100, 100, 0.6),
    0 0 40px 15px rgba(255, 100, 100, 0.3);
}

@keyframes imgGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 100, 100, 0.2); }
  50% { box-shadow: 0 0 14px rgba(255, 100, 100, 0.6); }
}

/* Retro buttons with subtle glow */
button, .btn {
  background-color: #2c4c7a;
  color: #fff;
  border: 2px solid #ff4d4d;
  padding: 6px 14px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-transform: lowercase;
  cursor: pointer;
  box-shadow:
    3px 3px 0 #000,
    0 0 8px 2px rgba(255, 77, 77, 0.3);
  animation: floatPulse 5s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
button:hover, .btn:hover {
  background-color: #993333;
  border-color: #ffffff;
  color: #ffcccc;
  text-shadow: 0 0 8px #ff9999;
  box-shadow:
    3px 3px 0 #000,
    0 0 12px 4px rgba(255, 77, 77, 0.6);
}

/* Marquee banner - 2000s with glow */
.marquee {
  font-family: "Courier New", monospace;
  font-size: 14px;
  background-color: rgba(44, 76, 122, 0.85);
  color: #fff;
  padding: 6px;
  border: 2px dashed #ff4d4d;
  overflow: hidden;
  white-space: nowrap;
  box-shadow:
    2px 2px 0 #000,
    0 0 10px 3px rgba(255, 77, 77, 0.3);
  transition: box-shadow 0.3s ease;
}
.marquee:hover {
  box-shadow:
    2px 2px 0 #000,
    0 0 14px 5px rgba(255, 77, 77, 0.5);
}
.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 12s linear infinite;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Blinking retro text */
.blink {
  animation: blink 1s steps(1) infinite;
  color: #ff6666;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 0 6px #ff9999;
}
@keyframes blink {
  0%, 100% { visibility: visible; }
  50% { visibility: hidden; }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(27, 45, 80, 0.85);
}
::-webkit-scrollbar-thumb {
  background: #ff6666;
  border: 2px solid rgba(15, 23, 42, 0.9);
}