body {
    background: #f8f9fd;
    font-family: "Segoe UI", sans-serif;
    padding-top: 71px;
}

.topbar {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.max-width {
    max-width: 520px;
    margin: 0.2rem auto;
}

.bg-orange {
    background-color: #ff4d00;
}

.btn-save:hover {
    background-color: #c3430c;
}

.card-profile {
    max-width: 520px;
    margin: auto;
    background: white;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-pic {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid white;
    margin-top: -100px;
    transition: transform 0.1s ease-in-out;
}

/* Contact Info */
.contact-item {
    padding: 2px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.contact-item:hover {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.contact-list .icon {
    width: 45px;
    height: 45px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10%;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-link {
    color: #000;
    font-size: 0.9rem;
    display: inline-block;
}


/* contact-form  */

.contact-form input,
.contact-form textarea {
    border-radius: 5px;
}

.contact-form .submit-btn {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.contact-form .submit-btn:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 20px 30px -10px;
}

/* Qr-container  */

.qr-container {
    padding: 2rem;
}

.qrcode {
    border: #007bff 3px solid;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.qrcode:hover {
    transform: scale(1.1);
    border-color: #0056b3;

    filter: brightness(1.1);
}

.qrcode::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.qrcode:hover::before {
    animation: shine 0.8s ease-in-out;
}


@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.qr-title {
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.qr-container:hover .download-text {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation on load */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.qrcode {
    animation: pulse 2s infinite;
}

.qrcode:hover {
    animation: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .qrcode {
        width: 70% !important;
    }

    .qr-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

footer {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    text-align: center;

    width: 100%;
}
