/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a365d;
  --secondary-color: #d4af37;
  --accent-color: #ffffff;
  --text-dark: #2d3748;
  --text-light: #f7fafc;
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  --shadow-3d: 0 10px 30px rgba(26, 54, 93, 0.3);
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3D Header Styles */
.header-3d {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-3d);
  transform: translateZ(0);
  transition: var(--transition);
}

.header-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  transform: translateZ(0);
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-gold);
  border-radius: var(--border-radius);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  z-index: -1;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section with Parallax */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(44, 82, 130, 0.6) 100%
  );
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--accent-color);
  max-width: 800px;
  padding: 0 2rem;
  transform: translateY(0);
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateX(10deg);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* About Section */
.about-section {
  background: var(--text-light);
  position: relative;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.about-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  clip-path: inset(0% 0% 5% 5%);
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 250, 252, 0.9);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.values-list li:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.values-list i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-card {
  background: var(--accent-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dark);
  font-weight: 600;
}

/* Services Section */
.services-section {
  background: var(--accent-color);
  position: relative;
}

.services-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.services-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  clip-path: inset(0% 0% 5% 5%);
}

.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--accent-color);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 1.5rem;
  position: relative;
}

.service-icon i {
  font-size: 3rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  transform: scale(1.2) rotate(10deg);
}

.icon-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition);
}

.service-card:hover .icon-image {
  transform: scale(1.1);
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  line-height: 1.7;
  color: var(--text-dark);
}

/* Impact Section */
.impact-section {
  background: var(--text-light);
  position: relative;
}

.impact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.impact-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  clip-path: inset(0% 0% 5% 5%);
}

.impact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(247, 250, 252, 0.9);
}

.impact-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.impact-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
  margin: 0 2rem;
  border: 4px solid var(--secondary-color);
}

.timeline-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  clip-path: inset(0% 0% 5% 5%);
}

.timeline-content {
  flex: 1;
  background: var(--accent-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 15px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -30px;
  border-right-color: var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -30px;
  border-left-color: var(--accent-color);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Subscribe Section */
.subscribe-section {
  background: var(--primary-color);
  color: var(--accent-color);
}

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.subscribe-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.subscribe-info p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.donation-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.donation-option {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: var(--transition);
}

.donation-option:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.donation-option h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.subscribe-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.subscribe-form h3 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact-section {
  background: var(--accent-color);
  position: relative;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.contact-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  clip-path: inset(0% 0% 5% 5%);
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.contact-item h4 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-map h3 {
  font-family: "Playfair Display", serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--accent-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .about-content,
  .subscribe-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column !important;
    text-align: center;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-content::before {
    display: none;
  }

  .timeline-marker {
    margin: 0 auto 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .logo-text {
    font-size: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--text-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}
