/* 
- Certificates
- Projects
*/

/* Standard Light Theme Variables */
:root {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --nav-bg: 255, 255, 255;
    --nav-text: 0, 0, 0;
    --nav-tp: 0.7;
    --footer-tp: 0.8;
    --article-bg: #fff;
    --article-p: #555;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-color: transparent;
    --text-color: rgb(200, 195, 188);
    --nav-bg: 68, 68, 68;
    --nav-text: 255, 255, 255;
    --nav-tp: 0.3;
    --footer-tp: 0.4;
    --article-bg: rgb(24, 26, 27);
    --article-p: rgb(178, 172, 162);
}

html{
    color-scheme: light;
}

html.dark-mode{
    color-scheme: dark;
}

body, h1, h2, p, ul, li, a, nav, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    /* background-color: var(--bg-color); */
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.box{
    background: var(--article-bg);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content{
    background: var(--article-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    padding: 1.5rem; 
}

/* Navigation */
nav {
    background-color: rgba(var(--nav-bg), var(--nav-tp));
    color: rgb(var(--text-color));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: relative;
    overflow-x: auto;
}

nav ul button{
    all:unset;
    cursor: pointer;
    display: inline-flex;
    margin: auto;
    vertical-align: middle;
}

li{
    list-style: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    position: relative;
}

nav ul li {
    position: relative;
}

ul li a {
    text-decoration: none;
    color: rgb(var(--text-color));
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #1e90ff;
}

/* Dropdown menu */
nav ul li:hover .dropdown {
    display: block;
}

header{
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown {
    display: none;
    position: absolute;
    background-color: #555;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    list-style: none;
    border-radius: 4px;
    top: 100%;
    left: 0;
    z-index: 1000;
}

.dropdown li {
    padding: 0.5rem 1rem;
    white-space: nowrap; 
}

.dropdown li a {
    text-decoration: none;
    color: #fff;
    font-weight: normal;
    display: block;
}

main {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.aside-list {
    margin: 2px 0;
    font-size: 16px;
    color: rgb(var(--text-color));
    position: relative;
    padding-left: 15px;
}

.aside-list li {
    margin: 2px 0;
    font-size: 16px;
    color: rgb(var(--text-color));
    position: relative;
    padding-left: 25px;
}

.aside-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 768px) {

    main {
        flex-direction: column;
    }

    .tables{
        flex-wrap: wrap;
    }

}

article {
    flex: 2;
}

.avatar {
    height: auto;
    max-width: 280px;
    border-radius: 50%;
    margin: 1em auto 1em;
    display: block;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e90ff;
}

article p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    color: var(--article-p)
}

aside {
    flex: 1;
}

aside h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e90ff;
}

.social-media {
    list-style: none;
    margin-bottom: 1rem;
}

/* TABLE */
.cv-table{
    flex: 1;
    display: grid;
    place-items: center;
}

.cv-table h2{
    text-align: center;
    margin: 0;
    padding: 0;
}

.summary-table{
    max-height: 600px;
    overflow: auto;
}

table{
    border-radius: 3px;
    border-collapse: collapse;
    background-color: #1e90ff;
    margin-top: 1rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.tables{
    display: flex;
    /* flex-wrap: wrap; */
    gap: 1rem;
}

table thead{
    color: white;
}

table tbody{
    background-color: var(--article-bg);
}

table tbody tr td{
    text-align: right;
    padding: 10px;
}

/* Social Media */
.fa {
    border-radius: 10px;
    padding: 15px;
    min-width: 64px;
    /* something overwrote it, may search for the conflict */
    font-size: 40px !important;
    text-align: center;
    text-decoration: none;
}

.fa-facebook {
    background: #3B5998;
    color: white;
}

.fa-instagram {
    background: linear-gradient(225deg, #833AB4, #FD1D1D, #F56040, #FFC107);
    color: white;
}

.fa-linkedin {
    background: #0083E6;
    color: white;
}

.fa-youtube {
    background: #bb0000;
    color: white;
}

.fa-own {
    border-radius: 10px;
}

.fa:hover, .fa-own:hover{
    transform: scale(1.1);
}

footer {
    background-color: rgba(var(--nav-bg), var(--footer-tp));
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    flex-shrink: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

footer li a {
    text-decoration: none;
    color: rgb(var(--nav-text));
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #1e90ff;
}

footer p {
    font-size: 0.8rem;
}

.page-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1.2rem;
}

.btn-page {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 9999px; /* pill-shape */
    background: #00d9ff; /* Neonblau */
    color: #0a0a0a; /* dunkler Text */
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.6);
    border: 2px solid #00d9ff;
}

.btn-page:hover {
    background: transparent;
    color: #00d9ff;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.9);
    cursor:pointer;
}

.btn-page:active {
    transform: translateY(1px);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.video{
    position: relative;
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    max-width: 100%;
    margin: 2rem;
    border-radius: 5px;
}