:root {
    --primary-yellow: #FFD700;
    --dark-yellow: #FFC107;
    --black: #000000;
    --white: #ffffff;
    --wealthy-white: #f8f9fa;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
}

/* Responsive base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--white);
    color: var(--black);
    width: 100%;
    overflow-x: hidden;
}

/* Common header styles for all pages */
header.Home-header {
    background-color: var(--wealthy-white);
    background-position: center;
    background-size: cover;
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    margin-left: 0;
    display: block;
    position: absolute;
    left: 20px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wealthy-white);
    padding: 10px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary-yellow);
    z-index: 1;
}

nav:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--dark-yellow);
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    gap: 20px;
    justify-content: center;
}

li {
    display: inline;
    margin: 0;
}

a {
    text-decoration: none;
    padding: 8px 15px;
    text-align: center;
    color: var(--black);
    font-weight: bold;
    font-size: 16px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    position: relative;
    background: transparent;
}

a:hover {
    background-color: var(--primary-yellow);
    color: var(--black);
    transform: translateY(-2px);
}

a:active {
    background-color: var(--dark-yellow);
    transform: translateY(1px);
}

a.active {
    background: var(--primary-yellow);
    color: var(--black);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Add a subtle pulse animation to the active link */
@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2),
                    0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.3),
                    0 0 15px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2),
                    0 0 10px rgba(255, 255, 255, 0.3);
    }
}

a.active {
    animation: pulse 2s infinite;
}

/*style for Home page*/
.Home-page .title-section {
    color: white;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url("images/bugati.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    padding: 250px 20px 30px;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    justify-content: flex-end;
    align-items: flex-end;
    width: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.Home-page .title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, 
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    z-index: 1;
}

.Home-page .title-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.Home-page .title-section h2 {
    position: relative;
    z-index: 2;
    letter-spacing: 4px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
}

.Home-page .title-section .motto {
    position: relative;
    z-index: 2;
    font-size: clamp(1rem, 3vw, 1.2em);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 5px 0;
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.1);
}

.Home-page .title-section .tagline {
    position: relative;
    z-index: 2;
    font-size: clamp(0.8rem, 2.5vw, 0.9em);
    font-weight: 500;
    letter-spacing: 3px;
    color: #ffffff;
    margin-top: 10px;
    opacity: 0.9;
}

/* home page introduction section*/
.Home-page .I-section {
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.Home-page .P-section {
    color: white;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: bolder;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
}

/*STYLE FOR SEARCH CARS PAGE*/
.Cars-page header{
    background-color: #ffffff;
    background-position: center;
    background-size: cover;
    display: flex;
    position: fixed;
    text-align: right;
    justify-content: center;
    align-items: center;
    border-width: 20px;
    width: 100%;
    height: 80px;
    top: 0px;
    left: 0px;
    padding: 0 20px;
    z-index: 1000;
    z-index: 1000;
 
}

/* Page-specific styles */
.Home-page,
.Cars-page,
.Services-page,
.Contact-page {
    padding-top: 80px;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Cars page specific styles */
.cars-content {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 80px;
    padding: 2rem;
    margin-top: 80px;
}

.cars-header {
    text-align: center;
    margin-bottom: 2rem;
}

.cars-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Search and Filter Section */
.search-filter-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--dark-gray);
}

.filter-group select,
.search-box input {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background: var(--secondary-color);
}

.reset-filters {
    padding: 0.75rem 1.5rem;
    background: var(--light-gray);
    color: var(--dark-gray);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.reset-filters:hover {
    background: var(--gray);
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.car-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.car-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
}

.car-info {
    padding: 1.5rem;
}

.car-title {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.spec i {
    color: var(--primary-color);
}

.car-details {
    margin-bottom: 1.5rem;
}

.car-details p {
    margin: 0.5rem 0;
    color: var(--dark-gray);
}

.view-details {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.view-details:hover {
    background: var(--secondary-color);
}


/* Responsive Design */
@media (max-width: 768px) {
    .cars-content {
        padding: 1rem;
    }

    .search-container,
    .filter-container {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }
}

/* Cars Page Main Content */
.Cars-page {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--wealthy-white);
}

/* Cars Header */
.cars-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

.cars-header h1 {
  color: var(--black);
  font-size: 2.5em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search & Filter Section */
.search-filter-section {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  align-items: flex-end;
  justify-content: center;
}

.vehicle-type,
.stock-location,
.search-box {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}

.vehicle-type label,
.stock-location label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #222;
}

.vehicle-type select,
.stock-location select {
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s;
}

.vehicle-type select:focus,
.stock-location select:focus {
  border-color: var(--primary-yellow, #ffd600);
  outline: none;
}

.search-box {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  min-width: 220px;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s;
}

.search-box input[type="text"]:focus {
  border-color: var(--primary-yellow, #ffd600);
  outline: none;
}

.search-button {
  background: var(--primary-yellow, #ffd600);
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  background: #ffe066;
}

/* Filter Container Styles */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  margin-bottom: 0.5rem;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #222;
}

.filter-group input,
.filter-group select {
  padding: 0.5rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--primary-yellow, #ffd600);
  outline: none;
}

.reset-filters {
  background: var(--primary-yellow, #ffd600);
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.4rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1.2rem;
  transition: background 0.2s;
  align-self: flex-end;
}

.reset-filters:hover {
  background: #ffe066;
}

/* Responsive for mobile */
@media (max-width: 1100px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  .filter-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }
  .filter-group {
    min-width: 100%;
  }
  .reset-filters {
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .search-filter-section {
    padding: 1rem 0.3rem;
  }
  .filter-container {
    padding: 0.5rem;
  }
}

.read-more-btn:hover {
    color: var(--dark-yellow);
}

.modal-controls button:hover {
    background: var(--primary-yellow);
    color: var(--black);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-yellow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-thumb {
        width: 50px;
        height: 35px;
    }

    .modal-controls button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .close-modal {
        top: -30px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .gallery-thumb {
        width: 40px;
        height: 30px;
    }

    .modal-controls button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
  .filter-section {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .filter-group {
    min-width: 100%;
  }
  .reset-filters {
    width: 100%;
    margin-top: 1rem;
  }
  .car-card {
    width: 98vw;
    min-width: unset;
  }
  .car-main-img {
    height: 120px;
  }
}

@media (max-width: 600px) {
  .cars-header h1 {
    font-size: 1.5em;
  }
  .car-card {
    padding: 0.7rem 0.3rem 1rem 0.3rem;
  }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    nav {
        padding: 8px 20px;
    }

    a {
        padding: 6px 12px;
        font-size: 14px;
    }

    .Home-page .title-section {
        min-height: 450px;
        padding-top: 200px;
    }
}

@media screen and (max-width: 768px) {
    header.Home-header {
        height: 70px;
    }

    .logo {
        width: 60px;
        height: 60px;
        left: 10px;
    }

    nav {
        padding: 6px 15px;
    }

    ul {
        gap: 10px;
    }

    a {
        padding: 5px 10px;
        font-size: 13px;
    }

    .Home-page .title-section {
        min-height: 400px;
        padding-top: 180px;
    }

    .cars-grid {
        right: 5px;
        left: 5px;
        bottom: 5px;
        width: auto;
        align-items: flex-end;
    }
}

@media screen and (max-width: 480px) {
    header.Home-header {
        height: 60px;
    }

    .logo {
        width: 50px;
        height: 50px;
        left: 5px;
    }

    nav {
        padding: 5px 10px;
        width: 90%;
    }

    ul {
        gap: 5px;
    }

    a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .Home-page .title-section {
        min-height: 350px;
        padding-top: 160px;
    }

    .cars-grid {
        right: 5px;
        left: 5px;
        bottom: 5px;
        width: auto;
        align-items: flex-end;
    }
}

/* Small-screen tweaks: ensure car cards shrink-to-fit on phones */
@media (max-width: 480px) {
    .cars-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .car-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .car-image {
        height: auto; /* let image height shrink */
    }

    .car-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .car-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .car-price {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }
}
/* Mobile Navigation */
@media screen and (max-width: 768px) {
    nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        background: var(--wealthy-white);
        border-radius: 30px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    ul {
        flex-wrap: nowrap;
    }

    a {
        white-space: nowrap;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure background images are properly scaled */
.Home-page .title-section,
.Home-page .I-section {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background-color: var(--wealthy-white);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Services Preview Section */
.services-preview {
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("images/tire.jpg");
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.services-grid {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 40px auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

/* Home: make services cards stack nicely on phones */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
  .service-card {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .service-title { font-size: 1.4rem; }
  .service-description { font-size: 1rem; }
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.service-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.service-description {
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.service-link {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-yellow);
    color: var(--black);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.service-link:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
}

/* Call to Action Section */
.cta-section {
    padding: 100px 20px;
    background: var(--wealthy-white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-yellow);
    color: var(--black);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: var(--dark-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for new sections */
@media screen and (max-width: 768px) {
    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .feature-card,
    .service-card {
        padding: 20px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .features-section,
    .services-preview,
    .cta-section {
        padding: 60px 15px;
    }

    .feature-title,
    .service-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

/* Services Page Styles */
.Services-page {
    padding-top: 80px;
}

.Services-header {
    background-color: var(--wealthy-white);
    background-position: center;
    background-size: cover;
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.services-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/bmw.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 150px 20px;
    color: var(--white);
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.services-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Car Exploration Section */
.car-exploration {
  width: 100%;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  padding: 2.5rem 0 2rem 0;
  display: flex;
  justify-content: center;
}

.exploration-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.exploration-content h2 {
  color: var(--black, #000000);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.explore-button {
  background: var(--primary-yellow, #ffd600);
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.explore-button:hover {
  background: #ffe066;
  color: #000;
}

/* Responsive */
@media (max-width: 600px) {
  .exploration-content {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .exploration-content h2 {
    font-size: 1.2rem;
  }
}

.main-services {
    padding: 80px 20px;
    background-color: var(--wealthy-white);
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.service-item h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

.process-section {
    padding: 100px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("images/introduction.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: var(--white);
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.process-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.process-section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 60px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 20px;
}

.step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.step p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for process section */
@media screen and (max-width: 768px) {
    .process-section {
        padding: 60px 20px;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .step {
        padding: 30px 20px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step h3 {
        font-size: 1.3rem;
    }

    .step p {
        font-size: 1rem;
    }
}

/* Responsive styles for Services page */
@media screen and (max-width: 768px) {
    .service-container,
    .process-steps {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .services-hero {
        padding: 60px 20px;
    }

    .main-services,
    .process-section {
        padding: 40px 20px;
    }
}

@media screen and (max-width: 480px) {
    .service-item,
    .step {
        padding: 20px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-item h2,
    .step h3 {
        font-size: 1.2rem;
    }
}

/* Contact Page Styles */
.Contact-page {
    padding-top: 80px;
}

.Contact-header {
    background-color: var(--wealthy-white);
    background-position: center;
    background-size: cover;
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("images/tire.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding: 150px 20px;
    color: var(--white);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.contact-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

/* Contact Info Section */
.contact-info-section {
    padding: 80px 20px;
    background-color: var(--wealthy-white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--black);
}

.contact-card p {
    color: #666;
    line-height: 1.6;
    margin: 5px 0;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--black);
    position: relative;
    z-index: 1;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

.contact-form {
    display: grid;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-yellow);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(45deg, var(--primary-yellow), var(--dark-yellow));
    color: var(--black);
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.submit-button:hover::before {
    left: 100%;
}

@media screen and (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }

    .form-container h2 {
        font-size: 2rem;
    }

    .submit-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .contact-form-section {
        padding: 60px 15px;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
}

/* Map Section */
.map-section {
    padding: 80px 20px;
    background-color: var(--wealthy-white);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.map-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--black);
}

.map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Social Section */
.social-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-container h2 {
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.social-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

.social-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-top: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-image {
    flex: 0 0 45%;
    position: relative;
}

.steering-wheel-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.steering-wheel-img:hover {
    transform: scale(1.02);
}

.social-info {
    flex: 0 0 45%;
    text-align: left;
}

.social-info h3 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.social-info p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Contact: prevent social links from overflowing and allow wrapping */
.social-link {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

@media (max-width: 768px) {
  .social-content { padding: 1.25rem; }
  .social-links { width: 100%; }
  .social-link { font-size: 1rem; padding: 0.75rem 1rem; }
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    color: var(--black);
}

.social-link span {
    color: var(--black);
}

.social-link:hover {
    background: var(--primary-yellow);
    transform: translateX(10px);
    color: var(--black);
}

/* Responsive adjustments for social section */
@media (max-width: 992px) {
    .social-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    .social-image,
    .social-info {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .social-section {
        padding: 4rem 1rem;
    }
    .social-links {
        max-width: 400px;
    }
    .social-container h2 {
        font-size: 2rem;
    }
    .social-info h3 {
        font-size: 1.5rem;
    }
    .social-link {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Responsive styles for Contact page */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 30px 20px;
    }
}

/* Responsive styles for Contact page */
@media screen and (max-width: 480px) {
    .contact-card {
        padding: 30px 20px;
    }
    .contact-icon {
        font-size: 2rem;
    }
    .form-container h2,
    .map-container h2,
    .social-container h2 {
        font-size: 1.8rem;
    }
    .submit-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Fullscreen image modal for car gallery */
#car-image-modal {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#car-image-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
}

#car-image-modal .modal-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#car-image-modal .modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

#car-image-modal .modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 3;
}

#car-image-modal .modal-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#car-image-modal .modal-arrow:hover {
    background: var(--primary-yellow);
    color: var(--black);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .car-specs {
        grid-template-columns: 1fr;
    }

    .gallery-thumb {
        width: 50px;
        height: 35px;
    }

    #car-image-modal .modal-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .car-main-img {
        height: 180px;
    }

    .gallery-thumb {
        width: 40px;
        height: 30px;
    }

    .car-title {
        font-size: 1.1rem;
    }

    .car-price {
        font-size: 1.25rem;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 50px;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url("images/automobile-646095_1920.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section {
    padding: 20px;
}

.footer-section h3 {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-yellow);
}

.footer-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-motto {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-description {
    color: var(--wealthy-white);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wealthy-white);
}

.contact-info i {
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: var(--wealthy-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.quick-links a:hover {
    color: var(--black);
    transform: translateX(5px);
}

.quick-links a.active {
    color: var(--black);
    background-color: var(--primary-yellow);
    padding: 5px 15px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.427);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--wealthy-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--primary-yellow);
    background-color: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--wealthy-white);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        margin: 0 auto 15px;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

.car-info {
    padding: 20px;
    background-color: var(--white);
    border-radius: 0 0 10px 10px;
}

.car-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--black);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.spec i {
    color: var(--primary-yellow);
}

