:root {
    --bg-gradient: linear-gradient(135deg, #1e1e2f 0%, #4b6cb7 100%);
    --window-bg: rgba(255, 255, 255, 0.85);
    --sidebar-bg: rgba(230, 230, 230, 0.7);
    --accent-color: #007aff;
    --text-main: #333;
    --text-dim: #666;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
}

.mac-window {
    position:absolute;
    top:40px;
    left:40px;
    bottom:40px;
    right: 40px;
    background: var(--window-bg);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.title-bar {
    height: 40px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #ccc;
    position: relative;
}

.window-title {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666;
    pointer-events: none;
}

.buttons { display: flex; gap: 8px; z-index: 2; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.window-body { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    border-right: 1px solid #ccc;
    height: 100%; /* Ensures sidebar takes full window height */
}

.profile-sidebar {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #bbb;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-sidebar h3 { margin: 10px 0 5px 0; font-size: 18px; }
.sidebar-role { font-size: 12px; color: var(--text-dim); margin: 0; }

.nav-list {
    padding: 15px 10px;
    flex: 1; /* This takes up all available space, pushing the footer down */
}

.nav-item {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
    margin-bottom: 4px;
}

.nav-item i { width: 18px; text-align: center; font-size: 16px; color: var(--accent-color); }
.nav-item.active { background: var(--accent-color); color: white; }
.nav-item.active i { color: white; }

.sidebar-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid #bbb;
}

.sidebar-footer a {
    color: #555;
    font-size: 22px;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.sidebar-footer a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Content Area */
.content { flex: 1; padding: 40px; overflow-y: auto; background: white; }
.section { display: none; animation: fadeIn 0.3s; }
.section.active { display: block; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.skill-tag {
    background: #def;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

h2 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
h4 { margin: 0 0 5px 0; color: var(--accent-color); }

.tech-tag { background: #eef; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.btn-link { text-decoration: none; color: var(--accent-color); font-size: 14px; font-weight: bold; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}