/* ===================================
   HAZBYN MUSIC - STYLES
   Using instrument images as background elements
   =================================== */

/* CSS RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette - Moody blues and warm accents */
  --color-primary: #1a3a52;
  --color-secondary: #2d5f7f;
  --color-accent: #f4a261;
  --color-accent-dark: #e76f51;
  --color-dark: #0a1628;
  --color-light: #f8f9fa;
  --color-text: #e8eaed;
  --color-text-secondary: #b8bdc4;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', serif;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow-x: hidden;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

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

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
}

/* CTA Section Below Hero */
.cta-section-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  padding: 0;
  position: relative;
}

.cta-section-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
  display: flex;
  justify-content: center;
}

/* Hero CTA Box - Reference Style */
.hero-cta-box {
  max-width: 850px;
  width: 100%;
  padding: 3rem;
  text-align: left;
  position: relative;
}

/* Semi-transparent overlay behind text - Dark contrast */
.hero-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 30, 0.9);
  z-index: -1;
}

.hero-cta-box h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-cta-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4);
}

/* Responsive for CTA section */
@media (max-width: 768px) {
  .cta-section-hero .container {
    padding: 0 1.5rem 3rem 1.5rem;
  }
  
  .hero-cta-box {
    padding: 2rem;
  }
  
  .hero-cta-box h2 {
    font-size: 2rem;
  }
  
  .hero-cta-box p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-cta-box {
    padding: 1.5rem;
  }
  
  .hero-cta-box h2 {
    font-size: 1.75rem;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--color-light);
  font-style: italic;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 5px rgba(0, 0, 0, 0.9);
  font-weight: 500;
}

/* EMAIL SIGNUP FORM */
.email-signup {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.email-signup input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 1rem;
  color: var(--color-light);
  transition: all 0.3s ease;
}

.email-signup input[type="email"]::placeholder {
  color: var(--color-text-secondary);
}

.email-signup input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.15);
}

.email-signup button {
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-signup button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
}

/* SECTIONS */
.section {
  padding: var(--spacing-xl) var(--spacing-md);
  position: relative;
}

.section-alt {
  background: rgba(26, 58, 82, 0.3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* MUSIC PREVIEW SECTION - with bass background */
.music-preview {
  position: relative;
  background: linear-gradient(to bottom, var(--color-dark) 0%, var(--color-primary) 100%);
}

.music-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/4strinbass.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.08;
  filter: blur(2px);
  z-index: 0;
}

.music-preview .container {
  position: relative;
  z-index: 1;
}

.music-preview h2,
.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--color-light);
}

.featured-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.track {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-md);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.track:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--color-accent);
}

.track h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.track-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.track-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.track:hover .track-thumbnail img {
  transform: scale(1.05);
}

.track .button {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

.track audio {
  width: 100%;
  margin-top: 1rem;
  filter: sepia(20%) saturate(70%) hue-rotate(180deg);
}

/* ABOUT PREVIEW SECTION - with violin background */
.about-preview {
  position: relative;
  background: var(--color-dark);
}

.about-preview::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/violin.jpg');
  background-size: cover;
  background-position: center left;
  opacity: 0.12;
  filter: blur(2px);
  z-index: 0;
}

.about-preview .container {
  position: relative;
  z-index: 1;
}

.about-preview-content {
  max-width: 700px;
}

.lead-text {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.about-preview-content p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* VERTICAL ACCENT BAR - One continuous line per section */
/* -------------------------------------------- */
.section-alt .about-preview-content,
.section:not(.section-alt):not(.music-preview):not(.newsletter-section) .about-preview-content {
  position: relative;
  padding-left: 2rem;
}

.section-alt .about-preview-content::before,
.section:not(.section-alt):not(.music-preview):not(.newsletter-section) .about-preview-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-alt .about-preview-content p,
.section:not(.section-alt):not(.music-preview):not(.newsletter-section) .about-preview-content p {
  font-style: italic;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.text-link:hover {
  color: var(--color-accent-dark);
  transform: translateX(5px);
}

/* ACCENT TEXT - Orange first paragraph */
.accent-text {
  color: var(--color-accent);
}

/* MUSICAL APPROACH LAYOUT WITH IMAGE */
.approach-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}

.approach-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.approach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: radial-gradient(ellipse 70% 70% at center, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 20%, transparent 100%);
}

/* Responsive for approach layout */
@media (max-width: 968px) {
  .approach-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .approach-image {
    height: 300px;
  }
}

/* LATEST RELEASE SECTION - with drumset background */
.latest-release {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.5) 0%, rgba(45, 95, 127, 0.3) 100%);
}

.latest-release::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/drumset.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.1;
  filter: blur(3px);
  z-index: 0;
}

.latest-release .container {
  position: relative;
  z-index: 1;
}

.release-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.release-artwork {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.artwork-placeholder {
  color: var(--color-text-secondary);
  font-style: italic;
}

.release-info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* NEWSLETTER SECTION */
.newsletter-section {
  text-align: center;
  background: rgba(10, 22, 40, 0.8);
}

.centered-signup {
  justify-content: center;
}

/* BUTTONS */
.button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-accent);
}

.button:hover {
  background: transparent;
  color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.3);
}

.cta-section {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* FOOTER */
footer {
  background: var(--color-dark);
  text-align: center;
  padding: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  nav {
    gap: 1rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .email-signup {
    flex-direction: column;
  }
  
  .email-signup button {
    width: 100%;
  }
  
  .featured-tracks {
    grid-template-columns: 1fr;
  }
  
  .release-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-preview::before {
    width: 100%;
    opacity: 0.06;
  }
  
  .section {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* PAGE TITLE ANIMATIONS - REMOVED */
/* All pages now use the flipIn animation from .hero-logo */
/* This ensures consistent branding across Home, About, Music, and Contact */

/* SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ========================================
   HERO LOGO STYLES - Damian McGinty Style
   ======================================== */

/* Flip In Animation */
@keyframes flipIn {
  0% {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotateY(-10deg);
  }
  70% {
    transform: perspective(400px) rotateY(10deg);
  }
  100% {
    transform: perspective(400px) rotateY(0deg);
    opacity: 1;
  }
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  justify-content: center;
  
  /* Apply flip-in animation on page load for HOME only */
  animation: flipIn 1s ease-out;
  animation-fill-mode: both;
}

/* About/Music/Contact logos - trigger animation via class */
#about .hero-logo,
#music .hero-logo,
#contact .hero-logo {
  animation: none; /* Remove automatic animation */
}

#about .hero-logo.animate-flip,
#music .hero-logo.animate-flip,
#contact .hero-logo.animate-flip {
  animation: flipIn 1s ease-out;
  animation-fill-mode: both;
}

.logo-box {
  width: 180px;
  height: 180px;
  border: 8px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
}

.logo-letter {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 140px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -5px;
  margin: 0;
  padding: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.85;
}

.logo-name-first,
.logo-name-last {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 110px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 0.85;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
  .hero-logo {
    flex-direction: column;
    gap: 1.5rem;
  }

  .logo-box {
    width: 140px;
    height: 140px;
    border: 6px solid #ffffff;
  }

  .logo-letter {
    font-size: 100px;
  }

  .logo-name-first,
  .logo-name-last {
    font-size: 70px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-box {
    width: 100px;
    height: 100px;
    border: 5px solid #ffffff;
  }

  .logo-letter {
    font-size: 70px;
  }

  .logo-name-first,
  .logo-name-last {
    font-size: 50px;
  }
}

/* Optional: Add Anton font from Google Fonts if not already included */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');
