/* 2025 Modern Church Website Design */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --midnight: #0a0a0f;
  --deep-navy: #1a1a2e;
  --royal-blue: #16213e;
  --soft-gold: #d4af37;
  --warm-gold: #f7d794;
  --pearl-white: #fefefe;
  --soft-gray: #f5f6fa;
  --medium-gray: #57606f;
  --charcoal: #2f3542;
  
  --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f7d794 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  
  --shadow-soft: 0 4px 20px rgba(26, 26, 46, 0.08);
  --shadow-medium: 0 8px 40px rgba(26, 26, 46, 0.12);
  --shadow-strong: 0 20px 60px rgba(26, 26, 46, 0.15);
  --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--pearl-white);
  overflow-x: hidden;
  padding-top: 80px;
}

/* Typography System */
.serif { font-family: 'Playfair Display', serif; }
.sans { font-family: 'Inter', sans-serif; }

h1, .h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h4, .h4 { font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 600; }

.text-lg { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.text-xl { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.text-2xl { font-size: clamp(1.6rem, 3vw, 2rem); }

/* Advanced Navigation */
.nav-2025 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 80px;
  container-type: inline-size;
  container-name: navigation;
}

.nav-container {
  max-width: min(1600px, 95vw);
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--soft-gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  align-items: center;
  margin: 0;
  flex: 1;
  justify-content: center;
}

/* Simple responsive navigation - no JS needed */


.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-height: 40px;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  transition: left 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: var(--midnight);
  transform: translateY(-1px);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-toggle .fas {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle .fas {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: clamp(10rem, 20vw, 12rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--pearl-white);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-link:last-child {
  border-bottom: none;
}

.dropdown-link:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--soft-gold);
  padding-left: 2rem;
}

/* Action Button Styling */
.nav-action-primary {
  color: var(--soft-gold) !important;
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease !important;
}

.nav-action-primary:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  border-color: var(--soft-gold) !important;
  transform: translateY(-1px) !important;
}

.nav-action-cta {
  background: var(--gradient-gold) !important;
  color: var(--midnight) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-action-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

/* Hero Section 2025 */
.hero-2025 {
  min-height: 100vh;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-2025::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-content {
  max-width: clamp(320px, 95vw, 1400px);
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--warm-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-2025 {
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--midnight);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong), var(--shadow-glow);
  color: var(--midnight);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--soft-gold);
  color: white;
}

.hero-visual {
  position: relative;
  height: 600px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
  animation: float 6s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
  max-width: clamp(180px, 25vw, 280px);
}

.floating-card:nth-child(1) {
  top: 10%;
  right: 5%;
  animation-delay: 0s;
  z-index: 12;
}

.floating-card:nth-child(2) {
  top: 50%;
  right: 60%;
  animation-delay: 2s;
  z-index: 11;
  animation: float-small 6s ease-in-out infinite;
}

.floating-card:nth-child(3) {
  top: 80%;
  right: 20%;
  animation-delay: 4s;
  z-index: 13;
  animation: float-medium 6s ease-in-out infinite;
}

/* Responsive positioning to prevent major overlap */
@media (max-width: 1200px) and (min-width: 1101px) {
  .floating-card:nth-child(1) {
    top: 8%;
    right: 3%;
  }
  
  .floating-card:nth-child(2) {
    top: 45%;
    right: 55%;
  }
  
  .floating-card:nth-child(3) {
    top: 75%;
    right: 15%;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .floating-card {
    max-width: clamp(160px, 22vw, 240px);
    padding: 1.2rem;
  }
  
  .floating-card:nth-child(1) {
    top: 8%;
    right: 8%;
  }
  
  .floating-card:nth-child(2) {
    top: 25%;
    right: 30%;
  }
  
  .floating-card:nth-child(3) {
    top: 50%;
    right: 3%;
  }
}

@keyframes cardCarousel {
  0%, 25% { 
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateY(0deg);
  }
  30%, 95% { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotateY(180deg);
  }
  100% { 
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotateY(180deg);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-small {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(0.9); }
  50% { transform: translateY(-20px) rotate(2deg) scale(0.9); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(0.95); }
  50% { transform: translateY(-20px) rotate(2deg) scale(0.95); }
}
}

/* Modern Section Layouts */
.section-2025 {
  padding: 6rem 0;
  position: relative;
}

.container-2025 {
  max-width: clamp(320px, 95vw, 1400px);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--medium-gray);
  max-width: clamp(280px, 80vw, 600px);
  margin: 0 auto;
  font-weight: 400;
}

/* Premium Cards System */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.card-2025 {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(26, 26, 46, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-2025::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card-2025:hover::before {
  transform: scaleX(1);
}

.card-2025:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.card-icon-2025 {
  width: clamp(3rem, 8vw, 4.5rem);
  height: 70px;
  background: var(--gradient-gold);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--midnight);
  box-shadow: var(--shadow-soft);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--medium-gray);
  line-height: 1.7;
  font-size: 1rem;
}

/* Three Angels Section */
.angels-2025 {
  background: var(--soft-gray);
  position: relative;
  overflow: hidden;
}

.angels-2025::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--pearl-white);
  transform: skewY(-2deg);
}

.angels-grid {
  width: 100%;
  margin-top: 4rem;
}

@media (min-width: 769px) {
  .angels-grid {
    white-space: nowrap !important;
    font-size: 0 !important;
  }
  
  .angels-grid .card-2025 {
    width: clamp(280px, 30%, 400px) !important;
  margin-right: clamp(2%, 5vw, 5%) !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin-right: 3.5% !important;
    white-space: normal !important;
    font-size: 1rem !important;
  }

  .angels-grid .card-2025:last-child {
    margin-right: 0 !important;
  }
}

/* Service Times Modern Layout */
.services-2025 {
  background: var(--deep-navy);
  color: white;
  position: relative;
}

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

.service-card-2025 {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card-2025:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.service-icon-2025 {
  width: clamp(4rem, 10vw, 5rem);
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--midnight);
}

.service-time {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--soft-gold);
  margin: 1rem 0;
}

/* Events Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.event-card-2025 {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.event-card-2025:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.event-image-2025 {
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23d4af37;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%23f7d794;stop-opacity:0.1" /></linearGradient></defs><circle cx="100" cy="50" r="30" fill="url(%23grad)" opacity="0.3"/><circle cx="300" cy="150" r="20" fill="url(%23grad)" opacity="0.2"/><circle cx="200" cy="100" r="40" fill="url(%23grad)" opacity="0.15"/></svg>');
  background-size: cover;
  background-position: center;
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--soft-gold);
  color: var(--midnight);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.event-content-2025 {
  padding: 2rem;
}

.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

/* Footer 2025 */
.footer-2025 {
  background: var(--midnight);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-2025::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--pearl-white);
  transform: skewY(-2deg);
}

/* Pure CSS Mobile Navigation - No JavaScript needed */
.nav-toggle-input {
  display: none;
}

/* Debug: Show when checkbox is checked */
.nav-toggle-input:checked + .nav-toggle {
  background: rgba(255, 0, 0, 0.2) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

.hamburger {
  width: clamp(1.2rem, 3vw, 1.5rem);
  height: 2px;
  background: var(--soft-gold);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Container query for actual overflow detection */
@container navigation (max-width: clamp(60rem, 80vw, 75rem)) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }
  
  .nav-toggle-input:checked ~ .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    margin: 0.25rem 0;
    display: block;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    margin-top: 0.5rem;
    display: block;
  }
}

/* Fallback for browsers without container query support */
@media (max-width: 70rem) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }
  
  /* Show menu when checkbox is checked */
  .nav-toggle-input:checked ~ .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Animate hamburger when checked */
  .nav-toggle-input:checked + .nav-toggle .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle-input:checked + .nav-toggle .hamburger:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle-input:checked + .nav-toggle .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    margin: 0.25rem 0;
    display: block;
  }
  
  /* Desktop dropdowns simplified for mobile */
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    margin-top: 0.5rem;
    display: block;
  }
  
  /* Mobile flexbox positioning - keep cards contained in hero */
  .hero-visual {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    overflow: hidden !important;
    height: auto !important;
    min-height: 200px;
    max-height: 300px;
  }
  
  .floating-card {
    position: static !important;
    flex: 0 0 auto;
    width: clamp(100px, 20vw, 140px) !important;
    padding: 0.75rem !important;
    margin: 0.5rem;
    animation: float-mobile 4s ease-in-out infinite;
  }
  
  .floating-card:nth-child(1) {
    order: 1;
    align-self: flex-start;
    animation-delay: 0s;
  }
  
  .floating-card:nth-child(2) {
    order: 2;
    align-self: center;
    animation-delay: 1.5s;
  }
  
  .floating-card:nth-child(3) {
    order: 3;
    align-self: flex-end;
    animation-delay: 3s;
  }
  
  .floating-card h4 {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .floating-card p {
    font-size: 0.7rem !important;
    margin: 0 !important;
    opacity: 0.9 !important;
    line-height: 1.1;
  }
  
  .floating-card i {
    font-size: 1.1rem !important;
    margin-bottom: 0.4rem !important;
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-visual {
    height: 300px;
    order: -1;
  }
  
  .cards-grid,
  .services-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  
  .section-2025 {
    padding: 3rem 0;
  }
  
  .container-2025 {
    padding: 0 1rem;
  }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .nav-2025 {
    height: 70px;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .nav-brand {
    font-size: 1.2rem;
  }
  
  .nav-menu {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-2025 {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 200px;
    justify-content: center;
  }
  
  .card-2025 {
    padding: 2rem;
  }
  
  .section-2025 {
    padding: 2rem 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .floating-card {
    padding: 1.5rem;
  }
  
  .hero-visual {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .container-2025 {
    padding: 0 0.75rem;
  }
  
  .nav-brand {
    font-size: 1rem;
  }
  
  .nav-menu {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }
  
  .card-2025 {
    padding: 1.5rem;
  }
  
  .card-icon-2025 {
    width: clamp(2.5rem, 6vw, 3.5rem);
    height: 50px;
    font-size: 1.4rem;
  }
  
  .service-icon-2025 {
    width: clamp(3rem, 7vw, 4rem);
    height: 60px;
    font-size: 1.5rem;
  }
  
  .service-time {
    font-size: 2rem;
  }
  
  .floating-card {
    padding: 1rem;
  }
  
  .hero-visual {
    height: 200px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .angels-grid .card-2025 {
    width: 100% !important;
    display: block !important;
    margin-right: 0 !important;
    margin-bottom: 2rem !important;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .hero-schedule {
    flex-direction: column;
    gap: 1rem !important;
    align-items: center;
  }
  
  .hero-schedule > div {
    justify-content: center;
  }
  
  .app-download-buttons {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .android-download-btn {
    font-size: 0.9rem !important;
    padding: 0.8rem 1.2rem !important;
    gap: 0.8rem !important;
  }
  
  .android-download-btn svg {
    height: 35px !important;
    width: 35px !important;
  }
  
  /* Touch-friendly improvements */
  .nav-link {
    min-height: 44px;
    padding: 1rem 1.5rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    margin: 0.25rem 0;
  }
  
  .btn-2025 {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  /* Better text readability on small screens */
  .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Improved spacing for mobile */
  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
  
  /* Mobile bulletin detail optimizations */
  .card-2025 {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.5rem !important;
  }
  
  .card-2025 h1 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    text-align: center;
    margin-bottom: 1rem !important;
  }
  
  .card-2025 h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .card-2025 div[style*="background: var(--soft-gray)"] {
    padding: 1rem !important;
    margin: 1rem 0 !important;
    border-radius: 12px !important;
  }
  
  .card-2025 div[style*="margin: 2rem 0"] {
    margin: 1.5rem 0 !important;
  }
  
  .card-2025 .btn-2025 {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
    text-align: center !important;
    max-width: 280px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Prevent text overflow on mobile */
  .card-2025 p,
  .card-2025 div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }
  
  .container-2025 {
    overflow-x: hidden !important;
  }
  
  /* Ensure content stays within viewport */
  .card-2025 * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Force single column layout on mobile for bulletins */
  .card-2025 {
    column-count: 1 !important;
    columns: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
  }
  
  .card-2025 * {
    column-span: all !important;
    -webkit-column-span: all !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* Optimized Scroll Animations for Performance */
.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  will-change: opacity, transform;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Reduced stagger delays for smoother performance */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* Performance optimization for animations */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* GPU acceleration for smooth animations */
.card-2025, .event-card-2025, .floating-card {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize hover animations */
.card-2025:hover, .event-card-2025:hover {
  transform: translateZ(0) translateY(-5px);
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Disable heavy animations on lower-end devices */
@media (prefers-reduced-motion: reduce) {
  .floating-card {
    animation: none !important;
  }
  
  .hero-visual::before {
    animation: none !important;
  }
}

/* Bulletin mobile optimizations - nuclear option */
@media (max-width: 768px) {
  /* Force all elements in service sections to full width - only for bulletin grids */
  .section-2025:not(.angels-2025) div[style*="grid-template-columns"] {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .section-2025:not(.angels-2025) div[style*="grid-template-columns"] > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }
  /* Fix service programs grid on mobile using classes */
  .bulletin-service-grid {
    display: block !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  .bulletin-service-single {
    display: block !important;
    grid-template-columns: none !important;
    gap: 1rem !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Stack service sections vertically on mobile */
  .bulletin-service-grid > div,
  .bulletin-service-single > div {
    margin-bottom: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .bulletin-service-grid > div:last-child,
  .bulletin-service-single > div:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Reduce padding in service cards on mobile */
  .bulletin-service-grid div[style*="padding: 3rem"],
  .bulletin-service-single div[style*="padding: 3rem"] {
    padding: 1.5rem !important;
  }
  
  .bulletin-service-grid div[style*="padding: 3.5rem"],
  .bulletin-service-single div[style*="padding: 3.5rem"] {
    padding: 2rem !important;
  }
  
  /* Bulletin detail page mobile fixes - target the old template structure */
  .card-2025[style*="max-width: 800px"] {
    padding: 1rem !important;
    margin: 0 0.5rem !important;
  }
  
  .card-2025[style*="max-width: 800px"] h1 {
    font-size: 1.75rem !important;
  }
  
  .card-2025[style*="max-width: 800px"] h3 {
    font-size: 1.25rem !important;
  }
  
  /* Mobile-friendly bulletin content - both old and new templates */
  .card-2025 div[style*="padding: 2rem"] {
    padding: 1rem !important;
  }
  
  .card-2025 div[style*="margin: 2rem 0"] {
    margin: 1rem 0 !important;
  }
  
  /* Old bulletin template mobile fixes */
  .card-2025[style*="max-width: 800px"] div[style*="margin: 2rem 0"] {
    margin: 1rem 0 !important;
    padding: 1rem !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
}

/* Desktop layout fixes - restore grid behavior */
@media (min-width: 769px) {
  /* Ensure service programs grid works on desktop */
  .bulletin-service-grid {
    display: grid !important;
  }
  
  .bulletin-service-single {
    display: grid !important;
  }
  
  /* Reset desktop margins */
  .bulletin-service-grid > div,
  .bulletin-service-single > div {
    margin-bottom: 0 !important;
  }
  
}

@media (max-width: 480px) {
  .bulletin-service-grid div[style*="padding: 3rem"],
  .bulletin-service-single div[style*="padding: 3rem"] {
    padding: 1rem !important;
  }
  
  .bulletin-service-grid div[style*="padding: 3.5rem"],
  .bulletin-service-single div[style*="padding: 3.5rem"] {
    padding: 1.5rem !important;
  }
}

/* Lighter animations for mobile */
@media (max-width: 992px) {
  .floating-card {
    animation: float-mobile 4s ease-in-out infinite;
  }
  
  .floating-card:nth-child(1) {
    animation-delay: 0s;
  }
  
  .floating-card:nth-child(2) {
    animation-delay: 1.5s;
  }
  
  .floating-card:nth-child(3) {
    animation-delay: 3s;
  }
}

@keyframes float-mobile {
  0%, 100% { 
    transform: translateY(0px) translateZ(0); 
  }
  50% { 
    transform: translateY(-10px) translateZ(0); 
  }
}

/* Optimize floating animation */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) translateZ(0); 
  }
  50% { 
    transform: translateY(-15px) rotate(1deg) translateZ(0); 
  }
}

/* Reduce animation complexity on mobile */
@media (max-width: 992px) {
  .btn-2025:hover {
    transform: none;
  }
  
  .nav-link:hover {
    transform: none;
  }
}

/* Additional mobile optimizations */
@media screen and (max-width: 50rem) {
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  body {
    min-width: 320px;
    overflow-x: hidden;
  }
  
  /* Prevent desktop hover effects on mobile */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  *:hover {
    -webkit-tap-highlight-color: transparent;
  }
}