/* Home Page Specific Styles */

/* New Hero Section with Video Background */
.hero-section-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
}

/* Video Background */
.hero-background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Background Overlay */
.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-section-new .home-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--hero-content-max);
  padding: 0 20px;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
}

/* New MetaProvide Logo */
.metaprovide-logo-new {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.metaprovide-logo-new img {
  width: 42vw;
  height: auto;
  margin: 15vh 0 1rem;
}

/* Help others help more tagline */
.hero-tagline {
  font-size: clamp(var(--hero-tagline-min), 2vw, var(--hero-tagline-max));
  letter-spacing: 3px;
  font-weight: 400;
  margin-bottom: 5rem;
  color: white;
  font-family: 'Bauhaus Std', sans-serif;
  align-self: center;
}

/* Main hero text */
.hero-title-new {
  margin-top: 3%;
  font-size: clamp(var(--hero-title-min), 3vw, var(--hero-title-max));
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  color: white;
  text-align: left;
  font-family: 'Bauhaus Std', sans-serif;
}

.hero-title-new .highlight {
  color: #4CBB17;
  font-weight: 400;
}

/* Team description */
.hero-description {
  font-size: var(--font-size-lg);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: var(--mp-color-white);;
  width: 80%;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  font-family: 'avenir', sans-serif;
}

/* Discovery buttons */
.discovery-buttons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  margin-bottom: 3rem;
  align-self: center;
}

.discovery-button {
  background: transparent;
  color: white;
  border: 2px solid #4CAF50;
  padding: 1.5vw 1.75vw;
  border-radius: var(--radius);
  font-size: var(--font-size-lg);
  font-weight: 400;
  font-family: 'avenir', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 180px;
  margin-bottom: 32px;
  white-space: nowrap;
  min-width: 220px;
}

.discovery-button:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* MetaProvide About Section */
.mp-section {
  position: relative;
  padding: 2vh 4rem;
  overflow: hidden;
  background: #d1e8e2;
}

/* Override background for sections with video backgrounds */
.mp-section.hero-section-new,
.mp-section.swarm-section,
.mp-section.testimonials-section {
  background: #d1e8e2;
}

.mp-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../videos/metaprovide_background_pingpong.mp4') center/cover;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none; /* Prevent blocking clicks on interactive elements */
}

.mp-section-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.mp-section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.mp-section h2 {
  position: relative;
  z-index: 3;
  font-size: var(--font-size-h2);
  font-weight: 400;
  color: var(--mp-color-black);
  margin-top: var(--margin);
  margin-bottom: var(--margin);
  margin-left: auto;
  margin-right: auto;
  width: var(--hero-content-max);
  text-align: left;
  font-family: 'Bauhaus Std', sans-serif;
}

.mp-section .max-w-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.mp-section .three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mp-section .three-columns > div {
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.mp-section .three-columns > div:hover {
  transform: translateY(-5px);
}

/* Individual Card Video Backgrounds */
.mp-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch !important;
}

.mp-card-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.mp-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.mp-card-content {
  position: relative;
  z-index: 3;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: stretch;
}

.mp-card .mp-card-title {
  font-size: var(--font-size-h4);
  font-weight: 400;
  color: var(--mp-color-white);
  font-family: 'Bauhaus Std', sans-serif;
}

.mp-card-content-text {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--mp-color-white);
    font-family: 'avenir', sans-serif;
    padding: 0 3rem 1rem;
    margin: 0;
    line-height: 1.4;
    text-align: left;
    margin-bottom: var(--margin);
}

/* Hover States */
.mp-card:hover .mp-card-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.mp-card:hover .mp-card-content {
  color: white;
}

.mp-card:hover .feature-icon-container {
  background: rgba(76, 175, 80, 0.9);
}

/* Card Header with Green Background */
.mp-section .feature-icon-container {
  background: #4CAF50;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 20%;
  width: 100%;
  order: -1;
  max-width: none;
}

.mp-section .feature-icon-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
}

.mp-section .feature-icon-container img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.mp-section .flex-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 80%;
}

h4.mp-card-title {
  color: var(--mp-color-white);
  padding: 1.5rem;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 500;
  font-family: 'Bauhaus Std', sans-serif;
  text-align: center;
}

/* MetaProvide Custom Video Player Styles */
.metaprovide-video-section {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.metaprovide-video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.metaprovide-video-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10; /* Ensure video is above any background overlays */
}

.metaprovide-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  cursor: pointer;
  outline: none;
}

.metaprovide-video-wrapper video:focus {
  outline: 2px solid #4Cbb17;
  outline-offset: 2px;
}

.metaprovide-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(76, 187, 23, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.metaprovide-play-button:hover {
  background: rgba(76, 187, 23, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 5px 20px rgba(76, 187, 23, 0.4);
}

.metaprovide-play-icon {
  width: 0;
  height: 0;
  border-left: 25px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 5px;
}

/* Hide play button when video is playing */
.metaprovide-video-wrapper.playing .metaprovide-play-button {
  opacity: 0;
  pointer-events: none;
}

/* Swarm Section with Video Background */
.swarm-section {
  background: #d1e8e2;
  padding: 80px 0;
}

.swarm-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.swarm-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.swarm-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  border-radius: 16px;
}

.swarm-content-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 40px 20px;
}

.swarm-logo-wrapper {
  margin-top: 9rem;
  margin-bottom: 6rem;
}

.swarm-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.swarm-description {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  margin-bottom: 4rem;
  color: white;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-family: 'avenir', sans-serif;
  text-align: left;
}

.swarm-partners {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 60px;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.swarm-partners .partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swarm-partners .partner-logo img {
  max-width: 200px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* Rotate specific logos to horizontal orientation */
.swarm-partners .partner-logo img[alt="Envelop"],
.swarm-partners .partner-logo img[alt="The Living Core"] {
  transform: rotate(-90deg);
  max-width: 120px;
  max-height: 200px;
}

.swarm-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.swarm-button {
  background: transparent;
  color: white;
  border: 2px solid #4CAF50;
  padding: 15px 35px;
  border-radius: 4px;
  font-size: var(--font-size-lg);
  font-weight: 400;
  font-family: 'avenir', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 200px;
  white-space: nowrap;
  min-width: 240px;
}

.swarm-button:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Testimonials Section with Individual Card Video Backgrounds */
.testimonials-section {
  background: #d1e8e2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 80px 0;
}

.testimonials-content {
  padding: 0 20px;
  margin: 0 auto;
  width: 100%;
}

.testimonials-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: #1B5E20;
  font-family: 'Bauhaus Std', sans-serif;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin: 0 auto 2rem auto;
  justify-content: center;
  max-width: var(--content-max-narrow);
}

.home-testimonial-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 8px;
  width: 100%;
  padding: 24px 16px;
}

.testimonial-card-gif {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.testimonial-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.testimonial-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.testimonial-header {
  display: flex;
  width: 90%;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.testimonial-image {
  flex-shrink: 0;
}

.testimonial-image img {
  background-color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.home-testimonial-info {
  flex: 1;
  text-align: left;
  margin-left: 12px;
}

.home-testimonial-info .testimonial-name {
    z-index: 2;
    font-size: var(--font-size-md);
    color: var(--mp-color-white);
    margin-bottom: 12px;
    text-align: left;
    font-family: var(--font-avenir);
    opacity: 0.85;
}

.home-testimonial-info .testimonial-title {
    z-index: 2;
    font-size: var(--font-size-sm);
    color: var(--mp-color-white);
    margin-bottom: 18px;
    text-align: left;
    font-family: var(--font-avenir);
    opacity: 0.85;
}

.testimonial-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.5rem 0;
  font-family: 'Bauhaus Std', sans-serif;
}

.testimonial-title {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-family: 'Bauhaus Std', sans-serif;
}

.testimonial-icons {
  position: absolute;
  right: 0.1rem;
  top: -1rem;
  z-index: 4;
}

.linkedin-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.linkedin-icon:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
}

.linkedin-icon img {
  width: 22px;
  height: 22px;
  color: white;
  filter: brightness(0) invert(1);
}

.testimonial-quote {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin: 2px 0 0 0;
  font-family: 'avenir', sans-serif;
  flex-grow: 1;
  padding-top: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.testimonial-quote::before {
  content: '"';
  color: #4CAF50;
  margin-right: 0.25rem;
}

.testimonial-quote::after {
  content: '"';
  color: #4CAF50;
  margin-left: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .metaprovide-logo-new img {
    width: clamp(120px, 80vw, 600px);
    height: auto;
  }

  .hero-title-new {
    font-size: var(--font-size-h2);
    font-weight: 400;
  }

  .hero-tagline {
    font-size: var(--font-size-lg);
  }

  .hero-description {
    font-size: var(--font-size-lg);
  }

  .discovery-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .discovery-button {
    width: 260px;
    margin: 0;
  }

  /* Mobile video optimization */
  .hero-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mp-section {
    padding: 4rem 2rem;
  }

  .mp-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 3rem;
  }

  .mp-section .three-columns {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .mp-section .feature-icon-container img {
    width: 90px;
    height: 90px;
    padding: 15px;
  }

  .mp-section .flex-column h4 {
    font-size: var(--font-size-h3);
    padding: 2.5rem;
    margin-bottom: 0;
    margin-top: 0;
  }

  .mp-section .flex-column p {
    padding: 0 3rem;
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  /* Mobile card video adjustments */
  .mp-card-video {
    height: 100%;
    object-fit: cover;
  }

  .home-testimonial-info .testimonial-title,
  .home-testimonial-info .testimonial-name {
    font-size: var(--font-size-lg);
  }

  .testimonial-quote{
    font-size: var(--font-size-md);
  }

  /* Touch devices - show video on tap */
  @media (hover: none) and (pointer: coarse) {
    .mp-card:active .mp-card-video {
      opacity: 1;
    }

    .mp-card:active .mp-card-overlay {
      opacity: 1;
    }
  }

  .metaprovide-video-container {
    padding: 0 1rem;
  }

  .metaprovide-play-button {
    width: 60px;
    height: 60px;
  }

  .metaprovide-play-icon {
    border-left: 18px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 3px;
  }

  .swarm-section {
    padding: 60px 0;
  }


  .swarm-content {
    min-height: 60vh;
    border-radius: 0;
  }

  .swarm-button {
    width: 80%;
  }

  .swarm-content-inner {
    padding: 32px;
  }

  .swarm-logo {
    max-width: 280px;
  }

  .swarm-description {
    font-size: var(--font-size-lg);
    margin-bottom: 3rem;
    line-height: 1.6;
  }


  .swarm-partners {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 3rem;
    align-items: center;
  }

  .partner-logo {
    height: 100px;
  }

  .swarm-partners .partner-logo img {
    max-width: 150px;
  }

  .swarm-partners .partner-logo img[alt="Envelop"],
  .swarm-partners .partner-logo img[alt="The Living Core"] {
    max-width: 120px;
    max-height: 150px;
  }

  .swarm-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-title {
    font-size: var(--font-size-h3);
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: #1B5E20;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
  }

  .testimonial-header {
    justify-content: space-between;
  }

  .linkedin-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
  }

  .linkedin-icon img {
    width: 16px;
    height: 16px;
  }

  .testimonial-image img {
    width: 75px;
    height: 75px;
  }

  .testimonial-name {
    font-size: var(--font-size-base);
  }

  .testimonial-title {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .metaprovide-video-container {
    padding: 0 0.5rem;
  }

  .metaprovide-play-button {
    width: 50px;
    height: 50px;
  }

  .metaprovide-play-icon {
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 2px;
  }

  /* Extra small mobile screens - keep column layout */
  .swarm-partners {
    gap: 25px;
    padding: 0 1rem;
  }

  .swarm-partners .partner-logo img {
    max-width: 130px;
  }

  .swarm-partners .partner-logo img[alt="Envelop"],
  .swarm-partners .partner-logo img[alt="The Living Core"] {
    max-width: 100px;
    max-height: 130px;
  }
}

/* Large desktop enhancements: better space usage */
@media (min-width: 1440px) {
  .mp-section .max-w-content { max-width: 1400px; }
  .swarm-content { max-width: 1400px; }
  .metaprovide-video-container { max-width: 1100px; }
  .testimonials-grid { max-width: 1100px; grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
  .mp-section .max-w-content { max-width: var(--content-max-wide); }
  .swarm-content { max-width: var(--content-max-wide); }
  .metaprovide-video-container { max-width: var(--content-max-wide); }
  .testimonials-grid { max-width: var(--content-max-wide); }
}
