body {
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}
.section-spacing {
    padding: 80px 0;
}
.topbar {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 0;
}

/* Menu or Navbar */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-custom .nav-link {
    color: #333;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #ff4b2b;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    /* content: ''; */
    /* position: absolute; */
    /* width: 50%; */
    height: 2px;
    /* background: #ff4b2b; */
    bottom: -4px;
    left: 25%;
}
.navbar-custom .dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-custom .dropdown-item {
    color: #333;
    font-weight: 600;
}
.navbar-custom .dropdown-item:hover,
.dropdown-item.active, .dropdown-item:active {
    background: #f8f9fa;
    color: #ff4b2b;
}
.dark-mode .navbar-custom {
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}
.dark-mode .navbar-custom .nav-link {
    color: #fff;
}
.dark-mode .navbar-custom .nav-link:hover,
.dark-mode .navbar-custom .nav-link.active {
    color: #ff416c;
}
.dark-mode .navbar-custom .nav-link:hover::after,
.dark-mode .navbar-custom .nav-link.active::after {
    background: #ff416c;
}
.dark-mode .navbar-custom .dropdown-menu {
    background: #1e1e1e;
}
.dark-mode .navbar-custom .dropdown-item {
    color: #fff;
}
.dark-mode .dropdown-item.active, .dropdown-item:active {
    background: #f8f9fa;
    color: #ff416c;
}
.navbar-custom .dropdown-item:hover{
    background: #2a2a2a;
    color: #ff416c;
}
.dark-mode .navbar-custom .nav-link:hover::after,
.dark-mode .navbar-custom .nav-link.active::after {
    background: #000000;
}
.dark-mode .navbar-toggler {
    border: 1px solid #fff;
}
.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(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* "X" icon when navbar is expanded (opened state) */
.navbar-toggler[aria-expanded="true"] .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(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

/* Dark mode "X" icon when navbar is expanded (opened state) */
.dark-mode .navbar-toggler[aria-expanded="true"] .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, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M6 24L24 6'/%3e%3c/svg%3e");
}

/* Front Page Sections */
.carousel-item img {
    height: 80vh;
    object-fit: cover;
}
#clientsCarousel .carousel-item img, #clientsCarouselMobile .carousel-item img {
    height: auto;
    object-fit: cover;
}
.service-card, .portfolio-card, .testimonial-card, .team-card {
    transition: transform 0.3s;
}
.service-card:hover, .portfolio-card:hover, .team-card:hover {
    transform: translateY(-10px);
}
.pricing-card {
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.callout {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: #fff;
    padding: 60px 0;
}
#clientsCarousel .carousel-item .col-md-4 {
    padding: 0 15px; /* Adds spacing between client logos */
}
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}
.dark-mode {
    background: #121212;
    color: #fff;
}
.dark-mode .navbar-custom {
    background: #1a1a1a;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
}
.dark-mode .navbar-custom .nav-link {
    color: #fff;
}
.dark-mode .services, .testimonial, .blog h2 {
    color: #000;
}
.dark-mode .portfolio h2 {
    color: #fff;
}
.dark-mode .card {
    background: #1e1e1e;
    color: #fff;
}
.dark-mode .pricing-card {
    box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}
.dark-mode .footer {
    background: #0a0a0a;
}
.dark-mode .carousel-indicators [data-bs-target] {
    background-color: #ccc; /* Lighter indicators for dark mode */
}
.dark-mode .team-card .text-muted {
    color: #adb5bd !important; /* Lighter gray for muted text in dark mode */
}
.mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
.fa-3xl {
    font-size: 3em !important;
}

/* Breadcrumb Styling */
.breadcrumb-section {
    background: #f8f9fa; /* Light background for contrast */
    border-bottom: 1px solid #dee2e6;
}
.breadcrumb {
    margin-bottom: 0;
}
.breadcrumb-item a {
    color: #ff416c; /* Vibrant color to match theme */
    text-decoration: none;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: #6c757d; /* Muted color for active item */
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #666;
}
.dark-mode .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #ccc;
}

/* Dark Mode Adjustments for Breadcrumb */
.dark-mode .breadcrumb-section {
    background: #1e1e1e;
    border-bottom: 1px solid #444;
}

.dark-mode .breadcrumb-item a {
    color: #ff758d; /* Lighter shade for dark mode */
}

.dark-mode .breadcrumb-item.active {
    color: #adb5bd;
}

/* Portfolio Filter Buttons */
.btn-group .btn {
    margin: 0 5px;
    border-radius: 20px;
    transition: all 0.3s;
}

.btn-group .btn.active {
    background: #ff416c;
    color: #fff;
    border-color: #ff416c;
}

.btn-group .btn:hover {
    background: #ff758d;
    color: #fff;
    border-color: #ff758d;
}

/* Portfolio Template - Dark Mode Adjustments for Filter Buttons */
.dark-mode .btn-group .btn {
    border-color: #444;
    color: #adb5bd;
}

.dark-mode .btn-group .btn.active {
    background: #ff758d;
    color: #fff;
    border-color: #ff758d;
}

.dark-mode .btn-group .btn:hover {
    background: #ff416c;
    border-color: #ff416c;
}

/* Portfolio Items */
.portfolio-item {
    transition: opacity 0.7s ease; /* Default transition for all items */
    opacity: 1; /* Initial state */
}

/* Blog Sidebar */
.sidebar .card {
    margin-bottom: 20px;
}
.card>.list-group:last-child {
    border-top-width: 0;
}
.sidebar .list-group-item {
    background: none;
    border: none;
    padding: 5px 0;
}
.sidebar .badge {
    background: #ff4b2b;
    color: #fff;
}

/* Single Post */
.post-meta {
    font-size: 0.9rem;
    color: #666;
}
.comment-box {
    margin-top: 40px;
}
.comment-list {
    margin-top: 40px;
}
.comment {
    border-left: 3px solid #ff4b2b;
    padding-left: 20px;
    margin-bottom: 20px;
}
.nested-comment {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 3px solid #ff416c;
}
.dark-mode .post-meta {
    color: #ccc;
}
.dark-mode .comment {
    border-left-color: #ff416c;
}
.dark-mode .nested-comment {
    border-left-color: #ff4b2b;
}
/* Fix post content visibility in dark mode */
.dark-mode .post-content h1,
.dark-mode .post-content h2,
.dark-mode .post-content h3,
.dark-mode .post-content h4,
.dark-mode .post-content h5,
.dark-mode .post-content h6,
.dark-mode .post-content p,
.dark-mode .post-title {
    color: #fff;
}
/* Fix nested comments visibility in dark mode */
.dark-mode .comment-section .card-body p,
.dark-mode .comment-section .card-body h6,
.dark-mode .comment-section .card-body small,
.dark-mode .comment-box,
.dark-mode .comment-list {
    color: #fff;
}

/* Single Page */
/* Fix post content visibility in dark mode */
.dark-mode .page-content h1,
.dark-mode .page-content h2,
.dark-mode .page-content h3,
.dark-mode .page-content h4,
.dark-mode .page-content h5,
.dark-mode .page-content h6,
.dark-mode .page-content p,
.dark-mode .page-title {
    color: #fff;
}

/* Mobile-specific adjustments */
@media (max-width: 767.98px) {
    .section-spacing {
        padding: 40px 0; /* Reduced padding for mobile */
    }
    .carousel-item img {
        height: 50vh; /* Adjusted slider height for mobile */
    }
    .about-section img {
        margin-bottom: 20px; /* Ensure spacing below image */
    }
    .service-card {
        padding: 20px; /* Reduced padding for mobile */
    }
    .service-card i {
        font-size: 2.5em; /* Slightly smaller icons for mobile */
    }
}