body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

.card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 35px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.company-logo {
    display: block;
    max-width: 120px;
    height: auto;
    margin: 15px auto 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
}

.name {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2em;
    font-weight: 600;
    color: #2d3748;
}

.title, .company {
    color: #4a5568;
    margin: 5px 0;
    font-size: 1.1em;
}

.company {
    font-weight: 500;
}

.email a, .phone a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.email a:hover, .phone a:hover {
    color: #2c5282;
    text-decoration: underline;
}

.social-links {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    text-decoration: none;
    font-size: 1.4em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f7fafc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.social-links a:nth-child(1):hover { background-color: #0077b5; } /* LinkedIn */
.social-links a:nth-child(2):hover { background-color: #1877f2; } /* Facebook */
.social-links a:nth-child(3):hover { background-color: #000000; } /* X */
.social-links a:nth-child(4):hover { background-color: #e4405f; } /* Instagram */

.buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(66, 153, 225, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Add margin to icons inside buttons */
button i {
    margin-right: 8px;
}

/* Video Container */
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#qrcode-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#qrcode-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

#qrcode canvas,
#qrcode img {
    display: block;
    margin: auto;
    border-radius: 8px;
}

/* External Links */
.external-links {
    margin-top: 35px;
    text-align: left;
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.external-links h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    font-weight: 600;
}

.external-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.external-links li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.external-links li:hover {
    transform: translateX(5px);
}

.external-links a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
    font-weight: 500;
}

.external-links a:hover {
    color: #2c5282;
}

/* Modal Styles */
.modal-overlay {
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 320px; /* Adjust as needed */
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#qrcode {
    margin: 20px auto 0; /* Center QR code */
    display: inline-block; /* Needed for centering */
}

#qrcode img {
    display: block; /* Prevents extra space below img */
    margin: auto;
    max-width: 100%;
    height: auto;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .card {
        padding: 25px;
        border-radius: 12px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.6em;
    }

    .title, .company {
        font-size: 1em;
    }

    .social-links {
        gap: 12px;
    }
    
    .social-links a {
        font-size: 1.2em;
        width: 42px;
        height: 42px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9em;
        width: 100%;
    }

    .video-container {
        margin: 20px 0;
    }

    .external-links {
        padding: 15px;
    }

    .external-links h2 {
        font-size: 1.2em;
    }

    .external-links li {
        margin-bottom: 8px;
    }
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.2em;
    }
}
