/* Project type button group */
.fabr-type-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}
.fabr-type-btn-group input[type="radio"] {
    display: none;
}
.fabr-type-btn-group label {
    background: #f3f3f3;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s, border 0.18s, color 0.18s;
    font-weight: 500;
    user-select: none;
}
.fabr-type-btn-group input[type="radio"]:checked + label {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}
.fabr-type-btn-group label:hover {
    border-color: #ff6600;
}

/* Secondary button for location */
.fabr-btn-secondary {
    background: #eee;
    color: #ff6600;
    border: 1.5px solid #ff6600;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fabr-btn-secondary:hover {
    background: #ff6600;
    color: #fff;
}
/* Quote page layout */
.fabr-quote-section {
    background: #f9f9f9;
}

.fabr-quote-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.fabr-quote-form-col {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
    padding: 2.5rem 2rem;
}

.fabr-quote-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
}

.fabr-quote-contact-box {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}

.fabr-quote-contact-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #ff6600;
}

.fabr-quote-contact-box p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.fabr-quote-contact-box a {
    color: #ff6600;
    text-decoration: none;
}

.fabr-quote-contact-box a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .fabr-quote-wrapper {
        flex-direction: column;
    }
    
    .fabr-quote-form-col {
        max-width: 100%;
        padding: 1.5rem;
    }
}
/* Quote Modal Styles */
.fabr-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.fabr-modal.open {
    display: flex;
}
.fabr-modal-content {
    background: #fff;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
    animation: modalIn 0.2s;
}
@keyframes modalIn {
    from { transform: translateY(40px) scale(0.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.fabr-modal-close {
    position: absolute;
    top: 0.7rem;
    right: 1rem;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.fabr-modal-close:hover {
    color: #ff6600;
}
.fabr-quote-form .form-group {
    margin-bottom: 1.1rem;
}
.fabr-quote-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #222;
}
.fabr-quote-form input,
.fabr-quote-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border 0.2s;
}
.fabr-quote-form input:focus,
.fabr-quote-form textarea:focus {
    border: 1.5px solid #ff6600;
    outline: none;
}

/* Base button styles - these will be overridden by media queries for specific sizes */
.fabr-btn {
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fabr-btn:hover {
    background: #e05500;
}

/* Lightbox modal for gallery */
.fabr-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}
.fabr-lightbox-modal.open {
    display: flex;
}
.fabr-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fabr-lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 0;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
    background: #fff;
    display: block;
}
.fabr-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}
.fabr-lightbox-close:hover {
    color: #ff6600;
}
.fabr-lightbox-prev, .fabr-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}
.fabr-lightbox-prev {
    left: -3rem;
}
.fabr-lightbox-next {
    right: -3rem;
}
.fabr-lightbox-prev:hover, .fabr-lightbox-next:hover {
    background: #ff6600;
    color: #fff;
}

/* Lightbox counter */
.fabr-lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 2;
}

@media (max-width: 600px) {
    .fabr-lightbox-img {
        max-width: 96vw;
        max-height: 60vh;
    }
    .fabr-lightbox-prev, .fabr-lightbox-next {
        left: 0.2rem;
        right: 0.2rem;
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }
}

/* Modern grid gallery */
.fabr-grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
}

.fabr-grid-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.fabr-grid-item:hover {
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.16);
    transform: scale(1.04);
}

.fabr-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.fabr-grid-item:hover .fabr-grid-img {
    transform: scale(1.08) rotate(-1deg);
}

@media (max-width: 1200px) {
    .fabr-grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .fabr-grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .fabr-grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 6px;
        padding: 0.5rem;
    }
}

/* Masonry Gallery */
.fabr-masonry-gallery {
    column-count: 4;
    column-gap: 10px;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fabr-masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fabr-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.fabr-masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.fabr-masonry-item:hover .fabr-masonry-img {
    transform: scale(1.05);
}

/* Media Queries for Masonry Gallery */
@media (max-width: 1200px) {
    .fabr-masonry-gallery {
        column-count: 3;
        column-gap: 8px;
    }
    
    .fabr-masonry-item {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .fabr-masonry-gallery {
        column-count: 2;
        column-gap: 6px;
        padding: 0.5rem;
    }
    
    .fabr-masonry-item {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .fabr-masonry-gallery {
        column-count: 1;
        column-gap: 4px;
    }
    
    .fabr-masonry-item {
        margin-bottom: 4px;
    }
}

@media (max-width: 1200px) {
    .fabr-masonry-gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .fabr-masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .fabr-masonry-gallery {
        column-count: 1;
    }
}
.owl-carousel .owl-stage {
    background: transparent !important;
    display: flex !important;
    align-items: stretch !important;
}

/* Adjust project card width for homepage carousel */
#projects-carousel .owl-item {
    width: calc(25% - 15px) !important;
    margin: 0 7.5px !important;
}

#projects-carousel .project-item {
    width: 100% !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
}

#projects-carousel .owl-stage-outer {
    overflow: hidden !important;
    padding: 10px 0 !important;
    background: transparent !important;
}

@media (max-width: 1199px) {
    #projects-carousel .owl-item {
        width: calc(33.33% - 15px) !important;
        margin: 0 7.5px !important;
    }
}

@media (max-width: 991px) {
    #projects-carousel .owl-item {
        width: calc(50% - 15px) !important;
        margin: 0 7.5px !important;
    }
}

@media (max-width: 767px) {
    #projects-carousel .owl-item {
        width: calc(100% - 15px) !important;
        margin: 0 7.5px !important;
    }
}

/* Masonry Gallery */
.fabr-masonry-gallery {
    column-count: 4;
    column-gap: 10px;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fabr-masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fabr-masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.fabr-masonry-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.fabr-masonry-item:hover .fabr-masonry-img {
    transform: scale(1.05);
}

/* Media Queries for Masonry Gallery */
@media (max-width: 1200px) {
    .fabr-masonry-gallery {
        column-count: 3;
        column-gap: 8px;
    }
    
    .fabr-masonry-item {
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .fabr-masonry-gallery {
        column-count: 2;
        column-gap: 6px;
        padding: 0.5rem;
    }
    
    .fabr-masonry-item {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .fabr-masonry-gallery {
        column-count: 1;
        column-gap: 4px;
    }
    
    .fabr-masonry-item {
        margin-bottom: 4px;
    }
}



/* Feature Section */

.feature-section {
    display: flex;
    width: 100%;
    overflow: hidden; /* Ensure content does not overflow */
}

.feature-container {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

.feature-row {
    display: flex;
    width: 100%;
    margin: 0;
    flex-wrap: wrap; /* Allow wrapping for responsive design */
}

.feature-image-column {
    flex: 1;
    padding: 0;
    margin: 0;
    position: relative; /* Position relative for parallax effect */
    overflow: hidden; /* Hide overflow to prevent image from extending */
}

.feature-image-column .parallax-image {
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    transform: translateZ(0);
    position: relative;
}

.feature-image-column .parallax-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax effect for feature section image */
.feature-image-column .static-bg {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.feature-image-column .static-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

.feature-content-column {
    flex: 1;
    padding: 1rem 2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content-info {
    max-width: 600px;
}

.feature-content-info span {
    display: block;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
}

.feature-content-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-content-info p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 2rem;
}

/* Wow Animation Delay */
.wow {
    visibility: visible !important;
}

/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
    .feature-content-column {
        padding: 1.5rem;
    }

    .feature-content-info h2 {
        font-size: 1.8rem;
    }

    .feature-content-info p {
        font-size: 0.9rem;
    }
    
    .about-img.parallax-wrapper,
    .feature-image-column .parallax-wrapper {
        height: 80vh; /* Adjust height on tablets */
    }
}

@media (max-width: 992px) {
    .feature-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-row {
        flex-direction: column;
    }

    .feature-image-column,
    .feature-content-column {
        width: 100%;
    }

    .feature-content-column {
        text-align: left;
    }

    .feature-content-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .feature-content-column {
        padding: 1rem;
    }

    .feature-content-info h2 {
        font-size: 1.6rem;
    }

    .feature-content-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .feature-content-column {
        padding: 0.5rem;
    }

    .feature-content-info h2 {
        font-size: 1.4rem;
    }

    .feature-content-info p {
        font-size: 0.8rem;
    }
}


/* Project */

.projects-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between; /* Adjust as needed */
}

.project-page-item {
    flex: 1 1 calc(25% - 1rem); /* Adjust flex basis for responsiveness */
    box-sizing: border-box;
    width: auto;
    height: 20rem; /* Set height */
    perspective: 1000px; /* Enable 3D space for flip effect */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.card {
    height: 100%;
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    background: transparent;
}

.project-page-item.flipped .card {
    transform: rotateY(180deg);
}

.card-back .back-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.card-back .back-content::-webkit-scrollbar {
    width: 8px;
}

.card-back .back-content::-webkit-scrollbar-thumb {
    background-color: #FF6600;
    border-radius: 4px;
}

.card-back .back-content h3 {
    font-size: 20px;
    margin: 10px 0;
    text-align: left;
    font-weight: 600;
    color: #1F497D;
}

.card-back .back-content p {
    font-size: 15px;
    margin: 0;
    text-align: justify;
    line-height: 1.5;
    color: #8d9aa8;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add box-shadow for depth */
    background: transparent;
}

/* Ensure container elements are transparent */
.project-item {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.card-front {
    background-size: cover; /* Ensure background image covers the entire container */
    background-position: center; /* Center the background image */
    transition: transform 0.3s ease; /* Smooth transition for scale */
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.card-front:hover {
    transform: scale(1.05); /* Scale up slightly on hover */
}

.view-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    z-index: 10;
}

.card-front:hover .view-icon {
    opacity: 1;
    transform: scale(1);
}

.card-back {
    background: transparent;
    transform: rotateY(180deg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Overlay */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* border-radius: 8px; */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-front:hover .overlay {
    opacity: 1;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    color: white;
    text-align: left;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    z-index: 5;
}

.overlay-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.overlay-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-height: 60px;
    overflow: hidden;
    color: white;
}

.project-page-item:hover .overlay-content {
    opacity: 1;
}

.card-front:hover .overlay-content {
    opacity: 1;
}

.slide:hover .overlay-content {
    opacity: 1;
}

/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
    .project-page-item {
        flex: 1 1 calc(33.33% - 1rem); /* 3 items per row */
    }
}

@media (max-width: 992px) {
    .project-page-item {
        flex: 1 1 calc(50% - 1rem); /* 2 items per row */
    }

    .project-page-item {
        height: 18rem; /* Adjust height for smaller screens */
    }

    .card-front:hover {
        transform: scale(1.02); /* Slightly reduce hover scale */
    }
}

@media (max-width: 768px) {
    .project-page-item {
        flex: 1 1 calc(50% - 1rem); /* 2 items per row */
    }

    .project-page-item {
        height: 16rem; /* Adjust height for smaller screens */
    }

    .card-front:hover {
        transform: scale(1.01); /* Slightly reduce hover scale */
    }
}

@media (max-width: 576px) {
    .project-page-item {
        flex: 1 1 100%; /* 1 item per row */
    }

    .project-page-item {
        height: 14rem; /* Adjust height for smaller screens */
    }

    .card-front:hover {
        transform: scale(1); /* Remove hover scale */
    }
}

/* Related Posts Section */

.related-posts {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.related-post-item {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.related-post-thumb {
    height: 120px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumb img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-content h4 a:hover {
    color: #ff6600;
}

.related-post-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Gallery Page */

.fabr-gallery-section {
    padding: 4rem 0;
}

.fabr-gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.fabr-gallery-item {
    flex: 1 1 calc(25% - 1rem);
    box-sizing: border-box;
    width: auto;
    min-width: 200px;
    min-height: 10rem;
    perspective: 1000px;
    transition: flex-basis 0.3s, height 0.3s;
}

.fabr-gallery-item.collage {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.fabr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 160px;
    gap: 0;
    grid-auto-flow: dense;
}

.fabr-gallery-item.masonry {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.fabr-card {
    height: 100%;
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    background: transparent;
}

.fabr-gallery-item.flipped .fabr-card {
    transform: rotateY(180deg);
}

.fabr-card-front,
.fabr-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add box-shadow for depth */
    background: transparent;
}

.fabr-card-front {
    background-size: cover; /* Ensure background image covers the entire container */
    background-position: center; /* Center the background image */
    transition: transform 0.3s ease; /* Smooth transition for scale */
    background: transparent;
}

.fabr-card-front:hover {
    transform: scale(1.05); /* Scale up slightly on hover */
}

.fabr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ff6600ba;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fabr-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fabr-gallery-item:hover .fabr-overlay,
.fabr-gallery-item:hover .fabr-overlay-content {
    opacity: 1;
}

.fabr-overlay-content h3 {
    color: var(--secondary);
}

/* Media Queries for Responsiveness */


@media (max-width: 1200px) {
    .fabr-gallery-item {
        flex: 1 1 calc(33.33% - 1rem);
    }
    .fabr-gallery-item.collage {
        flex-basis: 33.33% !important;
        height: 16rem !important;
    }
}

@media (max-width: 1200px) {
    .fabr-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 120px;
    }
}

@media (max-width: 768px) {
    .fabr-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-auto-rows: 90px;
    }
}


@media (max-width: 992px) {
    .fabr-gallery-item {
        flex: 1 1 calc(50% - 1rem);
    }
    .fabr-gallery-item.collage {
        flex-basis: 50% !important;
        height: 12rem !important;
    }
    .fabr-card-front:hover {
        transform: scale(1.02);
    }
}


@media (max-width: 768px) {
    .fabr-gallery-item {
        flex: 1 1 100%;
    }
    .fabr-gallery-item.collage {
        flex-basis: 100% !important;
        height: 10rem !important;
    }
    .fabr-card-front:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 576px) {
    .fabr-gallery-item {
        flex: 1 1 100%; /* 1 item per row */
    }

    .fabr-gallery-item {
        height: 14rem; /* Adjust height for smaller screens */
    }

    .fabr-card-front:hover {
        transform: scale(1); /* Remove hover scale */
    }
}

/* Testimonial Slider Styles */
.testimonial-slider-wrapper {
    position: relative;
    width: 100%;
}

.testimonial-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    width: 100%;
}

.testimonial-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimonial-slide {
    display: flex;
    flex: 0 0 100%;
    gap: 30px;
    min-width: 100%;
    justify-content: center;
}

.testimonial-slide .testi-item {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    position: relative;
    padding: 30px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    max-width: calc(50% - 15px);
}

.testimonial-slide.single .testi-item {
    max-width: calc(50% - 15px);
}

.slider-nav {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0;
    margin-left: 10px;
}

.next-btn {
    right: 0;
    margin-right: 10px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: var(--primary);
}

/* Responsive styles for testimonial slider */
@media (max-width: 991px) {
    .testimonial-slide {
        flex-direction: column;
    }
    
    .testimonial-slide .testi-item,
    .testimonial-slide.single .testi-item {
        max-width: 100%;
    }
    
    .testimonial-slider-container {
        padding: 0 50px;
    }
}

@media (max-width: 767px) {
    .testimonial-slider-container {
        padding: 0 40px;
    }
    
    .slider-nav {
        width: 30px;
        height: 30px;
    }
}

/* Services Page Specific Styles */
.service-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    /* background-color: #242323; Dark background for better contrast */
    color: #fff !important;
}

.service-item ul li:hover {
    color: #242323 !important;
}

.service-item i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.service-item:hover i {
    color: var(--primary);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-item:hover h3 {
    color: #fff;
}

.service-item h4 {
    font-size: 18px;
    margin: 20px 0 15px 0;
    color: var(--secondary);
}

.service-item:hover h4 {
    color: #fff;
}

.service-item p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #666;
}

.service-item:hover p {
    color: #ddd;
}

.service-item ul {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
}

.service-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #666;
}

.service-item:hover ul li {
    color: #fff;
}

.service-item ul li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
}

.service-item:hover ul li:before {
    color: #fff;
}

.service-item:hover h4 {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section-heading {
    margin-bottom: 50px;
}

/* Alert Styles for Quote Form Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* Parallax effect for about section */
.about-img.parallax-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    /* Debug: Add background color to see if container is visible */
    /* background-color: rgba(255, 0, 0, 0.1); */
}

.parallax-bg {
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    /* Remove background-attachment for JavaScript implementation */
    /* background-attachment: fixed; */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* Debug: Add border to see if element is visible */
    /* border: 2px solid red; */
}

/* Parallax effect for feature section */
.feature-image-column .parallax-container {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    /* Debug: Add background color to see if container is visible */
    /* background-color: rgba(0, 0, 255, 0.1); */
}

.feature-image-column .parallax-container .parallax-bg {
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    /* Remove background-attachment for JavaScript implementation */
    /* background-attachment: fixed; */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* Debug: Add border to see if element is visible */
    /* border: 2px solid blue; */
}

/* Ensure proper spacing for other content */
.about-section, .feature-section {
    position: relative;
    z-index: 2; /* Ensure content stays above parallax images */
}

/* Mobile optimization for parallax effect */
@media (max-width: 768px) {
    .parallax-bg {
        /* background-attachment: scroll; */ /* Disable parallax on mobile */
    }
    
    .feature-image-column .parallax-container .parallax-bg {
        /* background-attachment: scroll; */ /* Disable parallax on mobile */
    }
    
    .about-img.parallax-container,
    .feature-image-column .parallax-container {
        height: 70vh; /* Reduce height on mobile */
    }
}

/* Ensure images in regular divs still work */
.about-img img {
    max-width: 100%;
    height: auto;
}

/* Fix for any conflicting border-radius */
.about-img.parallax-container .parallax-bg,
.feature-image-column .parallax-container .parallax-bg {
    border-radius: 0 !important;
}

/* Override conflicting styles from main.css */
.about-img img {
    border-radius: 0 !important;
}

/* Ensure parallax container takes full width */
.parallax-container {
    width: 100%;
    display: block;
    position: relative;
}

/* Additional parallax enhancements */
.parallax-bg {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.feature-image-column .parallax-container .parallax-bg {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Ensure parallax containers work on all browsers */
.parallax-container {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

/* Quote page centering */
.fabr-quote-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.fabr-quote-wrapper .fabr-quote-title,
.fabr-quote-wrapper .fabr-quote-contact-box,
.fabr-quote-wrapper .form-group,
.fabr-quote-wrapper .fabr-btn {
    text-align: left;
    width: 100%;
}

.fabr-quote-wrapper .fabr-quote-contact-box {
    margin-left: auto;
    margin-right: auto;
    background-color: #f8f9fa; /* Light gray background */
    border: 1px solid #e9ecef; /* Subtle border */
}

/* Quote button specific styles */
.fabr-quote-wrapper .fabr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    line-height: normal;
    min-height: 52px;
    width: 50%;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.fabr-quote-wrapper .fabr-btn:hover {
    background: #e05500;
    color: #fff;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .fabr-quote-wrapper .fabr-btn {
        padding: 0.9rem 1.6rem !important;
        border-radius: 0 !important;
        width: 50% !important;
        margin: 1.5rem auto 0 !important;
        min-height: 52px !important;
    }
}

@media all and (max-width: 767px) {
    .fabr-quote-wrapper .fabr-btn {
        padding: 0.9rem 1.6rem !important;
        border-radius: 0 !important;
        width: 100% !important;
        margin: 1.2rem auto 0 !important;
        min-height: 52px !important;
    }
}

button.is-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

button.is-loading::after {
    content: "";
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    top: 50%;
    left: 50%;
    margin-top: -0.55rem;
    margin-left: -0.55rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Remove corner rounding on hero video on mobile */
@media (max-width: 767px) {
    .hero-video {
        border-radius: 0 !important;
    }
}
