/* Our History page */
/* ==================== */
/* HISTORY PAGE STYLES */
/* ==================== */

/* Hero Section */
.history-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white-color);
  }
  
  .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  
  .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  .history-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
  }
  
  .history-hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .history-hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Timeline Section */
  .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    background-color: var(--light-color);
    color: var(--dark-color);
  }
  
  .timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
  }
  
  .timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
  }
  
  .timeline-item::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 50%;
  }
  
  .timeline-item:nth-child(odd)::after {
    right: -17px;
  }
  
  .timeline-item:nth-child(even)::after {
    left: -17px;
  }
  
  .timeline-content {
    padding: 20px 30px;
    background-color: var(--white-color-section);
    color: var(--dark-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .timeline-year {
    position: absolute;
    top: -20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
  }
  
  .timeline-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .timeline-image img {
    transition: transform 0.5s ease;
  }
  
  .timeline-image:hover img {
    transform: scale(1.05);
  }
  
  /* Founders Section */
  .founders-section {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .founders-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .founders-quote {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(108, 74, 182, 0.8);
    color: var(--white-color);
    padding: 20px;
    font-style: italic;
  }
  
  .founders-quote i {
    font-size: 24px;
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
  }
  
  .founders-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
  }
  
  .founders-details {
    margin-top: 30px;
    color: var(--dark-color);
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--dark-color);
  }
  
  .detail-item i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  /* Growth Gallery */
  .growth-gallery {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .growth-gallery .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .growth-gallery .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .growth-gallery .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    padding: 15px;
  }
  
  .growth-gallery .gallery-caption h4 {
    color: var(--white-color);
    margin-bottom: 5px;
  }
  
  /* Testimony Cards */
  .testimonials-section {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .testimony-card {
    background-color: var(--white-color-section);
    color: var(--dark-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .testimony-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .testimony-video {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .testimony-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
  }
  
  .testimony-card:hover .testimony-video img {
    transform: scale(1.05);
  }
  
  .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    border: none;
    transition: all 0.3s ease;
  }
  
  .testimony-card:hover .play-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
  }
  
  .testimony-content {
    padding: 20px;
    color: var(--dark-color);
  }
  
  .testimony-content h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
  }
  
  .testimony-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
  }
  
  .testimony-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
  }
  
  .testimony-author h5 {
    margin-bottom: 0;
    font-size: 16px;
    color: var(--dark-color);
  }
  
  .testimony-author small {
    color: var(--gray-color);
    font-size: 13px;
  }
  
  /* Video Section */
  .video-section {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .video-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .video-details {
    margin: 20px 0;
    color: var(--dark-color);
  }
  
  .video-details .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .video-details .detail-item i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  /* Before/After Comparison */
  .comparison-section {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .comparison-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .comparison-item .before,
  .comparison-item .after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  .comparison-item .before {
    width: 50%;
    z-index: 2;
  }
  
  .comparison-item .before img,
  .comparison-item .after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .comparison-item .label {
    position: absolute;
    bottom: 20px;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 600;
  }
  
  .comparison-item .before .label {
    left: 20px;
  }
  
  .comparison-item .after .label {
    right: 20px;
  }
  
  .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--white-color);
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-handle i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Milestones */
  .milestones-section {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 60px 0;
  }
  
  .milestone-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white-color-section);
    color: var(--dark-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .milestone-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .milestone-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
  }
  
  .milestone-card h3 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
  }
  
  .milestone-card p {
    color: var(--dark-color);
  }
  
  /* Call to Action */
  .history-cta {
    padding: 100px 0;
    background: linear-gradient(
      135deg,
      var(--primary-dark),
      var(--primary-light)
    );
    color: var(--white-color);
    position: relative;
    overflow: hidden;
  }
  
  .history-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("assets/images/history/cta-bg.jpg") center/cover;
    opacity: 0.1;
  }
  
  .history-cta h2 {
    position: relative;
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .history-cta .lead {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
  }
  
  /* Dark Mode Adjustments */
  .dark-mode .timeline {
    background-color: var(--light-color);
  }
  
  .dark-mode .timeline-content {
    background-color: var(--white-color-section);
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .dark-mode .timeline-item::after {
    background-color: var(--white-color-section);
  }
  
  .dark-mode .founders-section,
  .dark-mode .growth-gallery,
  .dark-mode .testimonials-section,
  .dark-mode .video-section,
  .dark-mode .comparison-section,
  .dark-mode .milestones-section {
    background-color: var(--light-color);
    color: var(--dark-color);
  }
  
  .dark-mode .founders-details,
  .dark-mode .detail-item,
  .dark-mode .video-details {
    color: var(--dark-color);
  }
  
  .dark-mode .testimony-card,
  .dark-mode .milestone-card {
    background-color: var(--white-color-section);
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .dark-mode .growth-gallery .gallery-caption {
    background: rgba(0, 0, 0, 0.8);
  }
  
  .dark-mode .milestone-card p {
    color: var(--dark-color);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 991.98px) {
    .timeline::after {
      left: 31px;
    }
  
    .timeline-item {
      width: 100%;
      padding-left: 70px;
      padding-right: 25px;
    }
  
    .timeline-item:nth-child(even) {
      left: 0;
    }
  
    .timeline-item::after {
      left: 18px;
    }
  
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
      left: 18px;
    }
  
    .history-hero h1 {
      font-size: 2.5rem;
    }
  
    .history-hero p {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .history-hero {
      height: 60vh;
      min-height: 400px;
    }
  
    .video-section .row > div {
      margin-bottom: 30px;
    }
  
    .comparison-item {
      height: 300px;
    }
  }
  
  @media (max-width: 575.98px) {
    .history-hero h1 {
      font-size: 2rem;
    }
  
    .history-hero p {
      font-size: 1rem;
    }
  
    .milestone-card {
      padding: 20px 15px;
    }
  
    .milestone-card h3 {
      font-size: 32px;
    }
  
    .history-cta h2 {
      font-size: 2rem;
    }
  
    .history-cta .lead {
      font-size: 1rem;
    }
  }