:root {
    --fake-background: #e5e5e5;

    --color-base: #f4f4f5;
    --color-base-alt: #e9e9e9;
    --color-text-primary: #18181b;
    --color-text-primary-rgb: 0, 0, 0; /* ← RGB form for opacity layering */

    --color-navbtn-base: #dadada;
    --color-navbtn-base-hover: #bdbdbd;
    --color-navbtn-base-disabled: #00000050;

    --highlight-color: #42a4ee;
    --highlight-text-color: #f4f4f5;
}

:root.dark {
    --fake-background: #18181b;

    --color-base: #18181b;
    --color-base-alt: #232325;
    --color-text-primary: #f4f4f5;
    --color-text-primary-rgb: 255, 255, 255; /* ← RGB form for opacity layering */

    --color-navbtn-base: #121214;
    --color-navbtn-base-hover: #202024;
    --color-navbtn-base-disabled: #00000013;

    --highlight-color: #8e4de4;
    --highlight-text-color: #f4f4f5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    background-color: var(--fake-background);
    font-family: Arial, sans-serif;
}

.background {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: -1;
    background: black;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-primary {
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.text-secondary {
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.background-primary {
    background-color: var(--color-base);
    transition: all 0.3s ease;
}

.background-primary-alt {
    background-color: var(--color-base-alt);
    transition: all 0.3s ease;
}

.pointer-events-none {
    pointer-events: none;
}

.toggle-theme-btn {
    cursor: pointer;
    background-color: transparent;
    border: none;
    transition: scale 0.2s ease-in-out;
    height: 20px;
    width: 20px;
    padding: 0;
    flex-shrink: 0;
}

.toggle-theme-btn:hover {
    scale: 115%;
    transition: scale 0.2s ease-in-out;
}

.theme-toggle-img {
    width: 100%;
    height: 100%;
}

.darkmode-only {
    display: none;
}

.lightmode-only {
    display: block;
}

:root.dark .darkmode-only {
    display: block;
}

:root.dark .lightmode-only {
    display: none;
}

a {
    color: var(--highlight-color);
}

.panel {
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.text-primary span {
    color: var(--highlight-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.widescreen-only {
    display: block;
}

.mediumscreen-only {
    display: none;
}

.footer-download-cv-mobile {
    display: none !important;
}

.footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--color-base);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.footer .social {
    text-align: center;
    padding-bottom: 10px;
}

.footer .social a {
    font-size: 24px;
    width: 30px;
    height: 30px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    transition: .3s ease;
}

.footer .social a svg {
    fill: var(--color-text-primary);
    width: 100%;
    height: 100%;
}

.footer .social a:hover {
    transform: scale(1.2);
}

.footer ul {
    margin-top: 10px;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a {
    border-bottom: 3px solid transparent;
    transition: .3s ease;
}

.footer ul li {
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright {
    margin: 0;
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 1300px) {

    .panel {
        box-shadow: none;
    }

    .toggle-theme-btn {
        top: 4rem;
        right: 4rem;
        z-index: 1000;
        position: fixed;
    }

    .background-primary {
        background-color: transparent;
    }

    .widescreen-only {
        display: none;
    }

    .mediumscreen-only {
        display: block;
    }

    .footer-download-cv {
        display: none !important;
    }

    .footer-download-cv-mobile {
        display: block !important;
        padding-top: 10px !important;
    }
}