/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Work Sans', sans-serif;

  /* Pastel Color Palette */
  --color-primary: #a2d2ff; /* Pastel Blue */
  --color-primary-dark: #7AB8FF;
  --color-secondary: #ffafcc; /* Pastel Pink */
  --color-accent: #bde0fe; /* Light Pastel Blue */
  
  /* Text & Background Colors */
  --color-text: #2c3e50; /* Dark Slate Blue */
  --color-text-secondary: #7f8c8d; /* Grayish Blue */
  --color-background-light: #fefeff; /* Almost White */
  --color-background-section: #f8f9fa; /* Bootstrap Light Gray */
  --color-background-dark: #222831; /* Darker Footer */
  --color-white: #ffffff;
  --color-border: #e0e0e0;

  /* Design System Tokens */
  --border-radius-standard: 1rem;
  --border-radius-soft: 0.5rem;
  --box-shadow-soft: 0 8px 32px 0 rgba(162, 210, 255, 0.25);
  --box-shadow-hover: 0 12px 40px 0 rgba(162, 210, 255, 0.4);
  --transition-smooth: 0.3s ease-in-out;
  --biomorphic-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/*--------------------------------------------------------------
# General & Body
--------------------------------------------------------------*/
body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  background-color: var(--color-background-light);
  line-height: 1.7;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text);
}

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

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.bg-light {
    background-color: var(--color-background-section) !important;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.header .navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.header .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-smooth);
}

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

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

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44, 62, 80, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.hero-section .hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

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

/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border-width: 2px;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-soft);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 0.25rem rgba(162, 210, 255, 0.5);
}

/*--------------------------------------------------------------
# Biomorphic & Card Styles
--------------------------------------------------------------*/
.bio-shape {
  border-radius: var(--biomorphic-radius);
  overflow: hidden;
  animation: morph 8s ease-in-out infinite;
  transition: var(--transition-smooth);
}
.bio-shape img {
    transition: transform 0.5s ease;
}
.bio-shape:hover img {
    transform: scale(1.1);
}

@keyframes morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.card {
  border: none;
  border-radius: var(--border-radius-standard);
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center;
}

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

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

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

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

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

.card-title {
    margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Research Section Specifics
--------------------------------------------------------------*/
.form-check-input:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

/*--------------------------------------------------------------
# Gallery Section (Carousel)
--------------------------------------------------------------*/
#fintechCarousel .carousel-inner {
    border-radius: var(--border-radius-standard);
    box-shadow: var(--box-shadow-soft);
}
#fintechCarousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 var(--border-radius-standard) var(--border-radius-standard);
    padding-bottom: 2rem;
}
#fintechCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
}
#fintechCarousel .carousel-indicators .active {
    background-color: var(--color-white);
}

/*--------------------------------------------------------------
# Media Section
--------------------------------------------------------------*/
.media-logo {
  max-height: 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.media-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Resources Section
--------------------------------------------------------------*/
.list-group-item {
    border-radius: var(--border-radius-soft) !important;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}
.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow-soft);
    border-left: 4px solid var(--color-primary);
}

/*--------------------------------------------------------------
# Contact Form
--------------------------------------------------------------*/
.contact-form-wrapper {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-standard);
  box-shadow: var(--box-shadow-soft);
}

.contact-info li {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}
.contact-info strong {
  color: var(--color-text);
}

.form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-soft);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(162, 210, 255, 0.3);
}
.form-label {
    font-weight: 500;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-secondary);
}
.footer .footer-title {
  font-family: var(--font-primary);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}
.footer .footer-links a {
  color: var(--color-text-secondary);
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}
.footer .footer-links a::before {
  content: '»';
  margin-right: 8px;
  color: var(--color-primary);
}
.footer .footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}
.footer .footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*--------------------------------------------------------------
# Static Pages (Success, Privacy, Terms)
--------------------------------------------------------------*/
.success-page-container, .legal-page-container {
    padding-top: 120px;
    padding-bottom: 80px;
}

.success-wrapper {
  min-height: calc(100vh - 200px); /* 100vh minus header/footer height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-wrapper .success-icon {
  font-size: 5rem;
  color: var(--color-primary);
  animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .header .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }
  .header .nav-link::after {
    display: none;
  }
  .navbar-collapse {
      border-top: 1px solid var(--color-border);
      margin-top: 0.5rem;
      padding-top: 0.5rem;
  }
  .hero-section {
      height: 70vh;
  }
  .hero-section .hero-title {
      font-size: 2.5rem;
  }
}