html {
    scroll-behavior: smooth;
  }
  

/* Reset some basic elements */
body, h1, h2, h3, p, ul, li, a, section, article {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    line-height: 1.6em;
    font-size: calc(19px + var(--font_size_body_offset, 0px));
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    padding: 1rem;
    background: #f8f8f8;
}
h2, h3 {
    font-weight: bold;
}

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

nav {
    margin-bottom: 1rem;
}
nav a {
    padding: 0.5em 1em;
 
    color: #007bff;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none; /* Optional: if you want to remove the underline from the links */
}

nav a.current, nav a:visited.current {
    color: #666;
    background-color: #e7e7e7;
    border-color: #666;
    pointer-events: none; /* Disables the link */
    cursor: default;
}

nav a:hover {
   
    background-color: #e7e7e7;
}
.info-icon {
    width: 30px;
    height: 30px;
    background-color: #007bff;
    border-radius: 50%;
    color: white;
    line-height: 30px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    user-select: none; /* Prevents text selection */
    position: fixed;
    bottom: 20px;
    right: 20px;
  }
  
  .popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 70%;
    position: relative;
  }
  
  .close {
    cursor: pointer;
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  body.no-scroll {
  overflow: hidden;
}

/* Utility classes */
.container {
    max-width: 100%;
    margin: 0 auto;
   
    box-sizing: border-box; /* Make sure padding doesn't affect the width */
}

/* Main content */
main .container {
    margin-bottom: 2rem;
}

/* List styles */
ul {
    list-style: none; /* Remove default list style */
    padding-left: 0; /* Remove default padding */
}

ul li {
    margin-bottom: 0.5rem; /* Add some space between list items */
    display: flex; /* Align language and skill bar */
    align-items: center; /* Center items vertically */
}

ul li::before {
    content: '-'; /* Custom bullet symbol */
    color: #007bff; /* Bullet color */
    font-size: 1em; /* Bullet size */
    padding-right: 0.5rem; /* Space after the bullet */
}


/* Header */
header {
    text-align: center;
    padding: 1rem 0;
}

/* Navigation */
nav ul {
    list-style: none;
    text-align: center;
    padding: 1rem;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

/* Main content */
main {
    margin-bottom: 2rem;
}

section, article {
    margin-bottom: 4rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: .75rem;
    color: #333;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

p, li {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.dates {
    font-style: italic; /* Makes the text italic */
    
}

#skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Adjust the minmax values as needed */
    grid-gap: 20px; /* Space between the grid items */
}



.language-name {
    width: 120px; /* Fixed width for the language name */
    display: inline-block; /* Allow the use of width */
}

.language-skill {
    display: flex; /* Use flexbox for aligning the skill bar */
    background: #eee;
    border-radius: 4px;
    flex-grow: 0.3; /* Allow the bar to fill up the remaining space */
    height: 10px;
    margin-left: 5px;
}

.language-level {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: #007bff;
    transition: width 0.3s ease;
}
[data-skill="native"] .language-level {
    width: 100%;
}

[data-skill="fluent"] .language-level {
    width: 100%; /* Or whatever percentage you feel represents your fluency */
}

[data-skill="conversational"] .language-level {
    width: 40%; /* Adjust according to your conversational level */
}

/* Footer */
footer {
    background: #f8f8f8; /* Adjusted to match the nav background */
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #ddd; /* Add a border top for a subtle separation */
}

footer h2 {
    color: #333;
    margin-bottom: 1rem; /* Add some space between the heading and the links */
}

#downloads a {
    padding: 0.5em 1em;
    margin: 0 0.5em;
    color: #fff;
    background-color: #007bff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none; /* Remove the underline from the links */
    display: inline-block; /* Allows padding and margin to take effect */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
    width: 150px; /* Fixed width for buttons */
    text-align: center; /* Center the text inside the buttons */
    font-size: smaller;
}

footer a:hover, footer a:focus {
    background-color: #e7e7e7; /* Hover effect for the buttons */
    text-decoration: none; /* Optionally remove the underline from the links on hover */
}

footer address {
    font-style: normal; /* Addresses are italic by default, reset this if desired */
    margin-bottom: 1rem; /* Space between contact info and download section */
}

/* Maintain the white text for download buttons */
footer #downloads a {
    color: #fff;
    background: #007bff; /* Keep the blue background */
}

/* Hover effect for download buttons */
footer #downloads a:hover, footer #downloads a:focus {
    background-color: #0056b3; /* Darken the blue on hover */
    color: #fff; /* Maintain white text */
}

.contact-info {
    padding: 0.1em 1em;
    margin: 0 0.5em;
    color: #007bff;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

.contact-info:hover {
    background-color: #e7e7e7;
    color: #0056b3;
}

/* Style for email and phone links after being shown */
.contact-link {
    display: block; /* Make the link take the full width of its container */
    color: #007bff;

    cursor: pointer;
    width: 100%; /* Fill the width of the .contact-info container */
    height: 100%; /* Fill the height of the .contact-info container */
    box-sizing: border-box; /* Include padding and border in the width and height */
}

.contact-link:hover {
    color: #0056b3;
    text-decoration: none;
}



/* Responsive Design */
@media (min-width: 576px) {
   
}
@media (max-width: 767px) {
p, li {
    font-size: 16px;
}
h2{
    font-size: 20px;
}
h3{
    font-size: 18px;
}
}


@media (min-width: 768px) {
    .container {
        width: 728px;
    }
   
}

@media (min-width: 992px) {
    .container {
        width: 728px;
    }

    nav ul li {
        margin-right: 1rem;
    }
    .language-skill {
        flex-grow: 0.15; /* Allow the bar to fill up the remaining space */
    }
}

@media (min-width: 1200px) {
    .container {
        width: 850px;
    }
}

