/* 
  Theme Name: Axtra - Digital Agency Portfolio Template
  Author: Crowdyflow
  Support: habib.crowdyflow@gmail.com
  Description: BUILDY – is a  Constructor HTML5 template that comes with high-quality 3 Pre build Home Pages and many built-in awesome inner pages  which are perfect for any creative agencies, designers, digital agencies, freelancers, developers, designers, marketing, startup, blog and portfolio.
  Version: 1.0
*/

/* Fix for Testimonial Logos */
.testimonial-item, .testimonial-logo-box, .testimonial-logo-img {
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Orbit Component Animation */
.orbit-container {
  position: absolute;
  top: 50%;
  right: -17rem;
  transform: translateY(-50%);
  width: 40rem;
  height: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.orbit-center {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background-color: #f9fafb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 3.5rem;
}

.dark .orbit-center {
  background-color: #1f2937;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dotted #d1d5db;
}

.dark .orbit-ring {
  border-color: #4b5563;
}

.orbit-ring-1 {
  width: 16rem;
  height: 16rem;
  animation: orbit-spin 12s linear infinite;
}

.orbit-ring-2 {
  width: 24rem;
  height: 24rem;
  animation: orbit-spin 18s linear infinite;
}

.orbit-ring-3 {
  width: 32rem;
  height: 32rem;
  animation: orbit-spin 24s linear infinite;
}

.orbit-icon {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid #eee;
  padding: 0; /* Remove padding to avoid box-sizing conflicts */
}

.orbit-icon i {
  margin: 0;
  padding: 0;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.dark .orbit-icon {
  background-color: #1f2937;
  border-color: #374151;
}

/* Add counter-rotation so icons don't go upside down! */
.orbit-ring-1 .orbit-icon { animation: counter-spin 12s linear infinite; }
.orbit-ring-2 .orbit-icon { animation: counter-spin 18s linear infinite; }
.orbit-ring-3 .orbit-icon { animation: counter-spin 24s linear infinite; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes counter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
/* Custom Workflow Features Grid */
.custom-feature-grid { margin-top: 30px; }
.custom-feature-card { background: #ffffff; padding: 40px 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; height: 100%; text-align: center; border: 1px solid transparent; }
.custom-feature-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); border-color: #f3f4f6; }
.custom-feature-card .icon-box { width: 70px; height: 70px; background-color: #f8f9fa; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #333; margin: 0 auto 25px auto; transition: all 0.3s ease; }
.custom-feature-card:hover .icon-box { background-color: #F6822A; color: #fff; }
.custom-feature-card h4 { font-size: 22px; font-weight: 600; margin-bottom: 15px; color: #111; }
.custom-feature-card p { font-size: 16px; color: #666; line-height: 1.6; margin-bottom: 0; }

/* Animated Service Cards */
.animated-services-section {
  padding: 110px 0 150px;
  background-color: #fff;
  overflow: hidden;
}
.animated-services-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 3rem;
  color: #111;
}
.service-card {
  position: relative;
  display: flex;
  height: 450px;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.service-card-gradient-1 { background: linear-gradient(to right, #f3e8ff, #e9d5ff); }
.service-card-gradient-2 { background: linear-gradient(to right, #dcfce7, #bbf7d0); }
.service-card-gradient-3 { background: linear-gradient(to right, #fee2e2, #fecaca); }
.service-card-gradient-4 { background: linear-gradient(to right, #dbeafe, #bfdbfe); }
.service-card-gradient-5 { background: linear-gradient(to right, #fef08a, #fde047); }
.service-card-gradient-6 { background: linear-gradient(to right, #ffedd5, #fed7aa); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.05), transparent);
  z-index: -1;
}
.service-card-number {
  font-family: monospace;
  font-size: 0.875rem;
  color: rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  display: block;
}
.service-card-icon {
  margin-bottom: auto;
  font-size: 3rem;
  color: #111;
  display: block;
}
.service-card-content {
  z-index: 10;
}
.service-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #111;
}
.service-card-desc {
  font-size: 0.875rem;
  color: rgba(0,0,0,0.7);
  line-height: 1.5;
  margin-bottom: 0;
}
.service-swiper-container {
  position: relative;
  padding: 20px 0 50px;
  overflow: hidden;
}
.service-swiper-container .swiper-button-next, 
.service-swiper-container .swiper-button-prev {
  background-color: rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #111;
  top: 50%;
}
.service-swiper-container .swiper-button-next:after, 
.service-swiper-container .swiper-button-prev:after {
  font-size: 1rem;
}

/* Origin Accordion Styles */
.origin-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.origin-accordion-item {
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 0.25rem 1rem;
  margin-top: -1px;
}

.origin-accordion-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  margin-top: 0;
}

.origin-accordion-item:last-child {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.origin-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: #111;
  background: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.origin-accordion-trigger:focus {
  outline: none;
}

.origin-chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  font-size: 14px;
}

.origin-accordion-trigger:not(.collapsed) .origin-chevron {
  transform: rotate(180deg);
}

.origin-accordion-content {
  padding-bottom: 0.5rem;
  padding-left: 1.75rem;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet & Smaller Devices (max-width: 991px) */
@media (max-width: 991px) {
  /* Orbit Container - Scale down */
  .orbit-container {
    transform: translateY(-50%) scale(0.7);
    right: -20rem;
  }
  
  /* Animated Services */
  .animated-services-section {
    padding: 80px 0 100px;
  }
  .animated-services-title {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }
  
  /* Footer Area - Override inline styles */
  .footer__area-unified {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  
  /* Counter Area */
  .counter__area-3 {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
  /* Hide Orbit Container on mobile to prevent overflow */
  .orbit-container {
    display: none !important;
  }
  
  /* Animated Services */
  .animated-services-section {
    padding: 60px 0 80px;
  }
  .animated-services-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
  }
  .service-card {
    height: auto;
    min-height: 350px;
    padding: 1.5rem;
  }
  .service-swiper-container {
    padding: 10px 0 40px;
  }
  
  /* Custom Features */
  .custom-feature-card {
    padding: 30px 20px;
  }
  .custom-feature-card h4 {
    font-size: 20px;
  }
  
  /* Counter Area */
  .counter__area-3 {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  .counter__wrapper-3 {
    gap: 30px !important;
    flex-direction: column !important;
    align-items: center;
  }
  .counter__item-3 {
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Footer Area */
  .footer__area-unified {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  .footer__area-unified .gap-5 {
    gap: 2rem !important;
  }
  .footer__area-unified .gap-4 {
    gap: 1.5rem !important;
  }
  
  /* CTA Area adjustments */
  .cta__area, .cta__area-3 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  .cta__title {
    font-size: 2rem !important;
  }
  
  /* Origin Accordion */
  .origin-accordion-trigger {
    font-size: 14px;
    padding: 0.75rem 0;
  }
  .origin-accordion-content {
    font-size: 13px;
  }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .animated-services-title {
    font-size: 1.8rem;
  }
  .service-card-title {
    font-size: 1rem;
  }
  .service-card-icon {
    font-size: 2.5rem;
  }
  .counter__number {
    font-size: 3rem !important;
  }
}


/* ==========================================================================
   WPP-Style Pill Header & Mega Menu
   ========================================================================== */

/* The Floating Pill Header */
.wpp-pill-header {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  min-width: 250px;
  background-color: #ffffff; /* White background */
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  gap: 30px;
  z-index: 9998;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.wpp-header-logo img {
  height: 24px;
  width: auto;
}

.wpp-header-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.wpp-header-menu-btn:hover {
  color: #555;
}

.wpp-dots-icon {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 3px;
}

.wpp-dots-icon span {
  width: 4px;
  height: 4px;
  background-color: currentColor;
  border-radius: 50%;
}

/* The Full-Screen Mega Menu Overlay */
.wpp-mega-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpp-mega-menu.active {
  opacity: 1;
  pointer-events: all;
}

.wpp-mega-content {
  position: relative;
  width: 95%;
  max-width: 1400px;
  height: 85vh;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 50px;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.wpp-mega-menu.active .wpp-mega-content {
  transform: translateY(0);
}

/* Search Bar Inside Menu */
.wpp-mega-search {
  position: relative;
  margin-bottom: 50px;
}

.wpp-mega-search input {
  width: 100%;
  padding: 15px 20px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #111;
  outline: none;
}

.wpp-mega-search i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
}

/* Menu Grid */
.wpp-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.wpp-menu-column h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000033;
  margin-bottom: 20px;
}

.wpp-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wpp-menu-column ul li {
  margin-bottom: 12px;
}

.wpp-menu-column ul li a {
  font-size: 16px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wpp-menu-column ul li a:hover {
  color: #000033;
  font-weight: 500;
}

/* Floating Close Button */
.wpp-menu-close-wrapper {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
}

.wpp-btn-close {
  background-color: #000033;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease;
}

.wpp-btn-close:hover {
  background-color: #000055;
}

/* Prevent body scroll when menu is open */
body.mega-menu-open {
  overflow: hidden !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
  .wpp-mega-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .wpp-pill-header {
    top: 15px;
    width: 95%;
    padding: 12px 25px;
  }
  
  .wpp-header-logo img {
    height: 28px;
  }
  
  .wpp-header-menu-btn {
    font-size: 15px;
    gap: 10px;
  }
  
  .wpp-mega-content {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    padding: 30px 20px 80px 20px; /* Space at bottom for close btn */
  }
  
  .wpp-mega-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .wpp-menu-column {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 15px;
  }
  
  .wpp-menu-column h4 {
    margin-bottom: 15px;
  }
  
  .wpp-menu-close-wrapper {
    bottom: 30px;
  }
}
