/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  /* Colors */
  --color-primary: #6a11cb;
  --color-secondary: #2575fc;
  --color-text: #343a40;
  --color-text-light: #5f676f;
  --color-headings: #222222;
  --color-white: #ffffff;
  --color-light-gray: #f0f2f5;
  --color-border: #e0e5ec;
  
  /* Background Gradient */
  --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  --bg-gradient-footer: linear-gradient(135deg, #232526 0%, #414345 100%);

  /* Neumorphism Shadows */
  --neumorphic-shadow: 8px 8px 16px rgba(163, 177, 198, 0.6), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --neumorphic-shadow-inset: inset 6px 6px 12px rgba(163, 177, 198, 0.6), inset -6px -6px 12px rgba(255, 255, 255, 0.8);
  --neumorphic-shadow-hover: 4px 4px 8px rgba(163, 177, 198, 0.6), -4px -4px 8px rgba(255, 255, 255, 0.8);
  
  /* Spacing & Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light-gray);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .display-3, .display-4 {
  font-family: var(--font-heading);
  color: var(--color-headings);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

section {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-headings);
  position: relative;
  padding-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  bottom: 0;
  left: calc(50% - 30px);
  border-radius: 2px;
}

.page-content {
  padding-top: 100px;
  padding-bottom: 50px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#mainNav {
  transition: all 0.3s ease-in-out;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#mainNav.navbar-scrolled {
  background: var(--color-white);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid transparent;
}

#mainNav .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
}

#mainNav.navbar-scrolled .navbar-brand {
  color: var(--color-primary);
}

#mainNav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 10px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--color-primary);
}

#mainNav .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#mainNav .nav-link:hover::before,
#mainNav .nav-link.active::before {
  visibility: visible;
  width: 50%;
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  color: var(--color-white); /* Enforced white color */
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-white); /* Enforced white color */
}

/*--------------------------------------------------------------
# Buttons & Forms
--------------------------------------------------------------*/
.btn, button, input[type='submit'] {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--border-radius-md);
    padding: 12px 30px;
    border: none;
    transition: all 0.3s ease;
}

.neumorphic-btn {
  background-color: var(--color-light-gray);
  color: var(--color-primary);
  box-shadow: var(--neumorphic-shadow);
}

.neumorphic-btn:hover {
  box-shadow: var(--neumorphic-shadow-hover);
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.neumorphic-btn:active, .neumorphic-btn:focus {
  box-shadow: var(--neumorphic-shadow-inset) !important;
  transform: translateY(2px);
}

.form-control, .form-floating > .form-control {
  background-color: var(--color-light-gray);
  border: none;
  border-radius: var(--border-radius-md) !important;
  box-shadow: var(--neumorphic-shadow-inset);
  padding: 1rem 1.2rem;
  height: auto;
  min-height: 58px;
  transition: all 0.3s ease;
}

.form-control:focus, .form-floating > .form-control:focus {
  background-color: var(--color-light-gray);
  box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--color-secondary);
  outline: none;
}

.form-floating > label {
  padding: 1rem 1.2rem;
  color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  background: var(--color-light-gray);
  box-shadow: var(--neumorphic-shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 12px 12px 24px rgba(163, 177, 198, 0.7), -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.card .card-image {
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
  padding: 0 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.btn-link {
  color: var(--color-secondary);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: auto;
  padding-top: 1rem;
}

.btn-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Section Specific Styles
--------------------------------------------------------------*/

/* Stats Section */
.stats-section {
    background: var(--bg-gradient);
}
.stat-widget {
  padding: 20px;
  border-radius: var(--border-radius-md);
  color: var(--color-white);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.stat-widget h3 {
  color: var(--color-white);
  font-weight: 700;
}

/* Methodology Section */
.method-card {
  background: var(--color-light-gray);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neumorphic-shadow);
  transition: transform 0.3s ease;
  height: 100%;
  position: relative;
}
.method-card:hover {
    transform: translateY(-5px);
}
.method-card .method-icon {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: 15px;
  right: 25px;
}

/* Community / Testimonials */
.community-section {
  background: var(--bg-gradient);
}
.community-section .section-title {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.community-section .section-title::after {
  background: var(--color-white);
}
.testimonial-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-weight: 700;
  color: var(--color-white);
}

/* External Resources */
.resource-card {
  display: block;
  padding: 25px;
  background: var(--color-light-gray);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neumorphic-shadow);
  transition: all 0.3s ease;
  height: 100%;
  color: var(--color-text);
}
.resource-card:hover {
  transform: translateY(-5px);
  color: var(--color-text);
  box-shadow: var(--neumorphic-shadow-hover);
}
.resource-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.resource-description {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* About Page */
.info-card {
    background: var(--color-light-gray);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neumorphic-shadow);
    height: 100%;
    text-align: center;
}
.info-card h3 {
    color: var(--color-primary);
}

/* Contacts Page */
.contact-info p {
  margin-bottom: 1.5rem;
}
.contact-info strong {
  color: var(--color-primary);
}
.map-container iframe {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--neumorphic-shadow);
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-section {
  background: var(--bg-gradient-footer);
  color: rgba(255, 255, 255, 0.7);
}

.footer-section h6 {
  color: var(--color-white);
  font-weight: 700;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.footer-section .text-center a {
  color: var(--color-white);
}

/*--------------------------------------------------------------
# Success Page
--------------------------------------------------------------*/
.success-message {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    background: var(--color-light-gray);
    box-shadow: var(--neumorphic-shadow);
}

.success-message-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  section {
    padding: 60px 0;
  }
  .hero-section h1 {
    font-size: 2.5rem;
  }
  #mainNav {
    background: var(--color-white);
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: 80vh;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}