/* Global Styles */
:root {
  --primary-dark: #3a2a5e;
  --primary-medium: #5d4a8a;
  --primary-light: #8a7ab8;
  --accent-gold: #d4af37;
  --accent-gold-light: #e9d08e;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f7ff;
  --background-dark: #1a1a2e;
  --transition-standard: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-medium);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: var(--transition-standard);
}

a:hover {
  color: var(--accent-gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-medium);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-standard);
  text-align: center;
  font-weight: 700;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--text-dark);
}

.btn-gold:hover {
  background-color: var(--accent-gold-light);
  color: var(--text-dark);
}

.text-center {
  text-align: center;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 100px 0;
}

.section-dark h2 {
  color: var(--text-light);
}

.divider {
  height: 2px;
  width: 80px;
  background-color: var(--accent-gold);
  margin: 2rem 0;
}

.text-center .divider {
  margin: 2rem auto;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-standard);
  padding: 20px 0;
}

header.scrolled {
  background-color: rgba(58, 42, 94, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: var(--transition-standard);
}

header.scrolled .logo {
  height: 50px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-light);
  font-size: 1.1rem;
  position: relative;
  font-weight: 400;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-gold);
  transition: var(--transition-standard);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('../images/header-background.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(26, 26, 46, 0.7), rgba(58, 42, 94, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
  padding: 0 20px;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 5rem;
  letter-spacing: 5px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.hero .subtitle {
  color: var(--accent-gold);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Song Promotion Section */
.song-promotion {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
}

.song-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.song-image {
  flex: 1;
  position: relative;
}

.song-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 5px solid rgba(212, 175, 55, 0.3);
}

.song-text {
  flex: 1.2;
}

.song-text h2 {
  color: var(--text-light);
}

.song-actions {
  margin-top: 40px;
}

.small-text {
  font-size: 0.9rem;
  color: var(--primary-light);
  margin-top: 15px;
}

/* Welcome Section */
.welcome-section {
  background-color: var(--background-light);
  padding: 120px 0;
}

.welcome-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.welcome-text {
  flex: 1.2;
}

.welcome-image {
  flex: 1;
  text-align: center;
}

.welcome-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Book Overview Section */
.book-overview {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 120px 0;
}

.book-overview h2 {
  color: var(--text-light);
}

.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.chapter-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  transition: var(--transition-standard);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.chapter-card h3 {
  color: var(--accent-gold);
  margin-bottom: 20px;
}

/* Author Section */
.author-section {
  padding: 120px 0;
}

.author-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.author-image {
  flex: 1;
  text-align: center;
}

.author-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 10px solid var(--background-light);
}

.author-text {
  flex: 1.5;
}

/* Journey Section */
.journey-section {
  padding: 120px 0;
  background-color: var(--background-light);
}

.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 80px auto 0;
}

.journey-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 40px;
  background-color: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--accent-gold);
  border: 4px solid var(--text-light);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 100px 0 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 80px;
  margin-bottom: 80px;
}

.footer-logo img {
  height: 70px;
  margin-bottom: 30px;
}

.footer-links h3 {
  color: var(--accent-gold);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 15px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.footer-links ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: var(--transition-standard);
}

.social-links a:hover {
  background-color: var(--accent-gold);
  color: var(--text-dark);
  transform: translateY(-5px);
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.subscribe-form input {
  flex: 1;
  padding: 15px;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.breathing-element {
  animation: breathing 6s ease-in-out infinite;
}

@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .song-container, .welcome-container, .author-container {
    flex-direction: column;
    text-align: center;
  }
  
  .divider { margin: 2rem auto; }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  
  .social-links, .subscribe-form {
    justify-content: center;
  }
  
  .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  
  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-dark);
    transition: var(--transition-standard);
    z-index: 999;
  }
  
  nav.active { left: 0; }
  
  nav ul {
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
  }
  
  nav ul li {
    margin: 20px 0;
  }
  
  .journey-timeline:before { left: 20px; }
  
  .timeline-item { flex-direction: column !important; }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-item:before { left: 20px !important; transform: none; }
}

/* 
   MOBILE RESPONSIVENESS FIX FOR HERO SECTION
   Add these styles to the end of your styles.css file 
*/

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px; /* Space for fixed header and bottom padding */
    display: flex;
    align-items: center;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 3rem; /* Smaller font for mobile */
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-btns {
    flex-direction: column; /* Stack buttons on small screens */
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
  }

  .hero-btns .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
}
