@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg: #ffffff;
    --text: #111111;
    --border: #cccccc;
    --muted: #888888;
    --header-bg: rgba(255, 255, 255, 0.4);
}

body.dark {
    --bg: #0f1115;
    --text: #eaeaea;
    --border: #2a2d34;
    --muted: #9aa0a6;
    --header-bg: rgba(15, 17, 21, 0.6);
}


@keyframes appear {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

@keyframes slide {
    from{
        opacity: 0;
        transform: translateX(150px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}


body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    font-size: 20px;
}

.category {
    color: rgb(0, 174, 255);
    font-size: 11px;
    font-family: JetBrains Mono, monospace;
    padding: 1px 2px;
}

.warning {
    color: rgb(111, 245, 111);
    font-size: 14px;
    font-family: JetBrains Mono, monospace;
    margin: 10px;
    text-decoration: underline;
    text-align: center;
}

.error {
    color: red;
    font-size: 18px;
    font-family: JetBrains Mono, monospace;
    margin: 10px;
}

.post {
    border-bottom: 1px solid var(--border);
    margin: 20px auto;
    padding: 20px;
    max-width: 720px;
}

.post h1 { 
    margin: 0 0 12px; 
    font-weight: normal;
    font-size: clamp(20px, 5vw, 28px);
}

.post h3 { 
    font-weight: normal;
    font-size: clamp(15px, 4.5vw, 19px);
    line-height: 1.8;
    word-break: break-word;
    white-space: pre-line;
    margin-bottom: 12px;
    text-wrap: balance;
    hyphens: auto;
    word-spacing: 0.02em;
}

.post small { 
    color: var(--muted);
    font-family: JetBrains Mono, monospace;
    font-size: 12px;
}

.header {
    position: sticky;
    top: 0;
    background-color: var(--header-bg);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.header .sections {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 10px;
}

.blog-text {
    font-size: 50px;
    font-weight:normal;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 50px;
}

.sections-button:hover {
    text-decoration: underline;
}

/* About */

.about-section{
    display: flex;
    justify-content:center;
    align-items: center;
    margin-top: 100px;
    gap: 50px;
}

.about-photo{
    max-width: 170px;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: appear 500ms linear;
}

.about-data{
    display: flex;
    flex-direction: column;
    align-items: right;
}

.icons{
    display: flex;
    gap: 10px;
    font-size: 10px;
    margin-bottom: 30px;
    animation: slide 800ms linear;
}

.about-data h2{
    margin: 0;
    font-size: 45px;
    animation: slide 500ms linear;
}

.about-data p{
    margin: 0;
    font-size: 31px;
    margin-bottom: 10px;
    color: gray;
    animation: slide 700ms linear;
}

.buttonreadblog{
    border: 1px solid transparent;
    width: 135px;
    padding: 15px;
    background-color: rgb(0, 174, 255);
    color: white;
    border-radius: 9px;
    font-family: JetBrains Mono, monospace;
    cursor: pointer;
    animation: slide 900ms linear;
    margin-bottom: 20px;
    font-size: 17px;
}

.buttonreadblog:hover{
    background-color: rgb(0, 150, 220);
}

.github:hover{
    color: purple;
}

.telegram:hover{
    color: #0088cc;
}

.instagram:hover{
    color: #e1306c;
}

.logo{
    font-size: 16px;
}

#themeToggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 25px;
    color: inherit;
}

#themeToggle i {
    transition: transform 1s ease;
}

#themeToggle:active i {
    transform: rotate(20deg) scale(1.1);
}

body.dark .mobile {
    color: #f1f1f1;
}

body.dark #themeToggle {
    color: #f1f1f1;
}

@media only screen and (min-width: 992px){
    .mobile {
    display: none;
    }
}

/* Responsive UI */
@media only screen and (max-width: 600px) {

    .mobile {
        display: flex;
        color: #000;
        justify-content: center;
    }

    .mobile:hover{
        text-decoration: underline;
    }

    .logo{
        font-size: 10px;
        display: flex;
    }

    .header .sections .sections-button{
        display: none;
    }

    .about-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .icons{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 5px;
    }

    .blog-text{
        font-size: 30px;
        font-weight:normal;
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 50px;
    }

    .post {
        max-width: 100%;
        padding: 20px 16px;
    }
}

