/* Portfolio Template - Bolor B */
/* All styles scoped to body.portfolio-template */

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

body.portfolio-template {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(180deg, #0f1724, #071021);
    color: #e6eef8;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.portfolio-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 28px;
}

/* Header */
.portfolio-header {
    margin-bottom: 28px;
}

.header-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    padding-bottom: 18px;
}

.portfolio-template .avatar {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    flex: 0 0 88px;
    background: linear-gradient(135deg, #2dd4bf, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 32px;
    color: #04263a;
}

.portfolio-template .hero {
    flex: 1;
}

.portfolio-template h1 {
    font-size: 26px;
    margin: 0 0 6px;
    color: #e6eef8;
    line-height: 1.3;
}

.portfolio-template p.lead {
    margin: 0;
    color: #94a3b8;
    font-size: 15px;
}

/* Meta pills */
.portfolio-template .meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.portfolio-template .pill {
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: #94a3b8;
}

/* Header Navigation */
.portfolio-template .header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* WordPress Menu in Header */
.portfolio-template .header-menu {
    display: flex;
    list-style: none;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.portfolio-template .header-menu li {
    display: inline-block;
}

.portfolio-template .header-menu li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.portfolio-template .header-menu li a:hover {
    color: #e6eef8;
}

/* Buttons */
.portfolio-template .btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 10px;
    color: #e6eef8;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.portfolio-template .btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.portfolio-template .btn.primary {
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    color: white;
    border: 0;
}

.portfolio-template .btn.primary:hover {
    opacity: 0.9;
}

/* Main Layout */
.portfolio-main {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Cards */
.portfolio-template .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
}

.portfolio-template .card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #e6eef8;
}

.portfolio-template .card h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    color: #e6eef8;
}

.portfolio-template .card h3:first-child {
    margin-top: 0;
}

/* Projects */
.portfolio-template .projects {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.portfolio-template .project {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.portfolio-template .project:hover {
    transform: translateY(-6px);
}

.portfolio-template .project:focus {
    outline: 3px solid rgba(124, 58, 237, 0.25);
    outline-offset: 4px;
    border-radius: 8px;
}

.portfolio-template .thumb {
    width: 120px;
    height: 84px;
    border-radius: 10px;
    background: linear-gradient(135deg, #94a3b8, #60a5fa);
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #04263a;
    font-weight: 700;
    font-size: 24px;
}

.portfolio-template .project-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.portfolio-template .project-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

/* Tags */
.portfolio-template .tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.portfolio-template .tag {
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 8px;
    color: #94a3b8;
}

/* Sidebar */
.portfolio-template .sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.portfolio-template .contact p {
    margin: 8px 0 0;
}

.portfolio-template .contact a {
    color: #e6eef8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.portfolio-template .contact a:hover {
    color: #7c3aed;
}

.portfolio-template .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* About section list */
.portfolio-template .card ol {
    padding-left: 20px;
    margin: 8px 0 0;
    color: #94a3b8;
}

.portfolio-template .card ol li {
    margin-bottom: 6px;
}

/* Footer */
.portfolio-footer {
    margin-top: 28px;
}

.footer-inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(2, 6, 23, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Utility classes */
.portfolio-template .muted {
    color: #94a3b8;
}

.portfolio-template .small {
    font-size: 13px;
}

/* Modal */
.portfolio-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
}

.portfolio-modal.open {
    display: block;
}

.portfolio-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    backdrop-filter: blur(4px);
}

.portfolio-modal .modal-card {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(560px, 96%);
    overflow: auto;
    border-radius: 16px 0 0 16px;
    padding: 28px;
    background: linear-gradient(180deg, #071426, #081b2b);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
}

.portfolio-modal .modal-card h2 {
    margin: 0 0 4px;
    color: #e6eef8;
    font-size: 22px;
}

.portfolio-modal .modal-card h3 {
    margin: 24px 0 8px;
    font-size: 15px;
    color: #e6eef8;
}

.portfolio-modal .modal-card p {
    color: #94a3b8;
    font-size: 14px;
    margin: 0;
}

.portfolio-modal .modal-card ul {
    margin: 0;
    padding-left: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.portfolio-modal .modal-card li {
    margin-bottom: 4px;
}

.portfolio-modal .modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    color: white;
    font-size: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.portfolio-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Accessibility focus states */
.portfolio-template a:focus,
.portfolio-template button:focus {
    outline: 3px solid rgba(124, 58, 237, 0.25);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
    .portfolio-main {
        grid-template-columns: 1fr;
    }

    .portfolio-container {
        padding: 28px 18px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-template .avatar {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
        font-size: 28px;
    }

    .portfolio-template .header-nav {
        width: 100%;
    }

    .portfolio-template h1 {
        font-size: 22px;
    }

    .portfolio-template .meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-template .project {
        flex-direction: column;
    }

    .portfolio-template .thumb {
        width: 100%;
        height: 100px;
        flex: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
