/* Add these base styles at the beginning of your CSS file */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
        font-family: "Lato", serif;
        font-weight: 400;
        font-style: normal;
      
}

html, body {
    width: 100%;
    overflow-x: hidden;  /* Prevent horizontal scroll */
    max-width: 100%;
  }
  

/* Update these existing container classes */
.container, 
.herocontainer, 
.electrocutioncontainer,
.features-container,
.content-container,
.slideshow-container,
.faqcontainer {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    overflow: hidden;
}

/* Update image containers to prevent overflow */
img {
    max-width: 100%;
    height: auto;
}
/* Media query adjustments */
@media screen and (max-width: 768px) {
    .container,
    .herocontainer,
    .electrocutioncontainer,
    .features-container,
    .content-container,
    .slideshow-container,
    .faqcontainer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* General Styles */
body {
    margin: 0;
    line-height: 1.6;
    color: #333;
    background: #9090916c;
    scroll-behavior: smooth;
    padding: 0;
}
.navbar {
    width: 100%;
    background-color: rgb(255, 255, 255);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
  }
  
  .navbar.scrolled {
    background-color: #5f0979;
  }
  
  .navbar .updatescontainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 25px;
  }
  
  .nav-logo {
    color: rgb(7, 3, 100);
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0;
  }
  
  .logo-image {
    width: 80px;
    height: 80px;
    margin-right: 25px;
    margin-left: 40px;
  }
  
  .nav-menu  {
    list-style: none;
    display: flex;
    /* background-color: #5f0979; */
    border-radius: 20px;
    gap: 20px;
    margin: 0;
    padding: 0;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
  }
  
  .nav-menu a {
    text-decoration: none;
    background-color: #2e029d;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 100px;
    font-size: 16px;
    transition: color 0.3s, transform 0.3s;
  } 
  
  .nav-menu li {
    display: inline;
  }
  
  .nav-menu a:hover {
    color: #00d4ff;
    transform: scale(1.1); 
  }
  
   .navbar .updatescontainer menu{
    justify-content: right;
   }
   /* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #2e029d;
    transition: all 0.3s ease;
  }
  
  .nav-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #2e029d;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .hamburger {
      display: block;
      z-index: 101;
    }
  
    .nav-menu {
      position: fixed;
      right: -100%;
      top: 0;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background: white;
      padding: 60px 20px;
      transition: 0.3s ease;
      z-index: 100;
      box-shadow: -2px 0 10px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .nav-menu.active {
      right: 0;
    }
  
    .nav-close {
      display: block;
    }
  
    .nav-menu li {
      margin: 15px 0;
      display: block;
      width: 100%;
      text-align: center;
    }
  
    .nav-menu a {
      display: block;
      width: 100%;
      padding: 15px 20px;
      margin: 8px 0;
    }

    /* Reset any existing horizontal layout styles */
    .nav-menu {
      padding-inline-start: 0;
      margin-block-start: 0;
      margin-block-end: 0;
      margin-inline-start: 0;
      margin-inline-end: 0;
    }
  
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
  
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }
}
/* Hero Section */
.hero-section {
    background-image: url("./media/earthing\ bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
    animation: fadeIn 3s ease-out forwards;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.hero-section .electrocutioncontainer {
    max-width: 800px;
    padding: 20px;
}

.hero-section h1 {
    font-size: 3rem;
    margin: 0 0 20px;
    text-transform: capitalize;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-section button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.hero-section button:hover {
    background-color: #58baeb;
    color: #fff;
    transform: scale(1.1);
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Electrocution Cards */
.section {
    padding: 25px 20px;
    text-align: center;
    background-color: #ffffff;
}

.section h3 {
    font-size: 3rem;
    text-align: center;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.features-container {
    background-color: #d6d3b4;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-container .feature:hover {
    transform: translateY(-10px);
}

.feature {
    width: calc(33.333% - 30px); /* Set width to one-third minus the gap */
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature h4 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    color: #555;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Reason Product Good */

.herocontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}
.hero {
    background: linear-gradient(135deg, #2c3e50, #eef0f1);
    min-height: 200px;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hero-text {
    align-items: center;
    height: 250px;
    flex: 1;
    font-size: 20px;
}

.hero-image {
    height: 00%;
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.services {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: -50px;
    padding: 0 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.service-description {
    font-size: 0.9rem;
    color: #666;
}
/* Why choose us */
.step-section {
    background: linear-gradient(#55BBEE, #135E79);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    font-size: 25px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.step-content {
    flex: 1;
    padding-left: 20px;
    min-width: 300px; /* Minimum width for readability */
}

.step-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    padding-right: 20px;
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 10px; /* Added for better aesthetics */
}

.step-image img:hover {
    transform: scale(1.05);
}

.features {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #55BBEE #135E79; /* Firefox */
}

/* Styling scrollbar for Webkit browsers */
.features::-webkit-scrollbar {
    height: 6px;
}

.features::-webkit-scrollbar-track {
    background: #135E79;
    border-radius: 3px;
}

.features::-webkit-scrollbar-thumb {
    background: #55BBEE;
    border-radius: 3px;
}

.featureyus {
    background-color: #ffffff;
    flex: 0 0 200px;
    min-width: 200px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featureyus:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.featureyus img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.featureyus:hover img {
    transform: scale(1.1);
}

.featureyus h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.featureyus p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Media Queries */
@media screen and (max-width: 1200px) {
    .step-section {
        padding: 30px 15px;
        font-size: 22px;
    }

    .step-header {
        gap: 15px;
    }
}

@media screen and (max-width: 992px) {
    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-image {
        margin-left: 0;
        justify-content: center;
        padding-right: 0;
        max-width: 100%;
    }

    .step-content {
        padding-left: 0;
        text-align: center;
    }

    .features {
        padding: 0 10px;
    }

    .featureyus {
        flex: 0 0 180px;
        min-width: 180px;
    }
}

@media screen and (max-width: 768px) {
    .step-section {
        font-size: 20px;
        padding: 25px 10px;
    }

    .step-content {
        min-width: 100%;
    }

    .featureyus {
        flex: 0 0 160px;
        min-width: 160px;
        padding: 12px;
    }

    .featureyus img {
        width: 60px;
        height: 60px;
    }

    .featureyus h3 {
        font-size: 14px;
    }

    .featureyus p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .step-section {
        font-size: 18px;
        padding: 20px 8px;
    }

    .step-header {
        margin-bottom: 20px;
    }

    .featureyus {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 10px;
    }

    .featureyus img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
}

/* Touch Device Optimization */
@media (hover: none) {
    .featureyus:hover {
        transform: none;
    }

    .step-image img:hover {
        transform: none;
    }
}

/* Achievement Section Responsive Styles */
.achieve {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.achieve::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.success-heading {
    text-align: center;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.success-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #1f93e0 0%, rgba(18, 231, 114, 0.5) 100%);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.our-section {
    margin-bottom: 4rem;
    perspective: 1000px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1),
                0 1px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.content-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.15),
                0 1px 12px rgba(79, 172, 254, 0.1);
}

.text-container, .image-container {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.text {
    padding: 2rem;
    position: relative;
}

.text h2 {
    font-size: 1.8rem;
    color: #2d3436;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text p {
    color: #636e72;
    line-height: 1.8;
    font-size: 1.1rem;
}

.text p:first-of-type {
    font-weight: 600;
    color: #4facfe;
    letter-spacing: 0.5px;
}

.achievement-desc {
    margin-top: 1rem;
    font-style: italic;
    color: #636e72;
    padding-left: 1rem;
    border-left: 3px solid #4facfe;
}

.image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.image-container img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(79, 172, 254, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation delays remain the same */
.our-section:nth-child(2) .content-container > * {
    animation-delay: 0.2s;
}

.our-section:nth-child(3) .content-container > * {
    animation-delay: 0.4s;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .content-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .image-container {
        order: -1; /* This moves the image container to the top */
        width: 100%;
    }

    .text-container {
        width: 100%;
        text-align: center; /* Center align text on mobile */
    }

    .image-container img {
        width: 100%;
        max-height: 250px;
        object-fit: cover;
    }

    .text h2 {
        font-size: 1.6rem;
        margin-top: 1rem;
    }

    .text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .achievement-desc {
        padding-left: 0.5rem;
        margin-top: 0.8rem;
    }
}

/* Additional mobile optimization */
@media screen and (max-width: 480px) {
    .achieve {
        padding: 2rem 1rem;
    }

    .content-container {
        padding: 1rem;
        gap: 1rem;
    }

    .image-container img {
        max-height: 200px;
    }

    .text h2 {
        font-size: 1.4rem;
    }

    .text p {
        font-size: 0.9rem;
    }
}

/* Review Section */
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 10px 0px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    position: relative;
    perspective: 1000px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.carousel-slide {
    position: absolute;
    width: 300px;
    transition: all 0.5s ease;
    opacity: 0.3;
    transform: scale(0.8);
}

.carousel-slide.prev {
    transform: translateX(-100%) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}

.carousel-slide.next {
    transform: translateX(100%) scale(0.8);
    z-index: 1;
    opacity: 0.7;
}

.carousel-slide.active {
    transform: translateX(0) scale(1.1);
    z-index: 2;
    opacity: 1;
}

.review-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.5s ease;
    height: 100%;
}

.active .review-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.review-image {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: block;
    transition: all 0.5s ease;
}

.active .review-image {
    transform: scale(1.05);
}

.review-content {
    margin-top: 15px;
    transition: all 0.5s ease;
}

.review-name {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.review-text {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #999;
}

.dot.active {
    background: #333;
    transform: scale(1.2);
}

.play-pause-button {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-pause-button:hover {
    background: #fff;
    transform: scale(1.1);
}

/* In The Media */
.inthemedia {
    text-align: center;
    padding: 2rem 0;
    position: relative;
    margin: 3rem auto;
    max-width: 600px;
    background: #f8f8f8;
}

.inthemedia h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Animated border effect */
.inthemedia::before,
.inthemedia::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    animation: borderAnimation 4s infinite;
}

.inthemedia::after {
    animation-delay: -2s;
}

@keyframes borderAnimation {
    0% {
        border-color: #4a90e2;
        transform: scale(1);
        opacity: 1;
    }
    25% {
        border-color: #e24a84;
    }
    50% {
        border-color: #4ae24a;
        transform: scale(1.05);
        opacity: 0.7;
    }
    75% {
        border-color: #e2c44a;
    }
    100% {
        border-color: #4a90e2;
        transform: scale(1);
        opacity: 1;
    }
}

/* Glowing effect */
.inthemedia::before {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
    border-radius: 4px;
}

/* Hover effect */
.inthemedia:hover::before {
    animation-play-state: paused;
}

.inthemedia:hover h1 {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .inthemedia {
        margin: 2rem auto;
        max-width: 90%;
    }

    .inthemedia h1 {
        font-size: 2rem;
        padding: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .inthemedia {
        margin: 1.5rem auto;
    }

    .inthemedia h1 {
        font-size: 1.5rem;
        padding: 1rem;
    }

    @keyframes borderAnimation {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
    }
}

/* Add smooth font rendering */
.inthemedia h1 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s ease;
}

/* Optional: Add text shadow for better contrast */
.inthemedia h1 {
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    width: 100%;
    overflow: hidden;
    background: #f8f8f8;
    padding: 2rem 0;
    position: relative;
}

.continuous-slideshow {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 10); /* Adjust based on number of slides */
}

.slide {
    min-width: 200px;
    padding: 0 15px;
}

.slide img {
    width: 100%;
    height: 100px; /* Adjust height as needed */
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.slide img:hover {
    transform: scale(1.1);
}

.hover-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.hover-preview img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 5)); /* Half of total width */
    }
}

/* Pause animation on hover */
.continuous-slideshow:hover {
    animation-play-state: paused;
}

/* FAQ */

.faqcontainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center; 
}

.content-area {
    background-color: #eaeaea;
    height: 150px;
    margin: 20px auto;
    width: 80%;
    border-radius: 10px;
}

.faqcontainer h1 {
    font-size: 45px;
    color: #1a1a1a;
    margin-bottom: 40px;
}

.faq-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.faq-card {
    background-color: #ffffff;
    width: 300px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.faq-card img {
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.faq-card h3 {
    font-size: 18px;
    color: #1a1a1a;
    margin-top: 15px;
    margin-bottom: 10px;
}

.faq-card p {
    font-size: 14px;
    color: #555;
}

.cta-buttonfaq {
    margin-top: 30px;
    display: inline-block;
    padding: 8px;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 2rem;
    transition: transform 0.3s ease;
    background-color: #ffd700;
}

.cta-buttonfaq a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffd700;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

.cta-buttonfaq a:hover {
    background-color: #ffcc00;
}

/* Whatsapp */
.wpft {
    position: fixed;
    bottom: 40px;
    right: 25px;
}
/* Media Queries */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .services {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 1200px) {
    .testimonials-section {
        max-width: 95%;
    }

    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-column {
        flex-basis: calc(50% - 30px); /* Two columns on medium screens */
    }

    .our-success {
        max-width: 90%;
        padding: 15px;
    }
}

@media screen and (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-image {
        width: 100px;
        height: 100px;
    }
}

@media screen and (max-width: 768px) {
    .testimonials-title {
        font-size: 20px;
    }

    .testimonial-name {
        font-size: 16px;
    }

    .testimonial-details {
        font-size: 13px;
    }

    .nav-button {
        width: 35px;
        height: 35px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .our-success {
        max-width: 95%;
        padding: 10px;
    }
    
    .our-success img {
        border-radius: 8px; /* Slightly smaller radius for mobile */
    }
}

@media screen and (max-width: 576px) {
    .testimonial-image {
        width: 80px;
        height: 80px;
    }

    .testimonials-title {
        font-size: 18px;
    }

    .testimonial-name {
        font-size: 14px;
        margin: 8px 0 3px;
    }

    .testimonial-details {
        font-size: 12px;
    }

    .nav-button {
        width: 30px;
        height: 30px;
        opacity: 1;
    }

    .dots-container {
        gap: 6px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .video-title {
        font-size: 14px;
        padding: 10px;
    }
}

/* Touch device optimization */
@media (hover: none) {
    .nav-button {
        opacity: 1;
    }
}

/* Better handling of very small screens */
@media screen and (max-width: 360px) {
    .testimonial-image {
        width: 70px;
        height: 70px;
    }

    .testimonials-section {
        padding: 15px 10px;
    }
}

/* Prevent content shift during loading */
.testimonials-wrapper {
    min-height: 200px;
}

/* Improve performance */
.testimonials-wrapper {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .text-section {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .form-section {
        max-width: 100%;
    }
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    height: 75vh;
    max-height: 800px;
}

.popup-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-popup {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

.close-popup:hover {
    color: #666;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2e029d;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Update mobile menu styles */
@media screen and (max-width: 768px) {
    .navbar .container {
        padding: 10px 15px;
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .nav-logo {
        font-size: 18px;
        margin-right: 0; /* Remove margin that was pushing menu down */
    }

    .logo-image {
        /* width: 35px;
        height: 35px; */
        margin-left: 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
        margin-left: auto; /* Align to the right */
        padding: 10px;
    }
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        padding-top: 60px; /* Reduced from 80px to align better */
        transition: 0.3s ease;
        z-index: 100;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .menu:not(.active) {
        display: none;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }
}
#adaptive {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#adaptive h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

#adaptive h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #00b894, #00cec9);
}

.brightnesscontainer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.left-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-containeradap {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f1f2f6;
}

.image-containeradap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the image covers the container without distortion */
    display: block; /* Removes any unwanted spacing */
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Optional hover effect */
.image-containeradap:hover img {
    transform: scale(1.05);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .brightnesscontainer {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .left-side {
        width: 100%;
        max-width: 600px; /* Limit maximum width on mobile */
    }

    .textborder {
        width: 100%;
        max-width: 600px; /* Match the width of the image container */
    }

    .image-containeradap {
        height: 250px; /* Slightly smaller height on mobile */
    }

    .text-container p {
        text-align: left;
        font-size: 1rem;
    }

    #adaptive h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    #adaptive {
        padding: 2rem 1rem;
    }

    .brightnesscontainer {
        padding: 1rem;
        gap: 1.5rem;
    }

    .image-containeradap {
        height: 200px; /* Even smaller height for very small screens */
    }

    .slider-container {
        padding: 0.75rem;
    }

    .text-container p {
        font-size: 0.9rem;
    }
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.iconbrit {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

#brightnessSlider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #00b894, #00cec9);
    border-radius: 3px;
    outline: none;
}

#brightnessSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

#brightnessSlider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.textborder {
    flex: 1;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #00b894;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.textborder:hover {
    transform: translateY(-5px);
}

.text-container {
    color: #2d3436;
}

.text-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.text-container p br {
    content: "";
    display: block;
    margin: 0.8rem 0;
}

/* Animation for the section */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#adaptive {
    animation: fadeInUp 0.6s ease-out;
}

/* Add media query for responsive layout */
@media screen and (max-width: 1024px) {
    .feature {
        width: calc(50% - 30px); /* Two columns on medium screens */
    }
}

@media screen and (max-width: 768px) {
    .feature {
        width: 100%; /* Single column on mobile */
    }
}

@media screen and (max-width: 480px) {
    .our-success {
        padding: 5px;
    }
    
    .our-success img {
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for mobile */
    }
}
.text-container {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 25px;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(52, 152, 219, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

.text-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #2980b9;
}

.text-container p {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .text-container {
        padding: 20px;
        margin: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .text-container {
        padding: 15px;
        margin: 0 10px;
    }
}

/* Media Queries for our-success image */
@media screen and (max-width: 1024px) {
    .our-success img {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .our-success img {
        max-width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .our-success {
        padding: 10px;
    }
    .our-success img {
        max-width: 100%;
    }
}
/*******************FOOTER*********************/

:root {
    --footer-bg: #f8f9fa;
    --footer-text: #9f9fa5;
    --footer-link: #4a5568;
    --footer-link-hover: #0066ff;
    --footer-border: #e2e8f0;
    --bottom-bar-bg: #ffffff;
}

.footer {
    /*******************gear icon*********************/
    background-image: url("./media/Gear\ icon.jpg");
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footerContent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
  }
  
.brandSection {
    flex: 1;
    max-width: 400px;
}

.logoContainer {
    margin-bottom: 1.5rem;
}

.logo {
    height: 9rem;
    width: auto;
    object-fit: contain;
}

.brandDescription {
    color: var(--footer-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.linksContainer {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.linkSection {
    display: flex;
    flex-direction: column;
}

.linkTitle {
    color: var(--footer-text);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.linkTitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 30px;
    height: 2px;
    background-color: var(--footer-link-hover);
}

.linkList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.linkList li {
    margin-bottom: 0.8rem;
}

.privacy {
    padding-left: 5rem;
    color:#bfcfe2;
}
.socialLinks {
    list-style: none;
    padding: 0;
    margin: 0;
  }

.socialLink {
    color:#8e9297;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  .socialLink:hover {
    color: var(--footer-link-hover);
    transform: translateX(5px);
  }
  
  .icon {
    font-family: 'Material Symbols Outlined';
    font-size: 1.2rem;
  }

.link {
    color:#8e9297;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--footer-link-hover);
    transition: width 0.3s ease;
}

.link:hover {
    color: var(--footer-link-hover);
}

.link:hover::after {
    width: 100%;
}

.bottomBar {
    margin-top: 4rem;
    padding: 1.5rem 0;
    justify-items: center;
}

.copyright {
    color:#8e9297;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

@media screen and (max-width: 1024px) {
    .footerContent {
        flex-direction: column;
        gap: 3rem;
    }

    .brandSection {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .footerContent {
        padding: 0 1.5rem;
    }

    .linksContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .linksContainer {
        grid-template-columns: 1fr;
    }
}


