/* ── Fixed navigation header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 40px 90px 40px;

  /* black at top, fades to transparent at bottom */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.95) 25%,
    rgba(0, 0, 0, 0.20) 50%,
    transparent 65%
  );

  /* no blur — clean fade */
  pointer-events: none; /* let clicks pass through the gradient area */
}

.site-nav {
  display: flex;
  gap: 3vw;
  justify-content: center;
  pointer-events: all;
  flex-wrap: nowrap;
  width: 100%;
  padding: 0 16px;   /* small side breathing room */
}

.nav-link {
  font-size: clamp(1rem, 3.5vw, 2rem);  /* grows until 2rem max */
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

@media (max-width: 480px) {
  .site-nav {
    gap: 16px;
  }

  .site-header {
    padding: 18px 8px 90px 8px;
  }
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.80);
}

/* Active section — bright cyan matching the theme */
.nav-link.active {
  color: rgb(70, 220, 255);
  text-shadow: 0 0 12px rgba(70, 220, 255, 0.60);
}

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

html, body {
  min-height: 100%;
  background-color: #000000;
}

img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

body {
  background: linear-gradient(
    to bottom right,
    #022756,
    #000000
  );
  background-attachment: fixed;
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px;
  flex-direction: column;
}

/* gap from top of page for larger screens */

@media (min-width: 800px) {
    #main {
        margin-top: 60px;
    }
}

@media (min-width: 1400px) {
    #main {
        margin-top: 80px;
    }
}

/* ── Background decorative blobs ── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 50vw;
  height: 50vw;
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(0, 200, 220, 0.30), transparent 70%);
}

body::after {
  width: 55vw;
  height: 55vw;
  bottom: -12vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(160, 50, 255, 0.28), transparent 70%);
}

/* ── Section cards ── */
.section {
  position: relative;
  z-index: 1;
  margin-top: 10px;

  /* Fluid: fills container, caps at 880px, never overflows viewport */
  width: clamp(280px, 90vw, 880px);
  aspect-ratio: 4 / 3;
  border-radius: 26px;

  /* Dark glass fill */
  background:
    /* bright purple bloom — bottom-LEFT */
    radial-gradient(
      ellipse at 0% 100%,
      rgba(180, 40, 255, 0.55) 0%,
      rgba(120, 20, 220, 0.25) 35%,
      transparent 60%
    ),
    /* bright light-blue bloom — bottom-RIGHT */
    radial-gradient(
      ellipse at 100% 100%,
      rgba(70, 255, 255, 0.71) 0%,
      rgba(0, 140, 230, 0.20) 35%,
      transparent 60%
    ),
    /* dark base */
    linear-gradient(
      155deg,
      rgba(10, 16, 36, 0.88) 0%,
      rgba(5, 8, 20, 0.94) 100%
    );

  backdrop-filter: blur(28px) saturate(1.6) brightness(0.88);
  -webkit-backdrop-filter: blur(28px) saturate(1.6) brightness(0.88);

  /* Glowing border — uses an outline trick for gradient border */
  border: 1.5px solid transparent;
  background-clip: padding-box;

  box-shadow:
    /* outer rim */
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    /* neon purple outer glow from bottom-LEFT */
    -6px 6px 40px rgba(180, 40, 255, 0.50),
    -12px 12px 80px rgba(160, 30, 255, 0.25),
    /* light-blue outer glow from bottom-RIGHT */
    6px 6px 40px rgba(0, 190, 255, 0.45),
    12px 12px 80px rgba(0, 160, 255, 0.20),
    /* bright inset top-left rim highlight */
    inset 1px 1px 0 rgba(255, 255, 255, 0.18),
    /* inset purple bottom-left rim */
    inset 2px -2px 0 rgba(200, 60, 255, 0.65),
    /* inset light-blue bottom-right rim */
    inset -2px -2px 0 rgba(0, 200, 255, 0.65),
    /* depth shadow */
    0 28px 70px rgba(0, 0, 0, 0.70);

  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

/* ── Gradient border overlay: white top → purple bottom-left, light-blue bottom-right ── */
.section::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 27.5px;
  padding: 1.5px;
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(255, 255, 255, 0.60) 0deg,        /* top — bright white */
    rgba(255, 255, 255, 0.55) 60deg,       /* top-right — white */
    rgba(0, 200, 255, 0.95) 120deg,        /* right — light blue */
    rgba(0, 210, 255, 1.00) 180deg,        /* bottom-right — vivid cyan-blue */
    rgba(160, 20, 255, 1.00) 240deg,       /* bottom-left — vivid purple */
    rgba(200, 40, 255, 0.95) 300deg,       /* left — purple */
    rgba(255, 255, 255, 0.60) 360deg       /* back to top */
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* ── External glow blobs behind the card ── */
.section::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(180, 30, 255, 0.50) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 190, 255, 0.45) 0%, transparent 55%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* ── Profile image ── */
.section img {
  position: absolute;
  bottom: 0.6%;
  right: -4%;

  /* Taller than card so the top pokes out */
  height: 110%;
  width: auto;
  object-fit: contain;
  object-position: bottom left;

  /* Must be above the ::before border ring (z-index: 0) */
  z-index: 5;

  filter: drop-shadow(0 -6px 20px rgba(0, 200, 220, 0.20))
          drop-shadow(0 10px 24px rgba(0, 0, 0, 0.60));
}

/* ── SVG handwriting signature container ── */
#username-svg {
  position: absolute;
  right: 52%;
  top: 10%;
  width: 45%;
  overflow: visible;
  z-index: 5;
  opacity: 1;
}

/* Make the injected <svg> tag fill its container */
#username-svg svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Text content within profile div */
.section #alice_he {
  position: absolute;
  left: 2%;
  top: 8%;
  font-size: 10vw;
  opacity: 50%;
  transform: scaleY(2.2);

  background: linear-gradient(
    90deg,
    #ff7ee3 0%,
    #af64ff 30%,
    #4cb1ff 65%,
    #5bf4ff 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* smaller text for large screens */

@media (min-width: 900px) {
    .section #alice_he {
        font-size: 9vw;
    }
}

@media (min-width: 1300px) {
    .section #alice_he {
        font-size: 7vw;
    }
}

/* ── Intro ticker ── */
.intro-ticker {
  position: absolute;
  top: 35%;
  right: 50%;
  left: 1%;
  overflow: hidden;
  z-index: 6;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 80%,
    transparent 95%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 80%,
    transparent 95%
  );
}

.intro-ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: ticker-scroll 10s linear infinite;
  white-space: nowrap;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #ffffff;
  align-items: center;
}

.intro-ticker-track .divider {
  opacity: 0.4;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Links wrapper — positions artbyaalice_text behind links ── */
.links-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(280px, 90vw, 880px);
  z-index: 1;
  overflow: hidden; 
}

/* ── artbyaalice_text — static background behind links ── */
.artbyaalice_text {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  white-space: nowrap;
  font-size: 12vw;
  opacity: 0.5;
  color: #ffffff;
  user-select: none;
  line-height: 0.8;
  z-index: 0; /* behind the links */
}

.artbyaalice_text p {
  margin: 0;

  background: linear-gradient(
    90deg,
    #ff2fd1 0%,
    #7a00ff 30%,
    #0090ff 65%,
    #00f0ff 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text; /* future standard */
}

/* smaller text for large screens */
@media (min-width: 1100px) {
    .artbyaalice_text {
        font-size: 9vw;
    }
}


/* ── Links section ── */
.links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 100px 0;
  z-index: 3;
  position: relative;
}

/* ── Primary button — bright blue ── */
.btn-primary {
  display: inline-block;
  padding: 20px 40px;
  margin: 6px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #000000;
  text-align: center;
  width: 50vw;

  /* Vivid cyan-blue gradient fill */
  background: linear-gradient(
    135deg,
    rgb(70, 255, 255) 0%,
    rgba(0, 140, 255) 100%
  );

  /* Bright border matching the card style */
  border: 1.5px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    /* outer neon glow */
    0 0 18px rgba(0, 190, 255, 0.55),
    0 0 40px rgba(0, 160, 255, 0.25),
    /* inset top highlight */
    inset 0 1px 0 rgba(255, 255, 255, 0.40);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow:
    0 0 28px rgba(0, 190, 255, 0.75),
    0 0 60px rgba(0, 160, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.40);
}

.btn-primary:active {
  transform: translateY(0px);
  filter: brightness(0.95);
}

/* Section headings */
.section h1 {
  font-size: 6vw;
  font-weight: 400;
}

.rest {
  margin-bottom: 100px;
}

/* ── Highlights carousel ── */
#highlights {
  aspect-ratio: unset;
  height: auto;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 30px;
}

/* ── Featured in carousel ── */
.carousel-track-wrapper {
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  margin-top: 30px;
  padding: 20px;
  /* fade edges left and right */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.carousel-track {
  transform: translateZ(0);
  display: flex;
  gap: 16px;
  width: max-content;
  animation: carousel-scroll 16s linear infinite;
  will-change: transform; /* hint to browser for smooth compositing */
  margin-bottom: 10px; 
}

/* Pause on hover */
.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* moves exactly one set, then loops */
}

/* ── Glass bubble box ── */
.carousel-item {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 0.9rem;
  cursor: default;

  /* Glass fill */
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 255, 255, 0.10) 0%,
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(15, 25, 50, 0.85) 0%,
      rgba(8, 12, 30, 0.90) 100%
    );

  /* Glowy outline matching the card theme */
  border: 1px solid rgba(70, 255, 255, 0.6);
  box-shadow:
    /* outer colour glow */
    0 0 12px rgba(0, 191, 255, 0.5),
    0 0 28px rgba(158, 40, 255, 0.5),
    /* inner top-left highlight */
    inset 1px 1px 0 rgba(255, 255, 255, 0.20),
    /* subtle depth */
    0 8px 24px rgba(0, 0, 0, 0.40);

  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.carousel-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 10px rgba(0, 191, 255, 0.75),
    0 0 30px rgba(158, 40, 255, 0.75),
    inset 1px 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 14px rgba(0, 0, 0, 0.50);
}

.carousel-item a {
  color: rgb(70, 255, 255);
}

/* ── Parallax layers inside links-wrapper ── */
.flower-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.flower-layer span {
  position: absolute;
  font-size: 2.5rem;
  line-height: 1;
}

#flower-layer-1 span { color: #ffffff; opacity: 0.50; font-size: 2rem; }   /* furthest — faint, small */
#flower-layer-2 span { color: #ffffff; opacity: 0.85; font-size: 2.8rem; } /* mid */
#flower-layer-3 span { color: #ffffff; opacity: 1; font-size: 3.8rem; } /* closest — opaque, large */

/* layer z-indexes */
#flower-layer-1 { z-index: 0; }  /* behind buttons */
#flower-layer-2 { z-index: 0; }  /* behind buttons */
#flower-layer-3 { z-index: 4; }  /* in front of buttons (buttons are z-index: 3) */