:root {
    /* Light theme variables */
    --background-color: #ffffff;
    --text-color: #232323;
    --text-medium-color: #6f6f6f;
    --border-color: #e4e4e4;
    --card-bg: #f7f7f7;
    --base-color: #008f8c; /* Changed from #BEFF01 to #008f8c (blue) */
    --dark-gray: #232323;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --theme-transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --background-color: #121212;
    --text-color: #f8f8f8;
    --text-medium-color: #a0a0a0;
    --border-color: #2a2a2a;
    --card-bg: #1e1e1e;
    --base-color: #008f8c; /* Changed from #BEFF01 to #008f8c (blue) */
    --dark-gray: #f8f8f8;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Apply transitions for smooth theme switching */
body, div, p, h1, h2, h3, h4, h5, h6, span, a, section {
    transition: var(--theme-transition);
}

/* Theme toggle button styling */
.theme-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle .material-icons-round {
    font-size: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.theme-toggle .light-icon {
    position: absolute;
    color: #ffc107;
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle .dark-icon {
    position: absolute;
    color: #b4b4b4;
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="dark"] .theme-toggle .light-icon {
    opacity: 0;
    transform: translateY(-20px);
}

[data-theme="dark"] .theme-toggle .dark-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Dark mode styles for the site */
[data-theme="dark"] body {
    background-color: var(--background-color);
    background-image: url(../images/vertical-line-bg-small-dark.svg) !important;
    color: var(--text-color);
}

[data-theme="dark"] .text-dark-gray {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-medium-gray {
    color: var(--text-medium-color) !important;
}

[data-theme="dark"] .bg-light-gray {
    background-color: var(--border-color) !important;
}

[data-theme="dark"] .border-color-charcoal-grey {
    border-color: var(--border-color) !important;
}

/* Text base color remains blue */
[data-theme="dark"] .text-base-color {
    color: var(--base-color) !important;
}

/* Card and section styling */
[data-theme="dark"] .process-step-style-10,
[data-theme="dark"] .cookie-modal-content,
[data-theme="dark"] .portfolio-caption {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-medium-gray {
    background-color: #2d2d2d !important;
}

[data-theme="dark"] .separator-line-1px {
    background-color: var(--border-color) !important;
}

/* Fix the Contact Us button */
[data-theme="dark"] .btn-dark-gray {
    background-color: var(--card-bg);
    color: var(--text-color) !important;
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-switch-text .btn-double-text,
[data-theme="dark"] .btn-double-text[data-text] {
    color: var(--text-color) !important;
}

[data-theme="dark"] .btn-box-shadow {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .bg-base-color {
    background-color: var(--base-color) !important;
}

/* Make sure button hover effects work properly in dark mode */
[data-theme="dark"] .btn-expand-ltr:hover {
    color: #000 !important;
}

[data-theme="dark"] .btn-expand-ltr:hover span:not(.bg-base-color) {
    color: #000 !important;
}

/* Navigation */
[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--base-color) !important;
}

/* Social icons */
[data-theme="dark"] .elements-social .small-icon.dark li a {
    color: var(--text-color) !important;
}

/* Fancy text elements */
[data-theme="dark"] .text-outline {
    -webkit-text-stroke-color: var(--border-color) !important;
}

/* Remove filters from images in dark mode for better appearance */
[data-theme="dark"] .portfolio-image img,
[data-theme="dark"] img.alt-logo,
[data-theme="dark"] img.default-logo,
[data-theme="dark"] img.mobile-logo {
    filter: none !important;
}

/* Ensure logo is white in dark mode - stronger selector */
[data-theme="dark"] .navbar-brand img,
[data-theme="dark"] .footer-logo img,
[data-theme="dark"] .alt-logo,
[data-theme="dark"] .default-logo,
[data-theme="dark"] .mobile-logo {
    filter: brightness(0) invert(1) !important;
}

/* Fix the Contact Us button to be on a single line */
[data-theme="dark"] .btn-double-text,
.btn-double-text {
    white-space: nowrap !important;
    display: inline-block !important;
}

[data-theme="dark"] .header-button .btn {
    min-width: 130px;
}

/* Bäume in Wien App Promo Banner – Full Width Bottom */
.app-promo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    z-index: 9998;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.app-promo-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-promo-banner-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.app-promo-banner-close:hover {
    color: #fff;
}

.app-promo-banner-logo {
    height: 52px;
    width: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-promo-banner-info {
    flex: 1;
    min-width: 0;
}

.app-promo-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.app-promo-banner-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.app-promo-banner-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--base-color);
    background: rgba(0, 143, 140, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-promo-banner-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.app-promo-banner-badge-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.app-promo-banner-badge-link:hover {
    opacity: 0.85;
}

.app-promo-banner-badge-img {
    height: 44px;
    width: auto;
    display: block;
}

.app-promo-banner-badge-coming {
    opacity: 0.35;
    cursor: default;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.app-promo-banner-badge-coming:hover {
    opacity: 0.35;
}

.app-promo-banner-coming-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.app-promo-banner-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.app-promo-banner-powered {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

.app-promo-banner-project-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-promo-banner-project-link:hover {
    color: var(--base-color);
}

.app-promo-banner-why-wrap {
    position: relative;
}

.app-promo-banner-why-btn {
    background: none;
    border: none;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.app-promo-banner-why-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

.app-promo-banner-why-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.app-promo-banner-why-popup::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
}

.app-promo-banner-why-wrap.active .app-promo-banner-why-popup {
    display: block;
}

.app-promo-banner-why-popup-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.app-promo-banner-why-popup p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.app-promo-banner-why-popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
}

.app-promo-banner-why-popup-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .app-promo-banner-why-popup {
    background: rgba(15, 15, 15, 0.98);
}

[data-theme="dark"] .app-promo-banner-why-popup::after {
    background: rgba(15, 15, 15, 0.98);
}

@media (max-width: 991px) {
    .app-promo-banner-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 18px;
        padding-right: 40px;
    }
    .app-promo-banner-footer {
        border-left: none;
        padding-left: 0;
        width: 100%;
        margin-left: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 575px) {
    .app-promo-banner-inner {
        padding: 12px 14px;
        padding-right: 36px;
        gap: 10px;
    }
    .app-promo-banner-logo {
        height: 40px;
        width: 40px;
        border-radius: 10px;
    }
    .app-promo-banner-title {
        font-size: 14px;
    }
    .app-promo-banner-desc {
        font-size: 12px;
    }
    .app-promo-banner-tag {
        display: none;
    }
    .app-promo-banner-badges {
        width: 100%;
    }
    .app-promo-banner-badge-link {
        flex: 1;
    }
    .app-promo-banner-badge-img {
        height: 38px;
    }
    .app-promo-banner-footer {
        display: none;
    }
}

[data-theme="dark"] .app-promo-banner {
    background-color: rgba(10, 10, 10, 0.95);
    border-top-color: rgba(255, 255, 255, 0.05);
}
