/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light gray text */
    text-align: center;
    padding: 20px;
}

/* Header Styles with Rounded Corners */
header {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 20px;
    position: relative;
    border-radius: 15px;
    margin-bottom: 30px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    margin: 0;
    text-align: center;
}

/* Hamburger Menu Button */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    transition: opacity 0.2s ease-in-out;
}

.menu-toggle:hover {
    opacity: 0.7; /* Slightly darkens */
}

/* Hamburger Menu Panel */
#hamburger-menu {
  position: fixed;
  top: 0;
  right: -250px; /* Start hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: #1f1f1f;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: right 0.4s ease-in-out;
}



#hamburger-menu a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

#hamburger-menu a:hover {
    background-color: #333;
}

/* "X" Close Button */
#hamburger-menu button {
    background-color: transparent;
    color: #e0e0e0;
    font-size: 30px;
    border: none;
    cursor: pointer;
    align-self: flex-start; /* Moves 'X' button to the top left */
    padding: 10px;
    transition: opacity 0.2s ease-in-out;
}

#hamburger-menu button:hover {
    opacity: 0.7; /* Slightly darkens */
}

/* Display the hamburger menu on click */
#hamburger-menu.open {
    right: 0;
}

#hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#hamburger-overlay.open {
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  pointer-events: auto;
}


#hamburger-menu {
  position: fixed;
  top: 0;
  right: -250px; /* Start hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: #1f1f1f;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: right 0.4s ease-in-out;
}



/* Services Section */
.services {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.card {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #e0e0e0;
    flex-grow: 1;
    text-align: center;
    cursor: pointer; /* Changes to pointer on hover */
}

.card:hover {
    transform: translateY(-10px);
    background-color: #444;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #f5f5f5;
}

p {
    font-size: 1.2rem;
    color: #bbbbbb;
}

/* Home Icon Styles */
#home-icon {
    position: absolute; /* Change from fixed to absolute */
    top: 15px; /* Keeps it positioned at the top of the header */
    left: 35px;
    transform: translateY(50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
#home-icon img {
    width: 43px; /* Adjusted size */
    height: 43px; /* Adjusted size */
    filter: invert(100%); /* White house icon */
    transition: transform 0.3s; /* Smooth scale effect */
    padding: 8px; /* Padding around the icon */
}

#home-icon img:hover {
    transform: scale(1.1); /* Slightly increases size on hover */
}

/* Background Image Section Above Cards */
.header-image {
    position: relative;
    background-image: url('../images/rx7-background.jpg'); /* Path to your car background image */
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

/* Overlay to darken the background image */
.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Places the overlay above the image but below the text */
}

/* Adjusted heading and description text for better readability */
.header-image h2 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin: 0; /* Removes default margin */
    z-index: 2; /* Places the heading above the overlay */
}

.header-image .description {
    color: #ffffff;
    font-size: 1.2rem;
    margin-top: 20px; /* Adds space between the heading and description */
    max-width: 80%; /* Prevents the description from being too wide */
    margin-left: auto; /* Centers the description */
    margin-right: auto; /* Centers the description */
    z-index: 2; /* Places the description above the overlay */
}

/* Footer and Contact Section */
footer {
    margin-top: 50px;
    color: #e0e0e0;
    padding: 20px 0;
    background-color: #1f1f1f;
    text-align: center;
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Ensure the form is on top */
.form-container {
    position: relative; /* Ensures it can be layered */
    z-index: 1000; /* High enough to be above other elements */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px; /* Adjust width */
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background: #222; /* Dark background to match site */
    border-radius: 10px; /* Rounded edges */
}

/* Scrollbar Thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: #555; /* Slightly lighter for contrast */
    border-radius: 10px; /* Rounded edges */
}

/* Scrollbar Thumb on Hover */
::-webkit-scrollbar-thumb:hover {
    background: #777; /* Slightly lighter for interaction */
}







/* Display the hamburger menu on smaller screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.card {
    position: relative; /* Ensures child elements like the arrow are positioned inside */
    overflow: hidden; /* Prevents any content from overflowing */
}

.card-back-arrow {
    position: absolute;
    top: 20px; /* Adjusted for better placement */
    left: 20px; /* Keeps it inside the card */
    font-size: 16px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.card-back-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* Footer Styles */
footer {
    background-color: #1f1f1f;
    color: #e0e0e0;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 1rem;
    color: #bbbbbb;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #f5f5f5;
}

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

.footer-links ul li {
    margin: 8px 0;
}

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #bbbbbb;
}

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #bbbbbb;
}

/* Social Icons */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social .social-icon {
    display: inline-block;
    margin: 5px;
    transition: transform 0.3s ease;
}

.footer-social .social-icon img {
    width: 25px;
    height: 25px;
}

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

/* Footer Bottom */
.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #bbbbbb;
}



.gallery {
    padding: 40px 20px;
    background-color: #121212;
}

.gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}
.car-gallery {
  margin-bottom: 40px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.main-image img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.thumbnail-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s;
}

.thumbnail-images img:hover {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}


.header-image {
    position: relative;
    background-image: url('../images/rx7-background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    overflow: hidden;
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-image h2,
.header-image .description,
.header-image .cta-button {
    z-index: 2;
    position: relative;
}

.cta-button {
    margin-top: 20px;
    background-color: #ffd000;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0b000;
}


body {
    margin: 0;
    padding: 0;
}

/* Burger Menu Top-Right */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    padding: 10px;
    color: white;
    z-index: 1002;
}

/* Full-width, top-aligned header image section */
.header-image {
    position: relative;
    background-image: url('../images/rx7-background.jpg');
    background-size: cover;
    background-position: top left;
    height: 80vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    overflow: hidden;
}


/* Dark overlay */
.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Ensure text and button are on top of the overlay */
.header-image h2,
.header-image .description,
.header-image .cta-button {
    z-index: 2;
    position: relative;
}

/* Call-to-action button styling */
.cta-button {
    margin-top: 20px;
    background-color: #ffd000;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0b000;
}

/* Burger Menu Inside Header Image */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 30px;
    padding: 10px;
    color: white;
    z-index: 2;
}

/* Cleaned-up Header Image Section */
.header-image {
    position: relative;
    background-image: url('../images/rx7-background.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    overflow: hidden;
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.header-image h2,
.header-image .description,
.header-image .cta-button {
    z-index: 2;
    position: relative;
}

/* Call-to-action button styling */
.cta-button {
    margin-top: 20px;
    background-color: #ffd000;
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e0b000;
}
.hero-logo {
    max-width: 400px;
    height: auto;
    z-index: 2;
}
.hero-logo {
    max-width: 700px;
    height: auto;
    z-index: 2;
    position: absolute;
}
.description{
    padding-top: 300px;
}

.gallery-slider {
    display: none;
}

.detail-header,
.detail-includes,
.pricing-section {
  text-align: center;
  margin: 40px 0;
  padding: 0 20px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
  font-size: 1.1rem;
}

.detail-list li {
  margin-bottom: 10px;
}

.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.price-card {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  width: 260px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #e0e0e0;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: scale(1.05);
}

.price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6600;
}

.note {
  font-size: 0.95rem;
  color: #aaa;
}

.disclaimer {
  font-size: 0.9rem;
  color: #888;
  margin-top: 10px;
}





/* Responsive adjustments for iPhones and iPads */
@media (max-width: 768px) {
    /* Adjust burger icon */
    .menu-toggle {
        font-size: 28px;
        top: 25px;
        right: 10px;
        position: absolute;
        z-index: 1002;
    }

    button:active {
  transform: scale(0.97);
  transition: transform 0.05s ease;
}


    /* Fix overlay and menu positioning */
    #hamburger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000;
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

#hamburger-overlay.open {
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  pointer-events: auto;
}


    #hamburger-menu {
  position: fixed;
  top: 0;
  right: -250px; /* Start hidden off-screen */
  width: 250px;
  height: 100%;
  background-color: #1f1f1f;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transition: right 0.4s ease-in-out;
}


#hamburger-menu.open {
    right: 0; /* Slides in smoothly */
}

    /* Responsive elements */
    .container, .content, .form-container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    img, video {
        max-width: 100%;
        height: auto;
    }

    input, textarea, button {
        width: 100%;
        font-size: 16px;
    }

    nav, footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Header section adjustments */
    .header-image {
        height: auto;
        padding: 60px 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-logo {
        max-width: 280px;
        height: auto;
        margin-bottom: -65px;
        position: static;
        z-index: 1;
    }

    .header-image .description {
        font-size: 1rem;
        padding: 0 10px;
        margin: 0 0 20px 0;
        z-index: 2;
    }

    .cta-button {
        margin-bottom: 20px;
    }

    .gallery-grid {
        display: none;
    }

    .gallery-slider {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 10px;
        scroll-snap-type: x mandatory;
    }

    .gallery-slider img {
        flex: 0 0 auto;
        max-width: 90%;
        height: auto;
        scroll-snap-align: start;
        border-radius: 10px;
    }

    #close-btn {
        display: none;
    }
    /* Hide the hamburger icon when menu is open */
#hamburger-overlay.open + .menu-toggle {
    display: none;
}
body.menu-open .menu-toggle {
    display: none;
}


}



