:root {
    --accent: #0a3d62;
    --text-accent: #1565c0;
    --light-blue: #174785;
    --text-color: #ffffff;
}

@font-face {
    font-family: "default";
    src: url("../fonts/segoeui.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "default";
    src: url("../fonts/seguisb.ttf");
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "default";
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

a:not(.default) {
    position: relative;
    color: var(--text-accent);
    text-decoration: none;
}

a:not(.default)::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: black;
}

a:not(.default)::after {
    content: "";
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    opacity: 80%;
    left: 0;
    background-color: var(--text-accent);
    transition: width 0.6s ease;
    transform-origin: left;
    font-weight: 800;
}

a:not(.default):hover::after {
    width: 100%;
}

.default {
    text-decoration: none;
}

.top-bar {
    background-color: var(--accent);
    padding: 15px 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 10px 20px 5px rgba(0, 0, 0, 0.2);
    height: 55%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 20px;
}

.nav-item:hover {
    color: #4f9fff;
}

.nav-item img {
    width: 15vw;
    max-width: 200px;
    min-width: 120px;
    height: auto;
}

.hamburger {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1000;
}

.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        background: #fff;
        text-align: center;
        padding: 0;
        align-items: center;
        border: 1px solid #dedede;
        border-radius: 12px;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    }

    .nav-links a {
        color: black;
        text-decoration: none;
        width: calc(100% - 30px);
        margin: 10px 0;
    }

    .nav-links.show {
        max-height: 500px;
        opacity: 1;
        padding: 10px 0;
    }
}

.fa,
.fas,
.far,
.fab {
    padding-right: 16px;
}

h1 {
    font-weight: normal;
}

h2 {
    font-size: 16pt;
    font-weight: 600;
}

h3 {
    font-size: 15pt;
    font-weight: 600;
}

h4 {
    font-size: 13pt;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: 600;
}

hr {
    border: none;
    height: 1px;
    background-color: #dedede;
    margin: 20px 0;
    width: 100%;
}

.accordion {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 12px;
}

.arrow {
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.arrow.open {
    transform: rotate(90deg);
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease, padding 1s ease;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 0 10px;
}

.panel.open {
    max-height: 10000px;
    padding: 10px;
}

strong,
b {
    font-weight: 600;
}

.item {
}

.score {
    float: right;
    padding-left: 20px;
    font-family: "Intel One Mono";
    font-size: 36pt;
    position: relative;
    top: 50%;
    transform: translateY(calc(-50% + 5px));
}

.mainframe {
    max-width: 1000px;

    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .mainframe {
        margin: 40px auto;
        max-width: 100%;
        padding: 0px 10px;
    }
}

.contact-mainframe {
    max-width: 800px;

    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 600px) {
    .contact-mainframe {
        max-width: 100%;
        padding: 0px 10px;
    }
}

.introduction {
    text-align: center;
    margin-bottom: 50px;
}

.introduction h1 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.introduction p {
    font-size: 1.2rem;
    color: #555;
    display: flex;
    align-items: center;
    flex-direction: column;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 0 10px;
}

p {
    margin-bottom: 10px;
}

.box {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 1px solid #dedede;
    /* box-shadow: 0 6px 15px rgba(0,0,0,0.1); */
}

.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: #0d3b66;
    border-radius: 12px;
    gap: clamp(20px, 2vw, 65px);
}

.social-icons {
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    padding: 10px 35px;
    border: 1px solid #dedede;
    background-color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.6s ease;
    background-color: var(--accent);
    color: white;
}

.btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.btn:hover {
    background-color: #d8d8d8ff;
}

.btn-inline {
    border-radius: 32px;
    background-color: white;
    color: black;
}

.btn-img {
    width: 24px;
    height: 24px;
}

.pagelink {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.btn-pagelink {
    text-align: center !important;
    border-radius: 16px;
    background-color: white;
    color: black;
    width: 100%;
    height: 65px;
    font-size: 24px !important;
    padding: 15px;
}

.btn-pagelink img {
    width: 24px;
    height: 24px;
}

@media (max-width: 500px) {
    .social-icons {
        font-size: 2rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

dialog {
    border: none;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 90%;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    float: right;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff4d4d;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.skills-container {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill-card {
    width: 160px;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
}

.skill-card div {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 1.5s;
    backface-visibility: hidden;
    padding: 15px;
    font-weight: 600;
}

.skill-front {
    background-color: #ebebeb;
    border: 1px solid #dedede;
    gap: 10px;
}

.skill-card .skill-back {
    background-color: white;
    transform: rotateY(180deg);
    text-align: center;
    font-size: 13px;
    font-weight: 400;
}

.skill-card:hover .skill-front {
    transform: rotateY(180deg);
}

.skill-card:hover .skill-back {
    transform: rotateY(0deg);
}

.skill-card .skill-front,
.skill-card .skill-back {
    position: absolute;
    background-color: #ebebeb;
    border: 1px solid #dedede;
}

.skill-front p {
    margin-top: auto;
    margin-bottom: 0px;
}

.inline-skill button {
    background-color: transparent;
    display: inline-block;
    border: 1px solid #dedede;
    border-radius: 6px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-right: 4px;
    height: 30px;
    font-size: 15px;
    cursor: pointer;

    transition: background-color 0.3s ease;
}

.inline-skill button:hover {
    background-color: #eee;
}

.toc-panel {
    position: fixed;
    top: 100px;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding-bottom: 20px;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.6s ease;
    z-index: 1000;
}

.toc-link {
    text-decoration: none;
    color: black;
}

.toc-panel.hidden {
    transform: translateX(2000px);
}

#toc-arrow {
    position: fixed;
    top: 100px;
    right: 0;
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #dedede;
    border-radius: 50%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.6s ease;
}

#toc-arrow.rotated {
    transform: rotate(180deg);
}

#toc-list {
    margin: 0;
    padding-left: 20px;
}

.toc-header {
    display: none;
}

.flex-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 12px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-container {
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin-left: min(70%, calc(5% + 10vw + 2vw));
    margin-right: min(70%, calc(5% + 10vw + 2vw));
    margin-top: 100px;
    background-color: white;
    border: 1px solid #dedede;
    border-radius: 12px;
}

.modal-div {
    display: flex;
    align-items: top;
    justify-content: flex-start;
    gap: 20px;
}

.modal-img {
    max-width: 50%;
    height: auto;
    object-fit: contain;
}

#rightFrame {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%;
    text-align: left;
}

.inline-button {
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
    height: 30px;
    border: 0;
    font-size: 12pt;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.inline-button:hover {
    background-color: #f3f3f3;
}

.inline-button:active {
    background-color: #e8e8e8;
}

.close {
    color: black;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.active-image {
    box-shadow: 0 0 15px 4px #87cefa;
    border-radius: 4px;
    transition: box-shadow 0.5s ease, transform 0.3s ease;
    transform: scale(1.05);
}

.images img {
    transition: box-shadow 0.5s ease, transform 0.3s ease;
}

@media (max-width: 1000px) {
    .modal-container {
        width: 90%;
        margin: 50px auto !important;
        padding: 10px;
    }

    .modal-div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .modal-img {
        max-width: 100% !important;
        height: auto;
    }

    #rightFrame {
        max-width: 100% !important;
        text-align: left;
    }

    .inline-button {
        width: 45%;
        margin: 0 2%;
    }
}
ul {
    margin-left: 40px;
    margin-bottom: 10px;
}
.noindent {
    margin-left: 0px;
    margin-bottom: 0px;
}
code {
    font-family: Consolas;
    font-size: 13px;
    border: 1px solid #dedede;
    padding: 2px 4px;
    border-radius: 4px;
    background: #fbfbfb;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}
table tr th,
table tr td {
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    padding: 10px;
}
table tr th:first-child,
table tr td:first-child {
    border-left: 1px solid #dedede;
}
table tr th {
    background: white;
    border-top: 1px solid #dedede;
}
tr:nth-child(even) {
    background-color: #f6f8fa;
}

table tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

table tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

@media (min-width: 1750px) {
    .modal-container {
        margin-left: 25%;
        margin-right: 25%;
    }
}

.table-key {
    font-weight: 600;
    color: var(--text-accent);
    border: none !important;
    display: flex;
    vertical-align: middle;
}

.table-key i {
    color: var(--accent);
    font-size: 24px;
}
.table-value {
    border: none;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
}

input,
textarea {
    flex: 1;
    padding: 20px;
    font-size: 14px;
    border: 1px solid #dedede;
    border-radius: 20px;
    width: 100%;
    height: 45px;
    padding-left: 15px !important;
    margin-bottom: 10px;
    transition: box-shadow 0.5s ease, background-color 0.5s ease;
}

textarea {
    padding-top: 15px !important;
}

input:hover,
textarea:hover {
    background-color: #f9f9f9;
}
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.05);
    background-color: white;
}

textarea {
    height: 100px;
    resize: none;
}

input[id="email_"] {
    position: absolute;
    left: -2000px;
}

.btn.clicked {
    background-color: #910000;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}
.btn.clicked:hover {
    opacity: 1;
}
