/* General styles */
body {
  font-family: 'Monoton', cursive;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #ff69b4, #333);
  color: #fff;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Spark container */
#spark-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Prevent interaction with sparks */
  overflow: hidden;
  z-index: 9999; /* Ensure sparks stay on top */
}

/* Spark style */
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ff69b4 50%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4;
  animation: sparkle-animation 2s linear infinite;
}

/* Spark movement animation */
@keyframes sparkle-animation {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(100px, 100px) scale(0);
  }
}

/* Header styling */
header {
  text-align: center;
  padding: 1rem;
  background: #ff69b4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1.digital-style {
  font-size: 3rem;
  color: black;
  text-shadow: 3px 3px 0 #fff;
}

.cta-container {
  background-color: #ff69b4; /* Matches the theme */
  color: #fff; 
  padding: 20px 40px; /* Add horizontal padding for better readability */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 2rem auto; /* Centered vertically */
  text-align: center; /* Center-align the text */
  max-width: 600px; /* Restrict width for better readability */
  line-height: 1.6; /* Improve spacing between lines */
}

.cta-container h3 {
  font-family: 'Monoton', cursive;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-container p {
  font-family: 'Princess Sofia', cursive;
  font-size: 1.2rem; /* Adjust font size for readability */
  margin-bottom: 20px;
}

.cta-container ul {
  list-style-type: none;
  padding: 0;
  margin: 10px auto; /* Center the list */
  text-align: left; /* Align text to the left for better flow */
  max-width: 400px; /* Restrict width for better readability */
}

.cta-container ul li {
  margin: 5px 0;
  font-size: 1.2rem;
}

.cta-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #333;
  color: #ff69b4;
  font-family: 'Monoton', cursive;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 15px; /* Add spacing above the button */
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.cta-button:hover {
  background-color: #000;
  box-shadow: 0 0 15px #ff69b4, 0 0 30px #ff69b4;
  transform: scale(1.1);
}


/* Navigation Bar Styling */
nav ul.social-buttons {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 1rem;
  margin: 1rem 0;
  padding: 0;
}

nav ul.social-buttons li a {
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background: black;
  color: #ff69b4;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

nav ul.social-buttons li a:hover {
  background: #ff1493;
  transform: scale(1.1);
  box-shadow: 0 0 15px #ff69b4, 0 0 30px #ff69b4;
}

/* Music toggle styling */
#music-toggle {
  text-align: center;
  margin: 1rem 0;
}

#music-button {
  background: #ff69b4;
  color: #fff;
  font-family: 'Monoton', cursive;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s, background-color 0.3s;
}

#music-button:hover {
  background: #ff1493;
  transform: scale(1.1);
}

/* Top image styling */
#top-image {
  text-align: center;
  margin: 1rem 0;
}

#top-image img {
  width: 100%;
  max-width: 600px;
  height: auto; /* Maintain aspect ratio */
  border: 5px solid #ff69b4;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* About section styling */
#about {
  background: #333;
  color: #ff69b4;
  padding: 2rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#about h2 {
  font-size: 2rem;
  color: #fff;
  text-shadow: 2px 2px 0 #ff69b4;
  margin-bottom: 1rem;
}

#about p {
  line-height: 1.6;
}

/* Parallax container */
.parallax-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  perspective: 1px;
}

/* Parallax layers */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.layer-back {
  background-image: url('background-image.jpg'); /* Replace with your background image */
  transform: translateZ(-1px) scale(2);
}

.layer-front {
  background-image: url('foreground-image.png'); /* Replace with your foreground image */
  transform: translateZ(0);
}

/* Social feeds section styling */
#social-feeds {
  text-align: center;
  padding: 2rem;
  background: #fff;
  color: #333;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#social-feeds h2 {
  font-size: 2rem;
  color: #ff69b4;
  margin-bottom: 1rem;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.instagram-feed blockquote {
  margin: 0 auto;
}

/* Gallery section styling */
#gallery {
  text-align: center;
  padding: 2rem;
}

#canvas-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

canvas {
  border: 3px solid #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  background: #222;
  max-width: 100%; /* Canvas scales on smaller screens */
}

/* Footer image styling */
#footer-image {
  text-align: center;
  margin-top: 2rem;
}

#footer-image img {
  width: 100%;
  max-width: 800px;
  height: auto; /* Maintain aspect ratio */
  border: 5px solid #ff69b4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Sparkle Effect */
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ff69b4;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4;
  animation: sparkle-fade 1s ease-in-out;
}

/* Fade-out effect for sparkles */
@keyframes sparkle-fade {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}

/* Fade-in animation for sections */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  opacity: 0; /* Initially hidden */
  animation: fadeIn 1s ease-in-out;
  animation-fill-mode: forwards; /* Keeps animation state */
  animation-delay: 0.5s; /* Adds a delay for a smoother experience */
}

/* Responsive Adjustments */
@media only screen and (max-width: 768px) {
  h1.digital-style {
    font-size: 2.5rem;
  }

  nav ul.social-buttons {
    flex-direction: column;
  }

  nav ul.social-buttons li a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  #social-feeds h2 {
    font-size: 1.8rem;
  }
}

@media only screen and (max-width: 480px) {
  h1.digital-style {
    font-size: 2rem;
  }

  nav ul.social-buttons li a {
    padding: 0.3rem;
  }

  #social-feeds h2 {
    font-size: 1.5rem;
  }
}
