/*==============================================================================
[Application Stylesheet]

Additions layered on top of the template's main.css. Everything here exists
because content is now database-driven: images arrive as inline custom
properties instead of hard-coded CSS rules, and a few components (timeline,
comments, pagination, skill meters) have no equivalent in the template.
==============================================================================*/

/* -----------------------------------------------------------------
   01. Database-driven background images
   ----------------------------------------------------------------- */

.portfolio-content-image.pf-dynamic::before {
    background-image: var(--pf-image);
}

.service-detail__banner.bg-dynamic,
.portfolio-detail__hero-banner.bg-dynamic,
.portfolio-detail__project-banner.bg-dynamic {
    background-image: var(--bg-image);
}

/* -----------------------------------------------------------------
   02. Brand wordmark fallback (used when no logo is uploaded)
   ----------------------------------------------------------------- */

.navbar-logo-container img,
.footer__logo-image img,
.sidebar-logo img {
    max-height: 46px;
    width: auto;
}

/* -----------------------------------------------------------------
   03. Timeline (experience & education)
   ----------------------------------------------------------------- */

.timeline-title {
    font-size: 32px;
    margin: 12px 0 32px;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 26px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color-2));
}

.timeline__item {
    position: relative;
    padding: 0 0 34px 0;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -26px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 2px solid var(--accent-color);
}

.timeline__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline__meta {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 10px;
}

.timeline__period {
    color: var(--accent-color);
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline__duration {
    background-color: var(--accent-color-4);
    border-radius: 40px;
    color: var(--text-color);
    font-size: 12px;
    padding: 3px 12px;
}

.timeline__company {
    color: var(--accent-color-5);
    font-weight: 500;
}

.timeline__company a {
    color: var(--accent-color-5);
    text-decoration: none;
}

.timeline__company a:hover {
    color: var(--accent-color);
}

.timeline__body p {
    color: var(--text-color);
    margin: 0;
}

.timeline__list {
    color: var(--text-color);
    margin: 4px 0 0;
    padding-left: 18px;
}

.timeline__list li {
    margin-bottom: 6px;
}

/* -----------------------------------------------------------------
   04. Skill meters
   ----------------------------------------------------------------- */

.skill-meter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.skill-meter__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.skill-meter__name {
    color: var(--primary);
    font-family: var(--font-family-heading);
    font-weight: 500;
}

.skill-meter__value {
    color: var(--accent-color);
    font-size: 14px;
}

.skill-meter__track {
    background-color: var(--accent-color-2);
    border-radius: 40px;
    height: 6px;
    overflow: hidden;
}

.skill-meter__fill {
    background: linear-gradient(90deg, var(--accent-color), #7affdf);
    border-radius: 40px;
    height: 100%;
    width: 0;
    transition: width 1.2s ease;
}

/* -----------------------------------------------------------------
   05. Blog: search, filters, comments
   ----------------------------------------------------------------- */

.blog-toolbar {
    display: flex;
    flex-flow: row wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.blog-search {
    display: flex;
    gap: 10px;
    flex: 1 1 280px;
    max-width: 420px;
}

.blog-search input {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 40px;
    color: var(--primary);
    flex: 1;
    outline: none;
    padding: 12px 20px;
}

.blog-search input:focus {
    border-color: var(--accent-color);
}

.chip-row {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.chip {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 40px;
    color: var(--text-color);
    font-size: 14px;
    padding: 7px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.chip:hover,
.chip.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list--nested {
    border-left: 1px solid var(--accent-color-2);
    margin-top: 20px;
    padding-left: 22px;
}

.comment {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 16px;
    padding: 22px 24px;
}

.comment__head {
    align-items: baseline;
    display: flex;
    flex-flow: row wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.comment__author {
    color: var(--primary);
    font-family: var(--font-family-heading);
    font-weight: 500;
}

.comment__date {
    color: var(--text-color);
    font-size: 13px;
}

.comment__body {
    color: var(--text-color);
    margin: 0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
}

.comment-form__row {
    display: flex;
    flex-flow: row wrap;
    gap: 18px;
}

.comment-form__row > * {
    flex: 1 1 220px;
}

/* -----------------------------------------------------------------
   06. Pagination
   ----------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
}

.pagination .page-link {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 40px;
    color: var(--text-color);
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
}

/* -----------------------------------------------------------------
   07. Forms: validation feedback
   ----------------------------------------------------------------- */

.form .field-error {
    color: #ff7a7a;
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
    border-color: #ff7a7a !important;
}

.form select {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 12px;
    color: var(--primary);
    outline: none;
    padding: 14px 18px;
    width: 100%;
}

.form select:focus {
    border-color: var(--accent-color);
}

.alert.success,
.alert.error {
    align-items: center;
    display: flex;
    gap: 14px;
}

/* -----------------------------------------------------------------
   08. Rich text output (blog body, service description)
   ----------------------------------------------------------------- */

.rich-text {
    color: var(--text-color);
}

.rich-text > * + * {
    margin-top: 18px;
}

.rich-text h2 {
    font-size: 34px;
}

.rich-text h3 {
    font-size: 26px;
}

.rich-text h4 {
    font-size: 21px;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    color: var(--primary);
    margin-top: 34px;
}

.rich-text a {
    color: var(--accent-color);
}

.rich-text ul,
.rich-text ol {
    padding-left: 22px;
}

.rich-text li + li {
    margin-top: 8px;
}

.rich-text img {
    border-radius: 16px;
    max-width: 100%;
    height: auto;
}

.rich-text blockquote {
    border-left: 2px solid var(--accent-color);
    color: var(--accent-color-5);
    font-size: 19px;
    padding: 4px 0 4px 22px;
}

.rich-text pre {
    background-color: var(--accent-color-4);
    border-radius: 14px;
    overflow-x: auto;
    padding: 20px;
}

.rich-text code {
    color: var(--accent-color);
}

.rich-text table {
    border-collapse: collapse;
    width: 100%;
}

.rich-text th,
.rich-text td {
    border: 1px solid var(--accent-color-2);
    padding: 10px 14px;
    text-align: left;
}

/* -----------------------------------------------------------------
   09. Small utilities
   ----------------------------------------------------------------- */

.empty-state {
    border: 1px dashed var(--accent-color-2);
    border-radius: 20px;
    color: var(--text-color);
    padding: 60px 24px;
    text-align: center;
}

.tech-pill-row {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.tech-pill {
    background-color: var(--accent-color-4);
    border: 1px solid var(--accent-color-2);
    border-radius: 40px;
    color: var(--accent-color-5);
    font-size: 14px;
    padding: 6px 15px;
}

.project-meta-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.project-meta-grid dt {
    color: var(--accent-color);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-meta-grid dd {
    color: var(--primary);
    margin: 6px 0 0;
}

.gallery-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery-grid img {
    border-radius: 16px;
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.blog-image img {
    height: 260px;
    object-fit: cover;
    width: 100%;
}

/* -----------------------------------------------------------------
   10. Hero stack strip (profile headline rendered as pills)
   ----------------------------------------------------------------- */

.hero-stack {
    justify-content: center;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .hero-stack {
        justify-content: flex-start;
    }
}

/* -----------------------------------------------------------------
   11. Font fallbacks
   -----------------------------------------------------------------
   Poppins and Roboto load from Google Fonts. If that request is blocked
   the page should still read well, so extend the template's two font
   variables with a real system stack rather than bare sans-serif. */

:root {
    --font-family-heading: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --font-family-paragraph: "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Font Awesome 7 sizes icons from the element's font-size; the template
   assumed the local build's defaults, so keep brand marks from shrinking
   inside flex rows. */
.footer__social-icon i,
.home-cta-icon,
.single-post__share-icon i {
    line-height: 1;
}
