/* Portfolio Enhancement Styles - Dark Mode Only */

/* ======== UNIVERSAL STYLES (BOTH MODES) ======== */

/* Hide page hero completely */
.page__hero {
    display: none !important;
}

.page__lead {
    display: none !important;
}

/* Fix masthead/title bar - pure black with white text */
.masthead,
body .masthead,
html body .masthead {
    background: #000 !important;
    border-bottom: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.masthead__inner-wrap,
body .masthead__inner-wrap,
html body .masthead__inner-wrap {
    background: #000 !important;
    border-bottom: none !important;
    padding: 10px 16px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.masthead__menu,
.greedy-nav,
body .masthead__menu,
body .greedy-nav {
    background: #000 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.site-title,
body .site-title,
.masthead .site-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.2em !important;
    color: #fff !important;
}

.greedy-nav {
    padding-right: 0 !important;
}

.greedy-nav a,
body .greedy-nav a,
.greedy-nav .visible-links a {
    margin-right: 15px !important;
    text-decoration: none !important;
    color: #fff !important;
}

.greedy-nav .visible-links a:hover,
.greedy-nav .visible-links .selected>a {
    color: #ff5c5c !important;
}

.skill-bar-container {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.skill-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    animation: slideIn 1.5s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }

    to {
        /* width is set by inline styles */
    }
}

/* Project Cards */
.archive__item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
}

.archive__item:hover {
    transform: translateY(-8px);
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.85em !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
    margin-top: 10px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.difficulty-beginner {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%) !important;
    color: #000 !important;
}

.difficulty-intermediate {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    color: #000 !important;
}

.difficulty-advanced {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
    color: #fff !important;
}

.difficulty-expert {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    color: #000 !important;
}

/* Impact Cards */
.impact-card {
    transition: all 0.3s ease;
    transform: scale(1);
}

.impact-card:hover {
    transform: scale(1.05);
}

/* Achievement Cards */
.achievement-card {
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.achievement-card:hover {
    border-left-width: 6px;
    transform: translateX(5px);
}

/* Research cards */
.research-card {
    padding: 20px !important;
    margin: 20px 0 !important;
    border-left: 4px solid #444 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.research-card a {
    font-weight: 600 !important;
}

.research-card.accent-blue {
    border-left-color: #0366d6 !important;
}

.research-card.accent-green {
    border-left-color: #28a745 !important;
}

/* Contact card */
.contact-card {
    padding: 24px !important;
    margin: 20px 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08) !important;
    font-size: 1.05em !important;
    line-height: 2.2 !important;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.contact-card p,
.contact-card strong {
    margin: 16px 0 4px 0 !important;
    display: block !important;
}

.contact-card a {
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
    margin-bottom: 16px !important;
}

/* ======== DARK MODE ======== */
@media (prefers-color-scheme: dark) {
    body {
        background: #000 !important;
    }

    .page,
    .page__inner-wrap {
        background: #000 !important;
    }

    .skill-bar-container {
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
    }

    .skill-bar {
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .skill-progress {
        background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
    }

    .archive__item {
        background: rgba(255, 255, 255, 0.03) !important;
        color: #fff !important;
    }

    .archive__item h2,
    .archive__item h3,
    .archive__item p {
        color: #fff !important;
    }

    .archive__item:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .impact-card {
        color: #fff !important;
    }

    .impact-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    }

    .research-card {
        background: #1a1a1a !important;
        color: #f2f2f2 !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
    }

    .research-card a {
        color: #ff5c5c !important;
    }

    .contact-card {
        background: #111 !important;
        color: #f2f2f2 !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35) !important;
    }

    .contact-card a {
        color: #7ab0ff !important;
    }
}