* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1E293B;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

:root {
  --primary: #0B2FA5;
  --secondary: #1D4ED8;
  --gold: #FFD700;
  --gold-light: #FFE484;
  --light-bg: #F8FAFC;
  --dark: #0F172A;
  --shadow-sm: 0 20px 35px -10px rgba(0,0,0,0.08);
  --shadow-xl: 0 25px 45px -12px rgba(0,0,0,0.2);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #E2E8F0; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }

/* LOADING SCREEN */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0B2FA5 0%, #1D4ED8 100%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  opacity: 1;
  visibility: visible;
}
.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}
.loader {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: 30px;
}
.loader .eagle-loader {
  position: absolute;
  font-size: 50px;
  animation: eagleFly 1s ease-in-out infinite;
}
@keyframes eagleFly {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.loader-ring {
  width: 100px;
  height: 100px;
  border: 4px solid rgba(255,215,0,0.2);
  border-top: 4px solid #FFD700;
  border-right: 4px solid #FFD700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: -10px;
  left: -10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 20px;
  animation: pulseText 1.5s ease-in-out infinite;
}
@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.loading-sub {
  color: rgba(255,255,255,0.8);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
  width: 0%;
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px var(--gold);
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

section, footer {
  position: relative;
  z-index: 2;
  background: white;
}

.alt-bg {
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.text-center { text-align: center; }

/* Buttons */
.btn-primary {
  background: linear-gradient(105deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 8px 25px rgba(11,47,165,0.4);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(11,47,165,0.5);
}
.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  backdrop-filter: blur(5px);
}
.btn-outline:hover {
  background: white;
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.section-title {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  border-radius: 2px;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(125deg, rgba(11,47,165,0.85), rgba(29,78,216,0.8)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0.1), transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero-content { position: relative; z-index: 10; animation: fadeInUp 1s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-logo {
  width: 140px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.3));
  animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #fff, var(--gold-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  letter-spacing: 2px;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.scroll-indicator {
  margin-top: 2rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.scroll-wheel {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  margin: 0 auto;
  position: relative;
}
.scroll-wheel::before {
  content: '';
  width: 4px;
  height: 12px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 8px; }
  80% { opacity: 0; top: 28px; }
  100% { opacity: 0; top: 28px; }
}

/* Scripture Card */
.scripture-section { padding: 100px 0; }
.scripture-card {
  background: linear-gradient(135deg, #FFF7E5, #FFFDE8);
  border-radius: 60px;
  padding: 50px 40px;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s;
  border: 1px solid rgba(255,215,0,0.3);
}
.scripture-card:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 50px rgba(0,0,0,0.15);
}
.scripture-label { color: var(--primary); font-size: 1.8rem; letter-spacing: 2px; }
.scripture-ref { font-size: 1.3rem; font-weight: 600; margin: 20px 0; }
.scripture-text { font-size: 1.5rem; font-weight: 600; line-height: 1.5; }

/* Founders & Life Story */
.founders-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}
.founders-image { flex: 1; min-width: 280px; }
.founders-image img { width: 100%; border-radius: 40px; box-shadow: var(--shadow-xl); transition: transform 0.3s; }
.founders-image img:hover { transform: scale(1.02); }
.founders-content { flex: 1.5; }
.life-story p {
  margin-bottom: 16px;
  line-height: 1.7;
}
.founders-quote {
  margin-top: 20px;
  font-style: italic;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  border-left: 4px solid var(--gold);
  padding-left: 20px;
}

/* Vision & Mission Cards */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.vision-card, .mission-card {
  padding: 40px;
  border-radius: 40px;
  transition: transform 0.3s;
}
.vision-card { background: linear-gradient(145deg, #0B2FA510, white); }
.mission-card { background: linear-gradient(145deg, #1D4ED810, white); }
.vision-card:hover, .mission-card:hover { transform: translateY(-5px); }
.vision-card h3, .mission-card h3 { font-size: 2rem; margin-bottom: 1rem; }

/* Value & Pillar Cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.value-card, .pillar-card {
  background: white;
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.value-card::before, .pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
  transition: left 0.6s;
}
.value-card:hover::before, .pillar-card:hover::before {
  left: 100%;
}
.value-card:hover, .pillar-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
}
.value-card h3, .pillar-card h3 { margin-bottom: 12px; color: var(--primary); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Ministries */
.ministries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}
.ministry-card {
  background: white;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.ministry-card:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow-xl);
}

/* Galleries */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 40px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  background: rgba(0,0,0,0.6);
  padding: 10px 15px;
  border-radius: 50%;
  transition: transform 0.3s;
  pointer-events: none;
}
.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Congregations / Branches */
.branches-intro {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: var(--dark);
}
.country-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.congregations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  min-height: 100px;
}
.congregation-card {
  background: white;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border-left: 5px solid var(--gold);
}
.congregation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.congregation-card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.congregation-card .contact-numbers {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.congregation-card .contact-numbers a {
  display: inline-block;
  background: var(--light-bg);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}
.congregation-card .contact-numbers a:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.02);
}

.established-text { text-align: center; margin-top: 40px; font-size: 1.1rem; }

/* Salvation Section */
.salvation-section {
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
}
.salvation-content h2 { font-size: 3rem; margin-bottom: 20px; }
.salvation-content p { font-size: 1.3rem; margin-bottom: 30px; }
.btn-salvation {
  background: var(--gold);
  color: var(--primary);
  border: none;
  padding: 15px 45px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-salvation:hover { transform: scale(1.05); }

/* Footer */
footer {
  background: #0B1120;
  color: #CBD5E1;
  padding: 60px 0 30px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.2rem; }
.footer-links ul { list-style: none; margin-top: 10px; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #CBD5E1; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.social-icons { font-size: 1.8rem; display: flex; gap: 15px; margin-top: 10px; }

/* Developer Credit */
.developer-credit {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.developer-credit a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.developer-credit a:hover {
  color: white;
  text-decoration: underline;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s;
}
.lightbox.active {
  visibility: visible;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
}
.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2rem; }
  .scripture-text { font-size: 1.2rem; }
  .founders-grid { flex-direction: column; }
  .footer-grid { flex-direction: column; text-align: center; }
  .congregations-grid { grid-template-columns: 1fr; }
  .country-title { font-size: 1.4rem; }
  .developer-credit { font-size: 0.75rem; }
}