/*
 * style.css
 *
 * This stylesheet provides the base styling for the simple Bible website. It
 * utilises modern CSS techniques such as flexbox and grid for layout, CSS
 * variables for easy theme management, and glassmorphism effects via
 * backdrop-filter and semi‑transparent backgrounds. The design is meant to
 * feel spacious, modern and easy to customise.
 */

/* Reset some default styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(120deg, #0077b6 0%, #00b4d8 50%, #90e0ef 100%);
  /* The following ensures the gradient fills the viewport */
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Container class for consistent content width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Navigation styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s ease-in-out;
}

.nav-links a {
  padding: 0.5rem 0;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 24px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-toggle .hamburger::before {
  transform: translateY(-8px);
}

.nav-toggle .hamburger::after {
  transform: translateY(5px);
}

/* Show/hide nav on small screens */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100vh;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active .hamburger {
    background-color: transparent;
  }
  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .nav-links a {
    font-size: 1.25rem;
  }
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1526489949164-1c5c7b2dc18a?auto=format&fit=crop&w=1740&q=80')
    no-repeat center center/cover;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  /* A slight overlay to improve text readability */
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Section styles */
.section {
  padding: 4rem 0;
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-weight: 300;
  font-size: 1rem;
}

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

.card {
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.card p {
  font-weight: 300;
  font-size: 0.95rem;
}

/* Call to Action */
.call-to-action {
  background: linear-gradient(135deg, #03045e 0%, #0077b6 50%, #0096c7 100%);
  color: #ffffff;
}

.cta-content {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 1rem;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1rem;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background-color: #fff;
  color: #0077b6;
  border: none;
}

.btn-secondary:hover {
  background-color: #e0f7ff;
  transform: translateY(-2px);
}

button.btn-primary {
  width: 100%;
  border: none;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer p {
  font-size: 0.875rem;
}

/* Glass effect universal class */
.glass {
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}