@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to mimic the image layout */
    min-height: 100vh;
    background-color: #f0f2f5; /* Very light gray background for the overall page */
    color: #333;
    box-sizing: border-box;
    padding-top: 0; /* No top padding needed anymore */
}

.card-container {
    width: 100%; /* Take full width on mobile */
    max-width: 500px; /* Max width for the entire card (top + bottom) */
    margin: 0 auto; /* Center on larger screens */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Overall subtle shadow */
    border-radius: 0; /* No border radius on the card container itself for the full-width look */
    overflow: hidden; /* Ensures rounded corners on inner sections work */
}

/* --- Top Section Styling --- */
.top-section {
    background: linear-gradient(135deg, #4dc6e3, #3a97cf); /* Teal to Blue gradient */
    color: #fff;
    padding: 40px 20px 20px; /* Adjust padding as needed */
    text-align: center;
    position: relative; /* For potential future absolute positioning of elements */
    padding-top: 80px; /* More space for the top, as in the example */
    border-bottom-left-radius: 20px; /* Rounded bottom corners to cut into white section */
    border-bottom-right-radius: 20px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.6); /* White border for profile photo */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 700; /* Bolder name */
}

.tagline {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300; /* Lighter tagline */
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 20px; /* Space above the gradient break */
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

.action-button:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.action-button i {
    font-size: 1.8em;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    padding: 12px;
    width: 45px; /* Ensure circular background */
    height: 45px; /* Ensure circular background */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Bottom Section Styling --- */
.bottom-section {
    background-color: #fff;
    padding: 20px 25px; /* Padding inside the white section */
    border-top-left-radius: 20px; /* Rounded top corners to cut into blue section */
    border-top-right-radius: 20px;
    margin-top: -20px; /* Pulls the white section up to overlap the gradient */
    position: relative;
    z-index: 2; /* Ensures it sits above the top section's rounded corners */
}

.contact-detail-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee; /* Light gray separator lines */
}

.contact-detail-item:last-of-type {
    border-bottom: none; /* No border for the last item before social */
}

.contact-detail-item i {
    font-size: 1.2em;
    color: #666;
    margin-right: 15px;
    width: 25px; /* Align icons */
    text-align: center;
}

.contact-detail-item .detail-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contact-detail-item .detail-text a,
.contact-detail-item .detail-text span {
    font-size: 1em;
    color: #333;
    text-decoration: none;
}

.contact-detail-item .detail-text a:hover {
    color: #007bff;
}

.contact-detail-item .detail-label {
    font-size: 0.8em;
    color: #999;
    margin-top: 2px;
}

.social-media-section {
    padding: 20px 0;
    border-bottom: 1px solid #eee; /* Separator before download button */
    margin-bottom: 20px;
}

.social-media-heading {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    display: block;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center; /* This centers the social icons */
}

.social-icon {
    display: inline-block;
    color: #007bff; /* LinkedIn blue */
    font-size: 2.2em; /* Size for social icons if using Font Awesome */
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img { /* For the LinkedIn image example */
    border-radius: 50%;
}


/* Download vCard Button */
.download-vcard-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px); /* Adjust based on container padding */
    padding: 15px 20px;
    margin: 0 auto 20px; /* Center and add bottom margin */
    background: linear-gradient(90deg, #007bff, #0056b3); /* Blue gradient */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-vcard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-vcard-button i {
    margin-right: 10px;
}

/* Media Queries for responsiveness - adapted for new layout */
@media (max-width: 600px) {
    .card-container {
        border-radius: 0; /* Ensure no border radius on small screens */
        box-shadow: none; /* No shadow for full-width mobile view */
    }

    .top-section {
        padding: 60px 15px 15px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .bottom-section {
        padding: 15px 20px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        margin-top: -15px; /* Adjust overlap */
    }

    h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }

    .action-buttons {
        gap: 15px;
    }

    .download-vcard-button {
        width: 100%; /* Take full width on mobile */
        margin: 0 0 15px 0;
        padding: 12px 15px;
    }
}

/* Hide the QR code section if it's no longer desired on the main view */
.qr-code-section {
    display: none;
}