/* ============================== */
/* HERO SECTION                   */
/* ============================== */

/* --- Hero Container --- */
.hero-section {
  position: relative;
  height: 95vh;
  min-height: 600px;
  overflow: hidden;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

/* --- Video Background --- */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Overlay (Mobile) --- */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.7);
}

/* --- Hero Content OVERRIDES --- */
.hero-section .page-subtitle {
  margin-left: auto;
  margin-right: auto;
}

#hero-cta {
  padding: 0.8rem 3.25rem;
  font-size: 1rem;
}
#hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-eyebrow,
.page-title,
.page-subtitle,
#hero-cta {
  opacity: 0;
}
.content-loaded .page-eyebrow {
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}
.content-loaded .page-title {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}
.content-loaded .page-subtitle {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}
.content-loaded #hero-cta {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

/* --- Desktop Styles --- */
@media (min-width: 992px) {
  .hero-section {
    height: 80vh;
    min-height: 550px;
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.2) 100%);
  }

  .hero-section .page-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-section .page-eyebrow {
    margin-bottom: 1.25rem;
  }

  #hero-cta {
    padding: 0.75rem 4.25rem;
  }
}

/* ============================== */
/* CLIENTS SECTION                */
/* ============================== */
.clients-section h2 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

.logo-scroller {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent black 10%, black 90%, transparent 100%);
}

.logo-scroller__inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.logo-scroller--rtl[data-animated='true'] .logo-scroller__inner {
  width: max-content;
  animation: scroll-rtl 1400s linear infinite;
}

.logo-scroller--ltr[data-animated='true'] .logo-scroller__inner {
  width: max-content;
  animation: scroll-ltr 1400s linear infinite;
}

.logo-scroller:hover .logo-scroller__inner {
  animation-play-state: paused;
}

.logo-scroller li {
  padding: 0;
  flex-shrink: 0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-self: center;
}

.logo-scroller li img {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.logo-scroller li img:hover {
  transform: scale(1.1);
}

@keyframes scroll-rtl {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes scroll-ltr {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .logo-scroller__inner {
    gap: 3rem;
  }

  .logo-scroller li {
    height: 60px;
  }

  .logo-scroller li img {
    height: 55px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .logo-scroller__inner {
    gap: 2rem;
  }

  .logo-scroller li {
    height: 70px;
  }

  .logo-scroller li img {
    height: 65px;
    max-width: 120px;
  }
}

/* ============================== */
/* ABOUT SECTION                  */
/* ============================== */

.about-section {
  background-color: #ffffff;
  padding: 5rem 0.5rem;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80%;
  height: 80%;
  background: rgba(236, 179, 96, 0.1);
  border-radius: 0.5rem;
  z-index: -1;
  transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
  transform: translate(10px, 10px);
}

.about-image-wrapper .img-fluid {
  transition: transform 0.4s ease-out;
}

.about-image-wrapper:hover .img-fluid {
  transform: scale(1.05);
}

.about-eyebrow {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-section .section-title {
  text-align: inherit;
  margin-bottom: 1.5rem;
}

.about-section .section-title::after {
  left: 0;
  transform: translateX(0);
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-features-list {
  font-family: var(--font-body);
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-features-list li {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.about-features-list li i {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-right: 1rem;
}

.about-section .btn-cta {
  margin-top: 1rem;
  padding: 0.5rem 2rem;
}

/* ============================== */
/* SERVICES SECTION            */
/* ============================== */

.services-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.service-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.service-card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  flex-grow: 1;
}

.service-card-link {
  text-decoration: none;
  color: var(--primary-color);
  align-items: center;
  display: flex;
  justify-content: center;
  font-weight: 600;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.service-card-link i {
  transition: transform 0.3s ease;
  margin-left: 0.5rem;
}

.service-card-link:hover {
  color: var(--primary-dark);
}

.service-card-link:hover i {
  transform: translateX(5px);
}

@media (max-width: 991px) {
  .service-card {
    text-align: start;
  }

  .service-card-icon {
    text-align: center;
  }

  .service-card-link {
    justify-content: flex-start;
  }
}

/* ====================== */
/* PROJECTS SECTION       */
/* ====================== */

.projects-section {
  background-color: var(--light-color, #ffffff);
}

.projects-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.projects-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.project-slider-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 4rem;
}

.project-swiper {
  overflow: hidden;
  border-radius: 8px;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  height: 450px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-image {
  height: 100%;
  transition: transform 0.4s ease-out;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  transition: all 0.3s ease;
}

.project-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  transition: all 0.3s ease;
}

.project-card-category {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.project-card-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff !important;
  margin: 0;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}

.project-nav-prev,
.project-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  color: var(--primary-color);
  background: none;
  width: 44px;
  height: 44px;

  transition: transform 0.3s ease, opacity 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.project-nav-prev:hover,
.project-nav-next:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 0.8;
}

.project-nav-prev::after,
.project-nav-next::after {
  font-size: 1.5rem;
  font-weight: 800;
}

.project-nav-prev {
  left: 0;
}
.project-nav-next {
  right: 0;
}

.project-nav-prev.swiper-button-disabled,
.project-nav-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-pagination,
.swiper-pagination {
  display: none !important;
}

@media (max-width: 1199px) {
  .project-slider-wrapper {
    padding: 0 1rem;
  }
}

#projects .btn-cta {
  padding: 0.5rem 2rem;
}

/* ====================== */
/* BENEFITS SECTION       */
/* ====================== */

.benefits-section {
  background-color: var(--gray-light, #f8f9fa);
}

.benefits-section .section-title {
  text-align: center;
}

.benefits-section .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
  height: 100%;
  background-color: var(--light-color, #ffffff);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-out;
}

.benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.benefit-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.benefit-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-medium, #6c757d);
}

/* ====================== */
/* CONTACT SECTION        */
/* ====================== */

.cta-section {
  background-color: #ffffff;
  padding: 5rem 0;
  text-align: center;
}

.cta-title {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--gray-medium, #6c757d);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.contact-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-out;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.contact-card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

.contact-card-content {
  text-align: start;
}

.contact-card-title {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-card-data {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-medium, #6c757d);
  word-break: break-all;
}

.contact-card:hover .contact-card-data {
  color: var(--text-dark);
}

#cta .btn-cta {
  padding: 0.5rem 3rem;
}

@media (min-width: 992px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
  }

  .contact-card-icon {
    font-size: 2.5rem;
    margin-right: 0;
    margin-bottom: 1.25rem;
  }

  .contact-card-content {
    text-align: center;
    width: 100%;
  }

  .contact-card-title,
  .contact-card-data {
    text-align: center;
  }
}
