html {
  font-size: 14px;
}

@media (min-width: 820px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.dropdown-menu {
    background-color: #000000; 
}

.dropdown-item {
    color: #fff; 
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #333;
        color: #FFFF00;
    }

/* Reset & Fonts */
body, p, ul {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1, h2, h3 {
    color: #FFFF00;
}

body {
    background-color: #000000;
    color: #fff;
}

/*Home Page*/
.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-image: url('/Pictures/homepics.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5vw;
    padding-right: 5vw;
}

.content-container {
    max-width: 600px;
    text-align: left;
    color: white;
}

.center-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/*Nav Bar*/
.logo-img,
.logo-img2 {
    height: 80px;
    width: auto;
    padding: 0;
    margin-left: 20px; 
}

    .logo-img2.flipped {
        transform: rotate(90deg);
        padding: 0;
        margin-right: 20px;
        margin-left: -20px;
    }

.navbar-brand {
    color: #FFFF00 !important;
    font-weight: bold;
    margin-left: 40px;
}

.navbar-nav .nav-link {
    color: white;
    margin-right: 10px;
}
.navbar-custom {
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.btn-outline-primary {
    border-color: #FFFF00;
    color: #FFFF00;
}

    .btn-outline-primary:hover {
        background-color: #FFFF00;
        color: #1c1c1c;
    }

h1, h2, h3 {
    color: #FFFF00;
}

.custom-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    cursor: pointer;
}

.modal-img {
    max-width: 60%;
    max-height: 70vh;
}

@media (max-width: 820px) {
    .hero-section {
        height: 70vh;
        background-size: cover;
        background-position: top center;
    }

    .hero-overlay {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .content-container {
        margin-top: 100px;
        text-align: left;
        max-width: 100%;
    }

    .center-btn {
        display: block;
        width: fit-content;
        margin-left: 40px;
    }

    .logo-img,
    .logo-img2 {
        height: 40px;
        margin: 0;
    }

    .logo-img2.flipped {
        transform: rotate(90deg);
        margin-left: -10px;
    }

    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }
        .navbar-brand h3 {
            font-size: 0.8rem;
        }

    .container-fluid {
        padding-left: 0 !important;
    }

    .nav-link {
        color: #fff !important;
    }
    .navbar {
        color: #fff !important;
        z-index: 9999;
        position: relative;
    }

    .collapse.navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 5px;
    }

    .dropdown-menu {
        background-color: #111; 
        color: #fff;
    }

    .dropdown-item {
        color: #fff;
    }

        .dropdown-item:hover {
            background-color: #333;
        }

        .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    h1.display-4 {
        font-size: 1.6rem;
    }

    p.lead {
        font-size: 1rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-overlay .content-container {
    animation: slideInUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0; 
}

/* Latest Transformations */
.latestTransformations {
    background-color: #000000;
    padding: 50px 20px;
}

    .latestTransformations h2 {
        margin-bottom: 30px;
        color: #FFFF00;
    }

.video-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.video-scroll::-webkit-scrollbar {
  height: 8px;
}
.video-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.video-item {
    box-shadow: 0 10px 20px rgba(255, 255, 0, 0.4);
    border-radius: 12px;
    width: 400px;
    aspect-ratio: 16/9;  
    position: relative;
}

.video-item:hover {
    transform: scale(1.06);
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* fill area, crop if needed */
  border-radius: 8px;     /* optional styling */
}

/* Services Section */
.services {
    background-color: #000000;
    padding: 50px 20px;
    text-align: center;
}

    .services h2 {
        margin-bottom: 30px;
        color: #FFFF00;
    }

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; 
    max-width: 1000px;
    margin: auto;
}

.service-box-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.service-box-wrapper.visible {
    animation: slideFadeIn 0.8s ease-out forwards;
}

.service-box-wrapper:nth-child(1).visible { animation-delay: 0.2s; }
.service-box-wrapper:nth-child(2).visible { animation-delay: 0.4s; }
.service-box-wrapper:nth-child(3).visible { animation-delay: 0.6s; }
.service-box-wrapper:nth-child(4).visible { animation-delay: 0.8s; }

.service-box {
    background-color: #252525;
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 0, 0.4);
    will-change: transform;
}

.service-box:hover {
    transform: scale(1.06);
}

    .service-box img {
        width: 100%;
        height: 200px; 
        object-fit: cover;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .service-box p {
        margin-bottom: 15px; 
    }

@keyframes slideFadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 820px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px; 
    }

    .service-box {
        padding: 20px; 
    }

        .service-box img {
            height: 150px; 
        }

        .service-box h3 {
            font-size: 1.2rem; 
        }

        .service-box p {
            font-size: 0.95rem; 
        }

    .btn.btn-lg {
        font-size: 1rem;
        padding: 10px 16px;
    }
}

/* Social Media */
.social {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #000000;
}

.social-box {
    background-color: #252525;
    padding: 20px;
    border-radius: 25px;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #FFFF00;
    opacity: 0;
    transform: translateY(30px);
}

.social-heading {
    color: #FFFF00;
    margin-top: 5px;
    font-family: 'Segoe UI', sans-serif;
}

.fb-icon {
    margin-top: 10px;
    width: 40px;
    height: 40px;
}

.social-box.visible {
    animation: slideFadeIn 0.8s ease-out forwards;
}

@media (max-width: 820px) {
    .social {
        padding: 20px; 
    }
}

/* Footer */
footer.footer {
    background-color: #000000;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #fff;
    border-top: 1px solid #dee2e6;
}

    footer.footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
    }

    footer.footer a {
        color: #FFFF00;
        text-decoration: none;
        margin: 0 10px;
        transition: color 0.3s ease;
    }

        footer.footer a:hover {
            color: #0a58ca;
            text-decoration: underline;
        }

        .page-wrapper {
    min-height: 100vh;
}

        @media (max-width: 820px) {
    footer.footer .container {
        flex-direction: column;
        justify-content: center;
    }
}

 /*About Us*/
.about-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.about-page {
    animation: slideInUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.years-exp {
    color: #FFFF00;
    margin-top: 50px;
}

.affd-price {
    color: #FFFF00;
    margin-top: 20px;
}

.qual-wp {
    color: #FFFF00;
    margin-top: 20px;
}

.fast-tat {
    color: #FFFF00;
    margin-top: 20px;
}

/*Sandblasting*/
.sandblast-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.sandblast-heading2 {
    color: #FFFF00;
    margin-top: 50px;
    margin-bottom: 30px;
}

.sandblast-gallery {
    background-color: #000000;
    padding: 50px 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1500px;
    margin: auto;
}

.gallery-card {
    background-color: #252525;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
}

.image-pair {
    display: flex;
    gap: 10px;
    justify-content: center;
}

    .image-pair img {
        width: 100%;
        max-width: 48%;
        height: 250px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #333;
    }

.gallery-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    box-shadow: 0 10px 20px rgba(255, 255, 0, 0.4); 
}

    .gallery-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-card:hover {
    transform: scale(1.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/*Trailer Rebuilds*/
.trailerRb-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.trailerRb-heading2 {
    color: #FFFF00;
    margin-top: 50px;
    margin-bottom: 30px;
}

.trailerRb-gallery {
    background-color: #000000;
    padding: 50px 20px;
    text-align: center;
}

/*Caravan Repairs*/
.caravanRp-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.caravanRp-heading2 {
    color: #FFFF00;
    margin-top: 50px;
    margin-bottom: 30px;
}

.caravanRp-gallery {
    background-color: #000000;
    padding: 50px 20px;
    text-align: center;
}

@media (max-width: 820px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .image-pair {
        flex-direction: column;
    }

        .image-pair img {
            max-width: 100%;
        }
}

/*Spare Parts*/
.sparepts-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.parts-card {
    background-color: #252525;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
}

.sparepts-heading {
    color: #FFFF00;
    margin-top: 30px;
}

.card-title {
    color: #FFFF00;
}

/* Contact */
.contact-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.contact {
    margin-top: 50px;
    margin-bottom: 40px;
    background-color: #000000;
    padding: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-box-wrapper {
    opacity: 0;
    transform: translateY(30px);
}

.contact-box-wrapper.visible {
    animation: slideFadeIn 0.8s ease-out forwards;
}

.contact-box-wrapper:nth-child(1).visible { animation-delay: 0.2s; }
.contact-box-wrapper:nth-child(2).visible { animation-delay: 0.4s; }
.contact-box-wrapper:nth-child(3).visible { animation-delay: 0.6s; }
.contact-box-wrapper:nth-child(4).visible { animation-delay: 0.8s; }

.contact-box {
    background-color: #252525;
    min-height: 210px;
    padding: 20px;
    border-radius: 40px;
    box-shadow: 0 10px 20px rgba(255, 255, 0, 0.4);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

    .contact-box:hover {
    transform: scale(1.06);
    
}

.contact-heading {
    color: #FFFF00;
    margin-top: 5px;
    font-family: 'Segoe UI', sans-serif;
}

.fb-icon2 {
    margin-top: 10px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.contact-button {
    background-color: #252525;
    border-color: #FFFF00;
    color: #FFFF00;
    max-width: 320px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

    .contact-button:hover {
        background-color: #FFFF00;
        color: #1c1c1c;
    }
.contact-box p {
    margin-bottom: 35px;
}

.map-image-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 1300px;
}

.map-container {
    width: 600px;
    height: 450px;
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

.shop-image {
    width: 600px;
    max-width: 90%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slideFadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.map-container,
.shop-image {
    opacity: 0;
    transform: translateY(30px);
}

    .map-container.visible,
    .shop-image.visible {
        animation: slideFadeIn 0.8s ease-out forwards;
    }

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
        padding: 0 10px;
    }

    .contact-box {
        min-height: unset;
    }

    .contact-button {
        width: 100%;
    }
}

/*Privacy*/
.privacy-section {
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}
