/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Catholic Stained Glass Color Palette */
  --primary-blue: #1a365d;
  --sacred-gold: #d4af37;
  --royal-purple: #553c9a;
  --deep-crimson: #8b1538;
  --emerald-green: #2f855a;
  --warm-amber: #c05621;
  --pure-white: #ffffff;
  --soft-cream: #fefcf3;
  --light-gold: #f7e7ce;
  
  /* Glass morphism variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-serif: 'Crimson Text', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--royal-purple) 25%, 
    var(--deep-crimson) 50%, 
    var(--emerald-green) 75%, 
    var(--primary-blue) 100%);
  background-size: 400% 400%;
  animation: stainedGlassGradient 20s ease infinite;
  min-height: 100vh;
  color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes stainedGlassGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Stained Glass Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 21, 56, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(85, 60, 154, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(47, 133, 90, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Navigation Bar */
.navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-brand h2 {
  color: var(--sacred-gold);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-menu {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--pure-white);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sacred-gold);
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sacred-gold), var(--warm-amber));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--pure-white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Main Content */
.main-content {
  margin-top: 80px;
}

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

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('last-supper.jpg') center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(26, 54, 93, 0.7) 0%, 
    rgba(85, 60, 154, 0.6) 25%, 
    rgba(139, 21, 56, 0.6) 50%, 
    rgba(47, 133, 90, 0.6) 75%, 
    rgba(26, 54, 93, 0.7) 100%);
  z-index: 1;
}

.stained-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at top right, rgba(139, 21, 56, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(85, 60, 154, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(47, 133, 90, 0.3) 0%, transparent 60%);
  animation: stainedGlassShimmer 15s ease-in-out infinite;
  z-index: 2;
  mix-blend-mode: overlay;
}

@keyframes stainedGlassShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease forwards;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 600;
  color: var(--sacred-gold);
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--soft-cream);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sacred-gold), var(--warm-amber));
  color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--pure-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn-cta {
  background: linear-gradient(135deg, var(--deep-crimson), var(--royal-purple));
  color: var(--pure-white);
  box-shadow: 0 8px 24px rgba(139, 21, 56, 0.4);
  font-size: 1.1rem;
  padding: 16px 32px;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(139, 21, 56, 0.6);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--sacred-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--soft-cream);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Features Section */
.features {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px var(--glass-shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--sacred-gold);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--sacred-gold);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* About Section */
.about {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--sacred-gold);
}

.about-text .lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--light-gold);
  font-family: var(--font-serif);
  font-style: italic;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.about-quote {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 2rem;
  border-left: 4px solid var(--sacred-gold);
  box-shadow: 0 12px 32px var(--glass-shadow);
}

.about-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--soft-cream);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-quote cite {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--sacred-gold);
  font-weight: 600;
}

/* Call to Action Section */
.cta {
  background: linear-gradient(135deg, 
    rgba(139, 21, 56, 0.3), 
    rgba(85, 60, 154, 0.3));
  backdrop-filter: blur(10px);
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--sacred-gold);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  color: var(--sacred-gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--sacred-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card {
  animation: fadeInUp 0.8s ease forwards;
}

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

/* Responsive Design */
@media screen and (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-background {
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .about-quote {
    padding: 1.5rem;
  }

  .nav-container {
    padding: 0 15px;
  }

  .container {
    padding: 0 15px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--sacred-gold), var(--warm-amber));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--warm-amber), var(--deep-crimson));
}