/* Core Scaling Utilities for Innovatera Website */
:root {
  --scale-factor: clamp(0.6, calc(100vw/1920), 1);
  --spacing-unit: clamp(8px, 1vw, 16px);
  --fluid-min-width: 320;
  --fluid-max-width: 1920;
  --fluid-min-size: 14;
  --fluid-max-size: 18;
}

/* Global Scaling Setup */
.scale-layout {
  transform: scale(var(--scale-factor));
  transform-origin: top left;
  width: calc(100% / var(--scale-factor));
}

/* Fluid Typography */
body {
  font-size: clamp(
    var(--fluid-min-size)px,
    calc(1rem + ((1vw - var(--fluid-min-width)px/100) * 100)),
    var(--fluid-max-size)px
  );
}

/* Global Image Responsiveness */
img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Maintain Aspect Ratios */
.maintain-ratio {
  position: relative;
  height: 0;
  overflow: hidden;
}

.maintain-ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16-9 {
  padding-bottom: 56.25%;
}

.ratio-4-3 {
  padding-bottom: 75%;
}

.ratio-1-1 {
  padding-bottom: 100%;
}

/* Responsive Overrides for Innovatera Website */

/* Hero section background fix */
.hero-section.hero-1 {
  background-color: #1a0e3d !important;
  background-image: url('../img/hero/hero-bg.jpg') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* Prevent decorative elements from causing overflow */
  position: relative; /* Ensure proper positioning context */
  padding-bottom: 120px; /* Add extra padding at the bottom for the image */
}

/* Add transitions for smoother responsive changes */
.hero-section .hero-content,
.hero-section .hero-image,
.hero-section .video-right,
.hero-section .hero-title img {
  transition: all 0.3s ease-out;
}

/* Reposition hero image to bottom */
.hero-section .hero-image {
  position: relative;
  z-index: 5;
  margin-top: 40px;
  margin-bottom: -160px; /* Increased negative margin to push image further down */
}

/* Create a ribbon-like effect at the bottom of the hero section */
.hero-section.hero-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
  z-index: 1;
}

/* Improved Hero Section Responsive Design */
@media (max-width: 1199px) {
  .hero-section {
    transform: none; /* Remove scale transform which can cause blurriness */
    padding: 120px 0 80px; /* Adjust padding for the image overlap */
  }

  .hero-section .hero-title {
    margin-bottom: 30px;
  }
  
  .hero-section .hero-title img {
    max-width: 80%;
    height: auto;
  }

  .hero-section .row {
    position: relative; /* For absolute positioning of children */
    display: flex;
    flex-direction: column;
  }
  
  /* Reorder content - text at top, video in middle, image at bottom */
  .hero-section .row .col-xl-5 {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .hero-section .row .col-xl-3 {
    order: 2;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  .hero-section .row .col-xl-4 {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .hero-section .hero-content {
    padding-right: 0;
    text-align: center;
    margin: 0 auto;
    max-width: 700px;
  }
  
  .hero-section .hero-content h1.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
  }
  
  .hero-section .hero-content .sub-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
  
  .hero-section .hero-content .hero-text {
    margin: 0 auto 30px;
  }
  
  .hero-section .hero-content .main-button {
    justify-content: center;
  }
  
  /* Video section in the middle */
  .hero-section .video-right {
    text-align: center;
    margin: 30px auto;
    max-width: 450px;
  }
  
  /* Hero image at the bottom */
  .hero-section .hero-image {
    width: 100%;
    max-width: 600px;
    margin: 30px auto -160px; /* Increased negative margin to push image further down */
    position: relative;
    z-index: 5; /* Ensure image is above the ribbon effect */
  }
  
  /* Hide decorative elements that clutter small screens */

  
  /* Keep only essential decorative elements */
  .hero-section .energy-shape,
  .hero-section .rocket-shape {
    transform: scale(0.7);
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding: 100px 0 60px; /* Adjust padding for the image overlap */
  }
  
  .hero-section .row {
    flex-direction: column;
  }
  
  .hero-section .video-right {
    text-align: center;
    margin: 20px auto;
    max-width: 450px;
  }
  
  .hero-section .video-right .client-items {
    justify-content: center;
  }
  
  .hero-section .video-right .client-img {
    justify-content: center;
  }
  
  /* Hero image at the bottom */
  .hero-section .hero-image {
    width: 85%;
    max-width: 500px;
    margin: 20px auto -130px; /* Increased negative margin to push image further down */
  }
  
  .hero-section .hero-image .bg-shape {
    transform: scale(0.8);
  }
  

}

@media (max-width: 767px) {
  .hero-section {
    padding: 80px 0 60px; /* Adjust padding for the image overlap */
  }

  .hero-section .hero-title {
    margin-bottom: 25px;
  }
  
  .hero-section .hero-title img {
    max-width: 90%;
  }

  .hero-section .hero-content {
    padding: 0 15px;
  }

  .hero-section .hero-content .sub-title {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 2px;
    margin-bottom: 15px;
  }
  
  .hero-section .hero-content h1.hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 15px;
  }

  .hero-section .hero-content .hero-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.5;
    margin-bottom: 25px;
  }
  
  /* Hero image at the bottom */
  .hero-section .hero-image {
    width: 90%;
    max-width: 400px;
    margin: 10px auto -130px; /* Increased negative margin to push image further down */
  }
  
  /* Simplify the hero image by hiding background shapes */
  .hero-section .hero-image .bg-shape {
    opacity: 0.5;
    transform: scale(0.7);
  }

  .hero-section .video-right {
    margin: 10px auto 20px;
  }
  
  /* Make video button smaller on mobile */
  .hero-section .video-right .video-btn {
    width: 100px;
    height: 100px;
    line-height: 100px;
    font-size: 18px;
  }
  
  .hero-section .video-right .video-btn img {
    top: 8px;
    left: 8px;
    width: 85px;
  }

  .hero-section .video-right p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 20px 0;
  }
  
  /* Improve client items layout */
  .hero-section .video-right .client-items {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-section .video-right .client-items .client-logo {
    margin-bottom: 15px;
  }
  
  .hero-section .video-right .client-items .client-img {
    margin-top: 10px;
  }
  
  /* Improve button appearance */
  .hero-section .main-button .theme-btn {
    padding: 14px 25px;
    font-size: 14px;
  }
  
  .hero-section .main-button .arrow-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding: 70px 0 50px; /* Adjust padding for the image overlap */
  }
  
  .hero-section .hero-title img {
    max-width: 95%;
  }

  .hero-section .hero-content .hero-text {
    font-size: 0.875rem;
  }

  /* Hero image at the bottom */
  .hero-section .hero-image {
    width: 95%;
    max-width: 350px;
    margin: 10px auto -130px; /* Increased negative margin to push image further down */
  }
  
  /* Further simplify the hero image */
  .hero-section .hero-image .bg-shape {
    display: none;
  }
  
  /* Make video button even smaller */
  .hero-section .video-right .video-btn {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 16px;
  }
  
  .hero-section .video-right .video-btn img {
    top: 6px;
    left: 6px;
    width: 70px;
  }
  
  /* Smaller star ratings */
  .hero-section .video-right .client-items .client-img .star-icon .star {
    font-size: 12px;
  }
  
  .hero-section .video-right .client-items .client-img .star-icon span {
    font-size: 12px;
  }
}

/* About section background fix */
.about-section {
  background-color: #f8f9fa !important;
  background-image: url('../img/about/about-bg.png') !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Circle button fixes */
.circle-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #ff6b2c;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
}

.circle-button i {
  color: #fff;
  font-size: 24px;
  position: relative;
  z-index: 3;
}

.circle-button .text-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: rotate 8s linear infinite;
  display: block !important;
  opacity: 1 !important;
}

.circle-button .text-circle img {
  max-width: 100%;
  height: auto;
  display: block !important;
  opacity: 1 !important;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Add transitions for smoother responsive changes */
.about-wrapper .about-image,
.team-wrapper .team-image,
.about-wrapper .about-content,
.team-wrapper .team-content {
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .about-wrapper .about-image {
    display: block !important;
    opacity: 1;
    height: auto;
    overflow: visible;
    margin-bottom: 30px;
  }
  
  .about-wrapper .about-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .circle-button {
    position: absolute;
    right: 20px;
    bottom: 20px;
  }
  
  /* Rest of your existing media query rules... */
}

/* Fix container fluid padding for mobile */
@media (max-width: 767px) {
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .hero-1 .container-fluid,
  .hero-2 .container-fluid,
  .hero-3 .container-fluid,
  .header-1 .container-fluid,
  .team-section-3 .container-fluid,
  .case-studies-section-3 .container-fluid,
  .news-section .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Logo size fixes */
@media (max-width: 767px) {
  .header-logo img,
  .header-logo-2 img {
    width: 80px !important;
    height: auto !important;
  }
  
  .offcanvas__logo img {
    width: 80px !important;
    height: auto !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .header-logo img,
  .header-logo-2 img {
    width: 90px !important;
    height: auto !important;
  }
  
  .offcanvas__logo img {
    width: 90px !important;
    height: auto !important;
  }
}

@media (min-width: 992px) {
  .header-logo img,
  .header-logo-2 img {
    width: 120px !important;
    height: auto !important;
  }
  
  .offcanvas__logo img {
    width: 120px !important;
    height: auto !important;
  }
}

/* Header Responsive Enhancements */
@media (max-width: 1199px) {
  .header-1 .mega-menu-wrapper {
    padding: 0 15px;
  }
  
  .header-right {
    gap: 15px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .header-1 {
    padding: 15px 0;
  }
  
  .header-right .main-button {
    display: none;
  }
}

/* Hero Section Enhancements */
@media (max-width: 1199px) {
  /* Old hero styles removed to avoid conflicts with new implementation */
}

@media (max-width: 991px) {
  /* Old hero styles removed to avoid conflicts with new implementation */
}

@media (max-width: 767px) {
  /* Old hero styles removed to avoid conflicts with new implementation */
  
  .hero-section .video-right {
    /* This is handled in our new implementation */
  }

  .hero-section .video-right p {
    /* This is handled in our new implementation */
  }
}

@media (max-width: 575px) {
  /* Old hero styles removed to avoid conflicts with new implementation */
}

/* Fix section padding on mobile */
@media (max-width: 767px) {
  .section-padding {
    padding: 50px 0;
  }
}

/* Fix brand logos */
@media (max-width: 767px) {
  [class*="brand-"] img {
    width: 100px !important;
    height: auto !important;
    padding: 5px !important;
  }
  
  .brand-wrapper {
    padding: 20px 0;
  }
  
  .brand-wrapper .brand-title {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
  }
}

/* Fix menu on mobile */
@media (max-width: 767px) {
  .mean-container {
    width: 100%;
  }
  
  .mean-container .mean-bar {
    width: 100%;
    padding: 0;
  }
  .mean-container .mean-nav {
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    background: #fff;
  }
  
  .mean-container .mean-nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  
  .mean-container .mean-nav ul li {
    width: 100%;
    position: relative;
    box-sizing: border-box;
  }
  
  .mean-container .mean-nav ul li a {
    width: calc(100% - 30px);
    padding: 12px 15px;
    margin: 0;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  .mean-container .mean-nav ul li li a {
    width: calc(100% - 45px);
    padding: 12px 15px 12px 30px;
    opacity: 0.9;
  }
  
  .mean-container a.meanmenu-reveal {
    right: 0 !important;
    left: auto !important;
    top: 0 !important;
  }
}

/* Fix buttons on mobile */
@media (max-width: 767px) {
  .main-button .theme-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .main-button {
    text-align: center;
  }
}

/* Fix service cards on mobile */
@media (max-width: 767px) {
  .service-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .service-box-items {
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2.5) calc(var(--spacing-unit) * 1.5);
    position: relative;
  }
  
  .service-box-items .thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
  }
  
  .service-box-items .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .service-box-items .icon {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transform: scale(0.8);
    transform-origin: left center;
  }
  
  .service-box-items .content h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit));
  }
  
  .service-box-items .content p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
  }
  
  .service-section .section-title-area {
    margin-bottom: calc(var(--spacing-unit) * 3);
  }
  
  .service-section .section-title-area h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
  }
}

@media (max-width: 575px) {
  .service-box-items {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.2);
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .service-box-items .icon {
    transform: scale(0.7);
  }
  
  .service-box-items .content h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
  }
  
  .service-box-items .content p {
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    line-height: 1.5;
  }
}

/* Fix team cards on tablet and mobile */
@media (max-width: 991px) {
  /* Tablet-specific team card fixes */
  .team-section-33 .swiper-slide {
    width: 100% !important;
    max-width: 320px;
  }
  
  .team-section-33 .team-card-items {
    transform: none !important;
    margin: 0 auto;
    width: 100%;
  }
  
  .team-section-33 .team-card-items .team-image {
    width: 100%;
    height: auto;
    display: block !important;
    opacity: 1 !important;
  }
  
  .team-section-33 .team-card-items .team-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
}

/* Mobile team card fixes */
@media (max-width: 767px) {
  .team-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .team-card-items {
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
  }
  
  .team-card-items .team-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
  }
  
  .team-card-items .team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .team-section .list-items ul {
    width: 100%;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .team-section .list-items ul li {
    margin-bottom: calc(var(--spacing-unit));
    white-space: normal !important;
  }
  
  /* Maintain icon position relative to name */
  .team-card-items .icon-shape {
    transform: scale(0.8);
    position: absolute;
    bottom: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
  }
  
  .team-card-items .team-content {
    padding: calc(var(--spacing-unit) * 1.5);
  }
  
  .team-card-items .team-content h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }
  
  .team-card-items .team-content p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }
}

@media (max-width: 375px) {
  .team-card-items .icon-shape {
    transform: scale(0.7);
    bottom: calc(var(--spacing-unit) * 1.5);
    right: calc(var(--spacing-unit) * 1.5);
  }
  
  .team-card-items .team-content {
    padding: calc(var(--spacing-unit));
  }
  
  .team-card-items .team-content h3 {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  }
}

/* Additional fixes for very small screens */
@media (max-width: 375px) {
  .team-card-items .icon-shape {
    transform: scale(0.6);
    bottom: 23px;
  }
  
  .team-card-items .team-content {
    padding: 12px 12px;
  }
  
  .team-card-items .team-content h3 {
    font-size: 15px;
  }
}

/* Fix testimonials on mobile */
@media (max-width: 767px) {
  .testimonial-box-items {
    padding: 20px;
    text-align: center;
  }
  
  .testimonial-box-items .testimonial-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
  }
  
  .testimonial-box-items .content .client-info {
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .testimonial-box-items .content p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .testimonial-section .section-title-area {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .testimonial-section .section-title-area p br {
    display: none;
  }
}

/* Fix footer on mobile */
@media (max-width: 767px) {
  .footer-widgets-wrapper .single-footer-widget {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-widgets-wrapper .list-area {
    text-align: center;
  }
  
  .footer-widgets-wrapper .social-icon {
    justify-content: center;
  }
}

/* Fix contact form on mobile */
@media (max-width: 767px) {
  .contact-wrapper .contact-form-area {
    padding: 30px 20px;
  }
  
  .contact-wrapper .contact-form-area h3 {
    text-align: center;
    margin-bottom: 20px;
  }
}

/* Fix all headings on mobile */
@media (max-width: 767px) {
  h1 {
    font-size: 32px;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  h4 {
    font-size: 20px;
    line-height: 1.3;
  }
}

/* About page team section specific fixes */
.about-html .team-section-33 .team-card-items {
  margin: 0 auto;
}

.about-html .team-section-33 .swiper-slide {
  height: auto !important;
}

/* Fix section title on mobile */
@media (max-width: 767px) {
  .section-title {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .section-title h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .section-title h2 br {
    display: none;
  }
  
  .sub-title {
    margin-bottom: 10px;
    text-align: center;
  }
}

/* Fix CTA sections on mobile */
@media (max-width: 767px) {
  .cta-wrapper {
    padding: 40px 20px;
    text-align: center;
  }
  
  .cta-wrapper h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }
  
  .cta-wrapper h2 br {
    display: none;
  }
  
  .cta-wrapper .cta-img {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .cta-wrapper .cta-img img {
    max-width: 200px;
  }
  
  .rokect-shape {
    display: none;
  }
}

/* Improved About Section Mobile Styling */
@media (max-width: 991px) {
  .about-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
    padding: calc(var(--spacing-unit) * 6) 0;
  }
  
  .about-wrapper {
    margin-top: calc(var(--spacing-unit) * 3);
  }
  
  .about-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    margin-bottom: calc(var(--spacing-unit) * 3);
  }
  
  .about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .circle-progress-bar-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: calc(var(--spacing-unit) * 5) 0;
  }
  
  .brand-wrapper .brand-title {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .about-wrapper .about-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .about-wrapper .about-content p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .single-circle-bar {
    width: 100%;
    max-width: none;
  }
  
  .single-circle-bar .circle-bar {
    transform: scale(0.9);
    transform-origin: center;
  }
  
  .single-circle-bar .progress-content h4 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit) * 0.5);
  }
  
  .single-circle-bar .progress-content p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }
  
  .about-wrapper .main-button {
    margin-top: calc(var(--spacing-unit) * 3);
  }
}

/* Testimonials Section */
@media (max-width: 767px) {
  .testimonial-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .testimonial-box-items {
    padding: calc(var(--spacing-unit) * 2);
    position: relative;
  }
  
  .testimonial-box-items .testimonial-img {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .testimonial-box-items .content .client-info {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .testimonial-box-items .content p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
  }
}

/* Contact Section */
@media (max-width: 767px) {
  .contact-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .contact-wrapper .contact-form-area {
    padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
  }
  
  .contact-wrapper .contact-form-area h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .contact-info-items {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.5);
  }
  
  .contact-info-items .content h3 {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
  }
  
  .contact-info-items .content p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }
  
  .contact-info-items .icon {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* Footer Section */
@media (max-width: 767px) {
  .footer-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .footer-widgets-wrapper .single-footer-widget {
    margin-bottom: calc(var(--spacing-unit) * 3);
  }
  
  .footer-widgets-wrapper h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
  }
  
  .footer-widgets-wrapper p {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit));
  }
  
  .footer-widgets-wrapper .list-area ul li {
    margin-bottom: calc(var(--spacing-unit));
  }
  
  .footer-widgets-wrapper .list-area ul li a {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  
  .footer-widgets-wrapper .social-icon {
    display: flex;
    gap: calc(var(--spacing-unit));
  }
  
  .footer-widgets-wrapper .social-icon a {
    transform: scale(0.9);
  }
}

/* CTA Section */
@media (max-width: 767px) {
  .cta-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .cta-wrapper {
    padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  }
  
  .cta-wrapper h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
  }
  
  .cta-wrapper .cta-img {
    margin-bottom: calc(var(--spacing-unit) * 2);
    transform: scale(0.9);
    transform-origin: center;
  }
  
  .cta-wrapper .cta-img img {
    max-width: clamp(150px, 40vw, 200px);
  }
}

/* Fix all margins and paddings */
@media (max-width: 767px) {
  .mt-100 { margin-top: calc(var(--spacing-unit) * 10) !important; }
  .mt-80 { margin-top: calc(var(--spacing-unit) * 8) !important; }
  .mt-60 { margin-top: calc(var(--spacing-unit) * 6) !important; }
  
  .mb-100 { margin-bottom: calc(var(--spacing-unit) * 10) !important; }
  .mb-80 { margin-bottom: calc(var(--spacing-unit) * 8) !important; }
  .mb-60 { margin-bottom: calc(var(--spacing-unit) * 6) !important; }
  
  .pt-100 { padding-top: calc(var(--spacing-unit) * 10) !important; }
  .pt-80 { padding-top: calc(var(--spacing-unit) * 8) !important; }
  .pt-60 { padding-top: calc(var(--spacing-unit) * 6) !important; }
  
  .pb-100 { padding-bottom: calc(var(--spacing-unit) * 10) !important; }
  .pb-80 { padding-bottom: calc(var(--spacing-unit) * 8) !important; }
  .pb-60 { padding-bottom: calc(var(--spacing-unit) * 6) !important; }
}

/* Fix parallax images on mobile/tablet */
@media (max-width: 991px) {
  .parallax-image {
    display: none !important; /* Hide parallax images on mobile/tablet */
  }
  
  .about-wrapper .about-image,
  .team-wrapper .team-image {
    display: none !important; /* Ensure images are hidden */
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
  }
  
  /* Hide all decorative shapes and elements */
  .bg-shape,
  .grap-shape,
  .box-shape,
  .emoji-shape,
  .shape-image {
    display: none !important;
  }
  
  /* Adjust spacing for missing images */
  .about-wrapper .about-content,
  .team-wrapper .team-content {
    padding-top: calc(var(--spacing-unit) * 2);
  }
}

/* Pricing Section */
@media (max-width: 767px) {
  .pricing-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
    padding: calc(var(--spacing-unit) * 4) 0;
    overflow: hidden;
  }

  .pricing-content {
    margin-bottom: calc(var(--spacing-unit) * 3);
  }

  .pricing-content .section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
  }

  .pricing-tab-header {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 2) 0;
  }

  .pricing-tab-header .nav {
    gap: calc(var(--spacing-unit));
  }

  .pricing-tab-header .nav-link {
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 2);
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .pricing-box-items {
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2);
  }

  .pricing-box-items .pricing-header {
    padding: calc(var(--spacing-unit) * 1.5);
    gap: calc(var(--spacing-unit) * 1.5);
  }

  .pricing-box-items .pricing-header .content {
    padding-right: 70px;  /* Make room for the icon */
  }
  
  .pricing-box-items .pricing-header .content h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .pricing-box-items .pricing-header .content h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .pricing-box-items .pricing-header .icon {
    width: 60px;
    height: 60px;
    right: 5px;
    top: 5px;
  }

  .pricing-box-items .pricing-header .icon img {
    max-width: 100%;
    height: auto;
  }

  .pricing-box-items .price-list {
    padding: calc(var(--spacing-unit) * 1.5);
  }

  .pricing-box-items .price-list li {
    padding: calc(var(--spacing-unit)) 0;
    gap: calc(var(--spacing-unit));
  }

  .pricing-box-items .price-list li .price-1 {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.4;
  }

  .pricing-box-items .price-button {
    padding: calc(var(--spacing-unit) * 1.5);
  }
}

/* News Gallery Section */
@media (max-width: 767px) {
  .news-gallery-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .triple-slider-container {
    margin: calc(var(--spacing-unit) * 3) 0;
  }
  
  .slider-row {
    height: clamp(120px, 30vw, 150px);
    margin: calc(var(--spacing-unit) * 1.5) 0;
  }
  
  .gallery-image {
    height: 100%;
    object-fit: cover;
  }
}

/* Marquee Section */
@media (max-width: 767px) {
  .marquee-section {
    transform: scale(var(--scale-factor));
    transform-origin: top left;
  }

  .marquee-section-1 {
    padding: calc(var(--spacing-unit) * 2) 0;
  }
  
  .mycustom-marque {
    padding: calc(var(--spacing-unit)) 0;
  }
  
  .mycustom-marque .cmn-textslide {
    font-size: clamp(0.875rem, 2vw, 1rem);
    padding: 0 calc(var(--spacing-unit));
  }
  
  .mycustom-marque .cmn-textslide img {
    width: clamp(10px, 3vw, 12px);
    margin-right: calc(var(--spacing-unit) * 0.6);
  }
}

/* Fix touch devices and mobile scroll */
@media (hover: none) {
  .mouse-cursor {
    display: none !important;
  }
  
  a:hover, button:hover {
    transition: none !important;
  }
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    position: relative;
  }
  
  [data-scroll-section] {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    will-change: auto !important;
  }
  
  [data-scroll] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    will-change: auto !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* Force inline styles to be responsive */
@media (max-width: 767px) {
  [style*="width:"] {
    max-width: 100% !important;
    width: auto !important;
  }
  
  [style*="height:"] {
    height: auto !important;
  }
  
  [style*="white-space: nowrap"] {
    white-space: normal !important;
  }
}

/* Fix contact info items on mobile screens */
@media (max-width: 767px) {
  .contact-info-items {
    padding: 20px 15px;
  }
  
  .contact-info-items .content h3 {
    font-size: 16px;
    word-break: break-word;
    line-height: 1.4;
  }
  
  .contact-info-items .content p {
    font-size: 14px;
  }
  
  .contact-info-items .icon {
    margin-bottom: 15px;
  }

  /* Fix email wrapping in contact section */
  .contact-info.style2 .content h3 a[href^="mailto"] {
    font-size: 14px;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* Extra small screens contact info fix */
@media (max-width: 375px) {
  .contact-info-items .content h3 {
    font-size: 14px;
  }
  
  .contact-info-items .content p {
    font-size: 13px;
  }

  /* Smaller email text for very small screens */
  .contact-info.style2 .content h3 a[href^="mailto"] {
    font-size: 12px;
  }
}

/* Additional contact info wrapper fixes */
@media (max-width: 991px) {
  .contact-info-wrapper {
    padding: 20px;
  }

  .contact-info.style2 {
    margin-bottom: 15px;
  }

  .contact-info.style2 .content {
    max-width: 100%;
  }

  .contact-info.style2 .content h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
  }

  .contact-info.style2 .content h3 a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }
}

/* Fix testimonial cards on mobile screens */
@media (max-width: 767px) {
  .testimonial-card-items .client-info {
    position: relative;
    z-index: 2;
  }
  
  .testimonial-card-items .icon {
    transform: scale(0.7);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
  }
  
  .testimonial-card-items .client-content h5 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  
  .testimonial-card-items .client-content span {
    font-size: 14px;
  }
  
  .testimonial-card-items p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Fix for very small screens */
@media (max-width: 375px) {
  .testimonial-card-items .icon {
    transform: scale(0.6);
    top: 5px;
    right: 5px;
  }
  
  .testimonial-card-items .client-content h5 {
    font-size: 15px;
  }
  
  .testimonial-card-items .client-content span {
    font-size: 13px;
  }
}

/* Fix testimonial section background and images */
@media (max-width: 991px) {
  .testimonial-section {
    background-color: #f8f9fa !important;
  }
  
  .testimonial-image {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .testimonial-image img {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .testimonial-wrapper-2 .testimonial-image::before {
    opacity: 0.5;
  }
  
  .testimonial-wrapper-2 .testimonial-content {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .testimonial-image {
    padding: 15px !important;
  }
  
  .testimonial-image img {
    max-width: 90%;
  }
  
  .testimonial-wrapper-2 .testimonial-image .rocket-shape,
  .testimonial-wrapper-2 .testimonial-image .msg-shape {
    transform: scale(0.7);
  }
}