/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color-1: #060614;
  --bg-color-2: #12092b;
  --bg-color-3: #220b41;
  --bg-color-4: #0a041a;
  
  --primary-glow: rgba(157, 0, 255, 0.4);
  --secondary-glow: rgba(255, 0, 123, 0.4);
  --accent-cyan: #00f3ff;
  --accent-pink: #ff007b;
  
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  min-height: 100%;
  background-color: var(--bg-color-1);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-family);
  color: #f5f5fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  position: relative;
}

/* Fixed Background Gradient (Viewport Pinned) */
.bg-gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, var(--bg-color-1), var(--bg-color-2), var(--bg-color-3), var(--bg-color-4));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: -2;
  pointer-events: none;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Background Ambient Glows (Viewport Pinned with Circular Orbit Animation) */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  top: 15%;
  left: 15%;
  animation: orbitClockwise 28s infinite linear;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  bottom: 15%;
  right: 15%;
  animation: orbitCounterClockwise 34s infinite linear;
}

/* 
  Circular Orbit Animations:
  By rotating the coordinate system, translating along the X axis, 
  and then reversing the rotation, the circle travels in a clean orbit
  while remaining upright (preventing distortion or clipping).
*/
@keyframes orbitClockwise {
  0% {
    transform: rotate(0deg) translateX(12vw) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(12vw) rotate(-360deg);
  }
}

@keyframes orbitCounterClockwise {
  0% {
    transform: rotate(360deg) translateX(12vw) rotate(-360deg);
  }
  100% {
    transform: rotate(0deg) translateX(12vw) rotate(0deg);
  }
}

/* Main Container (Max 1200px) */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  z-index: 10;
  text-align: center;
}

/* Content Wrapper */
.content-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Celebration Badge */
.celebration-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: pulseBadge 3s infinite alternate ease-in-out;
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(157, 0, 255, 0.3);
  }
}

.celebration-badge .emoji {
  font-size: 38px;
  line-height: 1;
}

/* Title Styling */
.title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.title .highlight {
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -1.5px;
  background: linear-gradient(45deg, #ff9e00, var(--accent-pink), #a200ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-top: 8px;
  filter: drop-shadow(0 2px 10px rgba(255, 0, 123, 0.4));
}

/* Message Text */
.message {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.7;
  color: #d1cbdc;
  margin-bottom: 45px;
  max-width: 800px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.message .accent {
  font-weight: 600;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.message .accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.message .accent:nth-of-type(2)::after {
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
}

/* Media Gallery Section */
.media-container {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 55px;
}

/* Animated Border Container wrapper */
.media-frame {
  position: relative;
  width: 290px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  height: auto; /* Uses aspect ratio fluidly */
  border-radius: 24px;
  padding: 4px; /* Border width */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(157, 0, 255, 0.15);
  animation: pulseGlow 4s infinite alternate ease-in-out;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.media-frame:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(0, 243, 255, 0.4);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(157, 0, 255, 0.15);
  }
  100% {
    box-shadow: 
      0 15px 40px rgba(0, 0, 0, 0.6),
      0 0 35px rgba(255, 0, 123, 0.35);
  }
}

/* Rotating Gradient Border using Pseudo-element */
.media-frame::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #ff007b,
    #9d00ff,
    #00f3ff,
    #ffffd0,
    #ff007b
  );
  animation: rotateBorder 5s linear infinite;
  z-index: 1;
}

.media-frame:hover::before {
  animation-duration: 2.5s; /* Rotate faster on hover */
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Inside elements (Images) */
.media-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px; /* Slightly smaller than outer frame */
  background-color: #0c081c;
  display: block;
  transition: transform 0.5s ease;
}

.media-frame:hover img {
  transform: scale(1.02); /* Subtle zoom effect inside border */
}

/* Interactive Action Button */
.btn-action {
  background: linear-gradient(135deg, var(--accent-pink), #9d00ff);
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  box-shadow: 
    0 8px 24px rgba(255, 0, 123, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-action:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 
    0 12px 32px rgba(255, 0, 123, 0.55),
    0 0 25px rgba(157, 0, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-action:active {
  transform: translateY(1px) scale(0.98);
}

.btn-icon {
  font-size: 22px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-action:hover .btn-icon {
  animation: balloonWobble 0.6s ease infinite alternate;
}

@keyframes balloonWobble {
  0% {
    transform: translateY(0) rotate(-5deg);
  }
  100% {
    transform: translateY(-4px) rotate(5deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .title {
    font-size: 36px;
  }
  
  .title .highlight {
    font-size: 48px;
  }
  
  .message {
    font-size: 18px;
    margin-bottom: 35px;
  }
  
  .media-container {
    gap: 20px;
    margin-bottom: 35px;
  }
  
  .media-frame {
    width: 260px;
  }
  
  .btn-action {
    padding: 15px 32px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 40px 16px;
  }
  
  .celebration-badge {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .celebration-badge .emoji {
    font-size: 32px;
  }
  
  .title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .title .highlight {
    font-size: 38px;
  }
  
  .message {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .media-container {
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .media-frame {
    width: 100%;
  }
}
