/* Keep Heart Open Page Styles (Sky Theme) */

.open-header-title {
  color: #0ea5e9; /* Sky Blue */
  font-size: 2.5rem;
  font-weight: bold;
}

.open-path-line {
  margin: 0.5rem 0;
  width: 100px;
  height: 3px;
  background: #7dd3fc;
}

.open-subtitle {
  margin-top: 0.5rem;
  color: #64748b;
  font-weight: bold;
}

.open-hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
  border-radius: 30px; /* Pillow shape */
  border: 1px solid #bae6fd;
  padding: 3rem;
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
  position: relative;
  overflow: hidden; /* Keep clouds inside */
  margin: 3rem 0;
}

.open-box {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.open-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.2);
}

.open-box h3 {
  color: #0284c7;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlight-sky {
  color: inherit;
  background: linear-gradient(transparent 60%, #bae6fd 60%);
  font-weight: bold;
  border-bottom: none;
}

/* Connective Window Interactive Component */
.window-opener {
  width: 100%;
  max-width: 400px;
  height: 250px;
  margin: 3rem auto;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
}

.window-frame {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  border: 8px solid #94a3b8;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23cbd5e1"/><path d="M50 0 V100 M0 50 H100" stroke="%2394a3b8" stroke-width="4"/></svg>');
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-closed-msg {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  color: #475569;
}

.window-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #7dd3fc 0%, #bae6fd 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.scene-sun {
  font-size: 5rem;
  color: #fbbf24;
  animation: sun-spin 10s linear infinite;
}

.scene-text {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes sun-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Active State */
.window-opener.open .window-frame {
  transform: rotateY(-110deg);
}

/* Floating Clouds Animation */
.cloud {
  position: absolute;
  top: 20%;
  left: -20%;
  opacity: 0.8;
  color: #fff;
  font-size: 3rem;
  animation: move-clouds 20s linear infinite;
  z-index: 0; /* Behind text */
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cloud:nth-child(1) {
  top: 10%;
  animation-duration: 25s;
  font-size: 4rem;
}
.cloud:nth-child(2) {
  top: 40%;
  animation-duration: 35s;
  animation-delay: 5s;
  opacity: 0.6;
}
.cloud:nth-child(3) {
  top: 70%;
  animation-duration: 18s;
  animation-delay: 10s;
  font-size: 2.5rem;
  opacity: 0.7;
}

@keyframes move-clouds {
  0% {
    left: -20%;
  }
  100% {
    left: 120%;
  }
}

/* Rainbow Animation */
.rainbow-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 4rem; /* Space for rainbow */
}

.rainbow-arc {
  position: absolute;
  bottom: -300px;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  /* Proper Pastel Rainbow Colors */
  background: radial-gradient(
    circle at center,
    transparent 60%,
    #eecbff 61%,
    /* Violet */ #bae1ff 63%,
    /* Blue */ #baffc9 65%,
    /* Green */ #ffffba 67%,
    /* Yellow */ #ffdfba 69%,
    /* Orange */ #ffb3ba 71%,
    /* Red */ transparent 73%
  );
  opacity: 0;
  transform: scale(0.8);
  transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
  filter: blur(2px); /* Soften the edges */
}

/* Rainbow visible state */
.rainbow-section.visible .rainbow-arc {
  opacity: 0.4;
  transform: scale(1.2);
  transition-delay: 2s; /* Wait 2s before starting */
}

/* Pulse Text Animation */
.pulse-text {
  animation: pulse-gentle 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes pulse-gentle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Flying Bird Animation */
.flying-bird {
  position: absolute;
  top: 15%;
  left: -10%;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0.9;
  z-index: 2;
  animation: bird-fly 15s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

@keyframes bird-fly {
  0% {
    left: -10%;
    top: 15%;
    transform: rotate(0deg);
  }
  25% {
    top: 10%;
    transform: rotate(5deg);
  }
  50% {
    top: 20%;
    transform: rotate(0deg);
  }
  75% {
    top: 12%;
    transform: rotate(-5deg);
  }
  100% {
    left: 110%;
    top: 15%;
    transform: rotate(0deg);
  }
}

/* Content Card Style */
.content-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.15); /* Sky blue shadow */
  border: 1px solid rgba(224, 242, 254, 0.5); /* Very light sky blue border */
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -10px rgba(14, 165, 233, 0.2);
}

@media (max-width: 768px) {
  .content-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 16px;
  }
}
