/* Variables */
:root {
    --primary-color: #569CD6;
    --secondary-color: #4EC9B0;
    --accent-color: #CE9178;
    --background-color: #1E1E1E;
    --text-color: #D4D4D4;
    --comment-color: #6A9955;
    --code-bg: #252526;
    --border-color: #333;
    --sidebar-width: 320px;
    --nav-height: 60px;
}

/* General Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--code-bg);
    padding: 20px;
    overflow-y: auto;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.profile {
    text-align: center;
    margin-bottom: 30px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    padding-top: calc(var(--nav-height) + 20px);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

/* Code Blocks */
.code-block {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--code-bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.code-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    border-left-color: var(--accent-color);
    margin-bottom: 15px;
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

/* Profile Image */
.photo-block img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 8px 2px rgba(86, 156, 214, 0.7), 
                inset 0 0 5px 1px rgba(86, 156, 214, 0.5);
}

.photo-block pre {
    margin-top: 8px;
    text-align: center;
}

/* Project Cards */
.project-card {
    border-left-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--nav-height);
    background-color: var(--code-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 90;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: left 0.3s ease;
}

.nav .code-block {
    margin: 0;
    padding: 10px 15px;
    border-left: none;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
    box-shadow: none;
}

.nav-link {
    margin: 0 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Syntax Highlighting */
.keyword { color: var(--primary-color); }
.type { color: var(--secondary-color); }
.string { color: var(--accent-color); }
.comment { color: var(--comment-color); }
.number { color: #B5CEA8; }
.boolean { color: var(--primary-color); }
.method { color: #DCDCAA; }

/* Links */
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    transition: color 0.3s;
}

a:hover {
    color: #e0a790;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 200;
    background-color: var(--code-bg);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        padding-top: calc(var(--nav-height) + 15px);
    }
    
    .code-block {
        padding: 12px;
    }
    
    pre {
        font-size: 13px;
    }
    
    .nav .code-block {
        padding: 8px 12px;
        overflow-x: auto;
    }
    
    .nav-link {
        margin: 0 5px;
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active section highlighting */
.section.active .section-header {
    border-left-color: var(--secondary-color);
    border-left-width: 6px;
}