/* Core Variables */
:root {
  /* Color Palette - Pastel Corporate Theme */
  --primary-color: #8cb9d3;
  --primary-dark: #6a9bc0;
  --secondary-color: #d3a8c2;
  --secondary-dark: #b88aa5;
  --accent-color: #f7d6a0;
  --accent-dark: #e9c080;
  --neutral-light: #f8f9fa;
  --neutral-medium: #e9ecef;
  --neutral-dark: #495057;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  --bg-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --border-radius: 8px;
  --container-padding: 2.5rem;
}

/* Base Styles */
body {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

section {
  position: relative;
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 600;
  border-radius: var(--border-radius);
  padding: 0.6rem 1.5rem;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  color: var(--text-light);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover, .btn-outline-light:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar Styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  color: var(--text-primary);
  position: relative;
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

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

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  margin-top: -76px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

#hero p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

#hero .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
  margin: 0 0.5rem;
}

/* Mission Section */
#mission {
  background-color: var(--neutral-light);
}

#mission .card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: var(--card-shadow);
}

#mission .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

#mission .card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mission .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

#mission .card-body {
  padding: 1.5rem;
}

#mission .card-title {
  color: var(--primary-color);
  font-weight: 700;
}

/* Methodology Section */
#methodology {
  background-color: var(--neutral-medium);
}

.methodology-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.methodology-image:hover {
  transform: translateY(-5px);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

.accordion-button {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--neutral-light);
}

/* Projects Section */
#projects .card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

#projects .card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

#projects .card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#projects .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

#projects .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#projects .card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

#projects .card-text {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Statistics Section */
#statistics {
  background-color: var(--neutral-medium);
}

.stats-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--border-radius);
}

.stats-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.stats-icon {
  color: var(--primary-color);
}

.stats-number {
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.chart-container {
  margin: 0 auto;
}

/* Resources Section */
#resources .resource-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
}

#resources .resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

#resources .card-body {
  padding: 1.5rem;
}

#resources .card-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Insights Section */
#insights {
  background-color: var(--neutral-light);
}

.insight-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: var(--card-shadow);
}

.insight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.insight-card .card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.insight-card .card-body {
  padding: 1.5rem;
}

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

/* Blog Section */
#blog .blog-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

#blog .blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

#blog .card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#blog .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

#blog .card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#blog .card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

#blog .text-muted {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

#blog .card-text {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* News Section */
#news {
  background-color: var(--neutral-medium);
}

.news-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: var(--card-shadow);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.news-card .text-muted {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Contact Section */
#contact {
  position: relative;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-form-container {
  border-radius: var(--border-radius);
}

.contact-form .form-control, .contact-form .form-select {
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  border: 1px solid var(--neutral-medium);
}

.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(140, 185, 211, 0.25);
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

footer h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer p, footer li {
  opacity: 0.8;
}

footer a {
  color: var(--text-light);
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--accent-color);
}

footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-links a:hover {
  transform: translateY(-3px);
  color: var(--accent-color);
}

footer .newsletter input {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

footer .newsletter button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

footer .newsletter button:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
  padding-top: 100px;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neutral-light);
}

.success-content {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  max-width: 600px;
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

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

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

/* 3D Effects */
.card, .btn, .accordion-item, .methodology-image {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover, .methodology-image:hover {
  transform: translateY(-10px) rotateX(5deg);
}

.btn:hover {
  transform: translateY(-3px) rotateX(5deg);
}

/* Media Queries */
@media (max-width: 991.98px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  
  #hero p {
    font-size: 1.25rem;
  }
  
  .methodology-image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  #hero h1 {
    font-size: 2rem;
  }
  
  #hero p {
    font-size: 1rem;
  }
  
  .card-image {
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  #hero h1 {
    font-size: 1.75rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  #hero .btn {
    margin: 0 0 1rem 0;
  }
}

/* Utility Classes */
.text-primary-color {
  color: var(--primary-color);
}

.bg-primary-color {
  background-color: var(--primary-color);
}

.text-secondary-color {
  color: var(--secondary-color);
}

.bg-secondary-color {
  background-color: var(--secondary-color);
}

.shadow-effect {
  box-shadow: var(--card-shadow);
}

.hover-shadow:hover {
  box-shadow: var(--hover-shadow);
}

.border-radius {
  border-radius: var(--border-radius);
}

.transition {
  transition: all var(--transition-speed) ease;
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-image {
  width: 100%;
  text-align: center;
}

.card-image img {
  margin: 0 auto;
}

/* Success Modal */
#successModal .modal-content {
  border-radius: var(--border-radius);
  border: none;
}

#successModal .modal-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

#successModal .modal-footer {
  border-top: none;
}