/* Global Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: url(images/background/Golden\ Esoteric\ and\ Mystical\ Woman\ Face\ Background\,\ Free\ Gaming\ Desktop\ Bac_20240117_111517_0000.png);
}

/* Control Scroll Behavior */
html {
  scroll-behavior: auto;
}

/* About Us Section Styling */
.about-us {
  position: relative;
  width: 800px;
  height: 500px;
}

.about-us .clip {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition-delay: 0.5s;
  transition: 5s ease-in-out;
}

.about-us .clip.clip1 {
  background: url(images/0e102ac193e321895f161887a6179ae9.jpg);
  clip-path: polygon(0 0, 55% 0, 20% 100%, 0% 100%);
}

.about-us .clip.clip2 {
  background: url(images/36dd5881a386470bcc43101cb746de2c.jpg);
  clip-path: polygon(55% 0, 100% 0, 45% 100%, 20% 100%);
}

.about-us .clip.clip3 {
  background: url(images/80abfbc1c1cddab7be5dd8ce09105522.jpg);
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 45% 100%);
}

.about-us:hover .clip {
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}

.about-us .clip:hover {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.content {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 70%;
  padding: 20px;
  opacity: 0;
  transition: 3.5s ease-in-out;
}

.about-us .clip:hover .content {
  bottom: 0;
  opacity: 1;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
  p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  h2 {
    font-size: 2rem;
  }
  p {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  h2 {
    font-size: 1.75rem;
  }
  p {
    font-size: 0.8rem;
  }
}

/* Form Styling */
select {
  padding: 10px;
  background-color: white;
  color: #ffc107;
  font-size: 16px;
  border-radius: 5px;
  font-weight: bold;
}

/* Contact Option Styling */
.contact-option {
  padding: 15px;
  border: 1px solid #ffc107;
  border-radius: 5px;
}

/* QR Code Section */
.qr-code {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.qr-code img {
  width: 100px;
}

@media (max-width: 400px) {
  .qr-code img {
    font-size: 1.75rem;
  }
}

/* Appointment and Contact Form */
.appointment-form,
.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-book label,
.contact-form label {
  margin-right: 10px;
}

.contact-book .form-group,
.contact-form .form-group {
  display: flex;
  align-items: center;
}

.contact-book input,
.contact-book select,
.contact-form input,
.contact-form select,
.contact-form textarea {
  flex: 1;
  margin-left: 10px;
  border: 1px solid #ffc107;
  border-radius: 5px;
  color: #ffc107;
  background-color: transparent;
}

/* Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .contact-book .form-group,
  .contact-form .form-group {
    flex-direction: column;
  }

  .contact-book input,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
  }

  button {
    width: 100%;
  }
}

/* Medium devices (tablets, 576px to 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .contact-book .form-group,
  .contact-form .form-group {
    flex-direction: row;
    align-items: center;
  }

  .contact-book input,
  .contact-book select,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: calc(100% - 120px);
  }

  button {
    width: auto;
  }
}

/* Large devices (laptops/desktops, 768px and above) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .contact-book .form-group,
  .contact-form .form-group {
    flex-direction: row;
    align-items: center;
  }

  .contact-book input,
  .contact-book select,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: calc(100% - 150px);
  }

  button {
    width: auto;
  }
}

/* Extra large devices (large desktops, 992px and above) */
@media (min-width: 992px) {
  .contact-book .form-group,
  .contact-form .form-group {
    flex-direction: row;
    align-items: center;
  }

  .contact-book input,
  .contact-book select,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: calc(100% - 200px);
  }

  button {
    width: auto;
  }
}

/* Vehicle Recommender Card */
.vehicle-recommender-card {
  padding: 15px;
  border: 1px solid #ffc107;
  border-radius: 5px;
}

/* Circle Elements */
.circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Flip Card Animation */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
}

/* Rotate Element Styling */
.rotate {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .rotate {
    margin-top: 70px;
  }
}

@media (min-width: 768px) {
  .rotate {
    margin-top: 70px;
  }
}

/* Back to Top Button */
#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 0;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 10%;
  transition: all 3.3s ease-in-out;
}

#backToTopBtn:hover {
  transform: scale(1.2);
}




/* For smaller screens */
@media (max-width: 768px) {
  #backToTopBtn {
   display: none !important;
 
  }
}

/* For very small screens (phones) */
@media (max-width: 480px) {
  #backToTopBtn {
    bottom: 15px;
    right: 10px;
    padding: 10px;
    font-size: 16px;
    z-index: 1000;
  }
}




/* Footer Section */
.footer-advanced {
  background-color: #212529;
  position: relative;
}

.footer-advanced h4 {
  border-bottom: 2px solid #ffc107;
  padding-bottom: 10px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 1s ease forwards;
}

.footer-advanced ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
  position: relative;
}

/* Underline effect on hover */

.footer-advanced ul li a::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: #ffc107;
  position: absolute;
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

/* Expand underline on hover */

.footer-advanced ul li a:hover::after {
  width: 100%;
}

.social-icons i {
  color: #fff;
  transition: color 0.3s, transform 0.3s;
}

.social-icons i:hover {
  color: #ffc107;
  transform: scale(1.2);
}

/* Footer Bottom */
.footer-bottom {
  background-color: #1b1e21;
  border-top: 1px solid #ffc107;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 1.2s ease forwards;
  animation-delay: 0.5s;
}

/* Slide In Animation */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 568px) {
  .mail {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .footer-advanced h4,
  .footer-bottom {
    transform: none;
    animation: none;
    opacity: 1;
  }
}