:root {
    --font-color: rgba(0, 0, 0, 0.7);

    --color-background: rgba(255, 255, 255, 1);
    --color-card-background: rgba(243, 241, 241, 1);

    --color-yellow: rgba(255, 204, 0, 1);
    --color-mintgreen: rgba(86, 217, 151, 1);
    --color-lightblue: rgba(86, 143, 217, 1);
    --color-red: rgba(255, 82, 82, 1);
}

* {
    scrollbar-width: none;
}

body {
    font-family: "Figtree", sans-serif;
    padding: 0;
    margin: 0;
}

h1 {
    letter-spacing: 0.5rem;
    font-size: 2.5rem;
    color: var(--font-color);
}

header {
    z-index: 10;
    height: 11vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--color-background);
    
    .logo {
        cursor: pointer;
        width: auto;
        font-size: 1.75rem;
        max-width: 15rem;
        font-weight: 800;
        margin-right: 2rem;
        margin-left: 2rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.75rem;
        border: 3px solid var(--font-color);
    }
    nav {
        ul {
            display: flex;
            justify-content: center;
            align-items: center;
            list-style-type: none;
            margin: 0;
            padding: 0;
            .header-language,
            .header-documents,
            .header-account {
                position: relative;
                display: flex;
                justify-content: center;
                align-items: center;
                width: 8rem;
                font-weight: 800;
                font-size: 1.25rem;
                letter-spacing: 0.3rem;
                padding: 0.75rem 2rem;
                color: var(--font-color);
                margin: 1.5rem;
                border: 0.2rem white solid;
                text-transform: uppercase;

                a {
                    color: var(--font-color);
                    text-decoration: none;
                }

                .language-options {
                    display: none;
                    position: absolute;
                    top: 100%;
                    left: calc(-1 * 0.2rem);
                    background-color: var(--color-background);
                    padding: 0;
                    z-index: 100;
                    min-width: 100%;
                    border: 0.2rem var(--font-color) solid;
                    width: 100%;
                    li{
                        width: 100%;
                        a {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            padding: 0.75rem 2rem;
                            color: var(--font-color);
                            text-decoration: none;
                            transition: background-color 0.2s ease;

                            &:hover {
                                background-color: var(--color-lightblue);
                                color: var(--color-background);
                            }
                        }
                    }
                }

                &:hover {
                    border: 0.2rem var(--font-color) solid;
                    cursor: pointer;

                    .language-options {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                    }
                }
            }
        }
    }
}



.logo {
    cursor: pointer;
    width: auto;
    font-size: 1.75rem;
    max-width: 15rem;
    font-weight: 800;
    margin-right: auto;
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.75rem;
    border: 3px solid var(--font-color);
}

body {
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

.background-container {
    z-index: -1;
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    .rectangle {
        position: relative;
        left: -250px;
        bottom: -300px;
        width: 600px;
        height: 400px;
        border-radius: 3%;
        background-color: var(--color-yellow);
        rotate: 45deg;
    }
    .circle {
        position: relative;
        right: -200px;
        top: 0px;
        width: 900px;
        height: 750px;
        border-radius: 50%;
        background-color: var(--color-mintgreen);
    }
    .triangle {
        position: relative;
        right: -200px;
        top: 300px;
        width: 0;
        height: 0;
        border-left: 300px solid transparent;
        border-right: 300px solid transparent;
        border-bottom: 500px solid var(--color-lightblue);
    }
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    align-self: center;
    border-top: 0.125rem solid var(--font-color);
    background-color: var(--color-background);
    height: auto;
    .logo {
        cursor: pointer;
        width: auto;
        font-size: 1.75rem;
        max-width: 15rem;
        font-weight: 800;
        margin-right: auto;
        margin-left: 2rem;
        padding: 0.5rem 1rem;
        letter-spacing: 0.75rem;
        border: 3px solid var(--font-color);
        margin: 0 auto;
    }
    .footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        cursor: pointer;
        li {
            margin: 1.5rem;
            font-weight: 800;
            font-size: 1.25rem;
            letter-spacing: 0.25rem;
            border: 3px solid transparent;
            padding: 0.25rem 0.5rem;
            color: var(--font-color);
            text-transform: uppercase;
            a {
                color: var(--font-color);
                text-decoration: none;
                text-transform: uppercase;
            }
            &:hover {
                border: 3px var(--font-color) solid;
            }
        }
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        width: 100%;
        padding: 0rem;
        margin: 0;
        flex-direction: row;
        gap: 0rem;
        
        .logo {
            font-size: 1.5rem;
            max-width: 10rem;
            margin: 0 auto;
            letter-spacing: 0.5rem;
        }
        
        nav {
            display: none;
            width: 100%;
            ul {
                flex-direction: row;
                gap: 0.75rem;
                
                .header-language,
                .header-documents,
                .header-account {
                    width: auto;
                    margin: 0;
                    padding: 0.75rem 1.5rem;
                    font-size: 1rem;
                    letter-spacing: 0.125rem;
                    min-height: 44px; /* Touch-friendly target size */
                    
                    .language-options {
                        left: 0;
                        width: 100%;
                        
                        li a {
                            padding: 0.75rem 1.5rem;
                            min-height: 44px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                    }
                }
            }
        }
    }
    
    /* Standalone logo class for consistency */
    .logo {
        font-size: 1.5rem;
        max-width: 10rem;
        margin-left: 1rem;
    }
    .background-container {
        overflow: hidden;
        .rectangle {
            left: -150px; /* Adjusted for smaller screens */
            bottom: -200px; /* Adjusted for smaller screens */
            width: 400px; /* Adjusted for smaller screens */
            height: 300px; /* Adjusted for smaller screens */
            overflow: hidden;
        }
        .circle {
            right: -100px; /* Adjusted for smaller screens */
            width: 600px; /* Adjusted for smaller screens */
            height: 500px; /* Adjusted for smaller screens */
            overflow: hidden;
        }
        .triangle {
            right: -100px;
            top: 200px; /* Adjusted for smaller screens */
        }
    }
    footer {
        width: 100%;
        margin: 0;
        padding: 1rem;
        .footer-links {
            flex-direction: column;
            li {
                margin: 0.5rem;
                font-size: 1rem;
                letter-spacing: 0.125rem;
            }
        }
    }
}

/* Enhanced mobile header for smaller screens */
@media (max-width: 756px) {
    header {
        padding: 1rem;
        
        .logo {
            font-size: 1.25rem;
            max-width: 8rem;
            letter-spacing: 0.375rem;
            padding: 0.375rem 0.75rem;
        }
        
        nav ul {
            gap: 0.5rem;
            
            .header-language,
            .header-documents,
            .header-account {
                padding: 0.625rem 1.25rem;
                font-size: 0.9rem;
                letter-spacing: 0.1rem;
            }
        }
    }
    footer {
        width: 100%;
        margin: 0;
        padding-top: 1rem;
        .footer-links {
            flex-direction: column;
            li {
                margin: 0.5rem;
                font-size: 1rem;
                letter-spacing: 0.125rem;
            }
        }
    }
}
