 /* Global Styles */
 ::selection {
    background-color: #76C7C0; /* Background color of the highlight */
    color: #ffffff; /* Text color within the highlight */
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F8FA; /* Light gray */
    color: #333333; /* Charcoal text */
}
header {
    background-color: #00509E; /* Deep blue */
    color: #fff; /* White text */
    padding: 20px 0;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
}
header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}
nav {
    background-color: #76C7C0; /* Teal green */
    text-align: center;
    padding: 10px 0;
    position: sticky;
    z-index: 1000;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav a {
    color: #fff; /* White text */
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
}
nav a:hover {
    color: #FFA500; /* Accent color */
}
section {
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    background-color: #ffffff; /* White background for sections */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
/*.profile-container {
    display: flex;
    align-items: center;
    gap: 20px; 
}*/

.profile-container {
    overflow: hidden; /* Clears floated elements */
    display: flex;
    align-items: flex-start;
    gap: 20px; 
}

.profile-image {
    float: left; /* Floats the image to the left */
    width: 160px; /* Profile image width */
    height: 160px; /* Profile image height */
    border-radius: 50%; /* Circular shape */
    object-fit: cover; /* Ensures the image fits within the circle */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    border: 2px solid #00509E; /* Border color matches heading */
    margin-right: 20px; /* Space between the image and text */
}

#about p {
    text-align: justify;
    line-height: 1.5;
    margin: 0; /* Remove margin for better alignment */
    flex: 1;
    overflow: hidden;
}

section h2 {
    margin-top: 0;
    color: #00509E; /* Deep blue for headings */
}

.cv-button > .new-tab{
    background-color: #d7d7d7;
}

.cv-button:hover > .new-tab{
    background-color: #ffffff;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    background-color: #d7d7d7; /* Blue background */
    color: black; /* White text */
    text-decoration: none; /* No underline */
    padding: 10px 20px; /* Button padding */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Button text size */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin-top: 10px;

}

.cv-button img {
    width: 20px; /* Adjust icon size */
    height: 20px;
    margin-right: 10px; /* Spacing between icon and text */
}

.cv-button:hover {
    background-color: #ffffff; /* Darker blue on hover */
    /*transform: scale(1.05); /* Slightly enlarge on hover */
    color: black;
}

#skills h3 {
    color: #00509E; /* Deep blue for category headings */
    margin-bottom: 10px;
}

#skills > section {
    background-color: #E0E0E0;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between skill boxes */
}

.skills div {
    flex: 1 1 calc(20% - 20px); /* Adjust width to fit 3 boxes per row */
    padding: 15px;
    background-color: #F7F8FA; /* Light gray for skill boxes */
    border: 1px solid #E0E0E0; /* Light border */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.skills img {
    /*width: 50px; /* Reduce icon size */
    height: 50px; /* Reduce icon size */
    margin-right: 10px; /* Adjust spacing */
}
#portfolio div {
    margin: 10px;
    padding: 10px;
    background-color: #F7F8FA; /* Light gray for portfolio boxes */
    border: 1px solid #E0E0E0; /* Light border */
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
#portfolio li{
    list-style: none;
}
#portfolio ul{
    list-style: none;
    margin:0;
    padding:0;
}
#portfolio h3{
    color:#00509E;
}
#portfolio span{
    white-space: nowrap;
}
span img {
    /*width: 15px; /* Reduce icon size */
    height: 15px; /* Reduce icon size */
    margin-right: 8px; /* Adjust spacing */
    margin-left: 10px;
    vertical-align: middle;

    user-select: none; 
    -webkit-user-drag: none; 
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
}
.project-text{
    text-align: justify;
    line-height: 1.5;
}
#portfolio p{
    line-height: 1.5;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #00509E; /* Deep blue for footer */
    color: #fff; /* White text */
    position: relative;
    bottom: 0;
    width: auto;
}
footer p {
    margin: 0;
}
a {
    color: #00509E; /* Deep blue for links */
}
a:hover {
    color: #FFA500; /* Accent color for hovered links */
}
ul li {
    margin-bottom: 10px;
}

#contact{
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
}

#contact h2 {
    margin-top: 0;
    text-align: center;
}

.contact-container {
    display: flexbox;
    justify-content: space-between;
    /*flex-wrap: nowrap; /* Ensure items stay in one row */
    gap: 10px; /* Add spacing between items */
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-box {
    flex: 0 1 calc(33.33% - 10px); /* Adjust width to fit three boxes in one row */
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px; /* Reduce padding to make boxes smaller */
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* Remove default link styles */
    color: inherit; /* Inherit text color */
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-box:hover {
    transform: scale(1.0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-box img {
    width: 40px; /* Reduce icon size */
    height: 40px; /* Reduce icon size */
    margin-right: 10px; /* Adjust spacing */
}

.contact-box span {
    font-weight: bold;
}

.contact-box a {
    color: #00509E;
    text-decoration: none;
    font-weight: bold;
}

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

.github-button {
    display: inline-flex;
    align-items: center;
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    text-decoration: none; /* No underline */
    padding: 10px 20px; /* Button padding */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Button text size */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.github-button img {
    width: 20px; /* Adjust icon size */
    height: 20px;
    margin-right: 10px; /* Spacing between icon and text */
}

.github-button img[alt="GitHub Logo"] {
    width: 25px; /* Adjust icon size */
    height: 25px;
    margin-right: 10px; /* Spacing between icon and text */
    padding:0;
    /*border-radius: 100%;*/
}

.github-button:hover {
    background-color: #333333; /* Slightly lighter black on hover */
    /*transform: scale(1.05); /* Slightly enlarge on hover */
    color: black;
    background-color: rgb(254, 254, 254);
}

.github-button:hover .new-tab{
    background-color: white;
}

.new-tab{
    background-color: rgb(82, 82, 82);
    margin-left: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
}

.website-button > .new-tab{
    background-color: #b8b8b8;
}

.website-button:hover > .new-tab{
    background-color: #ffffff;
}

.website-button {
    display: inline-flex;
    align-items: center;
    background-color: #b8b8b8; /* Blue background */
    color: #3d3d3d; /* White text */
    text-decoration: none; /* No underline */
    padding: 10px 20px; /* Button padding */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Button text size */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    margin-top: 10px;

}

.website-button img {
    width: 25px; /* Adjust icon size */
    height: 25px;
    margin-right: 10px; /* Spacing between icon and text */
}

.website-button:hover {
    background-color: #ffffff; /* Darker blue on hover */
    /*transform: scale(1.05); /* Slightly enlarge on hover */
    color: black;
}

.fably-website-button {
    display: inline-flex;
    align-items: center;
    background-color: #000000; /* Blue background */
    color: #ffffff; /* White text */
    text-decoration: none; /* No underline */
    padding: 10px 20px; /* Button padding */
    border-radius: 8px; /* Rounded corners */
    font-size: 16px; /* Button text size */
    font-weight: bold; /* Bold text */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Hover effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.fably-website-button img {
    /*width: 30px; /* Adjust icon size */
    height: 22px;
    margin-right: 10px; /* Spacing between icon and text */
}

.fably-website-button:hover {
    background-color: #ffffff; /* Darker blue on hover */
    /*transform: scale(1.05); /* Slightly enlarge on hover */
    color: black;
}

@media (max-width: 768px) {
    .contact-box {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
    header{
        padding: 40px 0px;
    }
    header h1 {
        margin: 0;
        font-size: 1.5em;
    }
    header p {
        margin: 5px 0 0;
        font-size: 1.0em;
    }

    nav {
        background-color: #76C7C0; /* Teal green */
        text-align: center;
        padding: 5px 0;
        position: sticky;
        z-index: 1000;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    nav a {
        color: #fff; /* White text */
        text-decoration: none;
        margin: 0 15px;
        font-size: 1.0em;
    }
    nav a:hover {
        color: #FFA500; /* Accent color */
    }

    

    @media (max-width: 468px) {
        .profile-container {
            overflow: hidden; /* Clears floated elements */
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 20px; 
        }
        
        .profile-image {
            float: clear;
            width: 100%; /* Profile image width */
            height: auto;
            /*height: 160px; /* Profile image height */
            border-radius: 50%; /* Circular shape */
            object-fit: cover; /* Ensures the image fits within the circle */
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
            border: 2px solid #00509E; /* Border color matches heading */
            margin-right: 20px; /* Space between the image and text */
            margin-bottom: 30px;
        }
    
        #about p{
            clear: left;
        }
    }
}