/* CSS VARIABLES */
:root {
  /* Primary Colors */
  --primary-color: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8f88ff;
  
  /* Secondary Colors */
  --secondary-color: #63c7ff;
  --secondary-dark: #52a8d5;
  --secondary-light: #88d8ff;
  
  /* Accent Colors */
  --accent-color: #ff6c97;
  --accent-dark: #d5526d;
  --accent-light: #ff88b0;
  
  /* Pastel Backgrounds */
  --bg-light: #f8f9fa;
  --bg-pastel-blue: #e6f2ff;
  --bg-pastel-purple: #f0e6ff;
  --bg-pastel-pink: #ffe6f0;
  
  /* Neutral Colors */
  --dark: #343a40;
  --gray-dark: #495057;
  --gray: #6c757d;
  --gray-light: #adb5bd;
  --gray-lighter: #e9ecef;
  --white: #ffffff;
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacers */
  --spacer-xs: 0.25rem;
  --spacer-sm: 0.5rem;
  --spacer: 1rem;
  --spacer-md: 1.5rem;
  --spacer-lg: 2.5rem;
  --spacer-xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 2rem;
  --border-radius-pill: 50rem;
  
  /* Transitions */
  --transition-base: all 0.3s ease-in-out;
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* BASE STYLES */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--spacer);
}

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

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

/* Ensure that the page header has sufficient margin */
.fixed-top + main,
.fixed-top + section:first-of-type:not(.hero-section) {
  padding-top: 100px;
}

/* Privacy and terms pages */
.privacy-content, 
.terms-content {
  padding-top: 100px;
  min-height: 100vh;
}

/* BUTTON STYLES */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  text-transform: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:active {
  transform: translateY(0);
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

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

.btn-accent:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

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

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

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-link {
  padding-left: 0;
  padding-right: 0;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  box-shadow: none;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
  box-shadow: none;
  transform: translateY(0);
}

.btn-link::after {
  display: none;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

.btn-rounded {
  border-radius: var(--border-radius-lg);
}

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

/* HEADER STYLES */
header.fixed-top {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

header.fixed-top.scrolled {
  box-shadow: var(--shadow);
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.navbar-brand h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--gray-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-base);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

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

.navbar-light .navbar-nav .nav-link:hover::after {
  width: 30px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
  min-height: 100vh;
  padding-top: 120px;
  overflow: hidden;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-section h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-section p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-buttons .btn {
  transform: translateY(0);
  transition: var(--transition-bounce);
}

.hero-buttons .btn:hover {
  transform: translateY(-5px);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
}

/* SECTION STYLES */
section {
  position: relative;
}

.section-title {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--gray);
}

/* ABOUT SECTION */
.about-section {
  background-color: var(--white);
}

.image-container {
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
}

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

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

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

.feature-icon {
  color: var(--primary-color);
  background: var(--bg-pastel-purple);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* SERVICES SECTION */
.services-section {
  background-color: var(--bg-light);
}

.card {
  transition: var(--transition-slow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content p:last-of-type {
  margin-bottom: auto;
}

/* HISTORY SECTION */
.history-section {
  background-color: var(--white);
}

.history-timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-left: 2px solid var(--primary-color);
  padding-left: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-item h3 {
  position: relative;
}

/* RESEARCH SECTION */
.research-section {
  background-color: var(--bg-light);
}

.research-card {
  transition: var(--transition-base);
}

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

/* WHY US SECTION */
.why-us-section {
  background-color: var(--white);
}

.feature-card {
  transition: var(--transition-base);
  background-color: var(--bg-pastel-blue);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background-color: var(--primary-color);
  color: var(--white);
}

.feature-card:hover .feature-icon {
  background-color: var(--white);
}

.feature-card:hover h3 {
  color: var(--white);
}

/* RESOURCES SECTION */
.resources-section {
  background-color: var(--bg-light);
}

.resource-card {
  transition: var(--transition-base);
}

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

/* SUCCESS STORIES SECTION */
.success-stories-section {
  background-color: var(--white);
}

.testimonial-item {
  position: relative;
}

.testimonial-content p {
  font-size: 1.125rem;
  line-height: 1.6;
}

.carousel-control-prev, 
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -20px;
}

.carousel-control-next {
  right: -20px;
}

.carousel-indicators {
  bottom: -50px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* TEAM SECTION */
.team-section {
  background-color: var(--bg-light);
}

.team-card {
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card .card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-links a {
  color: var(--primary-color);
  transition: var(--transition-base);
}

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

/* FAQ SECTION */
.faq-section {
  background-color: var(--white);
}

.accordion-item {
  background-color: var(--white);
  transition: var(--transition-base);
}

.accordion-button {
  background-color: var(--white);
  color: var(--dark);
  font-weight: 600;
  padding: 1.25rem;
  transition: var(--transition-base);
}

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

.accordion-button::after {
  background-size: 1.25rem;
  transition: var(--transition-base);
}

.accordion-body {
  padding: 1.5rem;
}

/* NEWS SECTION */
.news-section {
  background-color: var(--bg-light);
}

.news-card {
  overflow: hidden;
  transition: var(--transition-slow);
}

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

.news-card .card-image {
  height: 220px;
  overflow: hidden;
}

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

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

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

.news-card .btn-link {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  padding-right: 1.5rem;
  font-weight: 500;
}

.news-card .btn-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition-base);
}

.news-card .btn-link:hover::after {
  right: -5px;
}

/* INNOVATION SECTION */
.innovation-section {
  background-color: var(--white);
  overflow: hidden;
}

.innovation-image {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.innovation-image img {
  width: 100%;
  height: auto;
  transition: var(--transition-slow);
  transform: translateZ(0);
}

.innovation-image:hover img {
  transform: translateZ(20px);
}

.innovation-section .feature-icon {
  background-color: var(--bg-pastel-purple);
}

/* ACCOLADES SECTION */
.accolades-section {
  background-color: var(--bg-light);
}

.award-card {
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.award-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* EVENTS SECTION */
.events-section {
  background-color: var(--white);
}

.event-card {
  transition: var(--transition-base);
}

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

.event-date {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.date-number {
  font-size: 1.75rem;
  line-height: 1;
}

.date-month {
  font-size: 0.875rem;
}

/* INSIGHTS SECTION */
.insights-section {
  background-color: var(--bg-light);
}

.insight-card {
  transition: var(--transition-base);
}

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

.author-info {
  margin-bottom: 1rem;
}

.author-info img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* CONTACT SECTION */
.contact-section {
  background-color: var(--white);
}

.contact-info {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-item {
  margin-bottom: 1.5rem;
}

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

.contact-item h4 {
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-form {
  background-color: var(--white);
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-lighter);
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.1);
}

.form-select {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-lighter);
  transition: var(--transition-base);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(108, 99, 255, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* CAREERS SECTION */
.careers-section {
  background-color: var(--bg-light);
}

.career-card {
  transition: var(--transition-base);
}

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

/* CUSTOMER STORIES SECTION */
.customer-stories-section {
  background-color: var(--white);
}

.story-card {
  transition: var(--transition-base);
  overflow: hidden;
}

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

.story-image {
  height: 100%;
  min-height: 300px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: var(--transition-slow);
}

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

/* FOOTER STYLES */
.footer-section {
  background-color: var(--dark);
  color: var(--white);
  position: relative;
}

.footer-section h3, .footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-links {
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-light);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
  padding-left: 5px;
}

.footer-contact li {
  margin-bottom: 1rem;
}

.footer-contact span {
  color: var(--white);
  font-weight: 500;
}

.footer-contact a {
  color: var(--gray-light);
}

.footer-contact a:hover {
  color: var(--white);
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--gray-light);
  transition: var(--transition-base);
}

.social-links a:last-child {
  margin-right: 0;
}

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

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

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

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

.fade-in {
  animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* RESPONSIVE STYLES */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .navbar-light .navbar-nav .nav-link::after {
    display: none;
  }
  
  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 1rem;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
  
  .testimonial-content {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links,
  .footer-contact {
    margin-bottom: 2rem;
  }
  
  .social-links {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .contact-section .btn-lg {
    width: 100%;
  }
}

/* UTILITIES */
.bg-overlay {
  position: relative;
}

.bg-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.bg-overlay > * {
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.no-wrap {
  white-space: nowrap;
}

.fit-content {
  width: fit-content;
}

.text-small {
  font-size: 0.875rem;
}

.text-large {
  font-size: 1.25rem;
}

.line-height-sm {
  line-height: 1.4;
}

.line-height-lg {
  line-height: 1.8;
}