
.carousel{
    height: 100vh;
    margin-top: -82px;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-left: -8px;
}
   .carousel .list .item{
    position: absolute;
    inset: 0 0 0 0;   /* margin from all side */
  }
  .carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
  }

  .carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
  }
  .carousel .list .item .title,
  .carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
  }
  .carousel .list .item .topic{
    color: #f1683a;
  }
 
  .carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
  }
  /* thumbail */
  .thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
   /* height: var(--height-thumbnail);*/
    z-index: 100;
   /* overflow: hidden;*/
    display: flex;
    gap: 20px;
  }
  .thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
  }
  .thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }
  .thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  .thumbnail .item .content .title{
    font-weight: 500;
  }
  .thumbnail .item .content .description{
    font-weight: 300;
  }
  /* arrows */
  .arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    font-size: large;
    transition: .5s;
    z-index: 100;
  }
  .arrows button:hover{
    background-color: #fff;
    color: #000;
  } 
  
  /* animation */
  .carousel .list .item:nth-child(1){
    z-index: 1;
  } 
  
  /* animation text in first item */
  
  .carousel .list .item:nth-child(1) .author,
  .carousel .list .item:nth-child(1) .title,
  .carousel .list .item:nth-child(1) .topic,
  .carousel .list .item:nth-child(1) .des,
  .carousel .list .item:nth-child(1) .buttons{
    transform: translateY(50px);
    filter: blur(20px);
     opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards; 
  }
  
   
  
  @keyframes showContent{
    to{
         opacity: 1;
        filter: blur(0px);
        transform: translateY(0px);  
    }
  }
  .carousel .list .item:nth-child(1)  .title{
    animation-delay: 1.0s;
  }
  .carousel .list .item:nth-child(1)  .topic{
    animation-delay: 1.2s;
  }
  .carousel .list .item:nth-child(1)  .des{
    animation-delay: 1.4s;
  }
  .carousel .list .item:nth-child(1)  .buttons{
    animation-delay: 1.6s;
  } 
  /* create animation when next click */
  .carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
    animation: showImage .5s linear 1 forwards;
  }
  @keyframes showImage{
    to{
        width: 100%;
        height: 100%;
        bottom: 0;
        left: 0;
        border-radius: 0;
    }
  }
  
  .carousel.next .thumbnail .item:nth-last-child(1){
    width: 0;
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
  }/*
  */
  @keyframes showThumbnail{
    to{
        width: 150px;
        /* opacity: 0; */
    }
  }
  .carousel.next .thumbnail{
    transform: translateX(150px);
    animation: transformThumbnail .5s linear 1 forwards;
  }
  
  @keyframes transformThumbnail{
    to{
        transform: translateX(0);
    }
  } 
  
  
  
  
  /* prev click */
  
  .carousel.prev .list .item:nth-child(2){
    z-index: 2;
  }
  
  .carousel.prev .list .item:nth-child(2) img{
    position: absolute;
    bottom: 0;
    left: 0;
    animation: outImage 0.5s linear 1 forwards;
  }
  @keyframes outImage{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
  }
  
  .carousel.prev .thumbnail .item:nth-child(1){
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
  }/*
  */
  .carousel.prev .list .item:nth-child(2).author,
  .carousel.prev .list .item:nth-child(2).title,
  .carousel.prev .list .item:nth-child(2).topic,
  .carousel.prev .list .item:nth-child(2).des,
  .carousel.prev .list .item:nth-child(2).buttons{
    animation: contentOut 1.5s linear 1 forwards;
  }
   
  
  @keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
  }
  .carousel.next .arrows button,
  .carousel.prev .arrows button{
    pointer-events: none;
  }
  
  /* running time */
  
   .time{
    position: absolute;
    z-index: 100;
    width: 0%;
    height: 5px;
    background-color: #f1683a;
    left: 0;
    top: 0;
  }
  
  .carousel.next .time,
  .carousel.prev .time{
    width: 100%;
    animation: runningTime 2s linear 1 forwards;
  }
  @keyframes runningTime{
    to{width: 0}
  } 
  
  @media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
  }


/* 
  about us */

  .about-us {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #fff;
    flex-wrap: wrap;
}

.about-text {
    max-width: 50%;
    flex: 1 1 300px;
    margin-bottom: 20px;
}

.about-image {
   
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    animation: slideInRight 1s ease-in-out;
    box-shadow: 0 0 20px black;
}

.about-text h1 {
  text-align: left;
  color: #000;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-in-out;
}

.about-text p {
  color: black;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-in-out;
}

.explore-button {
    padding: 10px 20px;
    font-size: 1em;
    border: 2px solid #000;
    background: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    animation: fadeIn 2s ease-in-out;
}

.explore-button:hover {
    background-color: #000;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-us {
        flex-direction: column;
        padding: 30px;
    }

    .about-text, .about-image {
        max-width: 100%;
        text-align: center;
    }

    .about-text h1 {
        font-size: 2em;
    }

    .about-text p {
        font-size: 1.1em;
    }

    .explore-button {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .about-text h1 {
        font-size: 1.8em;
    }

    .about-text p {
        font-size: 1em;
    }

    .explore-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* products */
   .yt{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .tt{
         background-color: #444442;
        overflow: hidden;
    }
    
    .ferrari-container {
      position: relative;
      left: 50%;
      transform: translateX(-50%);
      width: 1000px;
      height: 600px;
      background: #f5f5f5;
      box-shadow: 0 30px 50px #dbdbdb;
  }
  
    .ferrari-container .tesla-slide .bmw-item{
        width: 200px;
        height: 300px;
        position: absolute;
        top: 25%;
       
        border-radius: 20px;
        box-shadow: 0 30px 50px #505050;
        background-position: 00% 00%;
        background-size: cover;
        display: inline-block;
        transition: 0.5s;
    }
    
    .tesla-slide .bmw-item:nth-child(1),
    .tesla-slide .bmw-item:nth-child(2){
        top: 0;
        left: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100%;
        height: 100%;
    }
    
    .tesla-slide .bmw-item:nth-child(3){
        left: 50%;
    }
    .tesla-slide .bmw-item:nth-child(4){
        left: calc(50% + 220px);
    }
    .tesla-slide .bmw-item:nth-child(5){
        left: calc(50% + 440px);
    }
    
    
    
    .bmw-item .audi-content{
        position: absolute;
        top: 50%;
        left: 100px;
        width: 300px;
        text-align: left;
        color: #eee;
        transform: translate(0, -50%);
        font-family: system-ui;
        display: none;
    }
    
    .tesla-slide .bmw-item:nth-child(2) .audi-content{
        display: block;
    }
    
    .audi-content .mercedes-name{
        font-size: 40px;
        text-transform: uppercase;
        font-weight: bold;
        opacity: 0;
        animation: animate 1s ease-in-out 1 forwards;
    }
    
    .audi-content .porsche-des{
        margin-top: 10px;
        margin-bottom: 20px;
        opacity: 0;
        animation: animate 1s ease-in-out 0.3s 1 forwards;
    }
    
    .audi-content button{
        padding: 10px 20px;
        border: none;
        cursor: pointer;
        opacity: 0;
        animation: animate 1s ease-in-out 0.6s 1 forwards;
    }
    
    @keyframes animate {
        from{
            opacity: 0;
            transform: translate(0, 100px);
            filter: blur(33px);
        }
    
        to{
            opacity: 1;
            transform: translate(0);
            filter: blur(0);
        }
    }
    
    .mercedes-button{
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 20px;
    }
    
    .mercedes-button button{
        width: 40px;
        height: 35px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        margin: 0 5px;
        border: 1px solid #000;
        transition: 0.3s;
    }
    
    .mercedes-button button:hover{
        background: #ababab;
        color: #fff;
    }
/* testimonial */
.TESTIMONIAL_SECTION {
  font-family: 'Poppins', sans-serif, 'arial';
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
}

.TESTIMONIAL_HEADING {
  font-size: 40px;
  color: #333;
  margin-bottom: 10px;
}

.TESTIMONIAL_SUBHEADING {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
}

/* Slider */
.SLIDER_WRAP {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 30px 0;
}

.SLIDER {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.SLIDER_ITEM {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  display: flex;
  justify-content: flex-start;
  align-items: center; /* Aligns vertically */
  opacity: 0;
  position: absolute;
  transition: all 0.8s ease-in-out;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.1);
  z-index: 0;
}

.SLIDER_ITEM.ACTIVE {
  opacity: 1;
  z-index: 1;
  transform: translateY(0); /* Ensure the active item is visible */
  display: flex;
  justify-content: center; /* Centering the active item */
  align-items: center;
}

.CARD_IMAGE {
  max-width: 60px;
  max-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 4px 9px rgba(241, 241, 244, 0.72);
  background-color: #ffffff;
}

img {
  width: 53px;
  height: 53px;
  object-fit: cover;
}

.CARD_CONTENT {
  width: 100%;
  max-width: 374px;
  margin-left: 26px;
}

.CARD_CONTENT_TITLE {
  color: #4a4545;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.18px;
  line-height: 24px;
  margin: 0;
}

.CARD_CONTENT_DESCRIPTION {
  color: #696d74;
  font-size: 15px;
  font-weight: 300;
  line-height: 24px;
  margin: 10px 0 0 0;
}

.CARD_CONTENT_CITY {
  font-size: 12px;
  margin: 10px 0 0 0;
  font-weight: 500;
  text-transform: uppercase;
  color: #696d74;
}

/* Responsive Design */
@media (max-width: 768px) {
  .SLIDER {
    width: 90%;
  }

  .SLIDER_ITEM {
    padding: 20px;
    flex-direction: column; /* Stack items vertically */
    justify-content: center;
    align-items: center; /* Center on small screens */
  }

  .SLIDER_ITEM.ACTIVE {
    justify-content: center;
    align-items: center;
    transform: translateY(0);
  }

  .CARD_IMAGE {
    margin-bottom: 15px;
  }

  .CARD_CONTENT {
    margin-left: 0;
    text-align: center;
  }

  .TESTIMONIAL_HEADING {
    font-size: 28px;
  }

  .TESTIMONIAL_SUBHEADING {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .SLIDER_ITEM {
    padding: 20px 5px 10px 5px; /* top right bottom left */
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .SLIDER_ITEM.ACTIVE {
    justify-content: center;
    align-items: center;
  }

  .CARD_IMAGE {
    margin-bottom: 15px;
  }

  .CARD_CONTENT {
    margin-left: 0;
    text-align: center;
  }

  .TESTIMONIAL_HEADING {
    font-size: 24px;
  }

  .TESTIMONIAL_SUBHEADING {
    font-size: 16px;
  }

  .CARD_CONTENT_DESCRIPTION {
    font-size: 14px;
  }

  .CARD_CONTENT_TITLE {
    font-size: 14px;
  }
}


/* contact */
.power-grid {margin-top: 250px;
  background-color: #444442;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 80vh;
}

.transformer {
  max-width: 100%;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #444442; /* Ensure background color matches the parent */
  border-radius: 8px; /* Optional: Add some border-radius for visual appeal */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.transformer h1{
  color: white;
  font-size: 50px;
}

.transformer h4{
  margin-top: -20px;
  color: #c9c9c9;
}

h1 {
  font-family: 'Poppins', sans-serif, 'arial';
  font-weight: 600;
  font-size: 36px;
  color: rgb(26, 22, 22);
  text-align: center;
}

h4 {
  font-family: 'Roboto', sans-serif, 'arial';
  font-weight: 400;
  font-size: 16px;
  color: #9b9b9b;
  text-align: center;
  margin-bottom: 20px;
}

.conductor {
  width: 100%;
  margin: 0.5rem 0;
  position: relative;
  border-radius: 4px;
}

.conductor.wide {
  width: 100%;
}

.conductor label {
  color: #999;
  padding: 0.9rem 20px 0.8rem 20px;
  position: absolute;
  top: 8px;
  left: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

input,
textarea {
  padding: 20px;
  border: 0;
  width: 90%;
  font-size: 0.9rem;
  background-color: #2d2d2d;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  background-color: #3a3a3a;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

textarea {
  min-height: 10em;
}

.input-circuit {
  max-width: 500px;
  width: 100%;
  margin: 10px auto 20px auto;
}

.submit-switch {
  padding: 15px 15px 15px 0px; /* top right bottom left */
  border-radius: 4px;
  display: inline-block;
  color: white;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  /* box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.06), 0 2px 10px 0 rgba(0, 0, 0, 0.07); */
  transition: all 300ms ease;
  width: 33%;
  margin-left: -5px;
}

.submit-switch:hover {
  transform: translateY(1px);
  background-color: #ffffff;
  color: black;
}

/* Hover effect for input fields */
.conductor input:hover,
.conductor textarea:hover {
  background-color: #383838;
}

@media (max-width: 768px) {
  .input-circuit {
    width: 100%;
  }

  .submit-switch {
    width: 100%;
  }
}

.py {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
}

footer {
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  padding: 20px;
  width: 100%;
  bottom: 0;
  flex-wrap: wrap; /* Ensure items wrap on smaller screens */
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
  text-align: center;
  width: 30%; /* Ensure sections are evenly spaced */
}

.footer-section i {
  color: rgb(0, 0, 0);
  font-size: 24px;
  margin-bottom: 10px;
}

.footer2 {
  background-color: #7D756F;
  text-align: center;
  padding: 10px 0;
  color: #000;
  width: 100%;
  bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  footer {
    flex-direction: column; /* Stack sections vertically on smaller screens */
    text-align: center;
  }
  
  .footer-section {
    width: 100%; /* Ensure each section takes full width */
    margin-bottom: 15px; /* Add space between sections */
  }
}

@media (max-width: 480px) {
  .footer-section {
    margin-bottom: 20px; /* Increase spacing for extra small screens */
  }
}


/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
 position: relative;
  background: transparent;
  
  top: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #000000;
  padding: 8px 15px;
 
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  color: #000000;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content a {
  color: #000;
  padding: 10px 15px;
  display: block;
}

.dropdown-content a:hover {
  background: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Base styles for navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: transparent;
  top: 0;
  z-index: 1000;
  padding: 10px;
}

.logo img {
  width: 50px;
  margin-top: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  padding: 8px 15px;
}

.nav-links a:hover {
  background: rgba(206, 200, 200, 0.2);
  border-radius: 5px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  color: #fffefe;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-content li {
  margin: 0;
}

.dropdown-content a {
  color: #ffffff;
  padding: 10px 15px;
  display: block;
}

.dropdown-content a:hover {
  background: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #ffffff;
  margin: 4px 0;
  transition: 0.4s;
  color: #000;
}

/* Rotate icon when clicked */
.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(5px, -5px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    color: #000;
    width: 100%;
    height: 40vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none; /* Hidden by default */
  }

  .nav-links li {
    margin: 20px 0;
    color: #000;
  }

  .nav-links.show {
    display: flex;
    color: #000;
  }

  .hamburger {
    display: flex;
    color: black;
  }
  .nav-links a {
    text-decoration: none;
    color: #000;
    padding: 8px 15px;
  }

  .carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    font-size: 40px;
    text-shadow: 0 5px 10px #0004;
  }
  .carousel{
    height: 80vh;
    margin-top: -82px;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-left: -8px;
}
}
