.hero {
  /* background-image: url('{{ .Params.hero.bg_desktop }}'); */
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 6rem 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #151831;
}

.hero-content {
  max-width: 600px;
  margin-left: 15rem;
  margin-top: -20rem;
}

.title {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
}

.title .line-one,
.title .line-two,
.title .line-three {
  display: block;
}

.cta-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.get-in-touch,
.our-work {
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 15px;
  border: none;
  cursor: pointer;
}

.our-work {
  padding: 0.75rem 1.5rem;
  background-color: #151831;
  color: white;
}

.top-buttons i {
  margin-right: 0.3rem;
}

.get-in-touch {
  padding: 0.75rem 1.5rem;
  background-color: #FFE300;
  color: #151831;
  border: 2px solid white;
}

.about {
  padding: 4rem 2rem;
  background: linear-gradient(to right, white 0%, white 50%, #ffe300 100%);
  color: #151831;
}

.about-container {
  display: flex;
  align-items: stretch;
  gap: 4rem;
  flex-wrap: nowrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.left-about-content,
.right-about-content {
  flex: 1 1 50%;
  min-width: 0;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px;
}

.intro {
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid #FFE300;
  box-shadow: 0 1px 10px #ffed62;
  border-radius: 18px;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
}

.about-title {
  font-size: 3rem;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service {
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.3s ease;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
}

.toggle-btn {
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  line-height: 2.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.service.open .toggle-btn::after {
  content: '−';
}

.toggle-btn::after {
  content: '+';
}

.service-content {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.service.open .service-content {
  display: block;
}

.service.open .toggle-btn::after {
  content: '−';
}

.about-cta {
  margin-top: 2rem;
}

.cta-btn {
  background-color: #151831;
  color: #FFE300;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 15px;
  cursor: pointer;
}

.line-with-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin: 3rem auto;
  max-width: 400px;
  width: 100%;
}

.line-with-text .line {
  flex: 1;
  height: 3px;
  background-color: #151831;
  border-radius: 2px;
  max-width: 100px;
}

.portfolio-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #151831;
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f9f9f9;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-tabs .tab {
  padding: 1rem 1.6rem;
  background-color: #f2f2f2;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  border-right: 1px solid #ccc;
}

.portfolio-tabs .tab:last-child {
  border-right: none;
}

.portfolio-tabs .tab.active {
  background-color: #e0e0e0;
  color: #000;
}

.portfolio-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-top: 1rem;
}

.portfolio-content {
  display: none;
  width: 100%;
}

.portfolio-content.active {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  max-width: 300px;
  width: 100%;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card:hover .play-overlay {
  opacity: 1;
}

.portfolio-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-video-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}


.portfolio-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #151831;
  text-align: center;
  margin: 0;
}

.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.video-modal.hidden {
  display: none;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  width: 800px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  z-index: 1001;
}

#player {
  width: 100%;
  height: auto;
  border-radius: 10px;
  z-index: 1;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.25);
}


@media (min-width: 768px) and (max-width: 1023px) {
  .hero-content {
    max-width: 600px;
    margin-left: 5rem;
    margin-top: -10rem;
  }

  .title {
    color: white;
  }
}


@media (max-width: 767px) {
  .hero {
    /* background-image: url('{{ .Params.hero.bg_mobile }}'); */
    background-position: center;
    padding: 4rem 1rem;
    text-align: left;
    
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    margin: 0 auto; 
    text-align: left;
    transform: none;
  }

  .title {
    color: white;
    font-size: 2.5rem;
  }

  .top-buttons {
    flex-direction: column;
  }

  .top-buttons button {
    width: 100%;
  }

  .about {
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, white 0%, white 50%, #ffe300 100%);
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .left-about-content,
  .right-about-content {
    flex: none;
    width: 100%;
  }

  .about-img {
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
  }

  .about-title {
    font-size: 2rem;
    margin-top: 0.5rem;
  }

  .service-header {
    font-size: 1rem;
    padding: 1rem;
  }

  .toggle-btn {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .get-in-touch:hover,
  .our-work:hover {
    transform: scale(1.05);
  }
}