/* 
 * De Blauwe Salon - Main Stylesheet
 * Version: 1.0 (June 2025)
 */

/* Base styles and variables */
:root {
  --main-blue: #284b71; /* A rich blue color based on images */
  --accent-blue: #6a8eb8;
  --light-blue: #d0e3ff;
  --dark-text: #333;
  --light-text: #f8f9fa;
  --background: #ffffff;
  --section-bg: #f8f9fa;
  --section-padding: 5rem 0;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  --border-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin-bottom: 1.5rem;
  color: var(--main-blue);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

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

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

section {
  padding: var(--section-padding);
}

section:nth-child(even) {
  background-color: var(--section-bg);
}

/* Utility classes */
.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--main-blue);
  color: var(--light-text);
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--main-blue);
  cursor: pointer;
}

.btn:hover {
  background-color: transparent;
  color: var(--main-blue);
  text-decoration: none;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--main-blue), var(--accent-blue));
  border-radius: 3px;
}

/* Header/Hero Section */
.header {
  position: relative;
  min-height: 100vh;
  background-color: var(--main-blue);
  color: var(--light-text);
  display: flex;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(20, 37, 56, 0.85)), url('../images/MarjoleinDuo.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--background), transparent);
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.site-title {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  color: #ffffff;
}

.site-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: lowercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.site-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tagline {
  display: block;
  font-style: italic;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.header-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
}

.btn-outline:hover {
  background-color: var(--light-text);
  color: var(--main-blue);
  border-color: var(--light-text);
}

/* Next Event Section */
.next-event {
  background-color: var(--light-blue);
  color: var(--main-blue);
  padding: 3.5rem 0;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.next-event::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background-color: var(--light-blue);
  box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.event-date {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
}

.event-location {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.event-location::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background-color: var(--accent-blue);
}

.event-performers {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 2rem auto 0;
  line-height: 1.7;
}

.event-performers a {
  color: var(--main-blue);
  font-weight: 600;
  text-decoration: underline;
}

.event-performers a:hover {
  color: var(--accent-blue);
}

.next-dates {
  margin-top: 2rem;
}

.schedule-note {
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* About Section */
.about {
  max-width: 800px;
  margin: 0 auto;
}

/* What We Do Section */
.what-we-do {
  background-color: var(--section-bg);
}

.activities {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2rem;
  margin-top: 3rem;
}

.activity {
  flex-basis: calc(33.333% - 2rem);
  text-align: center;
  margin-bottom: 2rem;
}

.activity i {
  font-size: 3rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* About Marjolein Section */
.about-marjolein {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

.marjolein-bio {
  flex: 3;
  min-width: 300px;
}

.marjolein-bio h3 {
  margin-top: 0;
}

.marjolein-images {
  flex: 2;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.marjolein-photo {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.marjolein-photo:hover {
  transform: scale(1.02);
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.2rem;
}

/* Image Gallery */
.gallery {
  padding-bottom: 0;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  height: 250px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact-details {
  max-width: 600px;
  margin: 0 auto;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--main-blue);
  color: var(--light-text);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin: 0;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .site-title {
    font-size: 3rem;
  }
  
  .site-subtitle {
    font-size: 1.2rem;
  }
  
  .activity {
    flex-basis: calc(50% - 2rem);
  }
  
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-marjolein {
    flex-direction: column;
  }
  
  .marjolein-bio, .marjolein-images {
    min-width: 100%;
  }
  
  .marjolein-images {
    margin-top: 2rem;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .site-title {
    font-size: 2.5rem;
  }
  
  .site-subtitle {
    font-size: 1rem;
  }
  
  .activity {
    flex-basis: 100%;
  }
  
  .gallery-container {
    grid-template-columns: 1fr;
  }
  
  .marjolein-images {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add staggered delay to multiple fade-in elements */
.activities .fade-in:nth-child(1) { transition-delay: 0.1s; }
.activities .fade-in:nth-child(2) { transition-delay: 0.2s; }
.activities .fade-in:nth-child(3) { transition-delay: 0.3s; }
.activities .fade-in:nth-child(4) { transition-delay: 0.4s; }
.activities .fade-in:nth-child(5) { transition-delay: 0.5s; }
.activities .fade-in:nth-child(6) { transition-delay: 0.6s; }

.gallery-container .fade-in:nth-child(1) { transition-delay: 0.1s; }
.gallery-container .fade-in:nth-child(2) { transition-delay: 0.2s; }
.gallery-container .fade-in:nth-child(3) { transition-delay: 0.3s; }
.gallery-container .fade-in:nth-child(4) { transition-delay: 0.4s; }
.gallery-container .fade-in:nth-child(5) { transition-delay: 0.5s; }
.gallery-container .fade-in:nth-child(6) { transition-delay: 0.6s; }

/* Timeline Section */
.timeline {
  padding: var(--section-padding);
  background-color: var(--section-bg);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-10px);
}

.timeline-year {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--main-blue);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
}

.timeline-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-card:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.timeline-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.timeline-content p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Timeline fade-in animation */
.timeline-grid .fade-in:nth-child(1) { transition-delay: 0.1s; }
.timeline-grid .fade-in:nth-child(2) { transition-delay: 0.2s; }
.timeline-grid .fade-in:nth-child(3) { transition-delay: 0.3s; }
.timeline-grid .fade-in:nth-child(4) { transition-delay: 0.4s; }
.timeline-grid .fade-in:nth-child(5) { transition-delay: 0.5s; }
.timeline-grid .fade-in:nth-child(6) { transition-delay: 0.6s; }
.timeline-grid .fade-in:nth-child(7) { transition-delay: 0.7s; }

/* Responsive styles for Timeline */
@media screen and (max-width: 992px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-image {
    height: 280px;
  }
}
