:root {
    --background: 246 13% 30%;
    --foreground: 0 0% 98%;
    --card: 246 13% 25%;
    --card-foreground: 0 0% 98%;
    --accent: 342 82% 73%;
    --accent-foreground: 0 0% 98%;
    --border: 246 13% 40%;
    --muted-foreground: 240 5% 64.9%;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: transparent;
    color: hsl(var(--foreground));
    padding: 40px;
    line-height: 1.6;
}

a {
    color: hsl(var(--accent));
    text-decoration: none;
}

a:hover {
    color: hsl(var(--accent));
    text-decoration: underline;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    margin-bottom: 32px;
    color: hsl(var(--accent));
    font-weight: 700;
}

.section {
    margin-bottom: 48px;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: hsl(var(--foreground));
    font-weight: 700;
}

.card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 24px;
}

.bio-card {
    line-height: 1.8;
}

.bio-card p {
    margin-bottom: 1em;
}

.bio-card p:last-child {
    margin-bottom: 0;
}

.bio-card a {
    color: hsl(var(--accent));
    text-decoration: none;
}

.bio-card a:hover {
    color: hsl(var(--accent));
    text-decoration: underline;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.skill-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 20px;
    text-align: center;
    font-weight: 500;
    transition: transform 0.2s, border-color 0.2s;
}

.skill-card:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--accent));
}

.skill-card-link {
    text-decoration: none;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.skill-card-link:hover {
    color: hsl(var(--accent));
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.social-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 20px;
    text-align: center;
    font-weight: 500;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.2s;
    display: block;
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--accent));
    color: hsl(var(--accent));
}

.skill-card, .social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    word-break: break-word;
    hyphens: auto;
}

.blog-controls {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.blog-jump {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-jump label {
    font-size: 14px;
    color: hsl(var(--foreground));
    font-weight: 600;
}

.blog-jump input {
    width: 100px;
    padding: 8px 12px;
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
}

.blog-jump input::-webkit-outer-spin-button,
.blog-jump input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.blog-jump input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.blog-jump button {
    padding: 8px 16px;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.blog-jump button:hover {
    opacity: 0.9;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-post {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 24px;
    scroll-margin-top: 20px;
}

.blog-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid hsl(var(--border));
}

.blog-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: hsl(var(--accent));
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

.blog-title:hover {
    text-decoration: underline;
}

.blog-date {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
}

.blog-content {
    line-height: 1.8;
}

.blog-content p {
    margin-bottom: 1em;
}

.blog-content p:last-child {
    margin-bottom: 0;
}

.blog-content a {
    color: hsl(var(--accent));
}

.blog-content ul, .blog-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    list-style-position: outside;
}

.blog-content li {
    margin-bottom: 0.25rem;
}

.blog-content li > ul, 
.blog-content li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.blog-content li::marker {
    color: hsl(var(--accent));
}

.project-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid hsl(var(--border));
}

.project-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: hsl(var(--foreground));
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.project-tab:hover {
    color: hsl(var(--accent));
}

.project-tab.active {
    color: hsl(var(--accent));
    border-bottom-color: hsl(var(--accent));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: grid;
    gap: 20px;
}

.project-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 24px;
    transition: all 0.2s;
}

.project-card:hover {
    border-color: hsl(var(--accent));
    transform: translateY(-2px);
}

.project-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: hsl(var(--accent));
    text-decoration: none;
    display: block;
    font-weight: 700;
}

.project-title:hover {
    text-decoration: underline;
}

.project-description {
    color: hsl(var(--foreground));
    line-height: 1.6;
}


.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 24px;
    transition: all 0.2s;
}

.download-card:hover {
    border-color: hsl(var(--accent));
    transform: translateY(-2px);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.download-name {
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--accent));
}

.download-btn {
    padding: 8px 16px;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
    font-family: 'JetBrains Mono', monospace;
}

.download-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.download-description {
    color: hsl(var(--foreground));
}

.download-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.download-left:hover {
    opacity: 0.8;
}

.download-id {
    font-size: 18px;
    font-weight: 800;
    color: hsl(var(--accent));
}

.download-id:hover {
    text-decoration: underline;
    text-decoration-color: hsl(var(--accent));
}

#copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: bold;
    display: none;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    padding: 24px;
}

.stat-card h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.stats-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    font-weight: 600;
    letter-spacing: 1px;
}

.size-display {
    text-align: center;
}

.size-value {
    font-size: 48px;
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: 8px;
}

.languages-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.language-item {
    margin-bottom: 16px;
}

.language-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.language-name {
    font-weight: 600;
}

.language-percent {
    color: hsl(var(--muted-foreground));
    font-weight: 600;
}

.language-bar {
    height: 8px;
    background: hsl(var(--border));
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: hsl(var(--accent));
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-group {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.counter-card {
    border: 1px solid hsla(var(--primary), 0.2);
    padding: 15px;
    display: inline-block;
    border-radius: 4px;
    background: hsla(var(--primary), 0.03);
    font-family: 'JetBrains Mono', monospace;
}

.counter-label {
    font-size: 0.7rem;
    color: hsl(var(--muted-foreground));
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 100px;
}

.gallery-card {
    background: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-header, .gallery-info {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.gallery-type-label {
    color: hsl(var(--muted-foreground)) !important;
}

.gallery-button {
    display: inline-block;
    text-decoration: none;
    background: #181818;
    border: 1px solid #2d2e2e;
    color: #7e7e7e;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.gallery-button:hover {
    background: #1b1e1d !important;
    border-color: #dbd7ca !important;
    color: #dbd7ca !important;
}

.gallery-media-container {
    padding: 0;
    background: #181818;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.gallery-media-container img, 
.gallery-media-container video {
    max-width: 100%;
    height: auto;
    display: block;
}

.gallery-info {
    padding: 16px;
    border-top: 1px solid #2d2e2e;
}

.gallery-item-title {
    font-size: 16px;
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: 4px;
}

.gallery-item-desc {
    font-size: 13px;
    color: hsl(var(--foreground));
    opacity: 0.8;
}

.gallery-controls {
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 1000;
    background: hsla(var(--card), 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsla(var(--primary), 0.2);
    padding: 12px 16px;
    border-radius: 0px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-controls h4 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: hsl(var(--primary));
    margin-bottom: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}

.filter-option input {
    cursor: pointer;
}

code.shiki-inline {
    background: #121212 !important;
    padding: 2px 6px !important;
    border: 1px solid #2d2e2e !important;
    border-radius: 2px !important;
    font-family: 'JetBrains Mono', monospace !important;
    display: inline-block;
    vertical-align: middle;
}

pre.shiki {
    margin: 1.5rem 0 !important;
    padding: 1rem !important;
    background-color: #121212 !important;
    border: 1px solid #2d2e2e !important;
}

.card, .blog-post, .download-card, .project-card, .stat-card {
    background: hsl(var(--card));
    border: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.gallery-card {
    background: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
}

.gallery-header, .gallery-info {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}