@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Jersey+10&family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&family=Shadows+Into+Light&display=swap');

/* Mode Default */
* {
    box-sizing: border-box;
}

@keyframes imagefloat {
    50% {
        transform: translateY(10px);
    }
}

body {
    margin: 0;
    padding: 0;
    background: #bdbdbd;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 40px 20px 40px;
    margin: -25px 0px 50px 10px;
}

.logo {
    font-family: "Jersey 10", sans-serif;
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    cursor: pointer;
}

header .logo:first-child {
    grid-column: 1;
}

header ul {
    display: flex;
    grid-column: 3;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
}

header nav li {
    list-style-type: none;
}

header nav ul li:not(.dropDown):not(.tglTheme)::after {
    content: '';
    width: 0%;
    height: 1.5px;
    background-color: brown;
    display: block;
    margin: auto;
    transition: 0.5s;
}

header nav ul li:not(.dropDown):not(.tglTheme):hover::after {
    width: 100%;
}

a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 16px;
    color: black;
    font-weight: 700;
    transition: all 0.5s ease-in-out;
}

main {
    display: flex;
    justify-content: center;
}

main .content {
    display: flex;
    flex-direction: row-reverse;
    padding-top: 55px;
    align-items: center;
    gap: 90px;
}

aside {
    height: 200px;
    width: 200px;
    animation: imagefloat 5s infinite;
    margin: auto;
}

aside .profile img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.description-content .description p {
    font-size: 16px;
    word-wrap: break-word;
    width: 500px;
}

.description-content .description h1 {
    font-size: 28px;
}

.social-media {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.social-media img {
    width: 20px;
    height: 20px;
    border-radius: 10%;
    cursor: pointer;
}

.social-media img:hover {
    background-color: rgb(183, 208, 255);
}

footer {
    margin-top: auto;
    color: white;
    background-color: #3a3838;
    text-align: center;
    font-weight: bold;
}

footer ul li {
    list-style-type: none;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    font-family: 'Saira Condensed', sans-serif;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: #3a3838;
    color: #e5e7eb;
    border: 1px solid #374151;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}

.flag {
    font-size: 16px;
}

.chevron {
    font-size: 10px;
    transition: transform 0.2s;
}

.lang-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: #020617;
    border-radius: 12px;
    padding: 6px 0;
    min-width: 140px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #111827;
    display: none;
    z-index: 20;
}

.lang-option {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #e5e7eb;
    text-align: left;
}

.lang-option:hover {
    background: #111827;
}

.lang-dropdown.open .lang-menu {
    display: block;
}

.lang-dropdown.open .chevron {
    transform: rotate(180deg);
}

.dropUp {
    display: none;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.sun-theme {
    display: none;
}

body.dark-mode .sun-theme {
    display: inline;
}

body.dark-mode .moon-theme {
    display: none;
}

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header nav a {
    color: #e0e0e0;
}

body.dark-mode footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .lang-trigger {
    background: #374151;
    color: #f3f4f6;
}

body.dark-mode .lang-menu {
    background: #374151;
    border: 1px solid #4b5563;
}

body.dark-mode .lang-option:hover {
    background: #4b5563;
}

body.dark-mode .social-media .git img,
body.dark-mode .social-media .ig img,
body.dark-mode .social-media .lk img {
    filter: invert(1);
}

.tgl-footer {
    display: none;
}


/* mode mobile */
@media screen and (max-width: 1000px) {
    header {
        flex-direction: column;
    }

    main .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding-bottom: 100px;

    }

    aside {
        height: 200px;
        width: 200px;
    }

    .description-content .description p {
        max-width: 500px;
    }

    .social-media {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dropDown {
        display: none;
    }

    .tglTheme {
        display: none;
    }

    footer ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        margin: 0;

    }

    footer ul li {
        list-style-type: none;
    }

    .lang-dropup {
        position: relative;
        display: inline-block;
        font-family: 'Saira Condensed', sans-serif;
        display: block;
    }

    .lang-trigger {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 2px 10px;
        background: #020617;
        color: #e5e7eb;
        border: 1px solid #374151;
        border-radius: 999px;
        cursor: pointer;
        font-size: 14px;
    }

    .flag {
        font-size: 16px;
    }


    .chevron {
        font-size: 10px;
        transition: transform 0.2s;
    }

    .lang-menu {
        position: absolute;
        bottom: 110%;
        top: auto;
        left: 0;
        background: #020617;
        border-radius: 12px;
        padding: 6px 0;
        min-width: 140px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
        border: 1px solid #111827;
        display: none;
        z-index: 20;
    }

    .lang-option {
        width: 100%;
        padding: 8px 12px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #e5e7eb;
        text-align: left;
    }

    .lang-option:hover {
        background: #111827;
    }

    .lang-dropup.open .lang-menu {
        display: block;
    }

    .lang-dropup.open .chevron {
        transform: rotate(180deg);
    }

    .tglThmFtr {
        display: block;
    }

    footer {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding-left: 10px;
    }

    footer ul {
        display: contents;
    }

    footer li {
        list-style: none;
    }

    footer li:first-child {
        grid-column: 1;
    }

    footer .tgl-footer {
        display: flex;
        grid-column: 3;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: nowrap;
    }

    header {
        flex-direction: column;
    }

    main .content {
        display: flex;
        flex-direction: column;
    }

    aside {
        height: 170px;
        width: 170px;
    }

    .description-content .description p {
        max-width: 350px;
    }

    .social-media {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}