/* Projects Section */
.tag-cloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tag-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tag-pill:hover,
.tag-pill.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px var(--accent-glow);
}

.project-card.hidden {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-header i {
    font-size: 2rem;
    color: var(--accent);
}

.project-visibility {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-language {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.project-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card.skeleton .project-header i,
.project-card.skeleton .project-visibility,
.project-card.skeleton h3,
.project-card.skeleton p,
.project-card.skeleton .project-footer {
    opacity: 0.5;
    pointer-events: none;
}

/* Project Modal */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.ide-window {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.project-modal.active .ide-window {
    transform: scale(1);
}

.ide-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.ide-window-controls {
    display: flex;
    gap: 8px;
}

.ide-window-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close-btn { background: #ff5f57; cursor: pointer; }
.minimize-btn { background: #febc2e; }
.maximize-btn { background: #28c840; }

.ide-title-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ide-actions-right {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
}

.ide-actions-right:hover {
    color: var(--text-primary);
}

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

.ide-sidebar {
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 16px;
    flex-shrink: 0;
}

.sidebar-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.sidebar-project-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-files {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-file {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.sidebar-file:hover,
.sidebar-file.active {
    background: var(--bg-hover);
    color: var(--accent);
}

.ide-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ide-tabs-bar {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.ide-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.ide-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-top: 2px solid var(--accent);
}

.ide-editor-container {
    flex: 1;
    display: flex;
    overflow: auto;
    padding: 20px 0;
}

.ide-line-numbers {
    width: 50px;
    text-align: right;
    padding: 0 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    user-select: none;
    flex-shrink: 0;
}

.ide-editor-content {
    flex: 1;
    padding: 0 20px;
    overflow: auto;
}

.ide-editor-content pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ide-statusbar {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-branch {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Terminal */
.terminal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons span:nth-child(1) { background: #ff5f57; }
.terminal-buttons span:nth-child(2) { background: #febc2e; }
.terminal-buttons span:nth-child(3) { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 320px;
    max-height: 450px;
    overflow-y: auto;
}

.terminal-output {
    margin-bottom: 8px;
}

.terminal-line {
    color: var(--text-secondary);
    word-wrap: break-word;
    white-space: pre-wrap;
}

.terminal-line.welcome {
    color: var(--accent);
}

.terminal-cyan { color: var(--accent); }
.terminal-command { color: var(--text-primary); font-weight: 600; }
.terminal-error { color: var(--error); }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--accent);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    caret-color: var(--accent);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.contact-item:hover {
    padding-left: 8px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-detail strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-message {
    margin-top: 16px;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

/* Mobile Menu (uses .nav-menu element) */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu.active {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.nav-menu.active .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
}
