/* 
  Mother of Mercy - Stylesheet 
  Theme: Futuristic, elegant, soft premium colors, glassmorphism
*/

:root {
  /* Color Palette */
  --color-white: #ffffff;
  --color-silver: #e2e8f0;
  --color-light-blue: #a5d2ff;
  --color-subtle-purple: #e0ccff;  
  --color-soft-gold: #d4af37;
  
  --color-dark: #0f172a;
  --color-text-main: #1e293b;
  --color-text-light: #f8fafc;
  
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Background Crossfade Animation */
.bg-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: var(--color-dark);
}

.bg-slider .bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 10s linear;
  transform: scale(1.05); /* Slight zoom for futuristic feel */
}

.bg-slider .bg-image.active {
  opacity: 0.5; /* Keeping opacity low so text is readable */
  transform: scale(1);
}

/* Overlay to darken background and increase readability */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(224, 204, 255, 0.1) 100%);
  backdrop-filter: blur(5px);
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}

.logo span {
  color: var(--color-light-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 5px;
  transition: all 0.3s ease;
}

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

.nav-links li a {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--color-silver);
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--color-white);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--color-light-blue);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-soft-gold) 0%, #b8860b 100%);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  display: inline-block;
  backdrop-filter: blur(5px);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  border: 2px solid var(--color-light-blue);
  color: var(--color-white);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  backdrop-filter: blur(5px);
  display: inline-block;
}

.btn-outline:hover {
  background: var(--color-light-blue);
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* Main Container */
main {
  padding-top: 100px;
  min-height: calc(100vh - 80px); /* Minus footer */
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-subtle-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInDown 1s ease-out forwards;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin-bottom: 2.5rem;
  color: var(--color-silver);
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

/* Glassmorphism Cards */
.glass-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 5%;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.glass-card:hover::before {
  left: 150%;
}

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

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-light-blue);
}

.glass-card p {
  color: var(--color-silver);
  margin-bottom: 1.5rem;
}

/* Sections */
.section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-white);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--color-soft-gold);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

/* Content Layouts */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-text {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.content-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
}

.content-image img, .content-image video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

/* Form Styles */
.glass-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.glass-form .form-group {
  position: relative;
}

.glass-form input, .glass-form textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--color-white);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.glass-form input:focus, .glass-form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-light-blue);
  box-shadow: 0 0 15px rgba(165, 210, 255, 0.3);
}

.glass-form label {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  color: var(--color-silver);
  transition: 0.3s;
  pointer-events: none;
}

.glass-form input:focus ~ label,
.glass-form input:valid ~ label,
.glass-form textarea:focus ~ label,
.glass-form textarea:valid ~ label {
  top: -0.8rem;
  left: 1rem;
  font-size: 0.8rem;
  background: var(--color-dark);
  padding: 0 0.5rem;
  color: var(--color-light-blue);
  border-radius: 4px;
}

/* Footer */
footer {
  background: rgba(10, 15, 26, 0.9);
  padding: 3rem 5% 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p {
  color: var(--color-silver);
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--color-silver);
}

.footer-col ul li a:hover {
  color: var(--color-light-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 65%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .section {
    padding: 3rem 5%;
  }
}

/* Stats Counter */
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-soft-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* Testimonials */
.testimonial-card {
  font-style: italic;
  position: relative;
}
.testimonial-card::before {
  content: '\\201C';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 10px;
  color: rgba(255,255,255,0.1);
  font-family: serif;
}
.testimonial-author {
  font-style: normal;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--color-subtle-purple);
  text-align: right;
}

/* Map Embedded */
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  height: 400px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* NEW CONTENT UPDATES: Media Flex Cards & Carousels */
.media-flex-card {
  display: flex;
  flex-direction: row;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}

.media-flex-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.media-flex-card .media-content {
  flex: 1;
  min-height: 300px;
}

.media-flex-card .media-content img, 
.media-flex-card .media-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-flex-card .text-content {
  flex: 1.2;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-flex-card.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  .media-flex-card, .media-flex-card.reverse {
    flex-direction: column;
  }
  .media-flex-card .media-content {
    min-height: 250px;
  }
  .media-flex-card .text-content {
    padding: 2rem;
  }
}

/* Horizontal Scrolling Carousel */
.horizontal-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem 0;
  scroll-snap-type: x mandatory;
}

.horizontal-carousel::-webkit-scrollbar {
  height: 8px;
}
.horizontal-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.horizontal-carousel::-webkit-scrollbar-thumb {
  background: var(--color-light-blue);
  border-radius: 10px;
}

.carousel-item {
  scroll-snap-align: start;
  min-width: 300px;
  max-width: 400px;
  flex: 0 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  position: relative;
}

.carousel-item img, .carousel-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-item:hover img, .carousel-item:hover video {
  transform: scale(1.05);
}
