/* Contact Card */

.about_me-card h1.about_me-heading {
    font-size: 70px;
    text-align: center;
    font-weight: bold;
    color: black;
}

.leo-image {
    width: 15%;
    display: inline-block; /* Treats the logo like an inline element (like the links) */
}

/* Container for the image and description */
.about_me-content {
    display: flex; /* Enables a horizontal layout */
    align-items: flex-start; /* Aligns items at the top */
    gap: 20px; /* Adds space between the image and the description */
}

/* Adjusts the width of the description section */
.about_me-description {
    flex: 1; /* Ensures the description takes up remaining space */
}

.about_me-card {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    max-width: 1200px; /* Matches project card width */
    margin: 40px auto;
    padding: 20px;
    text-align: left;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.about_me-card h1 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: centre;
    color: #333;
}

.about_me-description {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Contact Details */


.about_me-details {
    display: flex;
    flex-direction: column; /* Stacks rows vertically */
    align-items: flex-end; /* Aligns the entire group (text + video) to the right */
    gap: 20px; /* Adds space between rows */
    margin-top: 40px; /* Adds spacing above */
    padding-right: 40px; /* Adds space on the right-hand side */
}

.about_me-row {
    display: flex; /* Aligns text and video horizontally */
    align-items: center; /* Vertically aligns text and video */
    gap: 40px; /* Adds space between the text and video */
    text-align: left; /* Ensures text is aligned to the left */
}

.about_me-row p {
    margin: 0; /* Removes default margin */
    font-size: 18px; /* Adjust font size as needed */
    color: #555;
    white-space: nowrap; /* Prevents text wrapping */
    text-align: left; /* Keeps the text aligned to the left */
    flex-shrink: 0; /* Prevents the paragraph from shrinking */
}

.video-container {
    width: 100%; /* Makes the video responsive */
    max-width: 400px; /* Keeps videos consistent in size */
}


.video-container iframe {
    width: 100%; /* Ensures the video scales responsively */
    height: 225px; /* Maintains a 16:9 aspect ratio */
}


.contact-row a {
    color: #007bff;
    text-decoration: none;
}

.contact-row a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-card {
        padding: 15px;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

    .contact-row p {
        font-size: 14px;
    }

    .video-container iframe {
        height: 180px; /* Adjust height for smaller screens */
    }
}
