/* Reset dan Variabel */
:root {
  --primary-color: #1e5128;
  --primary-light: #2d7a3d;
  --primary-dark: #0f3a17;
  --secondary-color: #f8c05a;
  --secondary-light: #ffd78a;
  --secondary-dark: #e6a732;
  --accent-color: #4caf50;
  --text-color: #333;
  --text-light: #666;
  --light-text: #fff;
  --dark-bg: #0a2614;
  --light-bg: #f9f9f9;
  --off-white: #f5f5f5;
  --border-radius: 10px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Amiri', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-family: var(--font-primary);
  overflow-x: hidden;
}

/* Utilitas */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(30, 81, 40, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transition: var(--transition);
  z-index: -1;
  border-radius: 50px;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(30, 81, 40, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  box-shadow: 0 4px 15px rgba(248, 192, 90, 0.3);
}

.btn-secondary::before {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary-color);
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pattern-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23045a30' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

/* Animasi */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

/* Header dan Navigasi */
header {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 28px;
  color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-secondary);
  display: inline-block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 5px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: var(--transition);
  border-radius: 2px;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-image: url('../img/vle-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 81, 40, 0.8), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-secondary);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--light-text);
  font-size: 2rem;
  cursor: pointer;
  animation: float 2s infinite ease-in-out;
}

/* Tentang Kami */
.about {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--secondary-color);
  border-radius: var(--border-radius-lg);
  z-index: -1;
  transition: var(--transition);
}

.about-image:hover::before {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-text h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Jadwal Sholat */
.prayer-times {
  background-color: var(--off-white);
  position: relative;
}

.prayer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.prayer-card {
  background-color: var(--light-text);
  padding: 30px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.prayer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  z-index: -1;
}

.prayer-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.prayer-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.prayer-card .time {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-family: var(--font-secondary);
}

.prayer-card .arabic {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.prayer-info {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Kegiatan */
.events {
  background-color: var(--light-bg);
  position: relative;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.event-card {
  background-color: var(--light-text);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.event-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.event-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-details {
  padding: 30px;
}

.event-date {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  padding: 8px 15px;
  border-radius: 50px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}

.event-details h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.event-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.event-meta div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-meta i {
  color: var(--primary-color);
}

/* Donasi */
.donation {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: var(--light-text);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.donation h2 {
  color: var(--light-text);
}

.donation-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.donation-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.donation-method {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  flex: 1;
  min-width: 250px;
  backdrop-filter: blur(5px);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-method:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.donation-method i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.donation-method h3 {
  color: var(--light-text);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.donation-cta {
  margin-top: 50px;
}

/* Galeri */
.gallery {
  background-color: var(--light-bg);
  position: relative;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  height: 250px;
  overflow: hidden;
  border-radius: var(--border-radius);
  position: relative;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 20px;
  color: var(--light-text);
  z-index: 2;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  bottom: 0;
}

.gallery-more {
  text-align: center;
  margin-top: 40px;
}

/* Kontak */
.contact {
  background-color: var(--off-white);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--light-text);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.contact-form {
  background-color: var(--light-text);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.5rem;
  text-align: center;
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 81, 40, 0.1);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  text-align: center;
  margin-top: 10px;
}

/* Peta */
.map {
  height: 450px;
  margin-top: 80px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.map::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 10px solid var(--light-text);
  box-sizing: border-box;
  z-index: 1;
  pointer-events: none;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--dark-bg));
  color: var(--light-text);
  padding: 80px 0 20px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--secondary-color), var(--secondary-light));
  border-radius: 2px;
}

.footer-about p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a i {
  color: var(--secondary-color);
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  color: var(--primary-dark);
}

.footer-newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.newsletter-form button {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 192, 90, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

/* Tombol Kembali ke Atas */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--light-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(30, 81, 40, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 1200px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 50px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .btn {
    font-size: 0.8rem;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-scroll {
    font-size: 1.4rem;
  }

  nav {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    background-color: var(--light-text);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 60px;
  }

  .section-title:after {
    bottom: -6px;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    font-size: 0.8rem;
  }

  .event-list {
    grid-template-columns: 1fr;
  }

  .donation-method {
    min-width: 100%;
  }

  .contact-icon {
    font-size: 1rem;
    width: 40px;
    height: 40px;
  }

  .contact-text h3,
  .contact-text p {
    font-size: 0.9rem;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .feature-icon {
    font-size: 1rem;
    width: 40px;
    height: 40px;
  }

  .feature-text h4 {
    font-size: 1.1rem;
  }

  .feature-text p {
    font-size: 1rem;
  }

  .prayer-card h3 {
    font-size: 1.3rem;
  }

  .prayer-card p {
    font-size: 0.9rem;
  }

  .prayer-info p {
    font-size: 0.9rem;
  }

  .prayer-info a {
    font-size: 0.8rem;
  }

  .event-date {
    font-size: 0.8rem;
  }

  .event-details h3 {
    font-size: 1.3rem;
  }
  .event-details p {
    font-size: 0.9rem;
  }

  .event-meta i {
    font-size: 1rem;
  }

  .event-place,
  .event-teacher {
    font-size: 0.9rem;
  }

  .donation-title {
    margin-bottom: 25px;
  }

  .donation-content p {
    font-size: 1rem;
  }

  .donation-method h3 {
    font-size: 1.2rem;
  }

  .donation-cta p {
    font-size: 1rem;
  }

  .donation-cta a {
    font-size: 0.8rem;
  }

  .contact-form h3 {
    font-size: 1.1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-submit button {
    font-size: 0.7rem;
  }

  .footer-section h3 {
    font-size: 1.3rem;
  }

  .footer-about p,
  .footer-links a {
    font-size: 1rem;
  }

  .social-links i {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }

  .prayer-container {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 25px;
  }
}
