/* === CSS Variables === */
:root {
  /* Primary Colors - Triadic Color Scheme */
  --primary: #3b82f6;        /* Vibrant blue */
  --primary-dark: #1d4ed8;   /* Darker blue */
  --primary-light: #60a5fa;  /* Lighter blue */
  
  /* Secondary Colors */
  --secondary: #f65f3b;      /* Orange-red */
  --secondary-dark: #d84e1d; /* Darker orange-red */
  --secondary-light: #fa8060; /* Lighter orange-red */
  
  /* Tertiary Colors */
  --tertiary: #3bf68e;       /* Green */
  --tertiary-dark: #1dd884;  /* Darker green */
  --tertiary-light: #60faab; /* Lighter green */
  
  /* Neutral Colors */
  --dark: #1a1a2e;
  --dark-medium: #2c2c3e;
  --medium: #464660;
  --light-medium: #6e6e8e;
  --light: #f5f5f8;
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --secondary-gradient: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  --tertiary-gradient: linear-gradient(135deg, var(--tertiary), var(--tertiary-dark));
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Animation */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-circle: 50%;
}

/* === Base Styles === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
}

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

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

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

.container {
  padding: 0 var(--space-md);
}

/* Global Button Styles */
.button {
  transition: all var(--transition-fast);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.is-primary {
  background-color: var(--primary);
  border-color: transparent;
}

.button.is-primary:hover {
  background-color: var(--primary-dark);
}

.button.is-light {
  background-color: var(--light);
  color: var(--dark);
}

.button.is-light:hover {
  background-color: #e8e8e8;
  color: var(--primary);
}

/* Read More Links */
.read-more-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  position: relative;
  padding-right: 24px;
  transition: all var(--transition-fast);
}

.read-more-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.read-more-link:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* === Layout === */
.section {
  padding: var(--space-lg) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--light);
}

.section:nth-child(odd) {
  background-color: white;
}

/* === Header & Navigation === */
.navbar {
  transition: background-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.navbar-burger {
  height: 4rem;
}

/* === Hero Section === */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* === Methodology Section === */
.methodology-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  overflow: hidden;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

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

.methodology-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.methodology-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.methodology-card .title {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

/* === Research Section === */
.research-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--tertiary);
}

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

.research-card .card-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.research-card .title {
  color: var(--dark);
}

/* === Statistics Section === */
.stat-box {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 5px solid var(--primary);
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.stat-description {
  font-family: var(--font-body);
  color: var(--medium);
}

.chart-container {
  width: 100%;
  height: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

/* === Success Stories Section === */
.success-story-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-md);
  border: none;
}

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

.success-story-card .card-image {
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-story-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.success-story-card .card-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.success-story-card .title {
  color: var(--secondary);
}

/* === Case Studies Section === */
.case-study-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border: none;
}

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

.case-study-card .card-image {
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.case-study-card .card-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.case-study-card ul {
  margin-top: var(--space-sm);
  padding-left: var(--space-md);
}

.case-study-card ul li {
  margin-bottom: var(--space-xs);
}

/* === Resources Section === */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  border-top: 4px solid var(--tertiary);
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card .card-content {
  padding: var(--space-md);
  flex-grow: 1;
}

.resource-links {
  list-style-type: none;
  padding-left: 0;
}

.resource-links li {
  margin-bottom: var(--space-sm);
  position: relative;
}

.resource-links a {
  display: inline-block;
  padding-left: 24px;
  position: relative;
  transition: color var(--transition-fast);
}

.resource-links a::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--tertiary);
  font-size: 1.5rem;
  line-height: 1;
}

.resource-links a:hover {
  color: var(--tertiary-dark);
  text-decoration: none;
}

/* === Awards Section === */
.award-card {
  text-align: center;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.award-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-circle);
  margin-bottom: var(--space-sm);
  border: 3px solid var(--light-medium);
  padding: 5px;
}

.award-card h3 {
  color: var(--dark);
}

.award-card p {
  color: var(--medium);
  font-size: 0.9rem;
}

/* === Contact Section === */
.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border: 1px solid #dbdbdb;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.contact-form .label {
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 500;
}

.contact-form .checkbox input {
  margin-right: 8px;
}

/* === Footer === */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: var(--space-lg) 0;
}

.footer h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer p {
  color: #9ca3af;
}

.footer-links,
.social-links {
  list-style-type: none;
  padding-left: 0;
}

.footer-links li,
.social-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.social-links a {
  color: #9ca3af;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover,
.social-links a:hover {
  color: white;
  text-decoration: none;
}

.social-links a {
  display: inline-block;
  position: relative;
  padding-left: 30px;
}

.social-links a::before {
  font-family: "Font Awesome 5 Brands";
  position: absolute;
  left: 0;
  top: 0;
}

.social-links li:nth-child(1) a::before {
  content: "\f39e"; /* Facebook icon */
}

.social-links li:nth-child(2) a::before {
  content: "\f099"; /* Twitter icon */
}

.social-links li:nth-child(3) a::before {
  content: "\f16d"; /* Instagram icon */
}

.social-links li:nth-child(4) a::before {
  content: "\f0e1"; /* LinkedIn icon */
}

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

.success-content {
  max-width: 600px;
  padding: var(--space-md);
}

.success-icon {
  font-size: 5rem;
  color: var(--tertiary);
  margin-bottom: var(--space-md);
}

.success-title {
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.success-message {
  color: var(--medium);
  margin-bottom: var(--space-lg);
}

.success-back-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.success-back-btn:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === Privacy & Terms Pages === */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-lg);
}

.privacy-content,
.terms-content {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* === Modal === */
.modal-content {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal .box {
  border-radius: 0;
  padding: var(--space-md);
}

/* === Responsive Adjustments === */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .chart-container {
    height: 300px;
  }
  
  .methodology-card .card-image,
  .success-story-card .card-image,
  .case-study-card .card-image {
    height: 200px;
  }
}

@media screen and (max-width: 576px) {
  .award-card img {
    width: 100px;
    height: 100px;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.slide-in-left {
  transform: translateX(-50px);
  opacity: 0;
  animation: slideInLeft 1s forwards;
}

.slide-in-right {
  transform: translateX(50px);
  opacity: 0;
  animation: slideInRight 1s forwards;
}

.slide-in-up {
  transform: translateY(50px);
  opacity: 0;
  animation: slideInUp 1s forwards;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-item img {
  aspect-ratio: 1/1;
  height: auto;
  object-fit: cover;
}

@media (max-width:768px){
   .hero-body {
    padding-top: 100px;
    padding-left: 0;
    padding-right: 0;
   } 
}

.navbar-item .title {
  margin-bottom: 0;
}