* {
  margin: 0;
  padding: 0;
  font-family: "Quicksand", sans-serif;
}

body {
  position: relative;
  z-index: 0;
  background: linear-gradient(to bottom, #c0e8f9 5%, #f7c0ce 40%, #f97fa0 100%);
  transition: background 1s ease-in-out;
  overflow-x: hidden;
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.floating-elements .float {
  position: absolute;
  font-size: 3rem;
  animation: floatUp 10s ease-in-out infinite;
  bottom: -50px;
  opacity: 0.4;
  filter: blur(1px);
  transition: transform 0.3s ease;
}

.floating-elements .float1 {
  left: 10%;
  animation-delay: 0s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float2 {
  left: 25%;
  animation-delay: 1s;
  color: rgba(255, 255, 255, 0.45);
}
.floating-elements .float3 {
  left: 45%;
  animation-delay: 2s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float4 {
  left: 65%;
  animation-delay: 3s;
  color: rgba(255, 255, 255, 0.4);
}
.floating-elements .float5 {
  left: 85%;
  animation-delay: 4s;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50vh) scale(1.05);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

.sweet-dreams {
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
  transition: all 0.4s ease;
}

.heart-container {
  display: inline-block;
  background-color: #f97fa0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 70px;
  margin-bottom: 20px;
  animation: jump 1s infinite;
  z-index: 2;
  position: relative;
}

.heart-container i {
  color: #fff;
  font-size: 28px;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.sweet-title {
  font-family: "Unbounded", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #6b3e2e;
  transition: color 0.3s ease;
}

.sweet-title .highlight {
  color: #f97fa0;
  font-family: "Unbounded", sans-serif;
}

.sweet-subtitle {
  margin: 2rem 1rem 0 1rem;
  font-weight: 500;
  color: #6b3e2e;
  font-size: 1.3rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.faq-section {
  max-width: 850px;
  margin: 70px auto;
  padding: 0 25px;
}

.faq-item {
  background: linear-gradient(to right, #f9e6ea, #fce9f0);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(249, 127, 160, 0.1);
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(249, 127, 160, 0.15);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  font-size: 1.1rem;
  text-align: left;
  font-weight: 600;
  color: #4b2c20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.faq-question:hover {
  background-color: #fdebf1;
  color: #c04a6e;
}

.faq-icon {
  font-size: 1.4rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  color: #4b2c20;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    padding 0.4s ease;
  background-color: #fff1f5;
  padding: 0 20px;
  border-top: 1px solid #fbc0d3;
  will-change: max-height;
  text-align: justify;
}

.faq-answer p {
  color: #5c4a3f;
  font-size: 1.1rem;
  padding: 15px 0;
  margin-bottom: 0;
}

.faq-answer a {
  color: #f97fa0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq-answer a:hover {
  color: #fd91ae;
}

.faq-item.active .faq-answer {
  padding: 0 20px;
  border-radius: 0 0 12px 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(90deg);
  color: #c04a6e;
}

@media (min-width: 1440px) {
  .sweet-title {
    font-size: 3.5rem;
  }

  .sweet-subtitle {
    font-size: 1.5rem;
  }

  .faq-section {
    max-width: 1000px;
  }

  .faq-question {
    font-size: 1.2rem;
  }

  .faq-answer p {
    font-size: 1.15rem;
  }
}

@media (max-width: 1024px) {
  .sweet-title {
    font-size: 2.4rem;
  }

  .sweet-subtitle {
    font-size: 1.1rem;
  }

  .faq-section {
    max-width: 700px;
    margin: 50px auto;
  }
}

@media (max-width: 768px) {
  .sweet-dreams {
    padding: 40px 16px;
  }

  .sweet-title {
    font-size: 1.8rem;
  }

  .sweet-subtitle {
    font-size: 1rem;
    margin: 1.2rem 0 0;
  }

  .heart-container {
    width: 52px;
    height: 52px;
    line-height: 60px;
  }

  .heart-container i {
    font-size: 24px;
  }

  .faq-section {
    margin: 40px auto;
    padding: 0 16px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 16px;
  }

  .faq-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-left: 10px;
  }

  .faq-answer p {
    font-size: 1rem;
  }

  .floating-elements .float {
    font-size: 2rem;
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .sweet-title {
    font-size: 1.5rem;
  }

  .sweet-subtitle {
    font-size: 0.95rem;
  }

  .heart-container {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .heart-container i {
    font-size: 18px;
  }

  .faq-section {
    margin: 30px auto;
    padding: 0 12px;
  }

  .faq-item {
    border-radius: 10px;
    margin-bottom: 12px;
  }

  .faq-question {
    font-size: 0.92rem;
    padding: 14px 12px;
  }

  .faq-icon {
    font-size: 1rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .floating-elements .float {
    display: none;
  }
}

@media (max-width: 320px) {
  .sweet-dreams {
    padding: 30px 12px;
  }

  .sweet-title {
    font-size: 1.2rem;
  }

  .sweet-subtitle {
    font-size: 0.85rem;
  }

  .heart-container {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  .heart-container i {
    font-size: 16px;
  }

  .faq-section {
    padding: 0 10px;
    margin: 24px auto;
  }

  .faq-question {
    font-size: 0.85rem;
    padding: 12px 10px;
  }

  .faq-answer p {
    font-size: 0.82rem;
  }
}
