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

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --accent: #0df;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --text-primary: #fff;
    --text-secondary: #a0a0a0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration:none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding-top: 80px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}

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

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-description, .post-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 20px;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 0.75rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-back-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: transparent;
    border: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.post-back-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.post-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

.post-description {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

.post-content {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.post-content h2,
.post-content h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content code {
    background: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 70px;
    }
    
    .project-card {
        padding: 1.25rem;
    }
    
    .post-header {
        gap: 0.75rem;
    }
    
    .post-back-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
    }
    
    .post-description {
        font-size: 0.95rem;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .projects-grid {
        padding-top: 65px;
    }
    
    .project-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

main {
    padding-top: 80px;
}

@media (max-width: 768px) {
    main {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    main {
        padding-top: 65px;
    }
}