/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ddd; /* Dark grey background */
    padding: 0;
}

.bg-custom {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: none; /* REMOVE the background-image from here */
}

    .bg-custom::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url('images/background/richard-horvath-RAZU_R66vUc-unsplash.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        opacity: 0.25;
        z-index: -1;
    }

.dark-mode.bg-custom::before {
    opacity: 0.08;
}

/* Container text color */
.container {
    color: #555;
}

/* Text color overrides */
.card-title,
.customer-title {
    color: #333;
}

.card-header {
    color: #333;
}

.card-text {
    color: #555;
}

/* Card hover effects */
.card-pop {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-pop:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    }

/* Link Style for Cards */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    color: #555
}

.custom-navbar {
    background: linear-gradient(to right, #f8f9fa, #ddd); /* Dark gradient */
    color: #0026ff !important;
    padding: 5px;
}

.navbar .nav-link {
    color: #555 !important;
}

    .navbar .nav-link:hover {
        color: #777 !important;
    }

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
}

    .navbar-toggler:focus,
    .navbar-toggler:hover {
        text-decoration: none;
        outline: none;
        box-shadow: none;
    }

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Footer Styles */
footer {
    margin-top: 20px;
}

.custom-footer {
    background: linear-gradient(to right, #f8f9fa, #ddd); /* Dark gradient */
    padding: 20px;
}

    .custom-footer a {
        color: #0026ff !important;
    }

        .custom-footer a:hover {
            color: #0094ff !important;
        }

.footer-icon {
    width: auto;
    height: 40px;
}

/* Home Page Image Styles */
.company-logo {
    width: 75%;
    height: auto;
}

.fixed-height-img-main-logo {
    width: 30%;
    /*height: 150px;*/ /* Adjust as needed */
    object-fit: contain;
}

.fixed-height-img-logo {
    height: 100px; /* Adjust as needed */
    object-fit: contain;
}

/* Firm Styles */
.ceo-title {
    font-size: 0.85rem;
    color: #777;
}

.person-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0; /* keeps the photo round when a long title wraps */
    object-fit: cover;
    border: 2px solid #ddd;
}

.fixed-height-img-icon {
    max-height: 50px; /* Adjust as needed */
    object-fit: contain;
}

.company-icon {
    width: 50%;
    height: auto;
}

.card-logo {
    background: #f8f9fa;
}


/* Project Styles */
.card-project {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd; /* Optional subtle border */
/*    background: linear-gradient(to right, #f8f9fa, #ddd);*/
    background: #f8f9fa;
}

    .card-project .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

@media (max-width: 768px) {
    .card-project .row {
        flex-direction: column;
        text-align: left;
    }
}

/* New CSS Classes for Layout and Colors */
.bg-gradient-center {
    background: radial-gradient(circle at center, #f8f9fa, #eeeeee);
}

.bg-gradient-left {
    background: linear-gradient(to left, #f8f9fa, #ddd);
}

.bg-gradient-right {
    background: linear-gradient(to right, #f8f9fa, #ddd);
}

.theme-toggle-icon {
    display: inline-grid; /* or inline-flex */
    place-items: center; /* centers the child */
    width: 1.25rem;
    height: 1.25rem;
    padding: 2px; /* prevents edge clipping (sun) */
    line-height: 0; /* no baseline clipping */
    vertical-align: middle;
    overflow: visible; /* ensure rays aren't cut */
    opacity: .85;
}

/*DarkMode*/
/* Dark Reader-inspired Dark Mode */
.dark-mode {
    background-color: #181a1b !important;
    color: #e8e6e3 !important;
}

    /* Background image opacity adjustment (darker) */
    .dark-mode.bg-custom::before {
        opacity: .1; /* Darker background image overlay */
    }

    /* Containers and cards with subtle contrasts */
    .dark-mode .card,
    .dark-mode .navbar,
    .dark-mode .form-control,
    .dark-mode .form-select,
    .dark-mode .card-project,
    .dark-mode .custom-navbar,
    .dark-mode .custom-footer {
        background-color: #212425 !important;
        color: #e8e6e3 !important;
        border-color: #3c4042 !important;
    }

    .dark-mode .card-logo,
    .dark-mode .card-text,
    .dark-mode .card-title {
        background: #ddd !important;
        color: #333 !important;
    }

    .dark-mode .card-header,
    .dark-mode .firm-description,
    .dark-mode .firm-title,
    .dark-mode .customer-title{
        color: #dcdad7 !important;
    }

    /* Links */
    .dark-mode a,
    .dark-mode .card-link,
    .dark-mode .custom-footer a {
        color: #e8e6e3 !important; /* subtle blue highlight */
    }

        .dark-mode a:hover,
        .dark-mode .custom-footer a:hover {
            color: #a8c7fa !important; /* lighter blue on hover */
        }

    /* Navbar Links */
    .dark-mode .navbar .nav-link {
        color: #bdc1c6 !important;
    }

        .dark-mode .navbar .nav-link:hover {
            color: #ffffff !important;
        }

    /* Navbar gradient and footer gradient adjustments */
    .dark-mode .custom-navbar,
    .dark-mode .custom-footer,
    .dark-mode .bg-gradient-left,
    .dark-mode .bg-gradient-right,
    .dark-mode .bg-gradient-center
    {
        background: linear-gradient(to right, #202324, #2a2e30) !important;
    }

    /* Hover Effects */
    .dark-mode .card-pop:hover {
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.7) !important;
    }

    /* Images and Logos borders */
/*    .dark-mode .person-img,
    .dark-mode .fixed-height-img-icon {
        border: 2px solid #3c4042 !important;
    }*/

    /* Form Controls and Inputs */
    .dark-mode input,
    .dark-mode textarea {
        background-color: #181a1b !important;
        border-color: #3c4042 !important;
        color: #e8e6e3 !important;
    }

    /* Scrollbar (WebKit browsers - optional) */
    .dark-mode ::-webkit-scrollbar {
        width: 10px;
    }

    .dark-mode ::-webkit-scrollbar-track {
        background: #212425;
    }

    .dark-mode ::-webkit-scrollbar-thumb {
        background: #3c4042;
    }

        .dark-mode ::-webkit-scrollbar-thumb:hover {
            background: #5f6368;
        }



    .intro-heading{

    }

    .dark-mode .intro-heading {
        color: #dcdad7
    }

/* Pre-launch fixes (2026-10-08) */

/* Footer logo is solid black; flip it to white on the dark footer */
.dark-mode .footer-icon {
    filter: invert(1);
}

/* Hamburger icon is dark by default; make it visible on the dark navbar */
.dark-mode .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Respect the visitor's reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
    .card-pop,
    .card-pop:hover {
        transition: none;
        transform: none;
    }
}
