/* Base Styles */
:root {
    --black: #000000;
    --white: #ffffff;
    --gold: #D4AF37;
    --light-gold: rgba(212, 175, 55, 0.7);

     --bg-light: #ffffff;
  --bg-dark: #121212;
  --text-light: #333333;
  --text-dark: #e0e0e0;
  --gold: #D4AF37;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--black);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: var(--gold);
}

/* Navigation */
.navbar {
    background-color: var(--black);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--gold);
    font-family: 'Rubik', serif;
    font-size: 1.7rem;
    text-decoration: none;
}

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

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
    padding: 0 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 5px solid var(--gold);
}

/* Portfolio Section */
.portfolio {
    padding: 0rem 0;
    background-color: #f9f9f9;
}

.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active {
    border-bottom: 2px solid var(--gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Walk With Yah Section */
.walk-with-yah {
    padding: 5rem 0;
}

/* Unscroll Yeshua Section */
.unscroll-yeshua {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 0.5rem;
    border: 1px solid var(--black);
}

.gold-btn {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gold-btn:hover {
    background-color: var(--light-gold);
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .about-content {
        flex-direction: column;
    }

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

/* Ministry Grid */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ministry-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ministry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Worship Section */
.worship {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.worship-video {
    margin-bottom: 2rem;
}

.worship-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.sermon-card {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

audio {
    width: 100%;
    margin-top: 1rem;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
:root {
  /* Font Families */
  --font-display: 'EB Garamond', serif;
  --font-secondary: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --font-accent: 'Alex Brush', cursive;
  
  /* Font Weights */
  --light: 300;
  --regular: 400;
  --medium: 500;
  --bold: 700;


  /* Dark Theme Colors */
  --bg-dark: #121212;
  --card-dark: #1E1E1E;
  --text-dark: #E0E0E0;
  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.6);
  
  /* Original Light Theme (as fallback) */
  --bg-light: #FFFFFF;
  --card-light: #F8F8F8;
  --text-light: #333333;

}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-weight: var(--regular);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--medium);
  line-height: 1.3;
}

.section-title {
  font-family: var(--font-secondary);
  font-weight: var(--medium);
  font-size: 2.5rem;
  letter-spacing: 0.5px;
}

/* ===== SPECIAL TYPOGRAPHY ===== */
.gold-text {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--gold);
}

.scripture-verse {
  font-family: var(--font-accent);
  font-size: 1.8rem;
  line-height: 1.2;
}

.testimonial-quote {
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: var(--light);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .gold-text {
    font-size: 1.8rem;
  }
}

/* Gold Sparkle Animation */
@keyframes gold-sparkle {
  0% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
  50% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.5); }
  100% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

.gold-text, 
.gold-btn,
.nav-links li a:hover,
.social-links a:hover {
  animation: gold-sparkle 3s infinite;
  position: relative;
}

/* Optional: Micro-interaction on hover */
.gold-text:hover {
  animation: gold-sparkle 1s infinite;
}

/* System Preference Detection */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: var(--bg-dark);
    --card-bg: var(--card-dark);
    --text-primary: var(--text-dark);
  }
}

/* Manual Dark Theme Class */
.dark-theme {
  --bg-primary: var(--bg-dark);
  --card-bg: var(--card-dark);
  --text-primary: var(--text-dark);
  
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Component Adjustments */
.dark-theme .navbar {
  background-color: rgba(18, 18, 18, 0.9);
  border-bottom: 1px solid #333;
}

.dark-theme .ministry-card,
.dark-theme .sermon-card {
  background: var(--card-bg);
  border: 1px solid #333;
}

.dark-theme .contact-form input,
.dark-theme .contact-form textarea {
  background: #2A2A2A;
  border: 1px solid #444;
  color: white;
}   

/* Toggle Switch CSS */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--gold);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.toggle-label {
  margin-left: 10px;
  font-size: 0.9rem;
}

.dark-theme .gold-text {
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.dark-theme .gold-btn {
  background: transparent;
  border: 1px solid var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.dark-theme .portfolio-item:hover {
  box-shadow: 0 0 20px var(--gold-glow);
}

/* style.css */
.testimonial-slider {
  position: relative;
  min-height: 200px; /* Prevent layout shift */
}

.testimonial {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

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

/* ===== Worship Section - Dark Mode Support ===== */
.worship {
  padding: 5rem 0;
  background-color: var(--bg-light); /* Default light */
  color: var(--text-light);
}

.dark-theme .worship {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* Video Container */
.worship-video {
  background: #000; /* Always black for better video contrast */
  padding: 20px;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 800px;
}

/* Music Links */
.worship-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.dark-theme .worship-links .gold-btn {
  background: transparent;
  border: 1px solid var(--gold);
}

/* Video Player Styling */
.worship-video iframe {
  width: 100%;
  min-height: 450px;
  border: none;
}

/* Dark Mode Overrides */
.dark-theme .worship-video {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.worship {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Music Platform Links */
.worship-links .gold-btn {
  color: var(--text-light); /* Black text in light mode */
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.dark-theme .worship-links .gold-btn {
  color: var(--text-dark); /* White text in dark mode */
  background: transparent;
  border: 1px solid var(--gold);
}

/* Hover Effects (Both Modes) */
.worship-links .gold-btn:hover {
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Theme Toggle Container */
.theme-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0 15px;
}

/* Mobile Toggle Styling */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }
  
  .theme-toggle {
    position: absolute;
    top: 15px;
    right: 60px; /* Space for menu toggle */
    margin: 0;
  }
  
  .toggle-label {
    display: none; /* Hide text label on mobile */
  }
  
  .switch {
    width: 40px; /* Smaller toggle */
    height: 20px;
  }
  
  .slider:before {
    height: 14px;
    width: 14px;
  }
}

/* Music Links - Mobile Optimization */
.worship-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 2rem auto;
  max-width: 90%;
}

.worship-links .gold-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 480px) {
  .worship-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .worship-links .gold-btn {
    width: 100%;
    margin: 0.2rem 0;
  }
  
  .worship-video iframe {
    min-height: 250px; /* Shorter video player */
  }
}

.menu-toggle {
  z-index: 1001; /* Above theme toggle */
}

.theme-toggle {
  z-index: 1000;
}

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

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* Dark overlay for text readability */
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

/* Dark Mode Adjustments */
.dark-theme .video-overlay {
  background: rgba(0,0,0,0.7); /* Darker overlay in dark mode */
}

/* If video fails to load */
.video-background {
  background: url('../images/hero-fallback.jpg') no-repeat center center/cover;
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
  }
  
  /* Disable video on mobile if performance is concern */
  @media (max-aspect-ratio: 1/1) {
    .video-background video {
      display: none;
    }
    .video-background {
      background: url('../images/hero-mobile.jpg') no-repeat center center/cover;
    }
  }
}

/* Audio Controls */
.audio-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.7);
  padding: 10px 15px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--gold);
}

#audioToggle {
  background: transparent;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

#volumeControl {
  width: 80px;
  accent-color: var(--gold); /* Gold slider */
}

.dark-theme .audio-controls {
  background: rgba(255,255,255,0.1);
}

/* Volume slider styling */
#volumeControl {
  width: 80px;
  accent-color: rgba(212, 175, 55, 0.4); /* Gold at 40% opacity */
  transition: accent-color 0.3s ease;
}

/* Visual indicator when volume changes */
.audio-controls:has(#volumeControl:active) {
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

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

/* Hero Image Container */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(30%) contrast(0%);
}

/* Overlay for Text Readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.7) 100%
  );
  mix-blend-mode: multiply;
}

/* Hero Content Styling */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Dark Mode Adjustments */
.dark-theme .hero-overlay {
  background: rgba(255, 255, 255, 0.8);
}

.dark-theme .hero-image img {
  filter: grayscale(50%) contrast(120%) brightness(0.7);
}


.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}