/* =======================================================
   CLEAN HOMEPAGE - FULL-WIDTH HERO + CENTERED CARDS
   Art Nouveau + Deep Purple + Active Cards
   ======================================================= */

/* Hero Section - FULL WIDTH */
.hero-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2rem;
  margin-bottom: 3rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(34, 19, 58, 0.4) 50%, rgba(34, 19, 58, 0.95) 100%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #AF98E6 20%, #DA99E6 50%, #DD92C5 80%, transparent);
  z-index: 2;
}

.hero-section img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Intro Text - CENTERED, MAX WIDTH */
.intro-text {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(54, 39, 86, 0.4), rgba(42, 26, 69, 0.3));
  border-left: 4px solid #AF98E6;
  border-radius: 0.5rem;
  font-family: 'Baskerville', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #b4b7be;
}

.intro-text a {
  color: #9CA6E3;
  text-decoration: none;
  border-bottom: 1px solid rgba(156, 166, 227, 0.3);
  transition: all 0.3s ease;
}

.intro-text a:hover {
  color: #AF98E6;
  border-bottom-color: #AF98E6;
}

.intro-text strong {
  color: #E5DD97;
  font-weight: 700;
}

/* Cards Container - CENTERED GRID WITH MAX WIDTH */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Cards */
.card {
  position: relative;
  background: linear-gradient(135deg, rgba(54, 39, 86, 0.6), rgba(42, 26, 69, 0.4));
  border: 1px solid rgba(175, 152, 230, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Art Nouveau decorative corner */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(175, 152, 230, 0.1), transparent 70%);
  border-bottom-left-radius: 100%;
  transition: all 0.4s ease;
}

/* Flowing underline decoration */
.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #AF98E6, #DA99E6, #DD92C5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(175, 152, 230, 0.5);
  background: linear-gradient(135deg, rgba(54, 39, 86, 0.8), rgba(42, 26, 69, 0.6));
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(175, 152, 230, 0.15);
}

.card:hover::before {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(175, 152, 230, 0.2), transparent 70%);
}

.card:hover::after {
  transform: scaleX(1);
}

/* Card Headers */
.card h2 {
  font-family: 'Baskerville', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: #AF98E6;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.card:hover h2 {
  color: #DA99E6;
}

/* Card Body Text */
.card p {
  font-family: 'Baskerville', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #b4b7be;
  margin: 0 0 1.5rem 0;
}

/* Card Links */
.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Baskerville', Georgia, serif;
  font-size: 0.95rem;
  color: #9CA6E3;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: #9CA6E3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover a {
  color: #E5DD97;
}

.card:hover a::after {
  transform: scaleX(1);
  background: #E5DD97;
}

/* Arrow animation */
.card a::before {
  content: '→';
  transition: transform 0.3s ease;
}

.card:hover a::before {
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    margin-top: -1rem;
  }
  
  .hero-section img {
    height: 280px;
  }
  
  .intro-text {
    padding: 1.5rem;
    font-size: 1rem;
    margin-bottom: 3rem;
  }
  
  .cards {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card h2 {
    font-size: 1.5rem;
  }
}

/* Smooth page load animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.intro-text {
  animation: fadeInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.card:focus-within {
  outline: 2px solid #AF98E6;
  outline-offset: 4px;
}

.card a:focus {
  outline: none;
}

/* Print styles */
@media print {
  .hero-section {
    width: 100%;
    margin: 0;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #ccc;
    background: white;
    color: black;
  }
  
  .card::before,
  .card::after {
    display: none;
  }
}
