/* Reset default browser margin/padding */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
  margin: 1em 0;
}


main {
    width: 100%;
    padding-bottom: 100px;
}

.container {
    max-width: 900px; /* Or any width you want for large screens */
    margin: 0 auto;   /* Perfect horizontal centering */
    padding: 0 20px;  /* Padding to avoid text hugging screen edges */
    width: 100%;
    box-sizing: border-box;
}

/* Profile row layout */
.profile {
    display: flex;
    margin: 2rem auto;
    overflow: hidden;
    justify-content: center;
    gap: 1rem;
}

/* Left column - Profile Image */
.profile-img {
    flex: 0 0 40%;
    position: relative; /* Ensure positioning for border */
    max-width: 100%; /* Prevents overflow */
    overflow: hidden;
    display: inline-block; /* Ensures the container shrinks to fit the image */
    border: 2px solid black; /* Border around the image */
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container, cropping if necessary */
    display: block; /* Prevents any unwanted space under the image */
}

/* Right column - Name and Description */
.profile-text {
    flex: 0 0 40%;
    max-width: 100%;
    justify-content: center;
    overflow-y: auto; /* Enable scrolling if text overflows */
    padding: 1rem;
    text-align: justify;
}

.fun-fact {
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    width: 80vw; 
    display: block;
    position: relative;  
}

.fun-fact p {
    margin-bottom: 1rem; /* Add some space between paragraphs */
}


.divider {
    width: 80%;
    height: 2px;
    background-color: #ccc; /* Light gray */
    border: none; /* Removes default border */
    margin: 20px auto; /* Centers and adds spacing */
}

/* Show logo by default, hide text */
.linkedin-text {
    display: none;
}

.linkedin-logo {
    display: inline-block;
    height: 24px; /* Add a specific height for the logo */
    width: auto;
}

/* Mobile Responsiveness */
@media (max-width: 650px) {
    /* Stack the profile image and text in a single column */
    .profile {
        flex-direction: column;
        max-height: none; /* Allow the profile to take as much height as needed */
        width: 100%; /* Full width for mobile */
    }

    .profile-img,
    .profile-text {
        width: 96%; /* Both columns should take the full width */
        flex-wrap: wrap;
    }

    .profile-text {
        overflow-y: visible; /* Make sure text overflow is visible */
    }


    .fun-fact {
        margin: 2rem auto;
        padding: 1rem;
        text-align: center;
    }


    nav {
        position: relative;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        padding: 1rem 0;
        z-index: 1000;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .show-menu {
        display: flex !important;
    }

    /* LinkedIn specific styles */
    .linkedin-text {
        display: inline-block !important;
        color: white;
    }
    
    .linkedin-logo {
        display: none !important;
    }
}

body, html {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}