﻿.link-container {
    position: relative;
    display: inline-block;
}

.custom-popover {
    position: absolute;
    bottom: 100%;
    right: 0; /* Add this - aligns popover to the right edge of the link */
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 350px;
    max-width: 400px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

    .custom-popover.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .custom-popover::after {
        content: '';
        position: absolute;
        top: 100%;
        right: 20px; /* Change from left: 50% to align arrow with right side */
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid white;
    }
.popover-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.popover-body {
    padding: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.contact-info {
    margin-bottom: 1rem;
}

    .contact-info:last-child {
        margin-bottom: 0;
    }

    .contact-info i {
        color: #667eea;
        width: 20px;
        margin-right: 8px;
    }

    .contact-info strong {
        display: block;
        margin-bottom: 0.25rem;
        color: #764ba2;
    }

.about-text {
    text-align: left;
}

.company-name {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.75rem;
}

.link-container {
    position: relative;
    display: inline-block;
}

@media (max-width: 768px) {
    .custom-popover {
        min-width: 280px;
        max-width: 90vw;
        left: 50%;
        right: auto; /* Override the right: 0 for mobile */
        transform: translateX(-50%) translateY(10px);
    }

        .custom-popover.show {
            transform: translateX(-50%) translateY(0);
        }

        .custom-popover::after {
            left: 50%;
            right: auto;
            transform: translateX(-50%);
        }
}
