body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #65a6c0;
    font-family: Arial, sans-serif;
}

.section-title {
    font-size: 28px;
    color: #333333;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 3px;
    width: 50px;
    background: #82acda;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* The container will take the full viewport height */
    padding: 20px;
    box-sizing: border-box;
}

.sidebar {
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 15px;
    color: #82acda;
}

.sidebar i {
    cursor: pointer;
}

.sidebar i:hover {
    color: #3d434b;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: flex;
    align-items: center;
}

.tooltip::before {
    content: attr(data-title);
    position: absolute;
    top: 50%; 
    transform: translateY(-100%);
    right: calc(100% + 10px);
    background-color: #555;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip when hovering over the icon */
.tooltip:hover::before {
    visibility: visible;
    opacity: 1;
}

.card {
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to the top of the card */
    align-items: center;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin: 20px auto; /* Add vertical margins */
    overflow-y: auto; /* Add scroll when the content overflows */
    max-height: calc(100vh - 100px); /* Set the maximum height */
}

/* This will change the scrollbar within the card */
.card::-webkit-scrollbar {
    width: 10px; /* Adjust width of scrollbar here */
}

.card::-webkit-scrollbar-track {
    border-radius: 10px; /* Makes the track of the scrollbar rounded */
    background: #f1f1f1; /* Adjust the color of the track here */
}

.card::-webkit-scrollbar-thumb {
    background: #888; /* Adjust the color of the thumb (the part that moves) here */
    border-radius: 10px; /* Makes the thumb of the scrollbar rounded */
}

.card::-webkit-scrollbar-thumb:hover {
    background: #555; /* Changes the color of thumb when hovered */
}

/* New class for the main content area */
.card-main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-item {
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: .3s;
}

.menu-item:hover {
    color: #0056b3;
}

/* New class for the dynamic content area */
#card-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items vertically within the content area */
    justify-content: center; /* Center items horizontally within the content area */
}

.card-img {
    width: 225px;
    height: 225px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c0c0c0; /* Adds a border to the image */
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1); /* Adds a shadow to the image */
}

.card-name {
    margin: 0;
    font-size: 30px;
    font-weight: bold;
    color: #333333;
    padding: 5px;
    background-color: #ffffff;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 5px; /* Adds some margin to the bottom */
}

.card-role {
    margin-top: 10px;
    font-size: 20px;
    color: #666666;
    text-align: center;
  }
  

.card-name i {
    margin-left: 10px;
    color: #506e8f;
}

.card-desc {
    font-size: 18px;
    color: #333333;
    line-height: 1.5; /* Increase the space between lines of text */
    margin-top: 10px;
    text-align: justify;
    padding: 0 15px; /* Add some horizontal padding */
    background-color: #ffffff; /* Add a light background to provide contrast */
    border-radius: 10px; /* Add some rounding to the corners for a softer look */
}

.card-links {
    margin-top: 30px;
    display: flex; /* Makes the icons line up horizontally */
    justify-content: center; /* Centers the icons */
}

.card-links a {
    position: relative;
    text-decoration: none;
    margin: 0 15px;
    color: #82acda;
}

.link-icon {
    font-size: 24px;
    transition: color 0.3s ease;
}

/* Tooltip container */
.card-links a::after {
    content: attr(data-title); /* This gets the text from the title attribute */
    position: absolute;
    top: -2.5em; /* Position the tooltip 2em above the link */
    left: 50%;
    transform: translateX(-50%); /* This centers the tooltip */
    background-color: #555; /* Background color of the tooltip */
    color: #fff; /* Text color of the tooltip */
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap; /* This stops the tooltip text from wrapping onto multiple lines */
    visibility: hidden; /* Hide the tooltip by default */
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip when hovering over the link */
.card-links a:hover::after {
    visibility: visible;
    opacity: 1;
}

.link-icon:hover {
    color: #0056b3;
}


#tech-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
}

.tech-list {
    column-count: 4;
    column-gap: 20px;
    padding: 0;
    list-style-type: none;
    text-align: center;
    width: 100%;
}

.tech-list li {
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
    color: #333333;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.language-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.lang-flag {
    width: 30px;
    cursor: pointer;
}

.language-toggle img {
    max-width: 100%;
    max-height: 100%;
}

/* Experience Section */

.experience-title {
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.experience-title:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
    border-radius: 10px;
    transform: translateY(-5px);
}

.experience-entry {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.experience-entry h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.experience-entry h4 {
    font-size: 18px;
    color: #777;
    margin-bottom: 15px;
}


.achievements-list {
    color: #555;
    line-height: 1.6;
    list-style-type: disc;
    padding-left: 20px;
}

.achievements-list li {
    margin-bottom: 10px;
}

.achievements-list-container {
    display: none;
}

/* Education Section */
.content-section {
    padding: 20px 0;
}

.content-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.education-entry {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.education-entry h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.education-entry h4 {
    font-size: 18px;
    color: #777;
    margin-bottom: 15px;
}

.education-entry p {
    color: #555;
    line-height: 1.6;
}

.education-entry a {
    color: #007bff;
    text-decoration: none;
}

.education-entry a:hover {
    text-decoration: underline;
}

/* Certifications section */

.cert-title {
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}

.cert-title:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
    border-radius: 10px;
    transform: translateY(-5px);
}

.cert-entry {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: auto;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.cert-entry h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.cert-entry h4 {
    font-size: 18px;
    color: #777;
    margin-bottom: 15px;
}
