/*
  File: style.css
  Project: Art & Flamenco Website
  Design: Glassmorphism, Eco-minimalism, Gradient Color Scheme
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */

:root {
  /* Colors */
  --color-primary: #f72585; /* Vibrant Pink */
  --color-secondary: #7209b7; /* Deep Purple */
  --color-accent: #ff9e00; /* Warm Orange */
  --color-text-light: #f0f0f0;
  --color-text-dark: #222222;
  --color-background: #1a1a2e; /* Deep blue as a base */
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 10px;

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.4s ease-in-out;
}

/* ---------------------------------- */
/*          Global Styles             */
/* ---------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  background: linear-gradient(135deg, #480ca8, #7209b7, #f72585, #ff9e00);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

p {
  line-height: 1.7;
  color: var(--color-text-light);
}

a {
  color: var(--color-primary);
  transition: var(--transition-fast);
}

a:hover {
  color: #ff6ad5; /* Lighter pink on hover */
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden; /* Prevents AOS animations from showing scrollbars */
}

/* ---------------------------------- */
/*       Global Button Styles         */
/* ---------------------------------- */

.btn, button, input[type='submit'] {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 9999px; /* pill shape */
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  transform-origin: center;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------- */
/*       Header & Navigation          */
/* ---------------------------------- */

header {
  transition: background-color 0.4s ease-in-out, padding 0.4s ease-in-out;
}

header.scrolled {
  background: rgba(10, 5, 20, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ---------------------------------- */
/*          Component Styles          */
/* ---------------------------------- */

/* Parallax Background Sections */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax-bg > * {
  position: relative;
  z-index: 2;
}

/* Hero Section */
#hero h1 {
  color: #FFFFFF; /* Ensures white text as per requirement */
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card .card-image {
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  height: 233px; /* Fixed height for image container */
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  margin: 0 auto; /* Redundant due to flex but good practice */
}

.card .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Accordion */
.accordion-header svg {
  transition: transform 0.4s ease;
}

.accordion-header.active svg {
  transform: rotate(180deg);
}

/* Form Styles */
#contact-form input,
#contact-form textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

#contact-form input:focus,
#contact-form textarea:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.4);
  outline: none;
}

/* Carousel Placeholder Styles */
#carousel-wrapper {
  /* JS will handle the transformations for sliding */
  will-change: transform;
}

/* ---------------------------------- */
/*          Page-Specific Styles      */
/* ---------------------------------- */

/* For pages like Privacy, Terms, About, etc. */
.content-page {
  padding-top: 120px; /* Offset for fixed header */
  padding-bottom: 80px;
}

.content-page .content-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem 3rem;
  border-radius: 1rem;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.content-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.content-page p, .content-page li {
    margin-bottom: 1rem;
}

.content-page ul {
    list-style-position: inside;
    list-style-type: disc;
}

/* Success Page */
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-page-container h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.success-page-container p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* ---------------------------------- */
/*          Footer Styles             */
/* ---------------------------------- */

footer a {
  color: var(--color-text-light);
  text-decoration: none;
}

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

footer .flex a {
  font-weight: 600; /* Bolder social links */
}