:root {
    --primary-color: #f4623a;
    --secondary-color: #ffc800;
    --dark-color: #212529;
}

body {
    font-family: "Merriweather Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Merriweather", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, serif;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #1a1a1a;
    --bs-body-color: #e0e0e0;
    --primary-color: #ff6b45;
    --secondary-color: #ffd700;
}

/* Navbar */
#mainNav {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: white !important;
    transition: padding-top 0.3s, padding-bottom 0.3s;
}

[data-bs-theme="dark"] #mainNav {
    background-color: #212529 !important;
}

#mainNav .navbar-brand {
    font-family: "Merriweather", serif;
    font-weight: 700;
    color: var(--primary-color);
}

#mainNav .navbar-nav .nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-color);
    padding: 0.75rem 0;
}

[data-bs-theme="dark"] #mainNav .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

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

#mainNav.navbar-scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.theme-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    color: var(--primary-color);
}

.theme-toggle:hover {
    background-color: rgba(244, 98, 58, 0.1);
    transform: rotate(20deg);
}

/* Masthead */
.masthead {
    padding-top: 10rem;
    padding-bottom: calc(10rem - 4.5rem);
    background: linear-gradient(
            to bottom,
            rgba(244, 98, 58, 0.8) 0%,
            rgba(244, 98, 58, 0.8) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f4623a" width="1200" height="600"/><g fill-opacity="0.1"><polygon fill="%23ffc800" points="1200 0 900 600 1200 600"/><polygon points="0 600 300 0 0 0"/><polygon fill="%23ffd700" points="600 600 900 300 600 0"/></g></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
}

[data-bs-theme="dark"] .masthead {
    background: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.9) 0%,
            rgba(33, 37, 41, 0.9) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/><g fill-opacity="0.1"><polygon fill="%23ff6b45" points="1200 0 900 600 1200 600"/><polygon points="0 600 300 0 0 0"/><polygon fill="%23ffd700" points="600 600 900 300 600 0"/></g></svg>');
}

.masthead h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.masthead hr {
    max-width: 3.25rem;
    border-width: 0.2rem;
    border-color: var(--secondary-color);
    margin: 1.5rem auto;
}

.masthead p {
    font-size: 1.15rem;
}

.divider {
    height: 0.2rem;
    max-width: 3.25rem;
    background-color: var(--primary-color);
    margin: 1.5rem auto;
}

/* Services Section */
.page-section {
    padding: 8rem 0;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4rem;
    width: 4rem;
    font-size: 2rem;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    margin-bottom: 1.5rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Portfolio Section */
.portfolio-box {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
}

.portfolio-box .portfolio-box-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    opacity: 0;
    color: #fff;
    background: rgba(244, 98, 58, 0.9);
    transition: opacity 0.25s ease;
    text-align: center;
}

.portfolio-box:hover .portfolio-box-caption {
    opacity: 1;
}

.portfolio-box .portfolio-box-caption .project-category {
    font-family: "Merriweather Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-box .portfolio-box-caption .project-name {
    font-size: 1.2rem;
}

/* Call to Action */
.cta-section {
    background-color: var(--primary-color);
    color: white;
}

[data-bs-theme="dark"] .cta-section {
    background-color: #2a2a2a;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .contact-section {
    background-color: #212529;
}

/* Footer */
footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 1.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Alert Styles */
.alert-custom {
    border-left: 4px solid var(--primary-color);
    background-color: rgba(244, 98, 58, 0.1);
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .alert-custom {
    background-color: rgba(244, 98, 58, 0.2);
}

/* Brand Card */
.brand-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 2rem rgba(244, 98, 58, 0.3);
}

.brand-icon {
    font-size: 4rem;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 992px) {
    #mainNav .navbar-nav .nav-link {
        padding: 0 1rem;
    }

    .masthead h1 {
        font-size: 4.5rem;
    }
}

/* BD callout */
.bd-callout {
    --bs-link-color-rgb: var(--bd-callout-link);
    --bs-code-color: var(--bd-callout-code-color);
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bd-callout-color, inherit);
    background-color: var(--bd-callout-bg, var(--bs-gray-100));
    border-left: 0.25rem solid var(--bd-callout-border, var(--bs-gray-300));
}

.bd-callout h4 {
    margin-bottom: 0.25rem;
}

.bd-callout > :last-child {
    margin-bottom: 0;
}

.bd-callout + .bd-callout {
    margin-top: -0.25rem;
}

.bd-callout .highlight {
    background-color: #0000000d;
}

.bd-callout-info {
    --bd-callout-color: var(--bs-info-text-emphasis);
    --bd-callout-bg: var(--bs-info-bg-subtle);
    --bd-callout-border: var(--bs-info-border-subtle);
}

.bd-callout-warning {
    --bd-callout-color: var(--bs-warning-text-emphasis);
    --bd-callout-bg: var(--bs-warning-bg-subtle);
    --bd-callout-border: var(--bs-warning-border-subtle);
}

.bd-callout-danger {
    --bd-callout-color: var(--bs-danger-text-emphasis);
    --bd-callout-bg: var(--bs-danger-bg-subtle);
    --bd-callout-border: var(--bs-danger-border-subtle);
}
