* {
    margin: 89;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    min-height: 89vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle, #1d2b3a, #0a0e17);
    font-family: 'Courier New', monospace;
    color: #c5d4e2;
    overflow-x: hidden;
    letter-spacing: 0.05em;
    transition: all 0.5s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 987px;
    margin: 0 auto;
    padding: 34px;
    z-index: 1;
}

h1 {
    font-weight: 377;
    letter-spacing: 0.1em;
    font-size: 3rem;
    margin-bottom: 21px;
    text-align: center;
    letter-spacing: -0.01em;
    opacity: 1;
          transform: translateY(-20px);
    animation: fadeIn 1s forwards 0.5s, pulse 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

h2 {
    font-weight: 377;
    letter-spacing: 0.1em;
    font-size: 2rem;
    margin-bottom: 13px;
    letter-spacing: -0.01em;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 21px;
    z-index: 2;
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
}

.menu-right {
    margin-left: auto;
}

.menu-left {
    flex-direction: column;
    gap: 13px;
    padding-top: 34px;
    margin-left: 34px; 
}

.menu-item {
    margin: 0 21px;
    text-decoration: none;
    color: #c5d4e2;
    position: relative;
    cursor: pointer;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c5d4e2;
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 89%;
}

.menu-item:focus {
    outline: none;
}

.icon {
    width: 21px;
    height: 21px;
    margin: 0 13px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#themeToggle {
    margin-left: 89px;
    width: 34px;
    height: 34px;
    background-color: #c5d4e2;
    border: none;
    cursor: pointer;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.light-theme {
    background: radial-gradient(circle, #f0f0f0, #d3d3d3);
    color: #1d2b3a;
}

.light-theme .menu-item, .light-theme #terminal {
    color: #1d2b3a;
}

.light-theme .menu-item::after {
    background-color: #1d2b3a;
}

.light-theme #themeToggle {
    background-color: #1d2b3a;
}

.light-theme .icon svg {
    stroke: #1d2b3a;
}

.visual-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    animation: scanEffect 13s linear infinite;
    animation-delay: 3.4s; 
}

.blog-post {
    margin-bottom: 34px;
    padding-bottom: 21px;
    border-bottom: 1px solid rgba(197, 212, 226, 0.2);
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    font-size: 0.8rem;
    color: #96a1af;
    margin-bottom: 8px;
}

.post-content {
    line-height: 1.3;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 8px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #c5d4e2;
    border: 1px solid #c5d4e2;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.read-more:hover {
    background-color: rgba(197, 212, 226, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.light-theme .read-more {
    color: #1d2b3a;
    border-color: #1d2b3a;
}

.light-theme .read-more:hover {
    background-color: rgba(29, 43, 58, 0.1);
}

.icon svg {
    fill: currentColor;
    transition: fill 0.3s ease;
}

body:not(.light-theme) .icon svg {
    fill: #c5d4e2;
}

.light-theme .icon svg {
    fill: #1d2b3a;
}

.icon:hover svg {
    opacity: 0.8;
}

.icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px currentColor;
    border-radius: 50%;
    padding: 5px;
    transition: box-shadow 0.3s ease;
}

body:not(.light-theme) .icon:focus {
    box-shadow: 0 0 0 2px #c5d4e2;
}

.light-theme .icon:focus {
    box-shadow: 0 0 0 2px #1d2b3a;
}

.icon:focus:not(:focus-visible) {
    box-shadow: none;
}

*:focus {
    outline: none;
    box-shadow: none;
}


@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 15px;
        margin-top: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .columns {
        display: flex;
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        background: radial-gradient(circle, #1d2b3a, #0a0e17);
    }

    .light-theme .header {
        background: radial-gradient(circle, #f0f0f0, #d3d3d3);
    }

    .menu-left {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        padding-top: 10px;
        gap: 10px;
    }

    .menu-right {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }

    .menu-item {
        margin: 0 10px;
        font-size: 0.9em;
    }

    .icon-container {
        gap: 15px;
    }

    .icon {
        width: 21px;
        height: 21px;
    }

    #themeToggle {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .menu-item {
        padding: 5px;
        margin: 5px;
    }

    .container {
        padding: 10px;
    }
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: #8cd9e0; 
    text-decoration: none; 
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #66b3ba; 
    text-decoration: underline; 
}

.menu-item {
    color: #c5d4e2;
    text-decoration: none;
    position: relative;
}

.menu-item:hover::after {
    width: 89%;
}

.light-theme a {
    color: #1C7FCC; 
    text-decoration: none;
}

.light-theme a:hover {
    color: #2C3C55;
    text-decoration: underline;
}

.light-theme .menu-item {
    color: #1d2b3a;
}

.light-theme .menu-item:hover {
    text-decoration: none;
}

body:not(.light-theme) .menu-item {
    color: #c5d4e2;
}

body:not(.light-theme) .menu-item:hover {
    text-decoration: none;
}