* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        Inter,
        Arial,
        sans-serif;

    background: var(--bg);

    color: var(--text);

    transition: 
        background .2s,
        color .2s;

}

body {

    min-height: 100vh;

    display: flex;
    flex-direction: column;

}


main {
    flex: 1;
}


footer {

    margin-top: auto;

}

:root {

    --bg: #ffffff;
    --text: #111111;
    --card: #f2f2f2;

}


:root[data-theme="dark"] {

    --bg: #0b0d12;
    --text: #ffffff;
    --card: #151820;

}



header {

    height: 220px;

    position: relative;

    overflow: hidden;

}


.hero-bg {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            120deg,
            #4f46e5,
            #06b6d4
        );

    opacity: .7;

}



.topbar {

    position: relative;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 24px;

}



.logo {

    font-size: 22px;

    font-weight: 700;

}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 0;
}

.actions button {

    background: transparent;

    border: none;

    color: inherit;

    cursor: pointer;

    font-size: 16px;

}



nav {

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 40px;

    background: var(--card);

}



.nav-links {

    display: flex;

    gap: 30px;

}

.nav-links a {

    padding: 10px 14px;

    border-radius: 10px;

    transition: .2s;

}


.nav-links a:hover {

    background: rgba(255,255,255,.1);

    transform: translateY(-2px);

}

.nav-links a span {

    transition: .2s;

}


.nav-links a:hover span {

    transform: rotate(180deg);

}

nav a {

    color: inherit;

    text-decoration: none;

}



.search input {

    padding: 8px 14px;

    border-radius: 8px;

    border: 1px solid #555;

    background: transparent;

    color: inherit;

}



.content {

    padding: 40px;

}



footer {

    padding: 20px 40px;

    opacity: .6;

}

.language-dropdown {
    position: relative;
}


.language-menu {

    position: absolute;

    top: calc(100% + 10px);
    right: 0;


    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);


    background: var(--card);

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 14px;

    padding: 8px;


    transition:
        .2s ease;

}


.language-dropdown:hover .language-menu {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.language-menu button {

    display:flex;

    align-items:center;

    gap:10px;


    width:150px;

    padding:10px;


    background:none;

    border:0;

    color:inherit;

    border-radius:8px;

}


.language-menu button:hover {

    background:rgba(255,255,255,.08);

}



.language-menu img {

    width:20px;
    height:14px;

    border-radius:3px;

}

.icon-button {

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;

    border-radius: 10px;

    cursor: pointer;

    transition: .2s;
}


.icon-button:hover {

    background: rgba(255,255,255,.1);

}


.icon-button img {

    width: 24px;
    height: 24px;

}


.language-dropdown .icon-button img {

    width: 28px;
    height: 18px;

    border-radius: 4px;

}

.theme-icon {
    width: 28px;
    height: 28px;
    transition: transform .2s ease;
}

.icon-button:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

.flag-icon {
    width: 32px !important;
    height: 22px !important;

    object-fit: cover;

    border-radius: 4px;
}