@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700");

/* ========== CSS Custom Properties for Glass Button ========== */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -75deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

:root {
  --glass-size: clamp(0.875rem, 2vw, 1.25rem);
  --anim--hover-time: 400ms;
  --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --neon-green: #00ff00;
  --neon-green-dim: rgba(0, 255, 0, 0.7);
  --neon-glow: rgba(0, 255, 0, 0.35);
}

/* ========== Base Styles ========== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background: black;
  margin: 0;
}

svg {
  max-width: 70vw;
  max-height: 80vh;
  aspect-ratio: 1 / 1;
}

svg #blobClip {
  transform-origin: center;
  transition: ease transform 0.3s;
}

svg:hover #blobClip {
  transform: scale(1.15) translate(0%, 0%);
}

.text-content {
  font: 700 10px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  fill: var(--neon-green);
  transition: ease fill 0.3s;
}

/* ========== Header Container ========== */
#dev {
  font-family: "Montserrat", sans-serif;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

/* Subtitle text - "Tap my photo..." */
#dev > span {
  font-size: 13px;
  color: var(--neon-green);
  opacity: 0.85;
}

/* ========== Glass Button Link Wrapper ========== */
.button-wrap-link {
  text-decoration: none;
  display: inline-block;
}

/* ========== GLASS BUTTON STYLES ========== */

/* Button Wrap Container */
.button-wrap {
  position: relative;
  z-index: 2;
  border-radius: 999vw;
  background: transparent;
  pointer-events: none;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  font-size: var(--glass-size);
}

/* Button Shadow Container */
.button-shadow {
  --shadow-cuttoff-fix: 2em;
  position: absolute;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
  overflow: visible;
  pointer-events: none;
}

/* Shadow - Neon Green Tint */
.button-shadow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 999vw;
  background: linear-gradient(180deg, var(--neon-glow), rgba(0, 255, 0, 0.15));
  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  left: calc(var(--shadow-cuttoff-fix) - 0.875em);
  padding: 0.125em;
  box-sizing: border-box;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  overflow: visible;
  opacity: 1;
}

/* ========== BUTTON BASE STYLES ========== */
.button-wrap button {
  --border-width: clamp(1px, 0.0625em, 4px);
  all: unset;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  pointer-events: auto;
  z-index: 3;
  background: linear-gradient(
    -75deg,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.12),
    rgba(0, 255, 0, 0.03)
  );
  border-radius: 999vw;
  box-shadow: 
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(0, 255, 0, 0.2),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.4),
    0 0 0.1em 0.25em inset rgba(0, 255, 0, 0.1),
    0 0 0 0 rgba(0, 255, 0, 0.5);
  backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap button:hover {
  transform: scale(0.975);
  backdrop-filter: blur(0.01em);
  -webkit-backdrop-filter: blur(0.01em);
  box-shadow: 
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(0, 255, 0, 0.25),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.35),
    0 0 0.05em 0.1em inset rgba(0, 255, 0, 0.2),
    0 0 12px 2px var(--neon-glow);
}

/* Button Text */
.button-wrap button span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 1em;
  color: var(--neon-green);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 8px var(--neon-glow), 0 0.15em 0.05em rgba(0, 0, 0, 0.3);
  transition: all var(--anim--hover-time) var(--anim--hover-ease);
  padding-inline: 1.25em;
  padding-block: 0.65em;
  white-space: nowrap;
}

.button-wrap button:hover span {
  text-shadow: 0 0 12px var(--neon-glow), 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.2);
}

/* Arrow inside button */
.button-wrap .xweb-arrow {
  width: 0.75em;
  height: 0.75em;
  display: inline-block;
  color: var(--neon-green);
  opacity: 0.95;
  filter: drop-shadow(0 0 6px var(--neon-glow));
  transition: transform var(--anim--hover-time) var(--anim--hover-ease),
              filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap button:hover .xweb-arrow {
  transform: translateX(2px) translateY(-1px);
  filter: drop-shadow(0 0 10px var(--neon-glow));
}

/* Shine Effect on Text */
.button-wrap button span::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  width: calc(100% - var(--border-width));
  height: calc(100% - var(--border-width));
  top: calc(0% + var(--border-width) / 2);
  left: calc(0% + var(--border-width) / 2);
  box-sizing: border-box;
  border-radius: 999vw;
  overflow: clip;
  background: linear-gradient(
    var(--angle-2),
    rgba(0, 255, 0, 0) 0%,
    rgba(0, 255, 0, 0.25) 40% 50%,
    rgba(0, 255, 0, 0) 55%
  );
  z-index: 3;
  mix-blend-mode: screen;
  pointer-events: none;
  background-size: 200% 200%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  transition: background-position calc(var(--anim--hover-time) * 1.25)
      var(--anim--hover-ease),
    --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

.button-wrap button:hover span::after {
  background-position: 25% 50%;
}

.button-wrap button:active span::after {
  background-position: 50% 15%;
  --angle-2: -15deg;
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  .button-wrap button span::after,
  .button-wrap button:active span::after {
    --angle-2: -45deg;
  }
}

/* ========== BUTTON OUTLINE ========== */
.button-wrap button::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: 999vw;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background: conic-gradient(
      from var(--angle-1) at 50% 50%,
      rgba(0, 255, 0, 0.6),
      rgba(0, 255, 0, 0) 5% 40%,
      rgba(0, 255, 0, 0.6) 50%,
      rgba(0, 255, 0, 0) 60% 95%,
      rgba(0, 255, 0, 0.6)
    ),
    linear-gradient(180deg, rgba(0, 255, 0, 0.3), rgba(0, 255, 0, 0.15));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transition: all var(--anim--hover-time) var(--anim--hover-ease),
    --angle-1 500ms ease;
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(0, 255, 0, 0.3);
}

.button-wrap button:hover::after {
  --angle-1: -125deg;
}

.button-wrap button:active::after {
  --angle-1: -75deg;
}

@media (hover: none) and (pointer: coarse) {
  .button-wrap button::after,
  .button-wrap button:hover::after,
  .button-wrap button:active::after {
    --angle-1: -75deg;
  }
}

/* Shadow Hover */
.button-wrap:has(button:hover) .button-shadow {
  filter: blur(clamp(2px, 0.0625em, 6px));
  -webkit-filter: blur(clamp(2px, 0.0625em, 6px));
  transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(button:hover) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.875em);
  opacity: 1;
}

/* Rotation on Active */
.button-wrap:has(button:active) {
  transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(button:active) button {
  box-shadow: 
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(0, 255, 0, 0.25),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    0 0 0.1em 0.25em inset rgba(0, 255, 0, 0.15),
    0 0.225em 0.05em 0 rgba(0, 0, 0, 0.15),
    0 0.25em 0 0 rgba(0, 255, 0, 0.4),
    inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.2);
}

.button-wrap:has(button:active) .button-shadow {
  filter: blur(clamp(2px, 0.125em, 12px));
  -webkit-filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(button:active) .button-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  opacity: 0.75;
}

.button-wrap:has(button:active) button span {
  text-shadow: 0 0 12px var(--neon-glow), 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.2);
}

/* ========== Focus Styles for Accessibility ========== */
.button-wrap-link:focus-visible .button-wrap button {
  outline: 2px solid var(--neon-green);
  outline-offset: 4px;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  .button-wrap,
  .button-wrap button,
  .button-wrap button span,
  .button-wrap button::after,
  .button-wrap button span::after,
  .button-shadow,
  .button-shadow::after {
    transition: none;
  }
  
  .button-wrap:has(button:active) {
    transform: none;
  }
}
