/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #1b1b1b;
    --card-bg: #252525;
    --text-main: #e4e4e4;
    --text-muted: #a0a0a0;
    --accent: #d67c56;
    --accent-hover: #fab89c;
    --border: #333;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --container-width: 800px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* --- LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text-muted);
}

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

/* --- MOBILE MENU --- */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- MAIN CONTENT --- */
section {
    margin-bottom: 4rem;
}

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 1.8rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* --- PROFILE AREA (Home) --- */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    background-color: #333;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

/* --- PROJECTS LIST (Projects Page) --- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem;
    background-color: transparent;
    transition: background 0.2s;
}

.project-item:hover {
    background-color: var(--card-bg);
    border-radius: 6px;
    border-bottom-color: transparent;
}

.project-info {
    flex: 1;
}

.project-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent);
    margin-right: 1rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.lang-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #178600; /* C# Green */
    margin-right: 5px;
}

/* --- BLOG LIST (Blog Page) --- */
.blog-list {
    list-style: none;
}

.blog-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 0.2rem;
    display: block;
}

.blog-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.blog-preview {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- FOOTER --- */
footer {
    margin-top: -1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--accent);
}

.social-links a:hover {
    color: var(--accent-hover);
}

/* --- UTILS --- */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 1rem;
}
.btn:hover {
    background-color: var(--border);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-meta {
        margin-top: 0.5rem;
    }
}