body {
    background-color: #F2E8D8;
    color: rgb(51, 51, 51, 0.8);
    font-family: 'Georgia', serif;
    margin-right: 120px; /* Add margin to prevent content from overlapping with the nav bar */
}

nav {
    width: 200px; /* Increased nav width */
}

.nav-link {
    color: #888;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 0;
}

.nav-link i {
    opacity: 0.6; /* Reduced icon opacity */
    font-size: 1.5rem;
    width: 40px; /* Fixed width for icon */
    text-align: center;
    transition: opacity 0.3s;
}

.nav-link.active i,
.nav-link:hover i {
    opacity: 1; /* Full opacity on active/hover */
}

.nav-text {
    visibility: visible;
    opacity: 1;
    margin-left: 10px;
    font-size: 1rem;
}

.nav-link.active, .nav-link:hover {
    color: #C47851;
}

.nav-link.active::before {
    content: '|';
    color: #C47851;
    position: absolute;
    left: -25px;
    font-size: 1.5rem;
    line-height: 1;
}

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.project-item {
    background-color: rgba(232, 216, 186, 0.5);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border: 1px solid #EAE6DD;
    transition: background-color 0.3s;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-details {
    display: none;
    margin-top: 1rem;
    border-top: 1px solid #EAE6DD;
    padding-top: 1rem;
}

.contact-button {
    background-color: #333;
    color: #F5F1E9;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-button i {
    margin-right: 8px;
}

.contact-button:hover {
    background-color: #555;
}

.link-linkedin {
    color: #58A6FF;
    border-bottom: 1px solid #58A6FF;
}

.link-linkedin:hover {
    background-color: #0077B5 !important;
    border-color: transparent;
}

.link-leetcode {
    color: #A0522D;
    border-bottom: 1px solid #A0522D;
}

.link-leetcode:hover {
    background-color: #8B4513 !important;
    border-color: transparent;
}

.link-resume {
    color: #23A060;
    border-bottom: 1px solid #23A060;
}

.link-resume:hover {
    background-color: #14834F !important;
    border-color: transparent;
}

.link-default {
    border-bottom: 1px solid currentColor;
}

.link-default:hover {
    border-color: transparent;
}

.link-github {
    border-bottom: 1px solid currentColor;
}

.link-github:hover {
    border-color: transparent;
}

.carousel-container {
    max-width: 32rem;
}

.carousel-item img {
    height: 16rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skill-item p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4A5568;
}

.skill-item > svg, .skill-item > img {
    margin-left: auto;
    margin-right: auto;
}
