/* ===================================
   Pathfinders Empowerment Hub
   Main Stylesheet — Shared across all pages
   =================================== */

:root {
  --maroon: #800000;
  --maroon-dark: #5c0000;
  --maroon-light: #a00000;
  --black: #181818;
  --white: #fff;
  --gray: #faf9fa;
  --light-maroon: rgba(128, 0, 0, 0.1);
  --text-primary: #181818;
  --text-secondary: #555;
  --gray-light: #f5f5f5;
  --gray-medium: #ddd;
  --gray-dark: #888;
  --accent: #d32f2f;
  --accent-dark: #b71c1c;
  --border-radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: var(--gray);
  color: var(--black);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===================================
   Utility Classes
   =================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  position: relative;
  display: inline-block;
  color: var(--maroon);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  border-radius: 2px;
}

.content-section {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.07);
  padding: 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light), var(--maroon));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-section:hover::before {
  opacity: 1;
}

.section-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
  line-height: 1.8;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out both;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(24, 24, 24, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  border: 2px solid var(--maroon);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--maroon-light);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
}

/* ===================================
   Header Banner
   =================================== */
.header {
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.95), rgba(60, 0, 0, 0.9)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  background-size: cover, 20px 20px;
  color: var(--white);
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--gray);
  clip-path: polygon(0 60%, 100% 100%, 100% 100%, 0 100%);
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.header-cta {
  margin-top: 2rem;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* ===================================
   Call to Action
   =================================== */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(24, 24, 24, 0.95), rgba(40, 0, 0, 0.9));
  color: var(--white);
  border-radius: var(--border-radius);
  margin: 4rem auto;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(128, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-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 ease;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.4);
}

.cta-btn:hover::before {
  left: 100%;
}

/* ===================================
   Impact Section
   =================================== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 25px rgba(128, 0, 0, 0.2);
  transition: var(--transition);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(128, 0, 0, 0.3);
}

.impact-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.impact-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.impact-label {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  text-align: left;
  margin-bottom: 3rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  color: var(--maroon-light);
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  border-radius: 2px;
}

.footer-column p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-column p i {
  color: var(--maroon-light);
  margin-right: 0.5rem;
  width: 16px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--maroon-light);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
  color: var(--white);
}

.developer {
  font-size: 0.8rem;
  margin-top: 1rem;
  opacity: 0.6;
}

.developer a {
  color: #e71616;
  text-decoration: none;
  font-weight: 500;
}

.developer a:hover {
  text-decoration: underline;
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-light));
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(128, 0, 0, 0.4);
  color: var(--white);
}

/* ===================================
   Responsive Design
   =================================== */
@media screen and (max-width: 992px) {
  .section-padding { padding: 4rem 0; }
  .header h1 { font-size: 2.8rem; }
  .content-section { padding: 2rem; }
}

@media screen and (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    width: 100%;
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(10px);
    align-items: center;
    padding: 2rem 0;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .nav-links.active { left: 0; }
  .header h1 { font-size: 2.2rem; }
  .header p { font-size: 1.1rem; }
  .header { padding: 5rem 0 4rem; }
  .section-title { font-size: 1.7rem; }
  .footer-content { text-align: center; }
  .social-icons { justify-content: center; }
}

@media screen and (max-width: 576px) {
  .header { padding: 4rem 0 3rem; }
  .header h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .content-section { padding: 1.5rem; }
  .cta-section { padding: 2rem 1rem; }
  .cta-section h2 { font-size: 1.5rem; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .impact-card { padding: 1.5rem 1rem; }
  .impact-number { font-size: 2rem; }
}
