:root {
    --color-primary: #E879F9;
    --color-primary-dark: #9333EA;
    --blur-nav: 10px;
    --page-max-width: 980px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    color: #fff;
    background: #050505;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 6px;
}

header {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.35rem;
    width: fit-content;
    margin: 0 auto;
    padding: 0.9rem 1.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(var(--blur-nav));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: auto;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.15rem;
    margin: 0;
    margin-left: auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--color-primary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

.hero,
.page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("../../images/index_background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.page-about .hero-background {
    background-image: url("../../images/about_background.jpg");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.btn {
    display: inline-block;
    width: 220px;
    padding: 1rem 2.5rem;
    border: 0;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
}

.btn:focus-visible {
    outline-offset: 8px;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 5rem;
}

.page-content {
    position: relative;
    z-index: 3;
    width: min(100%, var(--page-max-width));
    animation: fadeInUp 0.8s ease-out;
}

.page-about .page-content {
    width: min(50vw, 660px);
    max-height: 36vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
    scrollbar-width: thin;
    margin-right: auto;
    margin-left: 7vw;
    margin-top: -25vh;
    padding-right: 1rem;
}

.page-about .page-content::-webkit-scrollbar {
    width: 6px;
}

.page-about .page-content::-webkit-scrollbar-track {
    background: transparent;
}

.page-about .page-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.page-about .page-content::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 249, 0.55);
}

.page-kicker {
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page-title {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.page-about .page-title {
    max-width: 680px;
    font-size: 2.85rem;
}

.page-copy {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.25rem;
    line-height: 1.7;
}

.post-content {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
    scrollbar-width: thin;
    padding-right: 1.5rem;
}

.post-content::-webkit-scrollbar {
    width: 6px;
}

.post-content::-webkit-scrollbar-track {
    background: transparent;
}

.post-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.post-content::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 249, 0.55);
}

.post-intro {
    max-width: 760px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.7;
}

.post-body {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.85;
}

.post-body p + p {
    margin-top: 1.25rem;
}

.post-body code {
    color: #fff;
    font: inherit;
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary);
}

.entry-list {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
    list-style: none;
}

.entry-item,
.entry-link {
    display: block;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
}

.entry-link:hover .entry-title {
    color: var(--color-primary);
}

.entry-title {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    transition: color 0.3s ease;
}

.entry-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
