/**
 * Advanced Front Page Styles
 * Wesam AlNobla Security Services Company
 * 
 * A professional, modern stylesheet with enhanced visual elements
 * and sophisticated animations
 * 
 * Note: All CSS variables are defined in header.css to avoid conflicts
 * Bootstrap classes are used where possible, custom styles use higher specificity
 */

/* ====== Base Styles ====== */
/* Note: Base styles are handled by Bootstrap and header.css */

/* Section padding utility - doesn't conflict with Bootstrap */
.section-padding {
  padding: var(--section-spacing) 0;
}

@media (max-width: 767px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* Use Bootstrap's container, don't override it */
/* Custom container styles only for specific sections if needed */

/* ====== Section Titles ====== */
.section-title {
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.section-title h2::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 55px;
  width: 15px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-title p {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 650px;
  margin: 20px auto 0;
}

.text-center .section-title h2 {
  display: inline-block;
  width: auto;
}

.text-center .section-title h2::before {
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  margin-right: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-color), rgba(19, 75, 138, 0.8));
  bottom: -15px;
  transition: all 0.3s ease;
}

.text-center .section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  margin-right: 0;
  margin-left: -40px;
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: var(--secondary-color);
  bottom: -15px;
  transition: all 0.3s ease;
}

/* ====== Common Elements ====== */
/* Use higher specificity to avoid Bootstrap conflicts */
section.bg-light,
.section.bg-light {
  background-color: var(--bg-light) !important;
}

section.bg-primary,
.section.bg-primary {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.bg-gradient {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.section-overlay {
  position: relative;
}

.section-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.section-overlay > * {
  position: relative;
  z-index: 2;
}

/* ====== Custom Button Styles ====== */
/* Use higher specificity to enhance Bootstrap buttons without breaking them */
.btn.btn-custom,
.hero-buttons .btn,
section .btn.btn-primary {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 30px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn.btn-custom::before,
.hero-buttons .btn::before,
section .btn.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transition: all 0.5s ease;
  z-index: -1;
}

.btn.btn-custom:hover::before,
.hero-buttons .btn:hover::before,
section .btn.btn-primary:hover::before {
  width: 100%;
}

/* Enhance Bootstrap btn-primary without breaking it */
.btn.btn-primary.btn-custom,
.hero-buttons .btn.btn-primary,
section .btn.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn.btn-primary.btn-custom::before,
.hero-buttons .btn.btn-primary::before,
section .btn.btn-primary::before {
  background-color: var(--primary-dark);
}

.btn.btn-primary.btn-custom:hover,
.hero-buttons .btn.btn-primary:hover,
section .btn.btn-primary:hover {
  border-color: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Custom outline light button */
.btn.btn-outline-light.btn-custom,
.hero-buttons .btn.btn-outline-light {
  border: 2px solid white;
  color: white;
  background-color: transparent;
}

.btn.btn-outline-light.btn-custom::before,
.hero-buttons .btn.btn-outline-light::before {
  background-color: white;
}

.btn.btn-outline-light.btn-custom:hover,
.hero-buttons .btn.btn-outline-light:hover {
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ====== Hero Slider ====== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
}

.hero-slide {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  width: 100%;
}

.slide-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1s ease;
}

.slide-desc {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.3s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

.hero-buttons .btn {
  margin: 5px;
  min-width: 150px;
}

/* Hero slider navigation */
.hero-carousel .owl-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
}

.hero-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
}

.hero-carousel .owl-dot span {
  display: block;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--border-radius-full);
  transition: var(--transition-fast);
}

.hero-carousel .owl-dot.active span {
  background-color: white;
  width: 25px;
  border-radius: 6px;
}

.hero-carousel .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-size: 32px !important;
  line-height: 1;
  padding: 0;
  transition: all 0.3s ease;
  z-index: 5;
  opacity: 0.9;
}

.hero-carousel .owl-nav button:hover {
  background: transparent !important;
  color: white !important;
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

.hero-carousel .owl-nav button:focus {
  outline: none;
  box-shadow: none;
}

.hero-carousel .owl-nav button.owl-prev {
  left: 30px;
}

.hero-carousel .owl-nav button.owl-next {
  right: 30px;
}

.hero-carousel .owl-nav button i {
  display: block;
  font-size: inherit;
  line-height: 1;
}

@media (max-width: 767px) {
  .hero-slider, .hero-slide {
    height: 500px;
    min-height: auto;
  }
  
  .slide-title {
    font-size: 32px;
  }
  
  .slide-desc {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .hero-carousel .owl-nav button {
    font-size: 28px !important;
  }
  
  .hero-carousel .owl-nav button.owl-prev {
    left: 15px;
  }
  
  .hero-carousel .owl-nav button.owl-next {
    right: 15px;
  }
}

/* ====== About Section - Modern Responsive Design ====== */
.about {
  position: relative;
  overflow: hidden;
}

.about-content-wrapper {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 5px 30px rgba(19, 75, 138, 0.08);
  height: 100%;
}

/* Modern Tabs Design */
.about-tabs-modern {
  position: relative;
}

.modern-tabs {
  border: none;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  background: var(--bg-light);
  padding: 8px;
  border-radius: 12px;
}

.modern-tabs .nav-item {
  flex: 1;
  min-width: 0;
}

.modern-tabs .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-medium);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-tabs .nav-link i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.modern-tabs .nav-link:hover {
  color: var(--primary-color);
  background: rgba(19, 75, 138, 0.08);
  transform: translateY(-2px);
}

.modern-tabs .nav-link:hover i {
  transform: scale(1.1);
}

.modern-tabs .nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(19, 75, 138, 0.25);
}

.modern-tabs .nav-link.active i {
  transform: scale(1.1);
}

/* Modern Tab Content */
.modern-tab-content {
  min-height: 300px;
}

.tab-content-inner {
  padding: 10px 0;
}

.tab-content-inner h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.4;
}

.tab-content-inner p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 18px;
}

/* Modern Features List */
.features-list-modern {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}

.features-list-modern li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.features-list-modern li:hover {
  background: rgba(19, 75, 138, 0.05);
  transform: translateX(-5px);
}

.features-list-modern li i {
  color: var(--primary-color);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.features-list-modern li {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* About Image Container - Single Image Per Tab */
.about-image-container {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.about-main-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(19, 75, 138, 0.15);
  background: var(--bg-light);
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.about-tab-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  padding: 40px;
  background: var(--bg-light);
}

.about-tab-image.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

/* Modern Experience Badge */
.experience-badge-modern {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: white;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(19, 75, 138, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  border: 2px solid rgba(19, 75, 138, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.experience-badge-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(19, 75, 138, 0.3);
  border-color: var(--primary-color);
}

.badge-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon i {
  font-size: 28px;
  color: white;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-content .years {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
  display: block;
}

.badge-content .text {
  font-size: 13px;
  color: var(--text-medium);
  margin-top: 5px;
  font-weight: 600;
  display: block;
}

/* Responsive Styles for About Section */
@media (max-width: 991px) {
  .about-content-wrapper {
    padding: 30px 25px;
    margin-bottom: 30px;
  }
  
  .modern-tabs {
    gap: 8px;
    padding: 6px;
  }
  
  .modern-tabs .nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .modern-tabs .nav-link i {
    font-size: 16px;
  }
  
  .tab-content-inner h3 {
    font-size: 22px;
  }
  
  .tab-content-inner p {
    font-size: 15px;
  }
  
  .about-image-container {
    min-height: 400px;
  }
  
  .image-wrapper {
    min-height: 400px;
  }
  
  .experience-badge-modern {
    bottom: 20px;
    left: 20px;
    padding: 15px 20px;
  }
  
  .badge-icon {
    width: 50px;
    height: 50px;
  }
  
  .badge-icon i {
    font-size: 24px;
  }
  
  .badge-content .years {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .about-content-wrapper {
    padding: 25px 20px;
  }
  
  .modern-tabs {
    flex-direction: column;
    gap: 6px;
  }
  
  .modern-tabs .nav-item {
    width: 100%;
  }
  
  .modern-tabs .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .tab-content-inner h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .tab-content-inner p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
  }
  
  .features-list-modern li {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .features-list-modern li i {
    font-size: 18px;
  }
  
  .about-image-container {
    min-height: 350px;
    margin-bottom: 20px;
  }
  
  .image-wrapper {
    min-height: 350px;
  }
  
  .experience-badge-modern {
    bottom: 15px;
    left: 15px;
    padding: 12px 18px;
  }
  
  .badge-icon {
    width: 45px;
    height: 45px;
  }
  
  .badge-icon i {
    font-size: 22px;
  }
  
  .badge-content .years {
    font-size: 26px;
  }
  
  .badge-content .text {
    font-size: 12px;
  }
  
  .badge-content .years {
    font-size: 26px;
  }
  
  .badge-content .text {
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .about-content-wrapper {
    padding: 20px 15px;
  }
  
  .modern-tabs .nav-link {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .modern-tabs .nav-link span {
    display: none;
  }
  
  .modern-tabs .nav-link i {
    font-size: 20px;
    margin: 0;
  }
  
  .tab-content-inner h3 {
    font-size: 18px;
  }
  
  .tab-content-inner p {
    font-size: 13px;
  }
  
  .about-images-gallery {
    gap: 8px;
  }
  
  .experience-badge-modern {
    padding: 12px 15px;
  }
  
  .badge-icon {
    width: 45px;
    height: 45px;
  }
  
  .badge-icon i {
    font-size: 20px;
  }
  
  .badge-content .years {
    font-size: 24px;
  }
}

/* Tab animation */
.tab-pane {
  transition: var(--transition-fast);
}

.tab-pane.fade {
  opacity: 0;
}

.tab-pane.fade.show {
  opacity: 1;
}

/* ====== Features Section - Unique Modern Card Design ====== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
}

/* Desktop: All 4 items in one row */
@media (min-width: 992px) {
  .features-grid .col-lg-3 {
    flex: 0 0 calc(25% - 19px);
    max-width: calc(25% - 19px);
  }
}

/* Tablet: 2 items per row */
@media (min-width: 768px) and (max-width: 991px) {
  .features-grid .col-md-6 {
    flex: 0 0 calc(50% - 13px);
    max-width: calc(50% - 13px);
  }
}

/* Mobile: 2x2 grid (2 columns) */
@media (max-width: 767px) {
  .features-grid {
    gap: 15px;
  }
  
  .features-grid .col-6 {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

/* Feature Box - Modern Card with Side Accent */
.feature-box {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 3px 20px rgba(19, 75, 138, 0.06);
  border: 1px solid rgba(19, 75, 138, 0.08);
  overflow: hidden;
}

/* Left Side Accent Bar */
.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, var(--primary-color), rgba(19, 75, 138, 0.7));
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  border-radius: 0 0 0 16px;
}

.feature-box:hover::before {
  height: 100%;
}

/* Animated Background Pattern */
.feature-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(19, 75, 138, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.feature-box:hover::after {
  opacity: 1;
}

/* Card Hover Effect */
.feature-box:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 40px rgba(19, 75, 138, 0.15);
  border-color: var(--primary-color);
}

/* Icon Wrapper - Modern Design with Border */
.feature-icon-wrapper {
  position: relative;
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.feature-icon {
  font-size: 56px;
  color: var(--primary-color);
  position: relative;
  z-index: 3;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
  padding: 20px;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.08), rgba(19, 75, 138, 0.03));
  border-radius: 20px;
  border: 2px solid rgba(19, 75, 138, 0.1);
}

/* Icon Hover Effect */
.feature-box:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--primary-color), rgba(19, 75, 138, 0.9));
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(19, 75, 138, 0.25);
}

/* Feature Content */
.feature-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.feature-box h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
  position: relative;
  padding-bottom: 12px;
}

.feature-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), rgba(19, 75, 138, 0.6));
  transition: width 0.4s ease;
  border-radius: 2px;
}

.feature-box:hover h3 {
  color: var(--primary-color);
}

.feature-box:hover h3::after {
  width: 60px;
}

.feature-box p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-medium);
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.feature-box:hover p {
  color: var(--text-dark);
}

/* Responsive Styles for Features */
@media (max-width: 991px) {
  .feature-box {
    padding: 25px 15px;
  }
  
  .feature-icon {
    font-size: 58px;
  }
  
  .feature-box h3 {
    font-size: 20px;
  }
  
  .feature-icon-wrapper {
    margin-bottom: 25px;
  }
  
  .feature-icon-wrapper::before {
    width: 100px;
    height: 100px;
  }
  
  .feature-box:hover .feature-icon-wrapper::before {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 767px) {
  .feature-box {
    padding: 20px 10px;
    margin-bottom: 30px;
  }
  
  .feature-icon {
    font-size: 54px;
  }
  
  .feature-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .feature-box p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .feature-icon-wrapper {
    margin-bottom: 20px;
  }
  
  .feature-icon-wrapper::before {
    width: 90px;
    height: 90px;
  }
  
  .feature-box:hover .feature-icon-wrapper::before {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 575px) {
  .feature-box {
    margin-bottom: 30px;
  }
  
  .feature-icon {
    font-size: 50px;
  }
  
  .feature-box h3 {
    font-size: 17px;
  }
  
  .feature-box p {
    font-size: 13px;
  }
  
  .feature-icon-wrapper::before {
    width: 85px;
    height: 85px;
  }
  
  .feature-box:hover .feature-icon-wrapper::before {
    width: 100px;
    height: 100px;
  }
}

/* ====== Achievements Section - Talented & Modern Design ====== */
.achievements {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

/* Achievements Grid Layout */
.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

/* Desktop: All 4 items in one row */
@media (min-width: 992px) {
  .achievements-grid .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Tablet: 2 items per row */
@media (min-width: 768px) and (max-width: 991px) {
  .achievements-grid .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile: 2x2 grid (2 columns) */
@media (max-width: 767px) {
  .achievements-grid .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .achievements-grid .col-6:nth-child(odd) {
    padding-left: 10px;
    padding-right: 5px;
  }
  
  .achievements-grid .col-6:nth-child(even) {
    padding-left: 5px;
    padding-right: 10px;
  }
}

.achievements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.2;
}

.achievements::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.2;
}

/* Counter Box - Clean Design Without Card Background */
.counter-box {
  background: transparent;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  box-shadow: none;
}

.counter-box:hover {
  transform: translateY(-5px);
}

/* Icon Wrapper - Focus on Icon Design */
.counter-icon-wrapper {
  position: relative;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.counter-icon {
  font-size: 72px;
  color: var(--primary-color);
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(19, 75, 138, 0.15));
}

/* Icon Background Circle - Subtle and Elegant */
.counter-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.08), rgba(19, 75, 138, 0.03));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0.6;
}

.counter-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 75, 138, 0.15) 0%, transparent 70%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.counter-box:hover .counter-icon-wrapper::before {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.12), rgba(19, 75, 138, 0.06));
  opacity: 1;
}

.counter-box:hover .counter-icon-wrapper::after {
  transform: translate(-50%, -50%) scale(1);
}

.counter-box:hover .counter-icon {
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 8px 16px rgba(19, 75, 138, 0.25));
  color: var(--primary-color);
}

/* Counter Content */
.counter-content {
  position: relative;
  z-index: 2;
}

.counter-box h2 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.2;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary-color), rgba(19, 75, 138, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.counter-box:hover h2 {
  transform: scale(1.08);
}

.counter-box h5 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 0;
  font-weight: 600;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.counter-box:hover h5 {
  color: var(--primary-color);
}

/* Responsive Styles for Achievements */
@media (max-width: 991px) {
  .counter-box {
    padding: 25px 15px;
  }
  
  .counter-icon {
    font-size: 60px;
  }
  
  .counter-box h2 {
    font-size: 44px;
  }
  
  .counter-icon-wrapper {
    margin-bottom: 25px;
  }
  
  .counter-icon-wrapper::before {
    width: 100px;
    height: 100px;
  }
  
  .counter-box:hover .counter-icon-wrapper::before {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 767px) {
  .counter-box {
    padding: 20px 10px;
    margin-bottom: 30px;
  }
  
  .counter-icon {
    font-size: 56px;
  }
  
  .counter-box h2 {
    font-size: 40px;
  }
  
  .counter-box h5 {
    font-size: 16px;
  }
  
  .counter-icon-wrapper {
    margin-bottom: 25px;
  }
  
  .counter-icon-wrapper::before {
    width: 90px;
    height: 90px;
  }
  
  .counter-box:hover .counter-icon-wrapper::before {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 575px) {
  .counter-box {
    margin-bottom: 30px;
  }
  
  .counter-icon {
    font-size: 52px;
  }
  
  .counter-box h2 {
    font-size: 36px;
  }
  
  .counter-box h5 {
    font-size: 15px;
  }
  
  .counter-icon-wrapper::before {
    width: 85px;
    height: 85px;
  }
  
  .counter-box:hover .counter-icon-wrapper::before {
    width: 100px;
    height: 100px;
  }
}

/* ====== Services Section ====== */
/* ====== Service Cards - Advanced Design with Modern Effects ====== */
.service-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 45px 35px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(19, 75, 138, 0.08);
  text-align: center;
  height: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(19, 75, 138, 0.08);
  backdrop-filter: blur(10px);
}

/* Animated Background Gradient */
.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.1) 0%, rgba(19, 75, 138, 0.05) 50%, transparent 100%);
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  opacity: 0;
  transform: scale(0);
}

.service-card:hover::before {
  opacity: 1;
  transform: scale(1.5);
  top: -25%;
  left: -25%;
}

/* Animated Border Effect */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), rgba(19, 75, 138, 0.5), var(--primary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}

.service-card:hover::after {
  opacity: 1;
}

/* Card Hover Effect - 3D Transform */
.service-card:hover {
  transform: translateY(-15px) rotateX(2deg);
  box-shadow: 0 15px 40px rgba(19, 75, 138, 0.2);
  border-color: var(--primary-color);
}

/* Service Icon - Advanced Design */
.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.1), rgba(19, 75, 138, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(19, 75, 138, 0.15);
}

/* Icon Background Pulse Effect */
.service-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), rgba(19, 75, 138, 0.8));
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.service-card:hover .service-icon::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary-color), rgba(19, 75, 138, 0.9));
  transform: scale(1.1) rotateY(360deg);
  box-shadow: 0 12px 30px rgba(19, 75, 138, 0.3);
}

.service-icon i {
  font-size: 48px;
  color: var(--primary-color);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(19, 75, 138, 0.2));
}

.service-card:hover .service-icon i {
  color: white;
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

/* Service Title */
.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 18px;
  color: var(--text-dark);
  transition: all 0.3s ease;
  z-index: 2;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), rgba(19, 75, 138, 0.6));
  border-radius: 2px;
  transition: all 0.4s ease;
}

.service-card:hover h3 {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.service-card:hover h3::after {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), rgba(19, 75, 138, 0.8));
}

/* Service Description */
.service-card p {
  margin-bottom: 0;
  color: var(--text-medium);
  position: relative;
  line-height: 1.8;
  font-size: 15px;
  transition: color 0.3s ease;
  z-index: 2;
}

.service-card:hover p {
  color: var(--text-dark);
}

/* Responsive Styles for Service Cards */
@media (max-width: 991px) {
  .service-card {
    padding: 35px 25px;
  }
  
  .service-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
  }
  
  .service-icon i {
    font-size: 42px;
  }
  
  .service-card h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .service-card {
    padding: 30px 20px;
    margin-bottom: 25px;
  }
  
  .service-icon {
    width: 85px;
    height: 85px;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 38px;
  }
  
  .service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  .service-card p {
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (max-width: 575px) {
  .service-card {
    padding: 25px 18px;
  }
  
  .service-icon {
    width: 80px;
    height: 80px;
  }
  
  .service-icon i {
    font-size: 36px;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
}

/* ====== Clients Section - Talented & Modern Design ====== */
.clients {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
}

.clients-carousel {
  position: relative;
  padding: 40px 0;
}

.clients-carousel .client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 20px 30px;
  margin: 0 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(19, 75, 138, 0.1);
  vertical-align: middle;
}

.client-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.clients-carousel .client-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(19, 75, 138, 0.03) 0%, rgba(19, 75, 138, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px;
}

.clients-carousel .client-item:hover::before {
  opacity: 1;
}

.clients-carousel .client-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 30px rgba(19, 75, 138, 0.15);
  border-color: var(--primary-color);
}

.client-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.clients-carousel .client-item img,
.clients-carousel .client-item .client-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: block;
}

.clients-carousel .client-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

/* Ensure perfect vertical alignment for all client items */
.clients-carousel .owl-stage {
  display: flex;
  align-items: center;
}

.clients-carousel .owl-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clients Carousel Dots Styling */
.clients-carousel .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 0;
}

.clients-carousel .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(19, 75, 138, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
}

.clients-carousel .owl-dots .owl-dot:hover {
  background: rgba(19, 75, 138, 0.6);
  transform: scale(1.2);
}

.clients-carousel .owl-dots .owl-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  width: 32px;
  border-radius: 6px;
  transform: scale(1);
}

.clients-carousel .owl-dots .owl-dot.active:hover {
  transform: scale(1.1);
}

/* Clients Section Responsive Styles */
@media (max-width: 991px) {
  .clients-carousel .client-item {
    height: 100px;
    padding: 15px 20px;
  }
  
  .clients-carousel .client-item img {
    max-height: 60px;
  }
}

@media (max-width: 767px) {
  .clients-carousel {
    padding: 30px 0;
  }
  
  .clients-carousel .client-item {
    height: 90px;
    padding: 12px 15px;
    margin: 0 8px;
  }
  
  .clients-carousel .client-item img {
    max-height: 50px;
  }
  
  .clients-carousel .owl-dots {
    margin-top: 30px;
    gap: 8px;
  }
  
  .clients-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
  }
  
  .clients-carousel .owl-dots .owl-dot.active {
    width: 28px;
  }
}

@media (max-width: 575px) {
  .clients-carousel .client-item {
    height: 80px;
    padding: 10px 12px;
    margin: 0 5px;
  }
  
  .clients-carousel .client-item img {
    max-height: 45px;
  }
}

/* Carousel Navigation - General styles (exclude hero carousel) */
.owl-carousel:not(.hero-carousel) .owl-nav {
  margin-top: 30px;
  text-align: center;
}

.owl-carousel:not(.hero-carousel) .owl-nav button {
  width: 40px;
  height: 40px;
  background-color: var(--bg-light) !important;
  border-radius: var(--border-radius-full);
  margin: 0 5px;
  transition: var(--transition-fast);
}

.owl-carousel:not(.hero-carousel) .owl-nav button:hover {
  background-color: var(--primary-color) !important;
}

.owl-carousel:not(.hero-carousel) .owl-nav button span {
  font-size: 24px;
  line-height: 20px;
  color: var(--text-dark);
}

.owl-carousel:not(.hero-carousel) .owl-nav button:hover span {
  color: white;
}

/* ====== Projects Section ====== */
.projects-carousel .project-item {
  margin: 15px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-img {
  position: relative;
  overflow: hidden;
}

/* Square Project Images */
.project-img.square-img {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Creates a 1:1 aspect ratio (square) */
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
}

.project-img.square-img .img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img.square-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.project-img.square-img:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-medium);
}

.project-item:hover .project-overlay {
  opacity: 0.9;
}

.project-info {
  text-align: center;
  padding: 20px;
  color: white;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.project-item:hover .project-info {
  transform: translateY(0);
}

.project-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.project-info p {
  margin-bottom: 0;
}

/* Portfolio Navigation Arrows */
.projects-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.projects-carousel .owl-nav button.owl-prev,
.projects-carousel .owl-nav button.owl-next {
  width: 50px;
  height: 50px;
  background-color: rgba(19, 75, 138, 0.7) !important;
  color: white !important;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px !important;
  transition: var(--transition-fast);
  pointer-events: auto;
  margin: 0 -25px;
}

.projects-carousel .owl-nav button.owl-prev:hover,
.projects-carousel .owl-nav button.owl-next:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.1);
}

.projects-carousel .owl-nav button span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Projects Carousel Dots Styling */
.projects-carousel .owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 0;
}

.projects-carousel .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(19, 75, 138, 0.3);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
}

.projects-carousel .owl-dots .owl-dot:hover {
  background: rgba(19, 75, 138, 0.6);
  transform: scale(1.2);
}

.projects-carousel .owl-dots .owl-dot.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  width: 32px;
  border-radius: 6px;
  transform: scale(1);
}

.projects-carousel .owl-dots .owl-dot.active:hover {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .projects-carousel .owl-nav button.owl-prev,
  .projects-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    font-size: 20px !important;
    margin: 0 -15px;
  }
  
  .projects-carousel .owl-dots {
    margin-top: 30px;
    gap: 8px;
  }
  
  .projects-carousel .owl-dots .owl-dot {
    width: 10px;
    height: 10px;
  }
  
  .projects-carousel .owl-dots .owl-dot.active {
    width: 28px;
  }
}

/* ====== Contact Section ====== */
.contact-info {
  background: var(--gradient-primary);
  padding: 40px;
  border-radius: var(--border-radius-md);
  color: white;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('pattern.png');
  opacity: 0.05;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  font-size: 20px;
  color: white;
  transition: var(--transition-fast);
}

.contact-item:hover .icon {
  background-color: white;
  color: var(--primary-color);
  transform: rotateY(360deg);
}

.contact-item .text h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: white;
}

.contact-item .text p,
.contact-item .text a {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
  text-decoration: none;
}

.contact-item .text a:hover {
  color: white;
  padding-right: 5px;
  text-decoration: none;
}

.contact-social {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.contact-social h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: white;
}

.social-links {
  display: flex;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  border-radius: var(--border-radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 16px;
  transition: var(--transition-fast);
}

.social-links a:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-5px);
}

.contact-form-wrap {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

.wpcf7-form p {
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--bg-medium);
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 75, 138, 0.1);
  background-color: white;
}

.wpcf7-form textarea {
  height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.wpcf7-form input[type="submit"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.wpcf7-form input[type="submit"]:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.wpcf7-form input[type="submit"]:hover::before {
  width: 100%;
}

.wpcf7-not-valid-tip {
  color: var(--secondary-color);
  font-size: 14px;
  margin-top: 5px;
}

div.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 15px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
}

div.wpcf7-validation-errors {
  border: 1px solid #dc3545;
  background-color: #f8d7da;
  color: #721c24;
}

div.wpcf7-mail-sent-ok {
  border: 1px solid #28a745;
  background-color: #d4edda;
  color: #155724;
}

/* Checkbox Styling - Fix double box issue and ensure single checkbox */
.wpcf7-form .wpcf7-checkbox {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 4px !important;
  background-color: white !important;
  position: relative !important;
  vertical-align: middle;
  flex-shrink: 0 !important;
  transition: all 0.3s ease;
  display: inline-block !important;
  float: none !important;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 75, 138, 0.1);
}

.wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Hide any duplicate checkboxes or default styling */
.wpcf7-form .wpcf7-checkbox input[type="checkbox"]:not(.wpcf7-list-item input) {
  display: none !important;
}

/* Checkbox container styling - ensure single row */
.wpcf7-form .form-check,
.wpcf7-form .form-check p,
.wpcf7-form span.wpcf7-form-control-wrap[data-name="accept-terms"] {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
}

.wpcf7-form .form-check p {
  margin-bottom: 0 !important;
}

/* Ensure text stays on one row */
.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-checkbox .wpcf7-form-control,
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
  white-space: nowrap !important;
  overflow: visible !important;
}

/* Responsive checkbox styling */
@media (max-width: 767px) {
  .wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
  
  .wpcf7-form .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked::after {
    top: 1px;
    left: 5px;
    width: 4px;
    height: 8px;
  }
  
  .wpcf7-form .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: 14px;
  }
  
  .wpcf7-form .wpcf7-checkbox .wpcf7-list-item {
    gap: 8px !important;
  }
}

/* Form input field with floating label effect */
.form-field {
  position: relative;
  margin-bottom: 20px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--bg-medium);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  transition: var(--transition-fast);
}

.form-field label {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-medium);
  transition: var(--transition-fast);
  pointer-events: none;
}

.form-field input:focus ~ label,
.form-field textarea:focus ~ label,
.form-field select:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  right: 10px;
  font-size: 12px;
  padding: 0 5px;
  background-color: white;
  color: var(--primary-color);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(19, 75, 138, 0.1);
  outline: none;
  background-color: white;
}

/* ====== Floating Buttons ====== */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 997;
}

.floating-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.floating-buttons a:hover {
  transform: scale(1.1);
}

.floating-whatsapp {
  background-color: #25D366;
}

.floating-phone {
  background-color: var(--primary-color);
}

.go-top {
  opacity: 0;
  visibility: hidden;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.go-top.active {
  opacity: 1;
  visibility: visible;
}

/* ====== Preloader ====== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 20px;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes bounce {
  0%, 100% { 
    transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
  }
}

.loader h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-top: 15px;
}

/* ====== Animation Effects ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInDown {
  animation: fadeInDown 1s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInLeft {
  animation: fadeInLeft 1s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInRight {
  animation: fadeInRight 1s ease;
}

/* AOS Animation Override for RTL */
[data-aos="fade-right"] {
  transform: translate3d(-100px, 0, 0);
}

[data-aos="fade-left"] {
  transform: translate3d(100px, 0, 0);
}

html[dir="rtl"] [data-aos="fade-right"] {
  transform: translate3d(100px, 0, 0);
}

html[dir="rtl"] [data-aos="fade-left"] {
  transform: translate3d(-100px, 0, 0);
}

/* ====== Responsive Styles ====== */
@media (max-width: 1199px) {
  .slide-title {
    font-size: 42px;
  }
}

@media (max-width: 991px) {
  .slide-title {
    font-size: 36px;
  }
  
  .counter-box h2 {
    font-size: 36px;
  }
  
  .counter-box h5 {
    font-size: 16px;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .section-title h2 {
    font-size: 28px;
  }
  
  .slide-title {
    font-size: 28px;
  }
  
  .about-image {
    margin-bottom: 30px;
  }
  
  .about-tabs .nav-tabs .nav-link {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .floating-buttons a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .slide-title {
    font-size: 24px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .hero-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .counter-box h2 {
    font-size: 30px;
  }
  
  .contact-form-wrap {
    padding: 30px 20px;
  }
}


