* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-weight: normal;
}

:root {
    /* https://www.w3schools.com/css/css3_variables.asp */
    --icon-color: #199cdb;
    --title-color: #000;
    --title-font-size: 24px;
    --content-color: #696969;
    --content-font-size: 14px;
    --border-color: #dee2e6;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

main > div > div {
    margin: 0 auto;
    padding: 0 3%;
}

ul {
    padding-left: 0; /* Clear BootstrapCSS's default padding on lists */
}

a:link {
    text-decoration: none;
    background-color: none;
}

a:hover {
    color: red;
}

a:active {
    text-decoration: none;
    color: blue;
}

footer {
    position: sticky;
    bottom: 0;
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/backdrop-filter*/
    backdrop-filter: blur(5px); /* A little extra thing*/
    background-color: #f7f7f7a7;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .contacts {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

footer .contact {
    display: flex;
    gap: 5px;
    align-items: center;
}

footer .contact i {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #199cdb;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    font-size: 12px;
    color: white;
}

.title {
    color: #000;
    font-size: var(--title-font-size);
}

.content {
    color: var(--content-color);
    font-size: var(--content-font-size);
}

/* ====================Banner==================== */

.banner {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

.banner img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-text {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    font-size: 20px;
    transform: translate(-50%, -50%); /* Actually centers the text. Credit to w3schools. */
    color: white;
}

.banner-text h1 {
    font-weight: normal;
}

.banner-text h2 {
    font-family: "open_sanslight", sans-serif;
    font-size: 13px;
    font-weight: 100;
}

/* ====================Navbar==================== */

.navbar li {
    position: relative; /* Anchor for .navbar-avatar */
    font-size: 14px;
    color: #000;
}

.navbar li:has(.navbar-avatar) {
    /* Selects the li that has .navbar-avatar as a child*/
    padding: 10px 150px;
}

.navbar-avatar {
    width: 200px;
    position: absolute;
    border: #fff solid 6px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Actually centers the avatar. Credit to w3schools. */
}

/* ====================Info==================== */

.info > section {
    padding: 80px 50px;
}

.info h2 {
    margin-bottom: 40px;
    font-size: var(--title-font-size);
}

section.goal {
    background-color: #f5f5f5;
    flex: 1;
}

section.personal-info {
    background-color: #f0f0f0;
    flex: 1;
}

.info-row {
    display: flex; /* Make the label and value on the same line */
    margin-bottom: 12px;
}

.info-row .info-label {
    font-weight: bold;
    min-width: 130px; /* Ensure consistent spacing between the label and value */
    color: #000;
}

.personal-info-contacts {
    margin-top: 40px;
}

.personal-info-contacts a:link {
    color: var(--icon-color);
    text-decoration: none;
    transition: color 0.2s;
}

.personal-info-contacts a:hover {
    color: #ff6200;
}

/* ====================Qualifications==================== */

#qualifications-tip {
    cursor: pointer;
}

.qualifications {
    padding: 0;
}

.qualifications > div {
    width: 100%; /* Makes the 2 columns have the same width on md screens, and takes the whole screen on smaller screens.*/
}

.qualifications h2 {
    margin-bottom: 50px;
}

.qualifications h3 {
    font-size: 15px;
}

.qualification-box {
    padding: 60px 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    position: relative;
}

.qualification-box > button {
    display: block;
    margin: 30px auto;
}

.qualification-box > i {
    /* Using child combinator to avoid selecting the icon further inside */
    position: absolute;
    top: 40px;
    right: 10%;
}

.qualifications ul.content {
    margin-top: 15px;
}

.hien-tai-badge::after {
    /* Using pseudo element instead of HTML (because why not) */
    content: "Hiện tại";
    font-style: italic;
    padding: 2px 12px;
    color: white;
    border-radius: 6px;
    background-color: #199cdb;
}

/* Credit to: https://moderncss.dev/totally-custom-list-styles/ */

.blue-dot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.blue-dot-list > li {
    /* Using child combinator to avoid selecting the nested list inside */
    display: grid;
    grid-template-columns: 0 1fr;
    gap: 1.75em;
    align-items: start;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 30px;
}

.blue-dot-list > li::before {
    /* The blue circle */
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #199cdb;
    margin-top: 8px;
}

ul ul,
.hyphen-list {
    list-style: none;
}

.qualifications ul ul > li::before,
.hyphen-list > li::before {
    content: "- ";
}

.hobbies {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering the grid */
}

.hobbies .title {
    align-self: flex-start; /* Oops, accidentally centered the title too*/
}

.hobby-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 15px;
}

.hobby {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hobby > i {
    display: flex;
    justify-content: center;
    align-items: center; /* Centers the icon (the icon is actually ::before) */
    border: 2px solid #199cdb;
    color: #199cdb;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 20px;
}

.skills-point {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.skills-point-bar {
    border-bottom: 2px solid #219fdb;
    width: 60px;
    border-radius: 50px;
}

.skills-point-bar-unfilled {
    border-bottom: 2px solid #ccc;
}

.language h3,
.skills h3 {
    margin-bottom: 10px;
}

/* ====================Certifications==================== */
.certifications {
    padding-top: 50px;
    padding-bottom: 50px;
}

.cert {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert img {
    width: 100%;
}

.cert-description {
    display: flex;
    flex-direction: column;
}

.cert-description h3 {
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
}

.certification-grid-horizontal-line {
    margin: 30px 0;
    background-color: #f26f1b;
    height: 1px;
    grid-area: h-line;
    align-self: center;
}

/* ====================Projects==================== */

.project-container {
    margin-top: 30px;
    border: 2px solid #f3f3f3;
    margin-left: 10px;
    cursor: pointer;
}

.project-detail {
    display: flex;
    border-top: 2px solid #f3f3f3;
    padding: 7px 5px;
}

.projects h2 {
    grid-column: 1 / -1;
}

.projects h3 {
    text-transform: uppercase;
    color: #000;
    padding: 10px;
    font-size: var(--content-font-size);
}

.projects h4 {
    font-size: var(--content-font-size);
    min-width: 90px;
}

.projects img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    object-position: top;
}

.project-info {
    display: flex;
    margin-left: 10px;
    gap: 20px;
    border-bottom: 2px solid #f3f3f3;
    align-items: center;
}
.project-info span {
    border: 1px solid #f3f3f3;
    border-radius: 40px;
    padding: 5px 10px;
    font-size: 12px;
}

.project-info .project-time {
    background-color: #199cdb;
    color: white;
    border-radius: 40px;
    padding: 5px 10px;
    font-size: 12px;
}

/* ====================Transitions==================== */

.qualification-box,
.project-container {
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.qualification-box:hover,
.project-container:hover {
    box-shadow: 0 0 5px 1px #ccc;
    transform: translateY(-5px);
}
