/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.4rem;
}
h5 {
  font-size: 1.2rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Source Sans Pro", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid #1e3c72;
}

.btn-secondary:hover {
  background: #1e3c72;
  color: white;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  margin-bottom: 0.3rem;
}

.logo i {
  font-size: 2.5rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

.logo h1 {
  font-size: 1.5rem;
  color: #1e3c72;
  margin-bottom: 0.1rem;
  font-weight: 700;
}

.logo .subtitle {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #1e3c72;
  background: rgba(30, 60, 114, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #1e3c72;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("background.png") center/cover no-repeat;
  opacity: 1;
  z-index: 1;
  clip-path: inset(0 0px 45px 0);
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 60, 114, 0.4) 0%,
    rgba(42, 82, 152, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #d4af37;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: #1e3c72;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #1e3c72);
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.2rem;
  font-weight: 300;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h3 {
  color: #1e3c72;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.about-text h3:first-child {
  margin-top: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item i {
  font-size: 3rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

.value-item h4 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

/* History Section */
.history-section {
  padding: 6rem 0;
  background: white;
}

.history-content {
  max-width: 800px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #d4af37, #1e3c72);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  background: #d4af37;
  border: 4px solid white;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px #1e3c72;
  z-index: 2;
}

.timeline-content {
  width: 45%;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

/* Charities Section */
.charities-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.charities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.charity-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 60, 114, 0.1);
}

.charity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon i {
  font-size: 2rem;
  color: white;
}

.charity-card h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

/* Gallery Section */
.gallery-section {
  padding: 6rem 0;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.3s ease;
}

.gallery-placeholder:hover {
  background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #1e3c72;
}

.gallery-placeholder p {
  font-weight: 600;
  color: #1e3c72;
}

/* New Gallery Image Styles */
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 60, 114, 0.9);
  color: white;
  padding: 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-caption p {
  margin: 0;
  font-weight: 600;
  color: white;
}

/* Subscribe Section */
.subscribe-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  text-align: center;
}

.subscribe-section .section-title,
.subscribe-section .section-subtitle {
  color: white;
}

.subscribe-content {
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.subscribe-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.subscribe-form input {
  flex: 1;
  min-width: 300px;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family: "Source Sans Pro", sans-serif;
}

.subscribe-form .btn {
  background: #d4af37;
  color: #1e3c72;
  font-weight: 700;
}

.subscribe-form .btn:hover {
  background: #c19b2e;
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  font-size: 1.5rem;
  color: #d4af37;
  margin-top: 0.2rem;
}

.contact-item h4 {
  color: #1e3c72;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Source Sans Pro", sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3c72;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #1e3c72;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.footer-description {
  color: #b8c5d6;
  font-style: italic;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #b8c5d6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #d4af37;
}

.footer-section p {
  color: #b8c5d6;
  margin-bottom: 0.5rem;
}

.footer-section p i {
  color: #d4af37;
  margin-right: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #2a5298;
  color: #b8c5d6;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #d4af37;
  color: #1e3c72;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #c19b2e;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-marker {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }

  .subscribe-form input {
    min-width: 100%;
  }

  .values-grid,
  .charities-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}

/* Animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-section,
.history-section,
.charities-section,
.gallery-section,
.subscribe-section,
.contact-section {
  animation: fadeInUp 0.8s ease-out;
}

/* Hover effects for interactive elements */
.nav-link:hover,
.btn:hover,
.value-item:hover,
.charity-card:hover,
.gallery-item:hover {
  transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
input:focus,
textarea:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}
