/* Home Page Specific Styles */

/* Hero Section with Video Support */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 70%
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  color: white;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background-color: transparent;
  border-color: white;
  color: white;
}

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

/* Features Section */
.features-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.section-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text);
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  span {
    background-color: var(--color-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 10px;
    svg {
      width: 16px;
      height: 16px;
      fill: var(--color-text);
    }
  }
}

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

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

body.dark-mode .feature-icon {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0px;
  color: var(--color-heading);
}

.feature-card p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* Video Section */
.video-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: box-shadow 0.3s ease;
}

.video-container:hover {
  box-shadow: var(--box-shadow-hover);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: var(--color-dark);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-container.playing .video-overlay {
  opacity: 0;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.play-button:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.video-content {
  margin-top: 30px;
}

.video-content h2 {
  margin-bottom: 20px;
  color: var(--color-heading);
}

.video-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.about-content {
  padding: 20px;
}

.about-content h2 {
  margin-bottom: 20px;
  color: var(--color-text);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  flex: 1;
  min-width: 215px;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1rem;
  color: var(--color-text);
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: var(--color-background-alt);
}

.service-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-image {
  height: 250px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: var(--color-heading);
}

.service-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

/* Parallax Section */
.parallax-section {
  position: relative;
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.parallax-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.parallax-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  margin: 20px;
  text-align: center;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  color: var(--color-heading);
}

.testimonial-author p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.testimonial-control {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-card-bg);
  color: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-control:hover {
  background-color: var(--color-primary);
  color: white;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--color-primary);
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

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

.btn-white:hover {
  background-color: transparent;
  color: white;
}

/* Team Section (Homepage) */
.team-homepage-section {
  padding: 80px 0;
  background-color: var(--color-primary);
  h2 {
    color: white;
  }
}

.team-homepage-section .section-header {
  margin-bottom: 60px;
}

.team-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all var(--transition-normal) ease;
  height: calc(100% - 30px); /* Adjust for margin-bottom */
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.team-image {
  width: 100%;
  height: 350px; /* Fixed height for images */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background); /* Placeholder background */
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform var(--transition-normal) ease;
}

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

.team-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--color-heading);
}

.team-title {
  font-size: 0.95rem;
  color: var(--color-light);
  margin-bottom: 15px;
}

.team-social-links {
  margin-top: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-social-links a {
  font-size: 1.2rem;
  color: var(--color-text-light);
  transition: color var(--transition-normal) ease;
}

.team-social-links a:hover {
  color: var(--color-primary);
}

.team-card .read-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto; /* Push to bottom */
  font-weight: 500;
  justify-content: center;
}

.team-card .read-more i {
  margin-left: 5px;
  transition: transform var(--transition-fast) ease;
}

.team-card .read-more:hover i {
  transform: translateX(3px);
}

/* News Section */
.news-section {
  padding: 80px 0;
  background-color: var(--color-background);
}

.news-card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.news-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-primary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.news-content {
  padding: 20px;
}

.news-content h3 {
  margin-bottom: 15px;
  color: var(--color-heading);
}

.news-content p {
  margin-bottom: 20px;
  color: var(--color-text);
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--color-text);
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Partners Section */
.partners-section {
  padding: 60px 0;
  background-color: var(--color-background-alt);
  overflow: hidden;
}

.partners-content {
  text-align: center;
  margin-bottom: 40px;
}

.partners-content h2 {
  margin-bottom: 15px;
  color: var(--color-primary);
}

.partners-content p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text);
}

.partners-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-logos-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.partner-logo {
  flex: 0 0 auto;
  max-width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: invert(1) grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  margin: 0 15px;
}

.partner-logo:hover {
  filter: invert(1) grayscale(0);
  opacity: 1;
}

.dark-mode .partner-logo {
  filter: invert(0) grayscale(100%);
}
.dark-mode .partner-logo:hover {
  filter: invert(0) grayscale(0);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
}

/* Animation for partners logos */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.partners-logos-scroll {
  display: flex;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}

.partners-logos-scroll:hover {
  animation-play-state: paused;
}

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

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

/* Dark Mode Styles */
/* body.dark-mode .features-section,
body.dark-mode .about-section,
body.dark-mode .testimonials-section,
body.dark-mode .news-section {
  background-color: var(--dark-color-background);
}

body.dark-mode .services-section,
body.dark-mode .partners-section,
body.dark-mode .video-section {
  background-color: var(--dark-color-background-alt);
}

body.dark-mode .feature-card,
body.dark-mode .service-card,
body.dark-mode .news-card,
body.dark-mode .testimonial-item,
body.dark-mode .stat-item {
  background-color: var(--dark-color-card-bg);
  box-shadow: var(--dark-box-shadow);
}

body.dark-mode .feature-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .news-card:hover {
  box-shadow: var(--dark-box-shadow-hover);
}

body.dark-mode .feature-icon {
  background-color: rgba(var(--color-primary-rgb), 0.2);
}

body.dark-mode .video-container {
  box-shadow: var(--dark-box-shadow);
}

body.dark-mode .video-container:hover {
  box-shadow: var(--dark-box-shadow-hover);
} */

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .features-section,
  .about-section,
  .services-section,
  .testimonials-section,
  .cta-section,
  .news-section,
  .partners-section,
  .parallax-section,
  .video-section {
    padding: 60px 0;
  }

  .parallax-section {
    height: 350px;
    background-attachment: scroll; /* Fix for mobile devices */
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-image {
    margin-top: 30px;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .team-homepage-section .section-header h2 {
    /* Added team section */
    font-size: 2.2rem;
  }

  .team-homepage-section .section-header p {
    /* Added team section */
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 20px;
    img {
      width: 100px;
    }
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .features-section,
  .about-section,
  .services-section,
  .testimonials-section,
  .cta-section,
  .news-section,
  .partners-section,
  .parallax-section,
  .video-section,
  .team-homepage-section {
    padding: 50px 0;
  }

  .parallax-section {
    height: 300px;
  }

  .parallax-content h2 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .partner-logo {
    max-width: 120px;
    height: 60px;
  }

  .play-button {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 575px) {
  .hero-section {
    height: 50vh;
    min-height: 350px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .parallax-section {
    height: 250px;
  }

  .stat-item {
    min-width: 100%;
  }

  .testimonial-item {
    padding: 20px;
    margin: 10px;
  }

  .testimonial-content {
    font-size: 1rem;
  }

  .play-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}
