body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.card-container {
    perspective: 1000px;
}

.card {
    width: 300px;
    height: 425px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.6s ease-in-out;
}

.card:hover {
    transform: rotateY(180deg);
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.front {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 150px;
    height: 100%;
    animation: zoomIn 1s ease forwards;
}

.name {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    animation: fadeIn 1s ease 0.5s forwards;
    font-family: 'Lora' Serif;
}

.name:hover{
    color: #3b5998;
}

.title {
    margin: -10px;
    font-size: 16px;
    color: #f4a261;
    font-weight: bold;
    animation: fadeIn 1s ease 1s forwards;
}

.company {
    font-size: 18px;
    color: #ff0000;
    font-weight: bold;
    animation: fadeIn 1s ease 1s forwards;
    justify-content: center;
    text-align: center;
}
.company span{
    color:#000000;
}

.company a{
    color:#000000;
}

.back {
    background-color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.qr-code img {
    width: 150px;
    height: 150px;
    animation: pulse 2s infinite;
}

.contact-info p {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
}

.contact-info i {
    margin-right: 10px;
    color: #4a90e2;
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    margin: 0 10px;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.instagram {
    color: #E4405F;
}

.facebook {
    color: #3b5998;
}

.linkedin {
    color: #0077B5;
}

  /* Media Queries for Larger Screens */
  @media (min-width: 768px) {
    .card-container {
        max-width: 400px;
    }

    .name {
        font-size: 24px;
    }

    .title {
        font-size: 18px;
    }

    .qr-code img {
        max-width: 150px;
    }

    .contact-info p {
        font-size: 16px;
    }

    .social-icon {
        font-size: 24px;
    }
}
