/* 
 * Resurrexit Modern Redesign
 * A contemporary, elegant design for the choir website
 */

/* ============================
   CSS CUSTOM PROPERTIES
   ============================ */

:root {
  /* Colors - inspired by choir scarves & church */
  --color-primary: #E8847C;
  --color-primary-dark: #D66B63;
  --color-primary-light: #F2A9A3;
  --color-accent: #C9A43D;
  --color-accent-light: #DFC56E;

  --color-dark: #1a1a1a;
  --color-dark-lighter: #2a2a2a;
  --color-dark-surface: #333333;

  --color-light: #FFF8F5;
  --color-light-muted: #F5EDE9;
  --color-text: #E8E8E8;
  --color-text-muted: #A0A0A0;

  /* Glass effect */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-display: 'Neco', 'Georgia', serif;
  --font-body: 'Neco', 'Georgia', serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ============================
   RESET & BASE
   ============================ */

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

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

body {
  font-family: var(--font-body);
  background: var(--color-dark);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================
   TYPOGRAPHY
   ============================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-light);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-style: italic;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--color-primary);
}

p {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

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

a:hover {
  color: var(--color-primary-light);
}

small {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================
   LAYOUT UTILITIES
   ============================ */

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

.section {
  padding: var(--space-xl) 0;
}

/* ============================
   NAVIGATION
   ============================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-medium);
}

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

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

.nav-logo {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
      rgba(26, 26, 26, 0.4) 0%,
      rgba(26, 26, 26, 0.6) 50%,
      rgba(26, 26, 26, 0.95) 100%);
}

.hero-content {
  text-align: center;
  padding: var(--space-lg);
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  max-width: 400px;
  width: 80%;
  margin-bottom: var(--space-md);
  filter: invert(1) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-primary-light);
  font-style: italic;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: bounce 2s infinite;
}

.hero-scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 20px;
  position: relative;
}

.hero-scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDown 1.5s infinite;
}

/* ============================
   GLASS CARDS
   ============================ */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ============================
   CONTENT SECTIONS
   ============================ */

.content-section {
  padding: var(--space-xl) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(232, 132, 124, 0.1);
  position: relative;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.content-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Slider navigation dots */
.welcome-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.welcome-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(232, 132, 124, 0.5);
}

.welcome-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Subtle bottom gradient for the gallery hint */
.content-image .image-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Click hint icon */
.content-image .image-hint {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 5;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.content-image:hover .image-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Slider inside content-image */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 20px;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.welcome-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s ease-in-out;
}

.welcome-slide.active-slide {
  opacity: 1;
  z-index: 1;
  animation: fadeSlide 0.6s ease-in-out;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================
   WELCOME SECTION
   ============================ */

.welcome-section {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-dark-lighter) 100%);
}

.welcome-text p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.welcome-text p:first-of-type::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.15em;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================
   CONCERTS SECTION
   ============================ */

.concerts-section {
  background: var(--color-dark-lighter);
  position: relative;
  overflow: hidden;
}

.concerts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* ============================
   CONCERT CARDS
   ============================ */

.concerts-grid,
.past-concerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  justify-content: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.concert-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  position: relative;
  background: var(--color-dark-surface);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.concert-card > img,
.flip-card-front > img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.concert-card:hover > img,
.flip-card-front:hover > img {
  transform: scale(1.03);
}

.concert-card-wrapper {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.concert-card-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-primary-light);
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.concert-card-caption:hover {
  color: var(--color-primary);
}

.no-concerts-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: var(--space-lg) 0;
}

/* ============================
   PAST CONCERTS SECTION
   ============================ */

.past-concerts-section {
  background: linear-gradient(180deg, var(--color-dark-lighter) 0%, var(--color-dark) 100%);
  position: relative;
  overflow: hidden;
}

.past-concerts-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* ============================
   FLIP CARDS
   ============================ */

.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.flip-card-front {
  position: relative;
}

.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark-surface);
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery card cursor */
.gallery-card {
  cursor: pointer;
}

/* ============================
   FULLSCREEN GALLERY OVERLAY
   ============================ */

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.gallery-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gallery-image-container {
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.8rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  line-height: 1;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
  left: 1.5rem;
}

.gallery-next {
  right: 1.5rem;
}

.gallery-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
  padding: 0.5rem;
}

.gallery-close:hover {
  color: white;
}

.gallery-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

/* ============================
   JOIN US SECTION
   ============================ */

.join-section {
  background: var(--color-dark-lighter);
  position: relative;
  overflow: hidden;
}

.join-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.join-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.join-details {
  margin-top: var(--space-md);
}

.join-info {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.contact-link {
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-light);
  transition: width var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-primary-light);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-separator {
  color: var(--color-text-muted);
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-light);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(232, 132, 124, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 132, 124, 0.4);
  color: var(--color-light);
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--color-dark);
  position: relative;
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-logo {
  max-width: 180px;
  margin: 0 auto var(--space-md);
  filter: invert(1);
  opacity: 0.7;
}

.footer-impressum {
  max-width: 600px;
  margin: 0 auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--glass-border);
}

.footer-impressum h6 {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.footer-impressum small {
  display: block;
  line-height: 1.8;
}

/* ============================
   ANIMATIONS
   ============================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

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

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--space-md);
  }

  .hero-logo {
    max-width: 280px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .content-grid {
    gap: var(--space-md);
  }

  .content-image {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
  }

  .welcome-text p:first-of-type::first-letter {
    font-size: 2.8rem;
  }

  .gallery-nav {
    padding: 0.6rem 0.8rem;
    font-size: 1.4rem;
  }

  .gallery-prev {
    left: 0.5rem;
  }

  .gallery-next {
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .concerts-grid,
  .past-concerts-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   UTILITY CLASSES
   ============================ */

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

.text-primary {
  color: var(--color-primary);
}

.text-muted {
  color: var(--color-text-muted);
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

/* Divider */
.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin: var(--space-sm) auto var(--space-md);
  border-radius: 2px;
}