/*
Theme Name:     Theratio Child
Theme URI:      http://wpdemo.archiwp.com/theratio/
Description:    Make your modifications to [Parent Theme] in this child theme.
Author:         Oceanthemes
Author URI:     http://oceanthemes.net/
Version:        1.0
Template:       theratio
*/

@import url("../theratio/style.css");

/* =Theme customization starts here
------------------------------------------------------- */

/* Hero Section Navigation arrows */
sr7-arrow,
sr7-arrow.sr7-leftarrow,
sr7-arrow.sr7-rightarrow,
.sr7-leftarrow.sr7-arrows,
.sr7-rightarrow.sr7-arrows {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: none !important;
}

/* Custom arrow triangles for hero section */
sr7-arrow::before,
sr7-arrow.sr7-leftarrow::before,
sr7-arrow.sr7-rightarrow::before,
.sr7-leftarrow.sr7-arrows::before,
.sr7-rightarrow.sr7-arrows::before {
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  transition: border-color 0.3s ease !important;
}

/* Right arrow triangle */
sr7-arrow.sr7-rightarrow::before,
.sr7-rightarrow.sr7-arrows::before {
  border-left: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  margin-left: 4px !important;
}

/* Left arrow triangle */
sr7-arrow.sr7-leftarrow::before,
.sr7-leftarrow.sr7-arrows::before {
  border-right: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  margin-right: 4px !important;
}

/* Hero section hover effects - darker arrows */
sr7-arrow.sr7-rightarrow:hover::before,
.sr7-rightarrow.sr7-arrows:hover::before {
  border-left-color: #cccccc !important;
}

sr7-arrow.sr7-leftarrow:hover::before,
.sr7-leftarrow.sr7-arrows:hover::before {
  border-right-color: #cccccc !important;
}

/* Hide any default icons or content */
sr7-arrow i,
sr7-arrow::after,
sr7-arrow *,
.sr7-leftarrow.sr7-arrows i,
.sr7-rightarrow.sr7-arrows i,
.sr7-leftarrow.sr7-arrows::after,
.sr7-rightarrow.sr7-arrows::after {
  display: none !important;
}

/* Preserve functionality - disable unwanted effects but keep hover */
sr7-arrow,
sr7-arrow:focus,
sr7-arrow:active,
.sr7-leftarrow.sr7-arrows,
.sr7-rightarrow.sr7-arrows,
.sr7-leftarrow.sr7-arrows:focus,
.sr7-rightarrow.sr7-arrows:focus,
.sr7-leftarrow.sr7-arrows:active,
.sr7-rightarrow.sr7-arrows:active,
.sr7-leftarrow.sr7-arrows:visited,
.sr7-rightarrow.sr7-arrows:visited {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: inherit !important;
  animation: none !important;
  filter: none !important;
  width: 60px !important;
  height: 60px !important;
}

/* Triangle base properties for all states except hover */
sr7-arrow::before,
sr7-arrow:focus::before,
sr7-arrow:active::before,
.sr7-leftarrow.sr7-arrows::before,
.sr7-rightarrow.sr7-arrows::before,
.sr7-leftarrow.sr7-arrows:focus::before,
.sr7-rightarrow.sr7-arrows:focus::before,
.sr7-leftarrow.sr7-arrows:active::before,
.sr7-rightarrow.sr7-arrows:active::before {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

/* Right arrow - all states */
sr7-arrow.sr7-rightarrow::before,
sr7-arrow.sr7-rightarrow:focus::before,
sr7-arrow.sr7-rightarrow:active::before,
.sr7-rightarrow.sr7-arrows::before,
.sr7-rightarrow.sr7-arrows:focus::before,
.sr7-rightarrow.sr7-arrows:active::before {
  border-left: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-right: none !important;
  margin-left: 4px !important;
}

/* Left arrow - all states */
sr7-arrow.sr7-leftarrow::before,
sr7-arrow.sr7-leftarrow:focus::before,
sr7-arrow.sr7-leftarrow:active::before,
.sr7-leftarrow.sr7-arrows::before,
.sr7-leftarrow.sr7-arrows:focus::before,
.sr7-leftarrow.sr7-arrows:active::before {
  border-right: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-left: none !important;
  margin-right: 4px !important;
}

/* Hide hero section arrows on mobile screens */
@media (max-width: 767px) {
  .sr7-leftarrow.sr7-arrows,
  .sr7-rightarrow.sr7-arrows {
    display: none !important;
  }
}

/* Desktop-only slider effects */
@media (min-width: 768px) {
  /* Base slide style */
  .project-items.swiper-slide {
    filter: blur(4px);
    opacity: 0.3;
    transform: scale(0.85) translateY(20px);
    transition: all 0.4s ease-in-out;
    z-index: 1;
    transform-origin: center center;
    position: relative;
    overflow: visible !important;
  }

  /* Ensure parent containers allow overflow */
  .project-items .projects-box {
    overflow: visible !important;
  }

  .project-slider.style-5 .swiper-wrapper {
    overflow: visible !important;
  }

  /* Active (centered) slide - popped forward */
  .project-items.swiper-slide-active {
    filter: none;
    opacity: 1;
    transform: scale(1.1) translateY(-10px);
    z-index: 5;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }

  /* Next and Previous slides - slightly less blur */
  .project-items.swiper-slide-next,
  .project-items.swiper-slide-prev {
    filter: blur(2px);
    opacity: 0.7;
    z-index: 2;
  }

  /* Position prev/next slides to hide other slides and allow proper arrow spacing */
  .project-items.swiper-slide-prev {
    filter: blur(2px) !important;
    opacity: 0.7 !important;
    transform: scale(0.95) translateY(5px) translateX(60px) !important;
    z-index: 2 !important;
  }

  .project-items.swiper-slide-next {
    filter: blur(2px) !important;
    opacity: 0.7 !important;
    transform: scale(0.95) translateY(5px) translateX(-60px) !important;
    z-index: 2 !important;
  }

  /* Optional dark overlay for depth */
  .project-items.swiper-slide:not(.swiper-slide-active)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
  }
}

/* Navigation arrows */
.project-slider.style-5 .octf-swiper-button-next,
.project-slider.style-5 .octf-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: none !important;
}

/* Position arrows further out to match original spacing */
.project-slider.style-5 .octf-swiper-button-next {
  right: 10px !important;
}

.project-slider.style-5 .octf-swiper-button-prev {
  left: 10px !important;
}

/* Custom arrow triangles */
.project-slider.style-5 .octf-swiper-button-next::before,
.project-slider.style-5 .octf-swiper-button-prev::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  transition: border-color 0.3s ease !important;
}

/* Right arrow triangle */
.project-slider.style-5 .octf-swiper-button-next::before {
  border-left: 16px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* Left arrow triangle */
.project-slider.style-5 .octf-swiper-button-prev::before {
  border-right: 16px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-right: 4px;
}

/* Hide default icons */
.project-slider.style-5 .octf-swiper-button-next i,
.project-slider.style-5 .octf-swiper-button-prev i {
  display: none;
}

/* Preserve functionality - disable unwanted effects but keep hover */
.project-slider.style-5 .octf-swiper-button-next,
.project-slider.style-5 .octf-swiper-button-prev,
.project-slider.style-5 .octf-swiper-button-next:focus,
.project-slider.style-5 .octf-swiper-button-prev:focus,
.project-slider.style-5 .octf-swiper-button-next:active,
.project-slider.style-5 .octf-swiper-button-prev:active,
.project-slider.style-5 .octf-swiper-button-next:visited,
.project-slider.style-5 .octf-swiper-button-prev:visited {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  transform: translateY(-50%) !important;
  opacity: 1 !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: inherit !important;
  animation: none !important;
  filter: none !important;
  width: 60px !important;
  height: 60px !important;
}

/* Triangle base properties for all states except hover */
.project-slider.style-5 .octf-swiper-button-next::before,
.project-slider.style-5 .octf-swiper-button-prev::before,
.project-slider.style-5 .octf-swiper-button-next:focus::before,
.project-slider.style-5 .octf-swiper-button-prev:focus::before,
.project-slider.style-5 .octf-swiper-button-next:active::before,
.project-slider.style-5 .octf-swiper-button-prev:active::before {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}

/* Right arrow - normal states */
.project-slider.style-5 .octf-swiper-button-next::before,
.project-slider.style-5 .octf-swiper-button-next:focus::before,
.project-slider.style-5 .octf-swiper-button-next:active::before {
  border-left: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-right: none !important;
  margin-left: 4px !important;
}

/* Right arrow - hover state (darker) */
.project-slider.style-5 .octf-swiper-button-next:hover::before {
  border-left: 16px solid #cccccc !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-right: none !important;
  margin-left: 4px !important;
}

/* Left arrow - normal states */
.project-slider.style-5 .octf-swiper-button-prev::before,
.project-slider.style-5 .octf-swiper-button-prev:focus::before,
.project-slider.style-5 .octf-swiper-button-prev:active::before {
  border-right: 16px solid #fff !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-left: none !important;
  margin-right: 4px !important;
}

/* Left arrow - hover state (darker) */
.project-slider.style-5 .octf-swiper-button-prev:hover::before {
  border-right: 16px solid #cccccc !important;
  border-top: 12px solid transparent !important;
  border-bottom: 12px solid transparent !important;
  border-left: none !important;
  margin-right: 4px !important;
}

/* Remove any default button styling */
.project-slider.style-5 .octf-swiper-button-next::after,
.project-slider.style-5 .octf-swiper-button-prev::after {
  display: none !important;
}

/* Project Title Styling */
.project-items .portfolio-info-inner {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 15 !important;
  pointer-events: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.project-items .portfolio-info-inner h5,
.project-items .portfolio-info-inner h3,
.project-items .portfolio-info-inner .title-link {
  font-size: 36px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-align: left !important;
  text-transform: uppercase !important;
  line-height: 0.9 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
  text-decoration: none !important;
  width: 100% !important;
}

/* Title on active slide - more prominent */

.project-items.swiper-slide-active .portfolio-info-inner h5,
.project-items.swiper-slide-active .portfolio-info-inner h3,
.project-items.swiper-slide-active .portfolio-info-inner .title-link {
  font-size: 48px !important;
  opacity: 1 !important;
  padding-bottom: 5px !important;
  transition: none !important;
}

/* Title on non-active slides - smaller and more faded */
.project-items.swiper-slide:not(.swiper-slide-active) .portfolio-info-inner h5,
.project-items.swiper-slide:not(.swiper-slide-active) .portfolio-info-inner h3,
.project-items.swiper-slide:not(.swiper-slide-active)
  .portfolio-info-inner
  .title-link {
  opacity: 0.6 !important;
  transition: none !important;
}

/* Replace Back-to-Top Button with Vertical Line */

/* Hide the original back-to-top button content */
#back-to-top {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 60px !important;
  height: 125px !important;
  right: 30px !important;
  bottom: 50px !important;
  padding: 0 !important;
  cursor: pointer !important;
}

/* Hide the original icon */
#back-to-top i,
#back-to-top::before {
  display: none !important;
}

/* Create the vertical line using pseudo-element */
#back-to-top::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 20px;
  height: 85px;
  width: 1px;
  background-color: #ffffff;
  z-index: 1;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Mobile positioning for vertical line */
@media (max-width: 767px) {
  #back-to-top::after {
    right: 0px !important;
    bottom: -10px !important;
  }

  #about-us > div > div > div {
    flex-direction: column !important;
  }
}

/* Hover animation for the vertical line - jumping up */
#back-to-top:hover::after {
  animation: jumpUp 0.8s ease-in-out infinite;
}

@keyframes jumpUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Header Navigation Hover Animation */

/* Target multiple possible selectors */
.main-navigation ul li a,
#primary-menu li a,
.elementor-widget-imenu ul li a,
nav ul li a {
  position: relative !important;
  transition: color 0.3s ease !important;
  text-decoration: none !important;
  overflow: visible !important;
}

/* Create underline animation - very close to text */
.main-navigation ul li a::after,
#primary-menu li a::after,
.elementor-widget-imenu ul li a::after,
nav ul li a::after {
  content: "" !important;
  position: absolute !important;
  bottom: 30px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background-color: #ffffff !important;
  transition: width 0.3s ease !important;
  z-index: 1 !important;
}

/* Expand underline on hover */
.main-navigation ul li a:hover::after,
#primary-menu li a:hover::after,
.elementor-widget-imenu ul li a:hover::after,
nav ul li a:hover::after {
  width: 100% !important;
}

/* Keep underline visible for active/current menu items */
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after,
.main-navigation ul li.current-menu-ancestor a::after,
#primary-menu li.current-menu-item a::after,
#primary-menu li.current_page_item a::after,
#primary-menu li.current-menu-ancestor a::after,
.elementor-widget-imenu ul li.current-menu-item a::after,
.elementor-widget-imenu ul li.current_page_item a::after,
nav ul li.current-menu-item a::after,
nav ul li.current_page_item a::after,
/* Active class that can be added via JavaScript */
.main-navigation ul li.active a::after,
#primary-menu li.active a::after,
.elementor-widget-imenu ul li.active a::after,
nav ul li.active a::after {
  width: 100% !important;
}

/* Remove any extra shapes or decorations */
.main-navigation ul li a::before,
#primary-menu li a::before,
.elementor-widget-imenu ul li a::before,
nav ul li a::before {
  display: none !important;
}
