/*
Theme Name: Byte Flick
Theme URI: https://byteflick.org/
Author: Byte Flick
Author URI: https://byteflick.org/
Description: A lightweight theme developed by ByteFlick developers that supports cinegenicstudios website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: byteflick
Domain Path: /languages
*/

/* ---------------------------------------- Global Styling Start ----------------------------------------*/

/* Sticky Settings */
@media screen and (min-width: 1024px) {
  main {
    position: sticky;
    z-index: 1;
    background-color: var(--e-global-color-secondary);
  }

  footer {
    position: sticky;
    z-index: 0;
    bottom: 0;
  }
}

body {
  margin: 0;
}

/* Button Hover Effect */

.btn--hoverEffect .elementor-button {
  display: inline-block;
  z-index: 1;
}
.btn--hoverEffect .elementor-button:hover {
  color: #fff;
}
.btn--hoverEffect .elementor-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.8s all ease;
  box-sizing: border-box;
}
.btn--hoverEffect .elementor-button:hover::before {
  border-radius: 10px;
  transition: 0.6s all ease;
  left: 0;
  right: 0;
  background: var(--e-global-color-secondary);
  opacity: 1;
  z-index: -1;
}

/* Gsap Animation Fix */
.hero,
.next-section,
.next-section-timeline-content {
  transition: 0s;
  overscroll-behavior: none;
}

/* Animated Heading */
.reveal-heading {
  overflow: hidden;
}

/*.reveal-heading h2 {*/
/*  display: inline-block;*/
/*  transform: scaleX(0);*/
/*  transform-origin: left center;*/
/*  opacity: 0;*/
/*}*/

.reveal-heading h2 {
  display: inline-block;
  transform: none;
  opacity: 1;
}

/* Animated Button */
.animated-button-container {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-shape {
  clip-path: path("M0 0 Q0,20 20,20 L 0 20 Z");
}

.bottom-shape.left {
  transform: rotate(-90deg);
}

.animated-button .elementor-button-content-wrapper {
  padding-right: 24px;
  position: relative;
  overflow: hidden;
}
.animated-button .elementor-button-content-wrapper:before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 15px;
  bottom: 0;
  width: 0;
  height: 100%;
  background-color: var(--e-global-color-primary);
  transition: all ease 0.4s;
  border-radius: 15px;
}
.animated-button .elementor-button .elementor-button-text {
  color: var(--e-global-color-primary);
  margin-left: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.animated-button .elementor-button .elementor-button-text span {
  transform: translateY(0);
  transition: all ease 0.3s;
  opacity: 1;
  display: inline-flex;
}
.animated-button .elementor-button .elementor-button-text:before {
  content: attr(data-name);
  top: 50%;
  position: absolute;
  transform: translateY(calc(-50% + 20px));
  transition: all ease 0.3s;
  opacity: 0;
  color: white;
}
.animated-button .elementor-button:hover .elementor-button-content-wrapper:before {
  width: calc(100% - 15px);
}
.animated-button .elementor-button:hover .elementor-button-text span {
  transform: translateY(-20px);
  opacity: 0;
  transition: all ease 0.3s;
}
.animated-button .elementor-button:hover .elementor-button-text:before {
  transform: translateY(-50%);
  opacity: 1;
}

.animated-button .elementor-button-icon {
  width: 48px;
  height: 48px;
  justify-content: center;
  align-items: center;
  display: flex;
  border-radius: 15px;
  z-index: 1;
  background: var(--e-global-color-primary);
  fill: white;
}

@media (max-width: 480px) {
   .animated-button-container {
      bottom: -23px;
      max-width: max-content;
    }
    .animated-button .elementor-button-icon {
      width: 36px;
      height: 36px;
    }
    .animated-button .elementor-button-content-wrapper:before {
      left: 12px;
    }
    .animated-button .elementor-button:hover .elementor-button-content-wrapper:before {
      width: calc(100% - 12px);
    }
}

/* ---------------------------------------- Global Styling End ----------------------------------------*/

/* ---------------------------------------- Header Styling Start ----------------------------------------*/

/* Menu Styling */
.desktop-menu .sub-menu {
  backdrop-filter: blur(2px) saturate(200%);
  -webkit-backdrop-filter: blur(2px) saturate(200%);
  background-color: rgba(102, 196, 81, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.125);
}

/* ---------------------------------------- Header Styling End ----------------------------------------*/

/* ---------------------------------------- Content Styling Start ----------------------------------------*/

/* Hero Section */

.shape-right,
.shape-left,
.shape-bottom {
  filter: drop-shadow(0 0 20px rgba(102, 196, 81, 0.6));
  pointer-events: none;
}

.hero-content {
  height: 100vh;
  text-align: center;
  transform-origin: center center;
}

.hero-heading h2 {
  opacity: 0;
}

@media (max-width: 480px) {
   .elementor-element.elementor-widget-n-carousel.hero-slider .elementor-swiper-button {
       display: none;
   }
}

.elementor-widget-n-carousel.hero-slider .swiper-pagination-bullet:hover {
    background: var(--e-global-color-primary);
}

/* Services Section Timeline*/

.timeline-wrapper {
  width: 100%;
  max-width: 700px;
  position: relative;
  box-sizing: border-box;
  padding: 20px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: stretch;
  min-height: 1000px;
}

.timeline-svg {
  width: 80px;
  height: 100%;
  overflow: visible;
}

.timeline-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 4;
  stroke-linecap: round;
}

.timeline-path {
  fill: none;
  stroke: #66c451;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.dot {
  fill: #fff;
  stroke: #e0e0e0;
  stroke-width: 3;
  transition:
    fill 0.3s ease,
    stroke 0.3s ease;
}

.timeline-content {
  position: relative;
}

.timeline-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-item h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  color: var(--e-global-color-secondary);
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 520px) {
  .timeline-grid {
    grid-template-columns: 56px 1fr;
  }
  .timeline-svg {
    width: 56px;
  }
}

/* Image Marquee Section */

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 200px;
  display: flex;
  align-items: center;
}

@media (max-width: 480px) {
  .marquee {
      height: 100px;
    }
}
.marquee__inner {
  display: flex;
  flex-shrink: 0;
}

.marquee__inner img {
  width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 50px;
}

/* Portfolio Section */

.portfolio-slider .swiper-main {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  column-gap: 3rem;
}

.portfolio-slider .swiper {
  width: 90%;
  padding: 1.875rem 0;
  height: 600px;
}

@media (max-width: 480px) {
    .portfolio-slider .swiper {
      width: 100%;
    }
}
.portfolio-slider .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: self-start;
  box-shadow: 0.063rem 0.5rem 1.25rem rgba(0, 0, 0, 0.1216);
}
.portfolio-slider .swiper-slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: rotate(180deg);
  line-height: 0;
  bottom: -0.063rem;
  border-radius: 0 0 36px 36px;
}
.portfolio-slider .swiper-slide-img img, .portfolio-slider .swiper-slide-img video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  z-index: -1;
  transition: 0.3s ease-in-out;
  transform: rotate(-180deg);
}

.portfolio-slider .swiper-slide-img svg {
  position: relative;
  display: block;
  width: calc(300% + 1.3px);
  height: 5rem;
  transform: rotateY(180deg);
}
.portfolio-slider .swiper-slide-img .shape-fill {
  fill: #ffffff;
}

.portfolio-slider .swiper-slide-content {
  background: #fff;
  padding: 0 1.65rem;
  width: 100%;
  border-radius: 0 0 36px 36px;
}
.portfolio-slider .swiper-slide-content > div {
  transform: translateY(-1.25rem);
}

.portfolio-slider .swiper-slide-content h2 {
  color: var(--e-global-color-secondary);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 0.425rem;
  text-transform: capitalize;
  letter-spacing: 0.02rem;
}
.portfolio-slider .swiper-slide-content p {
  font-family: "Inter", sans-serif;
  color: var(--e-global-color-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portfolio-slider .swiper-slide-content .show-more {
  width: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--e-global-color-primary);
  border-radius: 50%;
  box-shadow: 0px 0.125rem 0.875rem #24aad96b;
  margin-top: 1em;
  margin-bottom: 0.2em;
  height: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in;
  margin-left: auto;
}
.portfolio-slider .swiper-slide-content .show-more:hover {
  background: var(--e-global-color-primary);
}
.portfolio-slider .swiper-slide-content .show-more svg {
  width: 1.75rem;
  color: #fff;
}

.portfolio-slider .swiper-slide-active:hover img {
  transform: scale(1.2) rotate(-185deg);
}

.portfolio-slider .swiper-slide-active:hover .show-more {
  opacity: 1;
  height: 3.125rem;
}

.portfolio-slider .swiper-slide-active:hover p {
  display: block;
  overflow: visible;
}

.portfolio-slider .swiper-3d .swiper-slide-shadow-left,
.portfolio-slider .swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

/* Testimonial Slider */
.testimonials-slider {
  width: 100%;
  padding: 50px 0;
}

.testimonials-slider .swiper-wrapper {
  height: 480px;
}

.testimonials-slider .swiper-slide {
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

.testimonials-slider .testimonial-card {
  background: white;
  border-radius: 36px;
  padding: 80px 20px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 400px;
  text-align: center;
}

.testimonials-slider .testimonial-card .avatar-wrapper {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonials-slider .testimonial-card .avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 8px solid white;
  object-fit: cover;
}

.testimonials-slider .testimonial-content {
  height: 100%;
}

.testimonials-slider .testimonial-content .name {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  color: var(--e-global-color-secondary);
  font-weight: 600;
  margin: 10px 0 0px;
}

.testimonials-slider .testimonial-content .position {
  font-family: "Montserrat", sans-serif;
  color: var(--e-global-color-secondary);
  font-size: 14px;
  margin: 5px 0 10px;
}

.testimonials-slider .testimonial-content .rating {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.testimonials-slider .testimonial-content .star {
  width: 20px;
  height: 20px;
  margin: 0 2px;
  color: #f5a623;
  display: inline-block;
}

.testimonials-slider .testimonial-content .testimonial {
  font-family: "Montserrat", sans-serif;
  color: var(--e-global-color-secondary);
  font-size: 18px;
  line-height: 1.5;
  margin-top: 40px;
}

.testimonials-slider .swiper-pagination {
  position: relative;
  padding-top: 20px;
}

.testimonials-slider .swiper-pagination-bullet {
  background-color: white;
  width: 16px;
  height: 16px;
}

.testimonials-slider
  .swiper-pagination-bullet.swiper-pagination-bullet-active-main {
  background-color: var(--e-global-color-primary);
}

/* Contact Form */

.home-page-contactform .form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 20px;
}

.home-page-contactform .form-group {
  display: flex;
  flex-direction: column;
}

.home-page-contactform .half-width {
  flex: 1 1 45%;
}

.home-page-contactform .full-width {
  flex: 1 1 100%;
}

.home-page-contactform label {
  font-family: "Montserrat", sans-serif;
  color: var(--e-global-color-secondary);
  font-size: 18px;
  font-weight: 600;
}

.home-page-contactform label .wpcf7-not-valid-tip {
  font-size: 14px;
}

.home-page-contactform input[type="text"],
.home-page-contactform input[type="email"],
.home-page-contactform textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  color: var(--e-global-color-secondary);
  margin-top: 10px;
}

.wpcf7 form.invalid div.home-page-contactform + div.wpcf7-response-output {
  color: red;
  background-color: #ffe6e6;
  border: 1px solid red;
}

.wpcf7 form.sent div.home-page-contactform + div.wpcf7-response-output {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
}

.wpcf7 form div.home-page-contactform + div.wpcf7-response-output {
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 18px;
  margin: 0;
}

.home-page-contactform input[type="submit"] {
  font-family: "Montserrat", sans-serif;
  background-color: var(--e-global-color-primary);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
}

/* ---------------------------------------- Content Styling End ----------------------------------------*/

/* ---------------------------------------- Footer Styling Start ----------------------------------------*/

/* ---------------------------------------- Footer Styling Start ----------------------------------------*/
