/* 
 * CSS for Casey Rain's "Drown" Promo Website
 * Created: April 14, 2025
 * Updated: April 14, 2025 - Added responsive improvements and animation styles
 */

/* Color palette variables from color_palette.txt */
:root {
  --primary: #221644;    /* Dark purple - background */
  --secondary: #392c6b;  /* Medium purple - accents and secondary elements */
  --accent1: #e4a7a4;    /* Soft pink - highlights and call-to-action */
  --accent2: #f2cfbd;    /* Light beige - text backgrounds and subtle elements */
  --accent3: #ba7bad;    /* Mauve - decorative elements and hover states */
  --accent4: #7751a0;    /* Medium purple-blue - buttons and interactive elements */
  
  /* Additional variables for consistent spacing and typography */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  --transition-speed: 0.3s;
  --border-radius: 4px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Basic reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--primary);
  color: var(--accent2);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(to bottom right, var(--primary), var(--secondary));
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

h1, h2, h3 {
  margin-bottom: var(--spacing-md);
  color: var(--accent1);
  font-weight: 700;
  letter-spacing: 1px;
}

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--accent3);
}

p {
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

a {
  color: var(--accent1);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent3);
  text-decoration: underline;
}

/* Header Section */
.section-header {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background-color: rgba(34, 22, 68, 0.8);
  position: relative;
  overflow: hidden;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent3), var(--accent1), var(--accent4));
}

.section-header h1 {
  font-size: 5rem;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px rgba(228, 167, 164, 0.5);
  animation: pulse 3s infinite alternate;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--accent2);
  font-weight: 400;
}

/* Album Artwork Section */
.section-artwork {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.section-artwork h2 {
  /* Visually hide the heading but keep it for screen readers */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.artwork-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  perspective: 1000px;
}

.album-cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: transform 0.5s ease, box-shadow var(--transition-speed) ease;
  transform-style: preserve-3d;
}

.album-cover:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Overview Section */
.section-overview {
  background-color: rgba(57, 44, 107, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.release-info {
  background-color: rgba(34, 22, 68, 0.6);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent3);
}

.release-info p {
  margin-bottom: var(--spacing-sm);
}

.release-info strong {
  color: var(--accent1);
}

/* Features Section */
.section-features {
  background-color: rgba(34, 22, 68, 0.4);
  padding: var(--spacing-xl) 0;
}

.features-list {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.features-list li {
  background-color: rgba(57, 44, 107, 0.6);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  text-align: center;
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.features-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent4);
  transition: width var(--transition-speed) ease;
}

.features-list li:hover {
  transform: translateY(-5px);
  background-color: rgba(57, 44, 107, 0.8);
}

.features-list li:hover::before {
  width: 100%;
  opacity: 0.2;
}

/* Quote Section */
.section-quote {
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.section-quote h2 {
  margin-bottom: var(--spacing-lg);
}

.artist-quote {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background-color: rgba(57, 44, 107, 0.3);
  border-radius: var(--border-radius);
}

.artist-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 6rem;
  color: var(--accent3);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.artist-quote p {
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.artist-quote cite {
  font-style: normal;
  color: var(--accent1);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Pitch Section */
.section-pitch {
  background-color: rgba(57, 44, 107, 0.3);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
}

.pitch-content {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Contact Section */
.section-contact {
  background-color: rgba(34, 22, 68, 0.6);
  padding: var(--spacing-xl) 0;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-item {
  background-color: rgba(57, 44, 107, 0.4);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.contact-item h3 {
  color: var(--accent1);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--accent4);
  padding-bottom: var(--spacing-sm);
}

/* Footer Section */
.section-footer {
  background-color: rgba(34, 22, 68, 0.9);
  padding: var(--spacing-lg) 0;
  text-align: center;
  position: relative;
}

.section-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent3), var(--accent1), var(--accent4));
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent4);
  color: var(--accent2);
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--accent3);
}

/* Reveal Animations */
.reveal-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes pulse {
  0% {
    text-shadow: 0 0 10px rgba(228, 167, 164, 0.5);
  }
  100% {
    text-shadow: 0 0 20px rgba(228, 167, 164, 0.8), 0 0 30px rgba(186, 123, 173, 0.6);
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .artwork-container {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .section-header h1 {
    font-size: 3.5rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .artist-quote p {
    font-size: 1.1rem;
  }
  
  .artwork-container {
    max-width: 400px;
  }
  
  .features-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .section-header h1 {
    font-size: 2.8rem;
  }
  
  .section-header h2 {
    font-size: 1.2rem;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .artist-quote::before {
    font-size: 4rem;
  }
  
  .artwork-container {
    max-width: 300px;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  #back-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
  
  .section-quote h2,
  .section-features h2,
  .section-overview h2,
  .section-pitch h2,
  .section-contact h2 {
    text-align: center;
  }
}