/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Navbar styling */
.main {
    background-color: #2967C4;
    height: 4rem;
    width: 100vw;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    color: white;
  }
  
  .main-heading {
    font-size: 30px;
    margin: auto;
    color: white; 
    padding-left: 8rem;
  }
  .x{
    width: 1.5rem;
    margin-right: 10px;
    -webkit-filter: invert(100%)
    
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .main {
      height: 60px; /* Maintain a reduced height */
      padding: 0 1rem; /* Add padding for smaller screens */
      justify-content: center; /* Center content */
    }
    .main-heading {
      font-size: 24px; /* Reduce font size */
      padding-left: 0; /* Remove left padding for better alignment */
      text-align: center; /* Center the heading text */
      width: 100%; /* Make heading take full width */
    }
    .x{
      width: 1rem;
    }
  }

/* Hero Section */
.desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem 15%;
  text-align: center;
}

.main-head {
  font-size: 2.2rem;
  font-weight: bold;
  
  margin-top: 1.8rem;
}

.yellow {
  height: 4px;
  width: 100px;
  background-color: #ffca28;
  /* margin: 2% 0; */
  margin-bottom: 2rem;
}

.para {
  line-height: 1.5;
  margin-bottom: 2.7%;
  font-size: 0.9rem;
}

.contact-head{
  font-size: 1.8rem;
}

/* Service Categories */
.service-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    justify-content: space-between;
    align-items: center;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px; /* Adjust the size as needed */
    height: 150px; /* Make height equal to width for a square shape */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s, border-color 0.3s;
    box-sizing: border-box;
}

.service-card:hover {
    border-color: #0046be; /* Blue outline on hover */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); Optional shadow effect on hover */
}

.service-card i {
    font-size: 2em;
    color: #0056d2;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85em;
    text-align: center;
    color: #0056d2;
    padding-top: 0.5em;
}

/* Adjusting grid layout for different screen sizes */
@media (max-width: 1044px) {
    .service-categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 750px) {
    .service-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 540px) {
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 350px) {
    .service-categories {
        grid-template-columns: 1fr;
    }
}


/* Action Buttons */
.action-buttons {
    text-align: center;
    padding: 20px;
}

.reschedule-btn, .live-support-btn {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.reschedule-btn {
    background-color: #0056d2;
}

.live-support-btn {
    background-color: #28a745;
}

.reschedule-btn:hover, .live-support-btn:hover {
    opacity: 0.9;
}

.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 15%;
    text-align: center;
  }
  
  .main-head {
    font-size: 2.2rem;
    font-weight: bold;
    
    margin-top: 1.8rem;
  }
  
  .yellow {
    height: 4px;
    width: 100px;
    background-color: #ffca28;
    /* margin: 2% 0; */
  }
  
  .para {
    line-height: 1.5;
    margin-bottom: 2.7%;
    font-size: 0.9rem;
  }
  
  .contact-head{
    font-size: 1.8rem;
  }
  
  .appointment {
    background: rgb(2, 0, 36);
    background: linear-gradient(
      90deg,
      rgba(2, 0, 36, 1) 0%,
      rgba(9, 86, 121, 1) 0%,
      rgba(0, 176, 255, 1) 100%
    );
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 216px;
    width: 100%;
    color: white;
  }
  
  .repair {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
  }
  
  .img-rep {
    width: 420px;
  }
  
  .rep-head {
    font-size: 40px;
    font-weight: bold;
    color: #333;
  }
  
  .content-repair {
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
  }
  
  .button {
    border: 1px solid skyblue;
    color: #2186ae;
    background-color: white;
    width: 165px;
    height: 40px;
    border-radius: 99rem;
    border-width: 2px;
    margin-top: 1rem;
  }
  
  .expert{
    color: white;
    font-size: xx-large;
  }
  
  .rep-icon {
    font-weight: bold;
    line-height: 1.5;
  }
  
  .rep-des {
    line-height: 1.5;
    color: #555;
  }
  
  .cards {
    width: 80%;
  }
  
  .repair {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    flex-wrap: wrap;
  }
  
  .content-repair {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    text-align: center;
  }
  
  .img-rep {
    max-width: 100%;
  }

  /* Testimonial */

  .testimonial-container {
    background-color: #eaf3f7;
    width: 100vw;
    height: auto;
    max-width: 100%;
    text-align: center;
    margin: 50px auto;
    padding: 30px 15%;
    position: relative;
    overflow: hidden;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.icon img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.names {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    color: black;
}

.job-title {
    color: gray;
    margin-bottom: 10px;
}

.stars {
    font-size: 20px;
    color: #f4b400; /* Star color */
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Navigation button styling */
.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.nav-button:hover {
    background-color: #0056b3;
}

/* Fade transition effect */
.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
    h2 {
        font-size: 32px;
    }
    .testimonial-container {
        padding: 30px 10%;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 28px;
    }
    .testimonial-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        padding: 30px 5%;
    }
    h2 {
        font-size: 24px;
    }
    .testimonial-text {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

  .chat-div {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,86,121,1) 0%, rgba(0,176,255,1) 100%);
    height: 420px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
  }
  
  .cont-div {
    max-width: 700px;
    padding-right: 10%;
  }
  
  .head-chat {
    color: #FFCA28;
    font-size: 35px;
  }
  
  .para-chat {
    color: white;
    font-size: 16px;
  }
  
  .chat-btn {
    background-color: #FFCA28;
    height: 65px;
    width: 160px;
    color: rgb(2, 4, 33);
    font-size: 22px;
    cursor: pointer;
    border: none;
    border-radius: 5%;
  }
  .footer {
    background-color: #333;  /* Dark background color */
    padding: 20px 0;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;  /* Center the text inside the footer */
  }
  
  .main-footer {
    font-size: xx-large;
    display: flex;
    justify-content: center;  /* Center the footer links */
    gap: 30px;  /* Add some space between the links */
    padding: 10px 60px;
    border-bottom: 1px solid #444;  /* Divider line */
    padding-bottom: 50px;
    padding-top: 40px;
  }
  
  .name{
    color: white;
  }
  
  .footer-link {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
  }
  
  .footer-link:hover {
    text-decoration: non;
    color: #ccc;  /* Change color on hover */
  }
  
  .footer-copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #ccc;  /* Slightly lighter text for copyright */
  }
  
  .footer-brand {
    font-weight: bold;
    font-size: 10px;
    margin-top: 10px;
  }
  
  .footer > div:last-child {
    padding-top: 10px;
    /* border-top: 1px solid #555;  Separator between the links and the footer bottom */
    margin-top: 15px;
  }
  
  .name{
    font-size: 27px;
    margin-top: 40px;
  }
  
  .footer-para{
    color: rgb(207, 202, 202);
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .footer {
      flex-direction: column;  /* Ensure footer itself is a column */
    }
    .main-footer {
      flex-direction: column;  /* Change main-footer to column direction */
      font-size: 16px;  /* Adjust font size */
      padding: 20px;  /* Adjust padding for better spacing */
      gap: 10px;  /* Reduce gap between links */
    }
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .chat-div {
      flex-direction: column;
      height: auto;
      padding: 20px;
    }
    .head-chat {
      font-size: 28px;
    }
    .chat-btn {
      width: 100%;
    }
  }
    
  
  /* Media Queries */
  @media (max-width: 768px) {
    .desc {
      margin: 2rem 5%;
    }
    .repair {
      flex-direction: column;
      align-items: center;
    }
    .appointment {
      height: auto; /* Allow height to adjust */
      padding: 1rem; /* Add padding */
    }
  
    .repair {
      padding: 1rem; /* Reduce padding */
    }
  
    .button {
      width: 100%; /* Make button full width */
      height: 50px; /* Increase button height */
    }
  
    .rep-head {
      font-size: 28px; /* Further reduce font size */
    }
  
    .rep-des {
      font-size: 14px; /* Adjust description font size */
    }
    .expert{
      font-size: x-large;
    }
  }



/*Contact*/
.contact-container {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 15vh 0;
}

.get-in-touch {
  width: 40%;
}

.get-in-touch h2 {
  color: #333;
}

.get-in-touch p {
  margin: 10px 0;
}
.form-section {
  width: 50%;
}

.form-section h2 {
  color: #333;
}

/*Form*/
form {
  display: flex;
  flex-direction: column;
}

input, textarea {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

