/* Import Syne Variable Google Font */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');



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

body {
  background-color: #000000;
  color: #ffffff;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Background animation canvas container */
.background-canvas {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  overflow: hidden;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}

/* Base Blob styling with rapid color transitions */
.blob {
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 1000px;
  opacity: 0.9;
  transition: background-color 3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
  will-change: transform, border-radius;
}

/* 5 Distinct Blobs with extreme trajectories, sizes, speeds, and blend-modes */
.blob-1 {
  top: -15%;
  left: -15%;
  mix-blend-mode: screen;
  animation: morph-extreme-1 12s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: -20%;
  right: -15%;
  mix-blend-mode: difference;
  animation: morph-extreme-2 15s ease-in-out infinite alternate;
}

.blob-3 {
  top: 40%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  mix-blend-mode: exclusion;
  animation: morph-extreme-3 10s ease-in-out infinite alternate;
}

.blob-4 {
  bottom: 25%;
  left: -20%;
  width: 50vw;
  height: 50vw;
  mix-blend-mode: screen;
  animation: morph-extreme-4 14s ease-in-out infinite alternate;
}

.blob-5 {
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  mix-blend-mode: color-dodge;
  animation: morph-extreme-5 11s ease-in-out infinite alternate;
}

/* Saturated Grain overlay to add texturing to the gradients */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Content layer containing only the text */
.content-layer {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: auto;
  user-select: none;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base Typographic styling for the morphing name */
.name-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 10vw, 8.5rem);
  line-height: 0.9;
  color: #ffffff;
  mix-blend-mode: difference;
  display: inline-block;
  cursor: default;
  text-transform: uppercase;
  /* Smooth transitions for all morphing properties, animated by JS styles */
  transition: font-weight 2s cubic-bezier(0.25, 1, 0.5, 1),
              letter-spacing 2s cubic-bezier(0.25, 1, 0.5, 1),
              transform 2s cubic-bezier(0.25, 1, 0.5, 1),
              text-shadow 2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: font-weight, letter-spacing, transform, text-shadow;
}

/* Morphing Keyframe Animations for CSS Blobs (Extreme paths and speeds) */
@keyframes morph-extreme-1 {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: translate(0, 0) rotate(0deg) scale(0.9);
  }
  50% {
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    transform: translate(180px, -100px) rotate(180deg) scale(1.25);
  }
  100% {
    border-radius: 70% 30% 50% 50% / 50% 30% 70% 50%;
    transform: translate(-60px, 140px) rotate(360deg) scale(0.95);
  }
}

@keyframes morph-extreme-2 {
  0% {
    border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%;
    transform: translate(0, 0) rotate(0deg) scale(1.1);
  }
  50% {
    border-radius: 40% 60% 60% 40% / 60% 50% 50% 40%;
    transform: translate(-200px, 80px) rotate(-180deg) scale(0.85);
  }
  100% {
    border-radius: 50% 50% 40% 60% / 30% 70% 30% 70%;
    transform: translate(120px, -160px) rotate(-360deg) scale(1.2);
  }
}

@keyframes morph-extreme-3 {
  0% {
    border-radius: 45% 55% 40% 60% / 60% 35% 65% 40%;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    border-radius: 70% 30% 70% 30% / 30% 70% 30% 70%;
    transform: translate(-120px, -150px) rotate(180deg) scale(1.3);
  }
  100% {
    border-radius: 35% 65% 50% 50% / 50% 45% 55% 50%;
    transform: translate(140px, 80px) rotate(360deg) scale(0.9);
  }
}

@keyframes morph-extreme-4 {
  0% {
    border-radius: 50% 30% 60% 40% / 40% 50% 50% 60%;
    transform: translate(0, 0) rotate(0deg) scale(0.85);
  }
  50% {
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    transform: translate(160px, 120px) rotate(-180deg) scale(1.2);
  }
  100% {
    border-radius: 60% 40% 50% 50% / 45% 60% 40% 55%;
    transform: translate(-150px, -100px) rotate(-360deg) scale(0.95);
  }
}

@keyframes morph-extreme-5 {
  0% {
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    transform: translate(0, 0) rotate(0deg) scale(1.2);
  }
  50% {
    border-radius: 70% 30% 30% 70% / 30% 70% 70% 30%;
    transform: translate(-140px, -80px) rotate(180deg) scale(0.9);
  }
  100% {
    border-radius: 30% 70% 60% 40% / 60% 40% 60% 40%;
    transform: translate(100px, 160px) rotate(360deg) scale(1.15);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .background-canvas {
    filter: blur(75px);
    -webkit-filter: blur(75px);
  }
  
  .blob {
    width: 95vw;
    height: 95vw;
  }
}

/* Footer offer banner styling */
.footer-layer {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
  width: 90%;
  max-width: 650px;
  pointer-events: auto;
  user-select: none;
  line-height: 1.5;
}

.email-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.email-link:hover {
  color: #a855f7; /* Vibrant purple matches the generative art background */
  border-bottom-color: #a855f7;
}

/* Responsive adjustments for the footer */
@media (max-width: 480px) {
  .footer-layer {
    bottom: 25px;
    font-size: 0.74rem;
    line-height: 1.4;
  }
}


