@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

body {
    margin: 0;
    background: #1e1e1e;
    font-family: 'Fira Code', monospace;
    color: #d4d4d4;
}

/* Matrix canvas background */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* behind everything */
    pointer-events: none;
}

.vscode-window {
    position: relative;
    z-index: 1; /* in front of canvas */
    margin: 150px auto 20px auto; /* top, sides, bottom */
    width: 90%;
    max-width: 1200px;
    background: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.window-bar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #2d2d30;
    color: #ccc;
    font-size: 0.9rem;
}

.controls span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.editor {
    display: flex;
    height: 70vh;
    border-top: 1px solid #333;
}

/* Sidebar with photo */
.sidebar {
    width: 260px;
    background-color: #252526;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-right: 1px solid #333;
    overflow: visible;
}

/* Profile photo */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #7ecbff;
}

.sidebar h1 { color: #7ecbff; font-size: 1.5rem; text-align: center; }
.sidebar p { color: #d4d4d4; font-size: 0.9rem; text-align: center; }

.cv-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0e639c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}
.cv-button:hover { background-color: #1177bb; }

/* Line numbers */
.line-numbers {
    width: 50px;
    background: #1e1e1e;
    color: #858585;
    text-align: right;
    padding: 10px 5px;
    border-right: 1px solid #333;
    flex-shrink: 0;
    overflow: hidden;
}
.line-numbers span { display: block; line-height: 24px; }

/* Editor content scrollable */
.content {
    flex: 1;
    padding: 12px 20px;
    overflow-y: auto;
    line-height: 24px;
}

/* Sections styling */
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.hero span { color: #7ecbff; }
.projects .project {
    margin-bottom: 10px;
    background: #2d2d30;
    padding: 8px 12px;
    border-radius: 4px;
}
/* Contact links – VS Code style underline */
.contact a {
    color: #d4d4d4;
    text-decoration: none;
    position: relative;
}

.contact a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #9cdcfe; /* VS Code cyan */
    transition: width 0.25s ease;
}

.contact a:hover {
    color: #9cdcfe;
}

.contact a:hover::after {
    width: 100%;
}
