/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    /*font-size: 0;
    text-decoration: none;*/
}

/* Custom Navigation Bar */
.custom-navbar {
    position: fixed;
    top: 20px; /* Position at the top of the page */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 5px;
    z-index: 1000;
    transition: width 0.3s ease, padding 0.3s ease, border-radius 0.3s ease;
}

.navbar-icons {
    list-style: none;
    display: flex;
    justify-content:baseline;
    align-items: center;
    transition: margins 0.3s ease;
}


.navbar-icons li {
    margin: 0 10px;
    margin-top: 1px;
    position: relative;
    transition: margins 0.3s ease;
}


.navbar-icons li + li::after { 
    content: "";
    position: absolute;
    left: -10px; 
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 1px;
    background-color: #dcdcdc;
    transition: height 0.3s ease;
}


.navbar-icons a {
    text-decoration: none;
    font-size: 0;
    transition: color 0.3s ease;
}

.navbar-icons img{
    width: 25px;
    height: 25px;
    position: center;
    transition: width 0.3s ease, height 0.3s ease, transform 0.3s ease;
}
.navbar-icons a:hover img{
    transform: scale(1.1);
}

/* Tooltip styling */
.navbar-icons li {
    position: relative;
}

.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    top: 125%; /* Position below the icon */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.navbar-icons li:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Icon specific styles */
.navbar-icons .fa-home,
.navbar-icons .fa-cv,
.navbar-icons .fa-linkedin{
    font-size: 24px;
}

/* Responsive adjustments for smartphones */
@media (max-width: 768px) {
    .custom-navbar {
        top: 20px; /* Adjust if needed */
        left: 50%;
        transform: translateX(-50%);
        padding: 5px  5px; /* Adjust padding */
        border-radius: 30px; /* Adjust border radius for smaller screens */
    }

    .navbar-icons {
        justify-content: space-around; /* Space icons evenly on smaller screens */
    }

    .navbar-icons li {
        margin: 0 10px; /* Reduce margin between icons */
    }

    .navbar-icons img {
        min-width: 16px; /* Adjust icon size for smaller screens */
        min-height: 16px;
    }

    .navbar-icons li:not(:last-child)::after {
        height: 20px; /* Adjust separator line height */
        min-height: 20px;
    }
}