/* Define CSS Variables for Consistent Theming */
:root {
  --primary-color: #32668e; /* Common primary color */
  --secondary-color: #106881; /* Common secondary color */
  --accent-color: #551384; /* Used in LMS page */
  --dark-color: #171776; /* Dark color for text or backgrounds */
  --light-color: #f8f9fa; /* Light background color */
  --text-muted: #6c757d; /* Muted text color */
  --text-white: white;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 15px 50px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-x: hidden;
}
.hero-top {
  color: var(--text-white);
  margin-top: 120px;
}
/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}
h4{
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Common Button Styles */
.btn-custom {
  display: inline-block;
  padding: 10px 30px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  background: var(--primary-color);
  color: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}
/* CONTACT SECTION */
.contact-section {
  padding: 20px 20px;
  background-color: #f1f5f9;
  color: #fff;
  text-align: center;
}

.contact-section p {
  margin-bottom: 40px;
  color: #6c757d;
}

.contact-section .btn-primary {
  background-color: #ffffff;
  border: none;
  padding: 8px 20px;
  font-size: 1rem;
  color: #32668e;
  border-radius: 50px;
  transition: transform 0.3s ease-out;
}

.contact-section .btn-primary:hover {
  transform: scale(1.03);
  background-color: #f8f9fa;
}
  /* Team cards */
.team-card {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top; /* default center */
}
.teamimg {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top; /* default center */
}

@media (max-width: 768px) {
  .team-img,.teamimg {
    object-position: top;
    height: 50vh;

  }
}

/* Core wavy connector – uses SVG mask on a pseudo-element */
    .wavy-connector {
      position: relative;
    }
    .wavy-connector::before {
      content: "";
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      height: 100%;
      background: #ef4444; /* Red wavy line – change to any color */
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 200' preserveAspectRatio='none'%3E%3Cpath d='M2,0 Q0,10 2,20 Q4,30 2,40 Q0,50 2,60 Q4,70 2,80 Q0,90 2,100 Q4,110 2,120 Q0,130 2,140 Q4,150 2,160 Q0,170 2,180 Q4,190 2,200' fill='none' stroke='%23fff' stroke-width='4'/%3E%3C/svg%3E");
      mask-size: 100% 100%;
      mask-repeat: no-repeat;
      z-index: 0;
    }
    /* Hide default vertical line */
    .default-line { display: none; }
    /* Icon circle sizing */
    .icon-circle {
      width: 12rem;
      height: 12rem;
    }
    .icon-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* Mobile adjustments */
    @media (max-width: 767px) {
      .wavy-connector::before {
        display: none; /* Hide wavy line on mobile – fallback to dotted connector */
      }
      .process-step-flow:not(:last-child) .icon-wrapper::after {
        content: "";
        position: absolute;
        bottom: -2rem;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 3rem;
        background: #3b82f6;
        z-index: 0;
      }
      .process-step-flow > div:first-child { order: 2; margin-top: 1rem; }
      .process-step-flow > div:last-child { order: 1; }
    }
   /* animation for team cards */
      .team-card {
        opacity: 0;
        transform: translateY(30px);
      }
      .team-card.animate-in {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease;
      }
       /* Custom styles for the new process section flow */
  .process-step-flow {
    position: relative;
  }

  /* Optional: Add a connection line for mobile view */
  @media (max-width: 767px) {
    .process-step-flow > div:first-child {
      order: 2; /* Content after the icon on mobile */
      margin-top: 1rem;
    }
    .process-step-flow > div:last-child {
      order: 1; /* Icon first on mobile */
    }
    .process-step-flow:not(:last-child) .md\:w-1\/2:last-child::after {
      content: "";
      position: absolute;
      bottom: -1.5rem; /* Space between steps */
      left: 50%;
      transform: translateX(-50%);
      width: 1px;
      height: 2rem;
      background-color: #3b82f6; /* Blue-500 */
      z-index: 0;
    }
  }
/* Icon Circle */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  background: var(--primary-color);
  transition: transform 0.3s ease;
}

.icon-circle:hover {
  transform: scale(1.1);
}


.section-title {
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-section p {
  color: white;
  font-weight: 600;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(50, 102, 142, 0.8),
    rgba(16, 104, 129, 0.8)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

/* List Styles */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-unstyled li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.list-unstyled li i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .btn-custom {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 400px;
  position: relative;
  background-size: cover;
  background-position: bottom;
}

.card-3d {
  perspective: 1200px;
  transition: all 0.5s ease-out;
  position: relative;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  border-radius: 15px;
  overflow: hidden;
}

.card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.card-3d:hover .card-inner {
  transform: perspective(1000px) rotateX(15deg) translateZ(-60px) translateY(0);
  box-shadow: 0 40px 80px rgba(50, 102, 142, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.card-3d:hover .card-inner::before {
  opacity: 1;
}

.card-3d .card-body {
  position: relative;
  z-index: 2;
  backface-visibility: hidden;
}

.icon-container {
  position: relative;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
}

.card-3d:hover .icon-container {
  transform: perspective(500px) translateZ(40px);
  animation: floatIcon 2s ease-in-out infinite;
}

.card-3d:hover .icon-container i {
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4),
    2px 2px 0px rgba(50, 102, 142, 0.8), 4px 4px 0px rgba(30, 63, 90, 0.6);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.card-title {
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

.card-3d:hover .card-title {
  transform: translateZ(20px);
  color: #32668e !important;
  text-shadow: 0 2px 8px rgba(50, 102, 142, 0.3);
}

.card-text {
  transition: all 0.4s ease 0.1s;
  transform-style: preserve-3d;
}

.card-3d:hover .card-text {
  transform: translateZ(15px);
  color: #495057 !important;
}

/* Individual card hover variations */
.card-3d:nth-child(1):hover .card-inner {
  transform: perspective(1000px) rotateX(12deg) translateZ(-55px) translateY(0);
}

.card-3d:nth-child(2):hover .card-inner {
  transform: perspective(1000px) rotateX(18deg) translateZ(-65px) translateY(0);
}

.card-3d:nth-child(3):hover .card-inner {
  transform: perspective(1000px) rotateX(14deg) translateZ(-58px) translateY(0);
}

.card-3d:nth-child(4):hover .card-inner {
  transform: perspective(1000px) rotateX(16deg) translateZ(-62px) translateY(0);
}

.card-3d:nth-child(5):hover .card-inner {
  transform: perspective(1000px) rotateX(13deg) translateZ(-56px) translateY(0);
}

.card-3d:nth-child(6):hover .card-inner {
  transform: perspective(1000px) rotateX(17deg) translateZ(-64px) translateY(0);
}

@keyframes floatIcon {
  0%,
  100% {
    transform: perspective(500px) translateZ(40px) translateY(0px);
  }
  50% {
    transform: perspective(500px) translateZ(50px) translateY(-8px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-3d:hover .card-inner {
    transform: perspective(800px) rotateX(10deg) translateZ(-30px) translateY(0);
  }
}

.model-item:hover,
.step-item:hover {
  transform: translateY(-8px);
}

.model-item:hover .icon-container,
.step-item:hover .icon-container {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(50, 102, 142, 0.3);
}

@media (min-width: 768px) {
  .roadmap::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(to right, #32668e, #1e3f5a);
    z-index: -1;
    display: block !important;
  }
}

.icon-container {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Ensure proper centering on all screen sizes */
@media (max-width: 768px) {
  .models-container,
  .roadmap {
    justify-content: center;
  }

  .model-item,
  .step-item {
    margin-bottom: 2rem;
  }
}

.logos-marquee {
  overflow: hidden;
  position: relative;
}

.logos-track {
  display: flex;
  width: 200%;
  animation: scroll 60s linear infinite;
  /* Slower scroll: 60s duration */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#prevBtn:hover,
#nextBtn:hover {
  background: #2a5a82 !important;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1200px) {
  #prevBtn {
    left: -30px !important;
  }
  #nextBtn {
    right: -30px !important;
  }
}

@media (max-width: 767px) {
  .testimonial-card {
    width: 200px !important;
    height: 280px !important;
    padding: 15px !important;
  }
  .testimonial-card p {
    font-size: 0.8rem !important;
  }
  .testimonial-card img {
    width: 40px !important;
    height: 40px !important;
  }
  #prevBtn,
  #nextBtn {
    width: 35px !important;
    height: 35px !important;
  }
  #prevBtn {
    left: -20px !important;
  }
  #nextBtn {
    right: -20px !important;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    width: 180px !important;
    height: 260px !important;
    padding: 10px !important;
  }
  .testimonial-card p {
    font-size: 0.75rem !important;
  }
  .testimonial-card img {
    width: 35px !important;
    height: 35px !important;
  }
  #prevBtn {
    left: -15px !important;
  }
  #nextBtn {
    right: -15px !important;
  }
}
