:root {
    --body-bg: #fff;
    --text-color: #212529;
    --heading-color: #212529;
    --navbar-bg: #f8f9fa;
    --navbar-link-color: rgba(0, 0, 0, 0.55);
    --navbar-link-hover-color: rgba(0, 0, 0, 0.7);
    --navbar-link-active-color: #212529; 
    --section-bg-light: #f8f9fa;
    --card-bg: #fff;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --divider-color: rgba(0, 0, 0, 0.1);
    --heading-divider-color: #343a40;
    --hero-text-color: #fff;
    --footer-bg: #343a40;
    --footer-text-color: #fff;
    --brand-item-bg: #fff;
    --brand-item-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --brand-item-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    --brand-logo-filter: grayscale(100%);
    --brand-logo-hover-filter: grayscale(0%);
    --team-member-border: rgba(0, 0, 0, 0.1);
    --team-member-text-muted: #6c757d;
    --service-category-heading-color: #343a40;
    --form-control-bg: #fff;
    --form-control-border: #ced4da;
    --form-control-color: #212529;
    --form-control-placeholder-color: #6c757d;
    --main-logo-filter: none;
    --floating-button-bg: #212529;
    --floating-button-color: #fff;
    --btn-custom-gradient-start: #28a745;
    --btn-custom-gradient-end: #5cb85c;
    --btn-custom-gradient-hover-start: #218838;
    --btn-custom-gradient-hover-end: #4cae4c;
    --btn-custom-gradient-color: #fff;
    --service-icon-bg-color: var(--section-bg-light);
    --service-icon-color: var(--text-color);
}

body.dark-mode {
    --body-bg: #212529;
    --text-color: #e9ecef;
    --heading-color: #e9ecef;
    --navbar-bg: #343a40;
    --navbar-link-color: rgba(255, 255, 255, 0.75);
    --navbar-link-hover-color: rgba(255, 255, 255, 0.9);
    --navbar-link-active-color: #e9ecef;
    --section-bg-light: #2c3034;
    --card-bg: #343a40;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    --divider-color: rgba(255, 255, 255, 0.1);
    --heading-divider-color: #6c757d;
    --hero-text-color: #e9ecef;
    --footer-bg: #212529;
    --footer-text-color: #e9ecef;
    --brand-item-bg: #343a40;
    --brand-item-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --brand-item-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
    --brand-logo-filter: invert(100%);
    --brand-logo-hover-filter: invert(0%);
    --team-member-border: rgba(255, 255, 255, 0.1);
    --team-member-text-muted: #adb5bd;
    --service-category-heading-color: #e9ecef;
    --form-control-bg: #495057;
    --form-control-border: #6c757d;
    --form-control-color: #e9ecef;
    --form-control-placeholder-color: #adb5bd;
    --main-logo-filter: invert(100%);
    --floating-button-bg: #6c757d;
    --floating-button-color: #212529;
    --btn-custom-gradient-start: #1e7e34;
    --btn-custom-gradient-end: #3d8b3d;
    --btn-custom-gradient-hover-start: #1c6b2f;
    --btn-custom-gradient-hover-end: #367c36;
    --btn-custom-gradient-color: #fff;

    --service-icon-bg-color: rgba(255, 255, 255, 0.1);
    --service-icon-color: #e9ecef;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 110px;
    background-color: var(--body-bg);
    color: var(--text-color);
}

#top-bar {
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

#top-bar a {
    text-decoration: none;
}

.navbar.fixed-top {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-section {
    position: relative;
    width: 100%;
    max-width: 1320px;
    height: 594px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #000;
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}



.hero-text-container {
    padding-bottom: 8%;
}


.section.bg-light {
    background-color: var(--section-bg-light) !important;
}

.section-heading {
    color: var(--heading-color);
}

.navbar {
    background-color: var(--navbar-bg) !important;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    color: var(--navbar-link-color);
}

.navbar-nav .nav-link:hover {
    color: var(--navbar-link-hover-color);
}

.navbar-nav .nav-link.active {
    color: var(--navbar-link-active-color);
    font-weight: bold;
}

.navbar-brand img {
    filter: var(--main-logo-filter);
}

body.dark-mode .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode #brands-toggle-btn {
    background-color: #343a40;
    border-color: #6c757d;
    color: #e9ecef;
}

#about, #team, #services, #reviews, #contact {
    scroll-margin-top: 110px;
}

@media (min-width: 992px) {
    .hero-text-container {
        padding-bottom: 5%;
    }
}

#trusted-brands .brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; 
}

#trusted-brands .brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; 
    padding: 10px;
    background-color: var(--brand-item-bg);
    border-radius: 8px;
    box-shadow: var(--brand-item-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#trusted-brands .brand-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--brand-item-hover-shadow);
}

#trusted-brands .brand-logo {
    max-width: 100%;
    max-height: 80px; 
    object-fit: contain;
    filter: var(--brand-logo-filter);
    transition: filter 0.3s ease;
}

#trusted-brands .brand-item:hover .brand-logo {
    filter: var(--brand-logo-hover-filter);
}


@media (min-width: 768px) {
    #trusted-brands .brand-item {
        flex: 0 0 auto; 
        width: 150px; 
    }
}

@media (min-width: 992px) {
    #trusted-brands .brand-item {
        width: 180px; 
    }
}


.team-member {
    margin-bottom: 30px;
}

.team-member img {
    width: 220px;
    height: 220px;
    border: 3px solid var(--team-member-border);
    object-fit: cover;
    border-radius: 20px;
}

.team-member h4 {
    margin-top: 25px;
    margin-bottom: 0;
    text-transform: uppercase;
    color: var(--heading-color);
}

.team-member p {
    margin-top: 0;
    color: var(--team-member-text-muted);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--service-icon-bg-color);
    color: var(--service-icon-color);
}

#services .card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow) !important;
}

#services .card-title {
    color: var(--service-category-heading-color); 
    font-weight: bold;
    margin-bottom: 15px;
}


.section-divider {
    border-top: 1px solid var(--divider-color); 
    margin: 60px auto; 
    width: 80%; 
    max-width: 700px; 
}


.heading-divider {
    border-top: 2px solid var(--heading-divider-color); 
    width: 80px; 
    margin: 15px auto 40px auto; 
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 75%; 
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

body.dark-mode .map-responsive {
    filter: invert(90%) hue-rotate(180deg);
}

footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text-color) !important;
}

footer a {
    color: var(--footer-text-color) !important;
}

.form-control {
    background-color: var(--form-control-bg);
    border-color: var(--form-control-border);
    color: var(--form-control-color);
}

.form-control::placeholder {
    color: var(--form-control-placeholder-color);
}

#darkModeFloatingToggle {
    background-color: var(--floating-button-bg);
    color: var(--floating-button-color);
    border: none; 
}

#darkModeFloatingToggle:focus {
    outline: none; 
    box-shadow: var(--card-shadow); 
}

#darkModeFloatingToggle.dark-mode-toggle-contrast {
    background-color: #f8f9fa; 
    color: #212529; 
}

.btn-custom-gradient {
    background-image: linear-gradient(to right, var(--btn-custom-gradient-start), var(--btn-custom-gradient-end));
    color: var(--btn-custom-gradient-color);
    border: none;
    transition: background-image 0.3s ease;
}

.btn-custom-gradient:hover {
    background-image: linear-gradient(to right, var(--btn-custom-gradient-hover-start), var(--btn-custom-gradient-hover-end));
    color: var(--btn-custom-gradient-color);
}

.btn-custom-gradient:active {
    background-image: linear-gradient(to right, var(--btn-custom-gradient-hover-end), var(--btn-custom-gradient-hover-start));
    color: var(--btn-custom-gradient-color);
}

.text-white-force {
    color: #fff !important;
}

.footer-social-link {
    text-decoration: none !important;
    border: none !important;
}

.footer-social-link:hover {
    text-decoration: none !important;
}


#reviews {
    padding: 60px 0;
}

.review-profile-header {
  background-color: #f8f9fa;
  padding: 10px;
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  font-family: Roboto, Arial, sans-serif;
  border-radius: 8px 8px 0 0; 
  margin: -30px -30px 15px -30px; 
}

.review-profile-avatar {
  width: 48px;
  height: 48px;
  background-size: cover;
  background-position: center;
  margin-right: 10px;
}

.review-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-profile-name {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212529;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.review-profile-badge {
  color: #6c757d;
  font-size: 0.875rem;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
}


body.dark-mode .review-profile-header {
    background-color: #2c3034;
}
body.dark-mode .review-profile-name {
    color: #e8e8e8;
}
body.dark-mode .review-profile-badge {
    color: #adb5bd;
}

#review-barry .review-profile-avatar {
    background-image: url('../img/reviews/Barry.png');
}
#review-bob .review-profile-avatar {
    background-image: url('../img/reviews/Bob.png');
}
#review-vijay .review-profile-avatar {
    background-image: url('../img/reviews/Vijay.png');
}

.carousel-item {
    min-height: 400px;
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.review-stars {
    color: #ffc107;
    margin-top: 8px; 
    margin-bottom: 0;
}

.review-text {
    font-style: italic;
    color: var(--text-color);
}

.review-author {
    margin-top: 15px;
    font-weight: bold;
}

body.dark-mode .review-author {
    color: var(--team-member-text-muted) !important;
}

body.dark-mode .text-muted {
    color: var(--team-member-text-muted) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}


.card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.service-gallery img {
    box-shadow: var(--card-shadow);
    height: 240px;
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    cursor: pointer;
}


.modal-content {
    background-color: var(--card-bg);
}

.modal-header {
    border-bottom: none;
}

.btn-close {
    filter: var(--main-logo-filter);
}

body.dark-mode .service-grid-container {
    background: var(--body-bg);
    padding: 40px 20px;
    border-radius: 15px;
}

body.dark-mode .service-category {
    background: var(--section-bg-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-color);
}

body.dark-mode .service-category-heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--heading-color);
}

body.dark-mode .service-list-item {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
}

body.dark-mode .service-list-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


body:not(.dark-mode) .service-grid-container {
    background-color: var(--section-bg-light);
    padding: 40px 20px;
    border-radius: 15px;
}

body:not(.dark-mode) .service-category {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color);
}

body:not(.dark-mode) .service-category-heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--heading-color);
}

body:not(.dark-mode) .service-list-item {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #343a40;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: default;
}

body:not(.dark-mode) .service-list-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}