body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h3 {
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tab {
    cursor: pointer;
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: center;
}

.tab.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content h3 {
    text-align: left;
}

.tab-content.active {
    display: block;
}

.projects ul {
    list-style-type: square;
    padding-left: 1.5rem;
}

/* professional certificates */
.cert-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.cert-gallery a {
    display: inline-block;
    transition: transform 0.2s;
}

.cert-gallery img {
    width: 120px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.cert-gallery a:hover {
    transform: scale(1.5);
}

/* Page Menu */
.page-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
    font-size: 16px;
}

.page-menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    font-size: 16px;
    border: 2px solid white;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    margin:0;
}

.page-menu a.active {
    background-color: white;
    color: #333;
    border-color: #fff;
    box-shadow: 0 0 0 2px white inset;
    pointer-events: none;
}

/* header top */
.header-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.header-container {
    display: flex;
    align-items: center;
    /* Vertical centering */
    gap: 30px;
    /* Space between image and text */
    flex-wrap: wrap;
    /* Makes it responsive on small screens */
    padding: 20px;
}

/* Social Icons */
.social-icons a {
    font-size: 16px;
    text-decoration: underline;
    transition: transform 0.2s ease-in-out;
    color: white;
    cursor: pointer;
}

.social-icons a:hover {
    transform: scale(1.5);
    /* Optional zoom effect */
}

.social-icons a:not(:last-child)::after {
    content: "|";
    margin-left: 0.5em;
    margin-right: 0.5em;
    color: white;
}

/* Ensure the header is responsive */
.page-header {
    padding: 10px;
    /* Reduce padding for smaller screens */
    text-align: center;
    /* Center content horizontally */
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
    align-items: center;
    /* Center content vertically */
}

/* Make the profile image responsive */
.profile {
    max-height: 110px;
    /* Limit the maximum height */
    width: auto;
    /* Maintain aspect ratio */
    max-width: 100%;
    /* Ensure it doesn't overflow the screen */
    margin-bottom: 5px;
    /* Add spacing below the image */
}

/* Adjust font sizes for smaller screens */
.name {
    font-size: 2rem;
    /* Adjust font size for the name */
    margin: 0;
}

.tagline {
    font-size: 1.2rem;
    /* Adjust font size for the tagline */
    margin: 0;
}

/* Media query for smaller screens */
@media (max-width: 850px) {
    .page-header {
        padding: 5px;
        /* Reduce padding further for smaller screens */
    }

    .name {
        font-size: 1.5rem;
        /* Smaller font size for the name */
    }

    .tagline {
        font-size: 1rem;
        /* Smaller font size for the tagline */
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 8px;
    }
    .profile {
        max-height: 100px;
        /* Limit the maximum height */
        width: auto;
        /* Maintain aspect ratio */
        max-width: 100%;
        /* Ensure it doesn't overflow the screen */
        margin-bottom: 0px;
    }
    .header-top {
        align-items: center;
    }

    .social-icons a {
        display: block;
        margin-bottom: 3px;
    }
}

@media (max-width: 600px) {
  .page-menu {
    gap: 6px;
    padding: 2px 0;
  }

  .page-menu a {
    font-size: 14px;
    padding: 4px 8px;
  }
  .profile {
      max-height: 100px;
      /* Limit the maximum height */
      width: auto;
      /* Maintain aspect ratio */
      max-width: 100%;
      /* Ensure it doesn't overflow the screen */
      margin-bottom: 0px;
  }
}

/************* style for projects overview page *********************************/
.projects {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

.project img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
}
.project-summary h3 {
    text-align: left;
}
.project-summary h3 a {
    color: #0366d6;
    text-decoration: underline;
    text-align: left;
}
/* Link buttons */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.project-links a {
    background-color: #005a9c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}
.project-links a:hover {
    background-color: #007bff;
}
/* Responsive adjustments for small screens */
@media (max-width: 600px) {
    .project-links {
        align-items: flex-start;
    }
    .project-links a {
        width: fit-content;
    }
}
ol.styled-number {
    /* Numbers are inside the content block */
    padding-left: 0;
    /* Remove left padding */
    margin-left: 0;
    /* Remove left margin */
}
ol.styled-number > li::marker {
    color: #0366d6;
    font-size: 1.17em;
    /* Same as h3 */
}
/************ style for individual project pages ******************/
.project-details {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 20px;
    padding-top: 10px;
    margin-top: 0;
}
.project-details h1, .project-details h3 {
    text-align: left;
}

/* Skills Section Styles */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-badge {
    background-color: #e0f0ff;
    color: #005a9c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s;
}

.skill-badge:hover {
    background-color: #cbe4ff;
}