*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-deep:    #0a1aff;
  --blue-mid:     #0d6efd;
  --blue-bright:  #00c8ff;
  --blue-cyan:    #00e5ff;
  --glow:         #1a90ff;
}

body {
  background: #000;
  height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Cormorant Garamond', Georgia, serif;
  position: relative;
}

/* ── Particle canvas ── */
canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient glow blobs ── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
  animation: drift 12s ease-in-out infinite alternate;
  z-index: 0;
}
.blob1 { width: 600px; height: 600px; background: var(--blue-deep);  top: -150px; left: -150px; animation-duration: 14s; }
.blob2 { width: 500px; height: 500px; background: var(--blue-bright); bottom: -120px; right: -120px; animation-duration: 10s; }
.blob3 { width: 350px; height: 350px; background: var(--blue-cyan);  top: 40%;  left: 50%; transform: translate(-50%,-50%); animation-duration: 16s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

/* ── Main text and middle container ── */
.scene {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 800px;
  max-height: 95dvh;
  box-sizing: border-box;
}

.phrase {
  font-size: clamp(2.2rem, 5vw + 1.2rem, 5.5rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;

  /* layered gradient from deep blue → cyan */
  background: linear-gradient(
    135deg,
    var(--blue-deep)   0%,
    var(--blue-mid)   25%,
    var(--blue-bright) 55%,
    var(--blue-cyan)  80%,
    var(--blue-mid)  100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* text glow layers */
  filter:
    drop-shadow(0 0 18px rgba(0,200,255,.65))
    drop-shadow(0 0 45px rgba(13,110,253,.45))
    drop-shadow(0 0 90px rgba(10,26,255,.30));

  animation: shimmer 4s ease-in-out infinite alternate,
             float    6s ease-in-out infinite;
}

/* subtle gradient shift */
@keyframes shimmer {
  from {
    filter:
      drop-shadow(0 0 18px rgba(0,200,255,.65))
      drop-shadow(0 0 45px rgba(13,110,253,.45))
      drop-shadow(0 0 90px rgba(10,26,255,.30));
  }
  to {
    filter:
      drop-shadow(0 0 28px rgba(0,229,255,.90))
      drop-shadow(0 0 60px rgba(0,200,255,.60))
      drop-shadow(0 0 110px rgba(26,144,255,.40));
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Central Flower ── */
.flower-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1.5rem 0;
  max-height: 32dvh;
}

.center-flower {
  max-width: 100%;
  max-height: 32dvh;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.45));
  animation: pulse-flower 5s ease-in-out infinite alternate;
}

@keyframes pulse-flower {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.4));
  }
  100% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.65));
  }
}

/* ── Decorative corner images ── */
.corner-img {
  position: absolute;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 5;
}

.corner-img:hover {
  transform: scale(1.1) rotate(2deg);
  border-color: var(--blue-cyan);
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.55);
  z-index: 15;
}

/* Specific position rules for 1200px+ (Default Desktop) */
.top-left {
  top: 4dvh;
  left: 4dvw;
  width: 140px;
  height: 140px;
}

.top-right {
  top: 4dvh;
  right: 4dvw;
  width: 140px;
  height: 140px;
}

.bottom-left {
  bottom: 4dvh;
  left: 4dvw;
  width: 140px;
  height: 140px;
}

.bottom-right {
  bottom: 4dvh;
  right: 4dvw;
  width: 140px;
  height: 140px;
}

/* ── Decorative thin lines ── */
.line {
  display: block;
  width: 220px;
  height: 1px;
  margin: 1.2rem auto;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  opacity: .6;
  animation: pulse-line 3s ease-in-out infinite alternate;
}

@keyframes pulse-line {
  from { opacity: .4; width: 160px; }
  to   { opacity: .9; width: 260px; }
}

/* ── Small ornament dots ── */
.dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-cyan);
  box-shadow: 0 0 10px var(--blue-cyan), 0 0 22px var(--blue-bright);
  animation: blink 2.4s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: .4s;
  background: var(--blue-bright);
}

.dot:nth-child(3) {
  animation-delay: .8s;
}

@keyframes blink {
  0%, 100% { opacity: .4; transform: scale(.9); }
  50%      { opacity: 1;  transform: scale(1.3); }
}

/* ── PROFESSIONAL MEDIA QUERIES ── */

/* 1. Laptops / Screens < 1200px */
@media (max-width: 1200px) {
  .corner-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
  }
  .top-left, .top-right { top: 3dvh; }
  .bottom-left, .bottom-right { bottom: 3dvh; }
  .top-left, .bottom-left { left: 3dvw; }
  .top-right, .bottom-right { right: 3dvw; }
}

/* 2. Tablets / Small Screens < 992px */
@media (max-width: 992px) {
  .corner-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
  }
  .phrase {
    font-size: clamp(2rem, 5vw + 1rem, 4.2rem);
  }
  .flower-container {
    max-height: 28dvh;
    margin: 1.2rem 0;
  }
  .center-flower {
    max-height: 28dvh;
  }
}

/* 3. Small Tablets / Large Mobile < 768px */
@media (max-width: 768px) {
  .corner-img {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* Rounded for cleaner spacing in tight layouts */
  }
  .top-left, .top-right { top: 2.5dvh; }
  .bottom-left, .bottom-right { bottom: 2.5dvh; }
  .top-left, .bottom-left { left: 2.5dvw; }
  .top-right, .bottom-right { right: 2.5dvw; }
  
  .phrase {
    font-size: clamp(1.8rem, 5.5vw + 0.8rem, 3.5rem);
  }
  .flower-container {
    max-height: 26dvh;
    margin: 1rem 0;
  }
  .center-flower {
    max-height: 26dvh;
  }
}

/* 4. Mobile Devices < 576px */
@media (max-width: 576px) {
  .corner-img {
    width: 75px;
    height: 75px;
  }
  .top-left, .top-right { top: 15px; }
  .bottom-left, .bottom-right { bottom: 15px; }
  .top-left, .bottom-left { left: 15px; }
  .top-right, .bottom-right { right: 15px; }

  .phrase {
    font-size: clamp(1.6rem, 6vw + 0.6rem, 2.8rem);
  }
  .flower-container {
    max-height: 24dvh;
    margin: 0.8rem 0;
  }
  .center-flower {
    max-height: 24dvh;
  }
  .line {
    width: 170px;
    margin: 1rem auto;
  }
}

/* 5. Small Mobile < 480px */
@media (max-width: 480px) {
  .corner-img {
    width: 65px;
    height: 65px;
  }
  .top-left, .top-right { top: 12px; }
  .bottom-left, .bottom-right { bottom: 12px; }
  .top-left, .bottom-left { left: 12px; }
  .top-right, .bottom-right { right: 12px; }

  .phrase {
    font-size: clamp(1.4rem, 6.5vw + 0.4rem, 2.4rem);
  }
  .flower-container {
    max-height: 22dvh;
    margin: 0.6rem 0;
  }
  .center-flower {
    max-height: 22dvh;
  }
  .line {
    width: 140px;
    margin: 0.8rem auto;
  }
}

/* 6. Very Small Mobile < 360px (e.g. 360x640 viewport) */
@media (max-width: 360px) {
  .corner-img {
    width: 55px;
    height: 55px;
  }
  .top-left, .top-right { top: 8px; }
  .bottom-left, .bottom-right { bottom: 8px; }
  .top-left, .bottom-left { left: 8px; }
  .top-right, .bottom-right { right: 8px; }

  .phrase {
    font-size: clamp(1.2rem, 7vw + 0.3rem, 2rem);
  }
  .flower-container {
    max-height: 20dvh;
    margin: 0.5rem 0;
  }
  .center-flower {
    max-height: 20dvh;
  }
  .line {
    width: 110px;
    margin: 0.6rem auto;
  }
  .dots {
    gap: 6px;
  }
  .dot {
    width: 4px;
    height: 4px;
  }
}
