/* Reset etc. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #020f88;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Menu button */
.menu-btn {
  background: #eee;
  border: none;
  font-size: 1.5rem;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.menu-btn:hover {
  background: #ddd;
}
/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #0a2ced;
  transition: color 0.3s;
}
.close-btn:hover {
  color: #d22;
}


/* Side navigation (hidden by default) */
.side-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: #061dcb;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 999;
}

.side-nav.open {
  right: 0;
}

.side-nav ul {
  list-style: none;
  padding: 80px 20px;
  margin: 0;
}

.side-nav li {
  margin: 20px 0;
}

.side-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.side-nav a:hover {
  color: rgb(19, 220, 224);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #070716;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

.nikmens {
  color: #f39c12; /* Gold */
}

.ventures {
  color: #e74c3c; /* Red */
}
.logo img {
  width: 60px;
  height: auto;
  border-radius: 50%;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #65d6ff;
}


/* Side navigation (hidden by default) */
.side-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 999;
}

.side-nav.open {
  right: 0;
}

.side-nav ul {
  list-style: none;
  padding: 80px 20px;
  margin: 0;
}

.side-nav li {
  margin: 20px 0;
}

.side-nav a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.side-nav a:hover {
  color: #d22;
}

.hero-slider {
  position: relative;
  max-width: 100%;
  height: 90vh; /* adjust this to 80vh or 100vh if you want taller/shorter */
  overflow: hidden;
}


.slides {
  display: none;
  width: 100%;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fixed text always in center */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgb(254, 255, 255);
  text-shadow: 0 4px 6px rgba(61, 60, 60, 0.6);
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.3rem;
}

/* 📱 Responsive */
@media (max-width: 480px) {
 .hero-text h1 {
    font-size: 2rem;
  margin-bottom: 10px;
  }
 .hero-text p{
    font-size: 1.0rem;
  }
}
/* Dots */
.dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 2;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.active,
.dot:hover {
  background-color: white;
}

/* Sections with images */
.section-with-img {
  padding: 60px 20px;
  text-align: center;
}

.section-img {
  max-width: 80%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Alternate backgrounds for even sections */
.section-with-img:nth-child(even) {
  background: #f4f4f4;
}
/* Reusable Button Style */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #020f88;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #d35400;
}

/* Back to Home button container */
.back-home {
  text-align: center;
  margin: 40px 0;
}

/* Reuse existing .btn style */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #055ca7;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0b248a;
}

/* Layout */
.about-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 10%;
  background: #f9f9f9;
  text-align: center;
  position: relative;
}

.about-text {
  max-width: 500px;
  z-index: 2;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

/* Image styling */
.about-image {
  width: 180px;
  height: 180px;
  border: 5px solid #ddd;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #020f88;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #1586f6;
  transform: scale(1.05);
}

/* 📱 Responsive */
@media (max-width: 480px) {
 .about-text h2{
    font-size: 2rem;
  margin-bottom: 10px;
  }
 .about-text p{
    font-size: 1.0rem;
  }
}
/* Leadership Section */
.leadership-section {
  padding: 80px 10%;
  background: #fff;
  text-align: center;
}

.leadership-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #2c3e50;
}

/* Leadership Section */
#leadership {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f0f4ff, #e3ecff);
}

#leadership h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.leaders {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.leader-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 1.5rem;
  width: 250px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  text-align: center;
}

.leader-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.leader-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.leader-card p {
  font-size: 1rem;
  color: #666;
}

/* Stretch + Compress Animation */
@keyframes stretchCompress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08); /* slight stretch */
  }
  100% {
    transform: scale(1);
  }
}

.leadership-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.leader-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.leader-card h3 {
  margin: 10px 0 5px;
  color: #2c3e50;
}

.leader-card p {
  color: #777;
  font-size: 0.95rem;
}

/* Hover Effect */
.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Fade-in Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }
.delay3 { animation-delay: 0.9s; }
.delay4 { animation-delay: 1.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.leadership-team {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.leader {
  text-align: center;
  max-width: 250px;
}

.leader img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

.leader h3 {
  margin-bottom: 5px;
  color: #2c3e50;
}

.leader p {
  color: #555;
}
/* Leadership Button */
.leadership-btn {
  margin-top: 40px;
  text-align: center;
}

.leadership-btn .btn {
  background: #020f88;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.leadership-btn .btn:hover {
  background: #3498db;
  transform: translateY(-5px);
}

/* Events Section */
.events-section {
  padding: 60px 20px;
  text-align: center;
  background: #f4f4f4;
}

.events-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.events-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.event-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 280px;
  padding: 20px;
  opacity: 0;
  transform: translateY(-100px);
  animation: fallIn 1s ease forwards;
}

.event-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Animation delays for staggered effect */
.event-card.left {
  animation-delay: 0.3s;
}
.event-card.center {
  animation-delay: 0.6s;
}
.event-card.right {
  animation-delay: 0.9s;
}

.gallery-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  left: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.gallery-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}


.update-btn {
  position: fixed;         /* stays in place when scrolling */
  top: 50%;                /* vertically middle */
  right: 20px;              /* small offset from the left edge */
  transform: translateY(-50%);
  
  background-color: #020f88; /* transparent background */
  color: #fff;             /* white text (change to match theme) */
  border: 2px solid #fff;  /* white border */
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;   /* remove underline */
  transition: all 0.3s ease;
  z-index: 1000;           /* ensures it appears above content */
}

.update-btn:hover {
  background: #fff;
  color: #333;             /* text color changes on hover */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Falling + bounce animation (slower) */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-200px) rotate(-15deg);
  }
  40% {
    opacity: 1;
    transform: translateY(40px) rotate(5deg);
  }
  70% {
    transform: translateY(-15px) rotate(-3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}
.event-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 280px;
  padding: 20px;
  opacity: 0;
  transform: translateY(-100px);
  animation: fallIn 2.5s ease forwards; /* "forwards" keeps final state */
}

/* Slower stagger effect (total ~8s) */
.event-card.left {
  animation-delay: 1s;
}
.event-card.center {
  animation-delay: 3.5s;
}
.event-card.right {
  animation-delay: 6s;
}

/* Events Section */
.events {
  text-align: center;
  margin: 80px auto;
  padding: 40px;
  background: #fafafa;
}

.events h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.event-gallery {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.event-img {
  width: 220px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  animation: collapseFall 8s infinite ease-in-out;
}

/* Stagger animations for each image */
.event-gallery img:nth-child(1) {
  animation-delay: 0s;
}
.event-gallery img:nth-child(2) {
  animation-delay: 2.5s;
}
.event-gallery img:nth-child(3) {
  animation-delay: 5s;
}

/* Falling + collapsing effect */
@keyframes collapseFall {
  0% {
    transform: translateY(-200px) scale(1);
    opacity: 0;
  }
  20% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(20px) scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: translateY(-10px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0.8);
    opacity: 0;
  }
}

/* Falling + bounce animation */
@keyframes fallIn {
  0% {
    opacity: 0;
    transform: translateY(-200px) rotate(-15deg);
  }
  40% {
    opacity: 1;
    transform: translateY(40px) rotate(5deg);
  }
  70% {
    transform: translateY(-15px) rotate(-3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Events Button */
.events-btn {
  margin-top: 40px;
  text-align: center;
}

.events-btn .btn {
  background: #020f88;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.events-btn .btn:hover {
  background: #3498db;
  transform: translateY(-5px);
}

/* Sermons Section */
.sermons-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.sermons-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.sermon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Video wrapper with glow + cross overlay */
.video-wrapper {
  position: relative;
  width: 400px;
  max-width: 100%;
  border-radius: 15px;
  overflow: hidden;
  animation: glowCycle 6s infinite;
}

.video-wrapper video {
  width: 100%;
  border-radius: 15px;
}

/* Cross overlay */
.cross-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: rgb(249, 248, 243);
  opacity: 0;
  animation: crossAppear 6s infinite;
  pointer-events: none;
}

/* Glow cycle (3x glow, then pause for cross) */
@keyframes glowCycle {
  0%, 10%, 20% {
    box-shadow: 0 0 20px 5px rgb(6, 81, 125);
  }
  30% {
    box-shadow: none;
  }
  40%, 50%, 60% {
    box-shadow: 0 0 25px 10px rgb(17, 10, 56);
  }
  70% {
    box-shadow: none;
  }
  80%, 90% {
    box-shadow: 0 0 20px 8px rgb(223, 88, 88);
  }
  100% {
    box-shadow: none;
  }
}

/* Cross appears briefly then fades */
@keyframes crossAppear {
  0%, 70% {
    opacity: 0;
  }
  75%, 85% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Sermon text content */
.sermon-content {
  max-width: 400px;
  text-align: left;
}

.sermon-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.sermon-content p {
  margin-bottom: 20px;
  color: #555;
}

/* Sermon button */
.sermon-content .btn {
  background: #020f88;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.sermon-content .btn:hover {
  background: #3498db;
  transform: translateY(-5px);
}

/* Location Section */
.location-section {
  padding: 60px 20px;
  background: #f4f4f4;
  text-align: center;
}

.location-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.location-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Map */
.map-wrapper {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.map-image {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Animated red pin */
.map-pin {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 25px;
  height: 25px;
  background: red;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(-50%, -100%);
  animation: bounce 1.5s infinite;
}

/* White circle inside pin */
.map-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 7px;
  left: 7px;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -100%) rotate(-45deg);
  }
  50% {
    transform: translate(-50%, -120%) rotate(-45deg);
  }
}

/* Location content */
.location-content {
  max-width: 400px;
  text-align: left;
}

.location-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.location-content p {
  margin-bottom: 20px;
  color: #555;
}

/* Button */
.location-content .btn {
  background: #020f88;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.location-content .btn:hover {
  background: #3498db;
  transform: translateY(-5px);
}


@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .info {
    font-size: 1rem;
  }
}

/* === Pop-Up Overlay === */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 10px;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* === Pop-Up Content === */
.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: popIn 0.5s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.popup-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: #081da5;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.popup-btn:hover {
  background: #b91c1c;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.close-btn:hover {
  color: #123eb5;
}

/* Animation */
@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 📱 Responsive */
@media (max-width: 480px) {
  .popup-content {
    padding: 15px;
    max-width: 90%;
  }
  .popup-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  background-color:#020f88;
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 0.9rem;
}
