body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
  }
  
  /* Dynamic Gradient Background */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10aa9d, #fad0c4, #4aa9ac, #a6c1ee, #f6d365);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -1;
  }
  
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  /* Header */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  header .logo {
    display: flex;
    align-items: center;
  }
  
  header .logo img {
    height: 50px;
    margin-right: 10px;
  }
  
  header .logo span {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Buttons */
  .btn {
    background: #ff5722;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
  }
  
  .btn:hover {
    background: #e64a19;
    transform: scale(1.05);
  }
  
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
  }
  
  .hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  /* Cars Section */
  .cars {
    padding: 50px 20px;
    text-align: center;
  }
  
  .car-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .car-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
  }
  
  .car-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .car-item img {
    width: 100%;
    border-radius: 10px;
  }
  
  /* Services Section */
  .services {
    padding: 50px 20px;
    text-align: center;
  }
  
  .service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Center items horizontally */
    max-width: 2000px; /* Maximum width of services grid */
    margin: 0 auto; /* Center the service list horizontally */
    padding: 20px; /* Inner padding */
  }
  
  .service-item {
    
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 250px; /* Flexible item sizing */
  max-width: 280px; /* Maximum card width */
  text-align: center; /* Center text content */
  padding: 30px 20px; /* Item inner spacing */
  background: rgba(255, 255, 255, 0.1);/* Optional: background for better visual separation */
  border-radius: 10px; /* Optional: rounded corners */
  box-shadow: 0 2px 15px rgba(0,0,0,0.1); /* Optional: subtle shadow */
  transform: translateZ(0);
  will-change: transform;
  }
  
  .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .service-item i {
    font-size: 2rem;
    color: #ff5722;
    margin-bottom: 10px;
  }
  
  /* Contact Section */
  .contact {
    padding: 50px 20px;
    text-align: center;
  }
  
  .contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact input, .contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Footer */
  footer {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
   
    padding: 20px;
  }
  
  footer .social-links {
    margin-bottom: 10px;
    text-align: center; 
  }
  
  footer .social-links a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
  }
  
  footer .social-links a:hover {
    color: #ff5722;
  }
  
  /* Gallery Section */
  .gallery {
    padding: 50px 20px;
    text-align: center;
  }
  
  .gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .gallery-images img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .gallery-images img:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Social Logos */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .social-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .social-logo-book {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .social-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }
  
  /* Dark Mode */
  .dark-mode {
    background: #121212;
    color: #ffffff;
  }
  
  .dark-mode header {
    background: rgba(0, 0, 0, 0.5);
  }
  
  .dark-mode .car-item, .dark-mode .service-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Updated dark mode for social logos: retain original colors */
  .dark-mode .social-logo {
    filter: none;
  }
  
  /* Loader */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      align-items: center;
    }
  
    .car-list, .service-list {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 1200px) {
    .gallery-images {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
  }

  /* Prices Table Styles */
#prices-table-container {
    margin-top: 20px;
    overflow-x: auto;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
  }
  
  table, th, td {
    border: 1px solid #ccc;
  }
  
  th, td {
    padding: 10px;
    text-align: left;
  }
  
  th {
    background-color: #ff5722;
    color: #fff;
  }
  /* Booking Page Styles */
.booking {
    padding: 50px 20px;
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .form-group input, .form-group select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* About Page Styles */
  .about {
    padding: 50px 20px;
    text-align: center;
    
  }
  
  .mission {
    margin-bottom: 40px;
    
  }
  
  .team-grid {
    display: flow-root;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
    background:fixed
  
  }
  
  .team-member {
    
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 30px;
  }
  #prva{
    
    background:rgb(174, 88, 232);
    background: linear-gradient(90deg,rgba(131,58,180,1)0%,
    rgba(29, 148, 253, 0.238)50%,
    rgb(69, 252, 225)100%);

    

  }
  #vtora{
  
    margin-top:50px;
    margin-bottom: 50px;
    background:rgb(174, 88, 232);
    background: linear-gradient(90deg,rgba(131,58,180,1)0%,
    rgba(29, 148, 253, 0.238)50%,
    rgb(69, 252, 225)100%);
    

  }
  #treta{
    
    background:rgb(174, 88, 232);
    background: linear-gradient(90deg,rgba(131,58,180,1)0%,
    rgba(29, 148, 253, 0.238)50%,
    rgb(69, 252, 225)100%);
    

  }
  .team-member img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin-bottom: 15px;
    border-image: fill;
  }
  
  /* FAQ Styles */
  .faq {
    padding: 50px 20px;
    text-align: center;
  }
  
  .faq-item {
    margin-bottom: 10px;
    width: 80%;
    max-width: 800px;
    margin: 10px auto;
  }
  
  .faq-question {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    font-weight: bold;
  }
  
  .faq-question i {
    float: right;
  }
  
  .faq-answer {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    display: none;
  }
  
  .faq-answer.active {
    display: block;
  }

  /* Key Features Section */
.features {
    padding: 50px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    width: 250px;
    transition: transform 0.3s ease;
  }
  
  .feature-item:hover {
    transform: translateY(-10px);
  }
  
  .feature-item i {
    font-size: 2.5rem;
    color: #ff5722;
    margin-bottom: 15px;
  }
  

  /* In styles.css */
.btn {
    /* Your existing button styles */
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer; /* Add this for button elements */
  }
  
  .about h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about h1 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
 }

 /* Container to center and adjust the map */
.map-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .map-container {
    width: 100%;
    max-width: 600px; /* Adjust the max width */
    position: relative;
    overflow: hidden;
    padding-top: 70.25%; /* Aspect ratio 16:9 */
  }
  
  /* Responsive iframe for the map */
  .map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    border: 0;
  }
  
  /* Mobile and tablet responsiveness */
  @media (max-width: 768px) {
    .map-container {
      max-width: 100%; /* Take full width on smaller screens */
    }
  }
  
  /* Book Now Button styling */
.book-now-btn {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.book-now-btn:hover {
  background-color: #45a049;
}

/* Call Menu styling */
.call-menu {
  display: none; /* Hidden by default */
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.call-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.call-menu li {
  margin-bottom: 10px;
}

.call-menu li:last-child {
  margin-bottom: 0;
}

/* Styling for call options */
.call-option {
  text-decoration: none;
  color: #4CAF50;
  font-size: 16px;
  transition: color 0.3s ease;
}

.call-option:hover {
  color: #45a049;
}

/* Services Section */
#cars {
  position: relative;
  padding: 4rem 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.service-item {
  position: relative;
  min-height: 300px;
  padding: 2rem;
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

/* Add pseudo-element for dark overlay */
.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(35 27 27 / 57%);
  z-index: 1;
}

.service-item > * {
  position: relative;
  z-index: 2;
}

/* Individual service items with different backgrounds */
.service-item:nth-child(1) {
  background-image: url('assets/backgrounds/service-bg1.jpg');
}

.service-item:nth-child(2) {
  background-image: url('assets/backgrounds/service-bg2.jpg');
}

.service-item:nth-child(3) {
  background-image: url('assets/backgrounds/service-bg3.jpg');
}

.service-item:nth-child(4) {
  background-image: url('assets/backgrounds/service-bg4.jpg');
}

.service-item:hover {
  transform: translateY(-5px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
}

.social-logo {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.social-logo:hover {
  transform: scale(1.1);
}

/* Mobile-first hover states */
@media (hover: hover) and (pointer: fine) {
  .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-item {
    min-height: 300px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .service-item {
    min-height: 280px;
    padding: 1rem;
  }
  
  .social-logo {
    width: 35px;
    height: 35px;
  }
}

/* High-density displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { 
  .service-item {
    background-image: url('assets/backgrounds/service-bg1.jpg');
  }
  
  /* Repeat for other service items with @2x versions */
}

.foot_center{
  
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
}

/* Services Section - Fully Responsive */
/* Base mobile-first approach */
.cars {
  --section-padding: clamp(2rem, 5vw, 4rem); /* Responsive padding */
  padding: var(--section-padding) 1rem;
  box-sizing: border-box;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: min(1400px, 90%);
  margin-inline: auto;
  justify-items: center;
}

.service-item {
  width: min(100%, 300px); /* Fluid width with max limit */
  padding: clamp(1.5rem, 3vw, 2.5rem);
  
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Mobile-first typography */
  font-size: clamp(0.9rem, 1.1vw, 1rem);
}

.service-item i {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--theme-color, #7c22eb); /* Fallback color */
}

.service-item h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 0.8em;
  color:white; 
}

.service-item p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  color: #555;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.social-links img {
  width: clamp(2rem, 4vw, 2.5rem);
  height: auto;
  transition: transform 0.2s ease;
}

/* Interaction States */
@media (hover: hover) {
  .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
  }
  
  .social-links img:hover {
    transform: scale(1.1);
  }
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
  .service-list {
    grid-template-columns: 1fr;
    max-width: 95%;
  }
  
  .service-item {
    width: 100%;
  }
  .service-item p {
    color: #555 !important;
  }
}

/* Tablet landscape adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility */
a:focus-visible {
  outline: 2px solid var(--theme-color, #2c3e50);
  outline-offset: 2px;
}

/* Touch device optimizations */
@media (pointer: coarse) {
  .social-links a {
    padding: 8px; /* Larger touch target */
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(50%);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Add performance optimizations for animations */
.animated-element {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Add these styles to your existing CSS */
.error {
  border-color: red !important;
}

.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 5px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

@media print {
  /* Hide unnecessary elements */
  nav, 
  .social-links,
  .video-background,
  .skip-links {
    display: none !important;
  }

  /* Optimize for printing */
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Ensure URLs are visible */
  a[href]::after {
    content: " (" attr(href) ")";
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    page-break-inside: avoid;
  }
}

/* Add smooth animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Add reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}