/* Home page specific styles */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-image: url('https://images.unsplash.com/photo-1508186736120-0e1e41d3d8d3?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* slightly lighter so particles show through */
  z-index: 1;
}
/* Optional hero background container (holds video element) */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

/* Video element used as hero background */
.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  will-change: transform;
}
.hero-content {
  position: relative;
  z-index: 3; /* above particle canvas (which is z-index:2) */
  max-width: 800px;
}
/* Play button for hero when autoplay blocked */
.hero-play {
  margin-top: 1rem;
  background: rgba(255,255,255,0.9);
  color: #333;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.hero-play:hover { transform: translateY(-2px); }
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  color: var(--white);
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: #f0f0f0;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-family: var(--heading-font);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background-color: var(--burnt-orange);
  color: var(--white);
}
.btn-primary:hover {
  background-color: #b34700;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-secondary {
  background-color: var(--forest-green);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: #1b6d1b;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Intro Grid */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.intro-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.activity-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  text-align: center;
}

/* Card wrapper visuals (used inside activity-card) */
.card {
  background: var(--white);
  padding: 1.5rem 1.2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-height: 220px;
  border-top: 4px solid rgba(204,85,0,0.08);
}

.card h3 {
  margin: 0.6rem 0 0.2rem 0;
  color: var(--burnt-orange);
}

.card p {
  color: #444;
  font-size: 0.95rem;
}

.card-icon-svg {
  width: 72px;
  height: 72px;
  display: block;
}
/* white circular background for icons to ensure visibility on gradients */
.card-icon-svg {
  background: #ffffff;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Per-card gradients (stronger, applied via activity-card index for correct targeting) */
.activities-grid > .activity-card:nth-child(1) .card {
  background: linear-gradient(135deg, rgba(204,85,0,0.14), rgba(255,241,224,0.10));
}
.activities-grid > .activity-card:nth-child(2) .card {
  background: linear-gradient(135deg, rgba(34,139,34,0.14), rgba(224,255,237,0.10));
}
.activities-grid > .activity-card:nth-child(3) .card {
  background: linear-gradient(135deg, rgba(0,123,191,0.12), rgba(230,243,255,0.08));
}
.activities-grid > .activity-card:nth-child(4) .card {
  background: linear-gradient(135deg, rgba(153,102,204,0.12), rgba(244,240,255,0.08));
}

/* Ensure headings remain readable */
.activities-grid .card h3 {
  color: #2b2b2b;
}

/* Slight lift and intensified shadow on hover while preserving previous behavior */
.activities-grid .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 45px rgba(0,0,0,0.16);
}
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.activity-card h3 {
  color: var(--forest-green);
  margin-bottom: 1rem;
}

/* Mission Vision Grid */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.mv-item {
  padding: 2rem;
  background: var(--white);
  border-left: 4px solid var(--burnt-orange);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.mv-item h2 {
  color: var(--burnt-orange);
  margin-bottom: 1rem;
}

/* CTA */
.cta p {
  font-size: 1.2rem;
  margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 767px) {
  .hero {
    background-attachment: scroll; /* Disable parallax on mobile */
  }
  .hero-title {
    font-size: 2rem;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}