﻿


/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(98, 0, 238, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .chatbot-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(98, 0, 238, 0.5);
    }

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background-color: var(--surface);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 998;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    border: 1px solid var(--border-color);
}

    .chatbot-container.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

.chatbot-header {
    padding: 16px;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    transition: background-color 0.3s ease;
}

.bot-message {
    background-color: rgba(98, 0, 238, 0.1);
    border-top-left-radius: 4px;
    align-self: flex-start;
    color: var(--on-background);
}

.user-message {
    background-color: var(--primary);
    color: var(--on-primary);
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.chatbot-input {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

    .chatbot-input input {
        flex: 1;
        padding: 12px 16px;
        border-radius: 24px;
        border: 1px solid var(--border-color);
        background-color: var(--background);
        color: var(--on-background);
        font-size: 14px;
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }

        .chatbot-input input:focus {
            outline: none;
            border-color: var(--primary);
        }

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .send-btn:hover {
        background-color: var(--primary-dark);
    }

/* Certificates */
.certificate-card {
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary);
    transition: border-color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100% - 40px);
        height: 60vh;
        right: 20px;
        bottom: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glow effect */
.glow {
    box-shadow: 0 0 15px rgba(98, 0, 238, 0.5);
}

/* Typing animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--on-background);
    animation: typingAnimation 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingAnimation {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Additional theme-specific styles */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}







/* Chat system */
.chat-bar {
    position: fixed;
    bottom: 0;
    right: calc(20px + 0 * (320px + 16px)); /* Adjusted if needed */
    width: 260px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    transition: height 0.3s ease;
    height: 48px;
}

    .chat-bar.expanded {
        height: 400px;
    }

.chat-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #1877f2;
    color: white;
    cursor: pointer;
}

.chat-bar-title {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-bar-toggle {
    transition: transform 0.3s;
}

.chat-bar.expanded .chat-bar-toggle {
    transform: rotate(180deg);
}

.chat-contacts-container {
    height: calc(100% - 48px);
    overflow-y: auto;
}
[data-theme="dark"] .chat-contacts-container {
    background-color: #1B1D3B;
    color: black;
}



.chat-contacts {
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .chat-contacts {
    background-color: #1B1D3B;
    color: black;
}



.chat-contact {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
    color: black; /* default text color */
}

    .chat-contact:hover {
        background-color: #f0f2f5;
    }

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .chat-contact {
        color: black; /* keeps text black in dark mode */
    }
}

[data-theme="dark"] .chat-contact:hover {
    background-color: #5D6B99;
    color: black;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1877f2;
    margin-right: 12px;
    position: relative;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #31a24c;
    border: 2px solid #ffffff;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 500;
    font-size: 14px;
}

.contact-id {
    font-size: 12px;
    color: #65676b;
}

.chat-window {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 320px;
    height: 400px;
    background-color: #ffffff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 101;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
    overflow: hidden;
}

[data-theme="dark"] .chat-window {
    background-color: #5D6B99;
}

    [data-theme="dark"] .chat-window input,
    [data-theme="dark"] .chat-window textarea,
    [data-theme="dark"] .chat-window select {
        background-color: #4a567a; /* darker background */
        color: white; /* white text */
        border: 1px solid #7c89b6; /* subtle border */
    }

        [data-theme="dark"] .chat-window input::placeholder,
        [data-theme="dark"] .chat-window textarea::placeholder {
            color: #d0d4e6; /* lighter placeholder text */
        }

    .chat-window.active {
        transform: scale(1);
        opacity: 1;
    }

.chat-window-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #1877f2;
    color: white;
    cursor: pointer;
}

.chat-window-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e4e6eb;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    font-weight: bold;
    position: relative;
}

    .chat-window-avatar .online-indicator {
        width: 8px;
        height: 8px;
    }

.chat-window-info {
    flex: 1;
}

.chat-window-name {
    font-weight: 500;
    font-size: 14px;
}

.chat-window-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.chat-window-actions {
    display: flex;
    gap: 8px;
}

.chat-window input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    color: black; /* text black by default */
    background-color: white;
    transition: border-color 0.2s, background-color 0.2s;
}

    .chat-window input:focus {
        outline: none;
        border-color: #3b82f6; /* blue-500 */
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }

/* Dark mode override */
@media (prefers-color-scheme: dark) {
    .chat-window input {
       
        color: black; /* keep text black */
        border-color: #374151; /* gray-700 */
    }

        .chat-window input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
        }
}

.chat-window-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .chat-window-action:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .chat-window-action .material-icons {
        font-size: 18px;
    }

.chat-window-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

[data-theme="dark"] .chat-window-messages {
    background-color: #5D6B99;
    color: white;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 13px;
    position: relative;
    word-break: break-word;
}

    .message.received {
        align-self: flex-start;
        background-color: #e4e6eb;
    }

[data-theme="dark"] .message.received {
    color: black;
}

    .message.sent {
        align-self: flex-end;
        background-color: #0084ff;
        color: white;
    }

[data-theme="dark"] .message.sent {
    color: black;
}

.message-time {
    font-size: 9px;
    color: #65676b;
    margin-top: 4px;
    text-align: right;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-window-input {
    padding: 8px 12px;
    border-top: 1px solid #e4e6eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-field {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    background-color: #f0f2f5;
    font-size: 13px;
    outline: none;
}

.send-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .send-button:hover {
        background-color: #166fe5;
    }

    .send-button .material-icons {
        font-size: 16px;
    }

/* Call modal */
.call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

    .call-modal.active {
        opacity: 1;
        pointer-events: auto;
    }

.call-container {
    width: 100%;
    max-width: 360px;
    background-color: #242526;
    border-radius: 8px;
    overflow: hidden;
    color: white;
}

.call-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.call-type {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.call-name {
    font-size: 20px;
    font-weight: 500;
}

.call-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.call-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #3a3b3c;
    margin: 32px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #1877f2;
}

.call-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px 16px;
}

.call-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .call-action.end {
        background-color: #f02849;
    }

    .call-action.toggle {
        background-color: #3a3b3c;
    }

    .call-action .material-icons {
        font-size: 24px;
    }

/* Minimize chat window */
.chat-window.minimized {
    height: 46px;
}

    .chat-window.minimized .chat-window-messages,
    .chat-window.minimized .chat-window-input {
        display: none;
    }

/* Responsive styles */
@media (max-width: 768px) {
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    .chat-bar {
        width: 200px;
    }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

    .ripple:after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
        background-repeat: no-repeat;
        background-position: 50%;
        transform: scale(10, 10);
        opacity: 0;
        transition: transform .5s, opacity 1s;
    }

    .ripple:active:after {
        transform: scale(0, 0);
        opacity: .3;
        transition: 0s;
    }

.skill-bar {
    @apply w-full bg-border-color rounded-full h-3 overflow-hidden;
}

.skill-progress {
    @apply bg-secondary h-full rounded-full transition-all duration-700 ease-in-out;
    width: 0; /* Default width */
}

.skill-bar {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 9999px;
    height: 0.75rem; /* h-3 */
    overflow: hidden;
}

.skill-progress {
    background-color: var(--secondary);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease-in-out;
    width: 0;
}


/* Apply background image to the grid container */
/* Apply background image to the grid container */
/*.grid-container {
    width: 100%;
    height: 100%;
    min-height: 0;*/ /* Ensures it respects parent's height */
    /*box-sizing: border-box;*/ /* Includes padding in the width/height calculation */
    /*background-image: url('../daban.jpg');*/ /* Replace with your base64 encoded image or URL */
    /*background-size: cover;
    background-position: center;
    background-repeat: repeat;
    vertical-align:central;
    position: relative;
    height: 100vh;*/ /* Full viewport height, adjust as needed */
    /*overflow: hidden;
    padding: 2rem;
}



    .grid-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../daban.jpg');*/ /* same image */
        /*background-size: cover;
        background-position: center;
        filter: blur(15px);*/ /* Apply blur to this layer only */
        /*z-index: 0;
        pointer-events: none;*/
        /* Mask center 25% to make it unblurred */
        /*mask-image: linear-gradient( to right, black 0%, black 45%,*/ /* Left blur ends */
        /*transparent 42%,*/ /* Clear center starts */
        /*transparent 70%,*/ /* Clear center ends (25%) */
        /*black 70%,*/ /* Right blur starts */
        /*black 100% );
        -webkit-mask-image: linear-gradient( to right, black 0%, black 45%, transparent 45%, transparent 70%, black 70%, black 100% );
    }*/



    /* Ensure content is above the blur */
    /*.grid-container > * {
        position: relative;
        z-index: 2;
    }*/

/* Floating animation for the SVG (if still present) */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Default (Light Theme) */
.glow-text {
    color: black;
    text-shadow: 0 0 3px white, 0 0 6px white;
}

/* Dark Theme */
[data-theme="dark"] .glow-text {
    color: white;
    text-shadow: 0 0 3px black, 0 0 6px black;
}



#acceptCallBtn:hover {
    background-color: #0f0;
    box-shadow: 0 0 10px #0f0;
    cursor: pointer;
}
.video-call-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .video-call-modal.active {
        display: flex; /* visible when active */
    }

.video-call-container {
    background: #111;
    border-radius: 12px;
    padding: 16px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
}

.video-call-header {
    margin-bottom: 10px;
}

.video-call-content {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.video-call-container .video-wrapper {
    position: relative;
    width: 48%;
    border: 4px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

    .video-call-container .video-wrapper.talking {
        border-color: #00ff00;
        box-shadow: 0 0 10px #00ff00;
    }

.video-call-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: black;
}

.video-call-actions.center {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.video-call-actions .call-action.ripple {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .video-call-actions .call-action.ripple:hover {
        transform: scale(1.1);
    }




.user-info-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

    .user-info-modal.active {
        display: flex; /* show when active */
    }

.user-info-container {
    background: #222;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    color: white;
    text-align: center;
}

.user-info-header {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: bold;
}

.user-info-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-info-input {
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    color:black;
}

.user-info-actions {
    display: flex;
    justify-content: center;
}

.user-info-button {
    background-color: #4caf50;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

    .user-info-button:hover {
        background-color: #45a049;
    }




   





#incomingCallOverlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease-in-out;
}

#incomingCallContainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    width: 300px;
}

    #incomingCallContainer h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    #incomingCallContainer .buttons {
        margin-top: 20px;
    }

        #incomingCallContainer .buttons button {
            padding: 10px 20px;
            font-size: 1em;
            margin: 0 10px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            transition: 0.3s;
        }

#acceptCallBtn {
    background: #4caf50;
    color: white;
}

#rejectCallBtn {
    background: #f44336;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}


.audio-record-button {
    position: relative;
    background: #f44336;
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 30px;
    cursor: pointer;
    outline: none;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width:30px;
}


    .audio-record-button .material-icons {
        font-size: 24px;
        pointer-events: none;
    }

/* Recording wave animation */
.recording-wave {
    position: absolute;
    border: 2px solid #f44336;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    animation: wave-pulse 1.5s infinite;
    transform-origin: center;
}

.audio-record-button.recording .recording-wave {
    opacity: 1;
}

@keyframes wave-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.message.audio-message .message-content {
    padding: 8px 12px;
    border-radius: 15px;
    background-color: #f0f0f0;
    display: inline-block;
    width: 200px;
    box-sizing: border-box;
}

.message.audio-message audio {
    width: 100%;
    outline: none;
    border-radius: 8px;
}


.video-call-controls {
    display: flex;
    gap: 1rem;
    padding: 10px;
    background: #222;
    color: white;
    align-items: center;
    justify-content: center;
}

    .video-call-controls button {
        padding: 6px 12px;
        border: none;
        background: #555;
        color: white;
        cursor: pointer;
        border-radius: 4px;
    }

    .video-call-controls input[type=range] {
        width: 100px;
    }

/* Light theme (default) */
.map-modal-content {
    background-color: white;
    color: #1f2937; /* dark gray text */
}

.map-modal-header {
    border-color: #e5e7eb; /* light border */
}

.map-close-btn {
    color: #4b5563; /* gray-600 */
}

    .map-close-btn:hover {
        color: #111827; /* gray-900 */
    }

/* Dark theme */
[data-theme="dark"] .map-modal-content {
    background-color: #1e293b; /* slate-800 */
    color: #f1f5f9; /* slate-100 */
}

[data-theme="dark"] .map-modal-header {
    border-color: #334155; /* slate-700 */
}

[data-theme="dark"] .map-close-btn {
    color: #94a3b8; /* slate-400 */
}

    [data-theme="dark"] .map-close-btn:hover {
        color: #f1f5f9; /* slate-100 */
    }



#customModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* way above map */
    transition: all 0.3s ease;
}

    #customModal img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 1rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

/* Hide modal by default */
.hidden-modal {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Dim map when modal is open */
body.modal-open #map {
    z-index: 0; /* send map behind */
    filter: blur(2px) brightness(0.7);
}


.user-info-modal {
    display: none;
}

    .user-info-modal.active {
        display: flex; /* or block depending on your layout */
    }




Looking at the two screenshots, the issue is clear — in Edge the hero section loses its split layout (text left + image right) and the image goes full width. This is a CSS/layout problem, not a JS problem. The chat panel also looks unstyled. Let me check what's different.
The core issues I can see:
1. Hero layout breaks in Edge — the md:flex-row split collapses because Edge handles h-[65vh] on a flex container differently. The fixed inline style="margin-top:80px" also fights with the layout.
2. Chat bar styling — in Edge the bg-btnss Tailwind custom color may not resolve, falling back to unstyled.
3. The user contact card in Edge shows email but no proper avatar ring — the Bootstrap position-absolute bottom-0 end-0 translate-middle classes aren't rendering correctly without Bootstrap's utility layer loaded.
Here are the targeted CSS fixes to add to your stylesheet:
css /* ── Hero section: force flex row on wider screens ───────────────────── */
.hero-card {
    display: flex;
    flex-direction: column;
    min-height: 65vh;
}

@media (min-width: 768px) {
    .hero-card {
        flex-direction: row;
        height: 65vh;
    }

    .hero-left {
        width: 40%;
        flex-shrink: 0;
    }

    .hero-right {
        width: 60%;
        flex-shrink: 0;
    }
}

/* ── Fix inline margin-top fighting flex alignment ───────────────────── */
.hero-left-inner {
    margin-top: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ── Chat bar: fallback color if --btnss CSS var not resolved ─────────── */
.chat-bar-header,
.chat-window-header {
    background-color: var(--btnss, #C4A283);
}

/* ── Online indicator on Bootstrap-style avatar ─────────────────────── */
.contact-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #22c55e;
    border: 2px solid white;
}


.dark #about * {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}
}