:root {
    --outline: #000000;
    --modalBlack: rgb(1 14 22);
    --opacityBlack: rgba(0, 0, 0, 0.5);
    --white: #ffffff;
    --opacityWhite: rgba(255, 255, 255, 0.08);
    --pink-light: #6972e9;
    --pink-dark: #0e1958;
    --wrapper-portfolio: #150e582c;
    --navbar-bg: rgba(21, 44, 95, 0.534);
    --nav-btn-bg: rgba(0, 0, 0, 0.342);
    --content-bg: rgba(255, 255, 255, 0.12);
    --scroll-thumb: rgba(255, 255, 255, 0.3);
    --project-icon: #001d30;
    
    --tag-html: #e34c26;
    --tag-css: #264de4;
    --tag-javascript: #f0db4f;
    --tag-typescript: #3178c6;
    --tag-java: #b07219;
    --tag-csharp: #9b4f96;
    --tag-python: #306998;
    --tag-react: #61dafb;
    --tag-node: #68a063;
    --tag-php: #777bb3;
    --tag-mysql: #00758f;
    --tag-default: rgba(255,255,255,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: impact, sans-serif;
    font-weight: normal;
    color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-size: 2.5rem;
    font-weight: normal;
}

p, li {
    font-size: 1.5rem;
}

.header {
    font-size: 4rem;
}

body {
    margin: 0;
    padding: 0;

    height: 100vh;
    min-height: -webkit-fill-available;

    max-width: 100%;
    overflow: hidden;
    overscroll-behavior: none;

    background: url('/css/images/SVGS/blurry-gradient-haikei.svg') top center no-repeat;
    background-size: cover;
    background-color: var(--navbar-bg);

    padding-top: env(safe-area-inset-top); /* Needed? */
    padding-bottom: env(safe-area-inset-bottom); /* Needed? */
}

.no-scroll{
    overflow: hidden;
}

.navbar {
    font-size: 1rem;
    width: 35%;
    margin: 2.5rem auto;
    padding: 1rem 2rem;
    /*background: var(--navbar-bg);*/
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    backdrop-filter: blur(1rem);
    box-shadow: 0 0.5rem 2rem var(--opacityBlack);
}

.logo {
    background-image: url('logo.png');
    background-size: cover;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
}

.project-logo {
    background-color: var(--project-icon);
    background-size: cover;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    background: var(--nav-btn-bg);
    border-radius: 0.8rem;
    text-decoration: none;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}

.page {
    width: 90%;
    margin: 0 auto;
}

.content-box {
    margin-top: 1rem;
    height: 40rem;
    padding: 2rem;
    background: var(--opacityWhite);
    border-radius: 1rem;
    overflow-y: hidden;
    box-shadow: 0 1rem 3rem var(--opacityBlack);
}


.content-box::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 0.5rem;
}


.about-text {
    justify-items: normal;
    line-height: 2rem;
    overflow: auto;
}


.about-text h1,
.about-text h2,
.about-text p,
.about-text ul {
    margin-bottom: 1rem;
}

.about-text ul {
    padding-left: 2rem;
}

.portfolio-wrapper {
    height: 30rem;
    border-radius: 2rem;
    background-color: var(--wrapper-portfolio);
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-container {
    display: flex;
    gap: 3rem;
    width: 90%;
    justify-content: center;
}

.project-card {
    width: 30%;
    max-height: 27rem;
    min-height: 24rem;
    background: var(--opacityWhite);
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 2rem var(--opacityBlack);
}

.project-card h3 {
    font-size: 2.2rem;
}

.project-card p {
    font-size: 1.1rem;
    font-style: italic;
}

.project-card img {
    padding: 1rem;
    max-width: 50%;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
}

.arrow {
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}



.project-modal {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(0.2rem) !important;
    display: none;
    z-index: 999;
}



.modal-content {
    left: 10%;
    margin-top: 5rem;
    width: 80%;
    max-height: 85%;
    background: var(--modalBlack);
    padding: 2rem;
    border-radius: 1rem;
    overflow-y: auto;
    position: relative;
}

.log-modal{
    display: none;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

.tag-container {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.tag {
    flex: 0 1 auto;          
    min-width: 0;            
    padding: 0.2rem 0.5rem;    
    font-size: 0.7rem;         
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: var(--white);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;      
}

.flag-icon {
    width: 2rem;
    height: 1.3rem;
    object-fit: contain;
}


.tag-html { background: var(--tag-html); }
.tag-css,
.tag-backend { background: var(--tag-css); }
.tag-javascript { background: var(--tag-javascript); }
.tag-typescript { background: var(--tag-typescript); }

.tag-java,
.tag-jpa,
.tag-enteties,
.tag-dao,
.tag-dto,
.tag-controller,
.tag-setup { background: var(--tag-java); }

.tag-csharp,
.tag-enum,
.tag-javalin { background: var(--tag-csharp); }
.tag-python,
.tag-restapi { background: var(--tag-python); }
.tag-react { background: var(--tag-react); }
.tag-node,
.tag-mapper,
.tag-service { background: var(--tag-node); }
.tag-php,
.tag-unittest,
.tag-security,
.tag-testing,
.tag-debugging { background: var(--tag-php); }
.tag-mysql,
.tag-jwt { background: var(--tag-mysql); }
.tag-default { background: var(--tag-default); }


.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--white);
}


.decor {
    position: absolute;
    opacity: 0.25;
    pointer-events: none;
    z-index: -10;
}

.blob1 { top: 12.5rem; left: 6.25rem; width: 18.75rem; }
.blob2 { top: 37.5rem; right: 12.5rem; width: 15.625rem; }
.blob3 { top: 25rem; left: 93.75rem; width: 12.5rem; }
.circles { top: 18.75rem; left: 0; width: 100%; opacity: 0.1; }
.polygons { bottom: 0; width: 100%; opacity: 0.1; }

.code-block {
    width: 100%;
    max-width: 50rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.6rem;
    padding: 1rem;
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.95rem;
    color: #e6e6e6;
    line-height: 1.5;
}


/* SMÅ LAPTOPS (13-14") */
@media (max-width: 1400px) {

    .navbar {
        font-size: 0.9rem;
        width: 50%;
        margin: 1.5rem auto;
    }

    
    .header{
        font-size: 2rem;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
        font-weight: normal;
    }
    body, p, li {
        font-size: 0.8rem;
    }

    .content-box, .about-content {
        height: auto;
        min-height: unset;
        max-height: 22rem;
    }
    
    .portfolio-wrapper {
        background-color: none;
        height: 15rem;
    }

    .projects-container .project-card {
        width: 20%;
        min-height: 10rem;
        max-height: 13rem;
    }

    .project-card .tag { 
        padding: 0.1rem 0.3rem;
        font-size: 0.5rem;
    }

    .projects-container .project-card h3{
        font-size: 1.4rem;
    }

    .projects-container .project-card p{
        font-size: 0.8rem;
    }

    .projects-container .project-card img {
        width: 40%;
    }

    .modal-content {
        
        margin-top: 1rem;
        max-height: 94%;
    }

}

/* Telefoner */
@media (max-width: 1024px) {

    .projects-container .project-card {
        min-height: 20rem;
        max-height: 20rem;
    }

    body {
        overflow-x: hidden;
        height: 100dvh;
    }

    .page {
        position: relative;
        top: 10%;
        width: 90%;
        margin: 0 auto;
    }


    .menu-toggle {
        display: block;
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
        z-index: 1001;
    }

 
    .navbar {
        position: absolute;
        top: 0;
        left: -100%;
        width: 70%; 
        height: 100vh;
        margin: 0;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
        border-radius: 0;
        transition: 0.4s ease;
        z-index: 1000;
    }

    .navbar.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }


    .content-box,
    .about-content {
        height: auto;
        min-height: unset;
        max-height: 35rem;
    }

    .projects-container {
        position: relative;    
        overflow: hidden;        
        width: 100%;
        height: 22rem;
    }

    .project-card {
        position: absolute;        
        top: 50%;                 
        left: 50%;             
        transform: translate(-50%, -50%); 
        width: 80%;               
        height: 19rem;
        transition: transform 0.4s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1;               
    }

    .portfolio-wrapper {
        overflow: hidden;
        height: auto;
    }

    .about-content {
        height: auto;
    }

    .header{
        font-size: 2rem;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 1.5rem;
        font-weight: normal;
    }
    body, p, li {
        font-size: 0.8rem;
    }



    .arrow {
        display: none;
    }

    .project-modal {
        backdrop-filter: blur(0.2rem);
    }

    .modal-content {
        margin-top: 5rem;
        max-height: 78%;
    }
    
    .blob1 { top: 1.5rem; left: 8.25rem; width: 18.75rem; }
    .blob2 { top: 37.5rem; right: 13.5rem; width: 15.625rem; }
    .blob3 { top: 43rem; left: 12.5rem; width: 12.5rem; }
    .circles { top: 0.75rem; left: 0; width: 100%; opacity: 0.1; }
    .polygons { bottom: 1rem; width: 100%; opacity: 0.1; }

    .about-text {
        padding: 1rem;
        line-height: normal;
    }
}

/* 
TODO:
1.) Lav en media query for tablets (1024px - 1400px) og juster designet til at se godt ud på dem.
2.) Se på overflow-x på body og .page for at sikre, at der ikke er nogen uønsket horisontal scrolling 
på mindre skærme.

*/
