@import "fonts.css";
@import "base.css";
@import "header-footer.css";
@import "bricks.css";

/*------------------------*/
/* theme colors
/*------------------------*/

:root {
    --textDarker: #1e282d;
    --textDark: rgba(38, 50, 56, 1);
    --textMedium: rgba(38, 50, 56, 0.7);
    --borderMedium: rgba(38, 50, 56, 0.2);
    --borderLight: rgba(38, 50, 56, 0.075);
    --accent: #3758f9;
    --accentDarker: #1339f7;
    --light: rgba(38, 50, 56, 0.035);
}
/*------------------------*/
/* turn grayscale off
/*------------------------*/

img {
    filter: grayscale(0);
}

/*------------------------*/
/* colorize_image
/*------------------------*/

.colorize_image {
    filter: contrast(1) sepia(1) hue-rotate(160deg) grayscale(0.8) !important;
}

/*------------------------*/
/* black_2_textDark
/*------------------------*/

.map::after,
.black_2_textDark {
    filter: contrast(0.7) sepia(1) hue-rotate(160deg) !important;
}

/*------------------------*/
/* black_2_textMedium
/*------------------------*/

.black_2_textMedium {
    filter: contrast(0.3) sepia(0.3) hue-rotate(160deg) brightness(1.4) !important;
}

/*------------------------*/
/* black_2_accent
/*------------------------*/
/* .black_2_accent {
    filter: contrast(0.11) sepia(1) hue-rotate(200deg) contrast(13) !important;
} */

/*------------------------ CSS overrides below ------------------------*/
.video-title {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    color: white;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire area */
    transform: translate(-50%, -50%);
    background-color: black; /* Fallback color */
}

.video-title .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Optional: dark overlay for better text visibility */
    color: white;
}

.video-title .container {
    position: relative;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 20px;
    color: white; /* Ensure text is visible over the video */
}

.video-title .container h1,
.video-title .container h2 {
    color: white; /* Change this to your desired color */
    font-size: 2em; /* Adjust font size as needed */
    margin-bottom: 20px; /* Adjust spacing as needed */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Optional: add text shadow for better readability */
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px; /* Optional: max width for content */
    margin: 0 auto; /* Center the content */
}

.video-title .form-content .form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--textDark);
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .form-content {
        display: none; /* Hide the CTA form on smaller screens */
    }

    .intro-content {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px; /* Space between stacked elements */
    }
}

/* Stats Section Styling */
.stats-section {
    padding: 6rem 0;
    background: var(--light);
}

.stats-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stats-header h2 {
    color: var(--textDark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.stats-header h3 {
    color: var(--textMedium);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.stats-header p {
    color: var(--textMedium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card h3 {
    color: var(--textDark);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stat-card p {
    color: var(--textMedium);
    font-size: 1rem;
    line-height: 1.6;
}

/* Animation for counting up numbers */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animate {
    animation: countUp 1s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-header h2 {
        font-size: 2rem;
    }
    
    .stats-header h3 {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

/* Reviews Section Styling */
.reviews {
    margin: 2rem 0;
    padding: 2rem 0;
}

.overall-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.rating {
    font-size: 1.5rem;
    font-weight: bold;
}

.star {
    color: #FFD700; /* Gold color for stars */
}

.read-all-reviews {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-all-reviews:hover {
    background-color: #0056b3;
}

/* Carousel Container */
.reviews-carousel {
    position: relative;
    width: 100%;
    height: 350px; /* Fixed height for the carousel */
    perspective: 1000px;
    margin: 0 auto;
    overflow: hidden; /* Hide overflow to prevent extending page width */
}

.reviews-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    overflow: hidden; /* Additional overflow control */
}

/* Review Cards */
.review-card {
    position: absolute;
    width: 70%;
    height: auto;
    max-height: 300px;
    left: 15%;
    top: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.5s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    z-index: 0;
    overflow: auto;
}

.review-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 3;
    cursor: default;
}

.review-card.prev {
    opacity: 0.7;
    transform: translateX(-70%) scale(0.85);
    z-index: 2;
}

.review-card.next {
    opacity: 0.7;
    transform: translateX(70%) scale(0.85);
    z-index: 1;
}

.review-content {
    display: flex;
    flex-direction: column;
}

.review-info {
    flex: 1;
}

.review-stars {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.review-text {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.review-author {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

/* Photo Carousel */
.review-photos {
    margin-top: 1rem;
}

.photo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
}

.project-photo {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

.project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation */
.reviews-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    position: relative;
    z-index: 10; /* Ensure navigation is above all cards */
}

.nav-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 1rem;
    transition: background-color 0.3s;
    z-index: 10; /* Ensure buttons are above all cards */
    position: relative; /* Establish stacking context */
    line-height: 1; /* Fix vertical alignment of arrows */
    padding: 0; /* Remove any padding that might affect alignment */
    font-size: 20px; /* Standardize the font size */
}

.nav-button:hover {
    background-color: #0056b3;
}

/* You might also want to add absolute positioning for the buttons to place them on the sides */
.nav-button.prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-button.next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Modal navigation buttons */
.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-decoration: none;
    padding: 0 20px;
    line-height: 1;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover, .modal-next:hover {
    color: #ccc;
}

.reviews-dots {
    display: flex;
    gap: 0.5rem;
    z-index: 10; /* Ensure dots are above all cards */
    position: relative; /* Establish stacking context */
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #007bff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-card {
        width: 90%;
        left: 5%;
    }
    
    .review-card.prev,
    .review-card.next {
        opacity: 0.5;
        transform: translateX(0) scale(0.8);
    }
    
    .overall-rating {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Improve navigation button visibility on mobile */
    .nav-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        background-color: rgba(0, 123, 255, 0.8); /* Semi-transparent background */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20; /* Higher z-index to ensure visibility */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
    }
    
    .nav-button.prev {
        left: 5px;
    }
    
    .nav-button.next {
        right: 5px;
    }
    
    /* Make sure the navigation container doesn't interfere with button positioning */
    .reviews-navigation {
        position: static;
        margin-top: 2rem;
    }
    
    /* Only show dots in the center, not the buttons */
    .reviews-navigation .nav-button {
        display: block; /* Ensure buttons are displayed */
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    /* Further adjustments for very small screens */
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Centering the Customer Reviews heading */
h2 {
    text-align: center; /* Center the text */
    margin-bottom: 2rem; /* Add some space below the heading */
}