/* Polished layout for Inam's public Folionests portfolio. */
:root {
    --inam-ink: #17243a;
    --inam-muted: #64748b;
    --inam-accent: #078da6;
    --inam-accent-dark: #08677e;
    --inam-border: #e2e8f0;
    --inam-surface: #ffffff;
    --inam-shadow: 0 18px 55px rgba(23, 36, 58, .08);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body.tmp-white-version.index-8 {
    color: var(--inam-ink);
    background: #f3f6fb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tmp-breadcrumb-image {
    opacity: .14;
    pointer-events: none;
}

.cv-card-area {
    min-height: 100vh;
    padding-block: 36px 72px;
}

.cv-card-area > .plr--150 {
    width: 100%;
    max-width: 1660px;
    margin-inline: auto;
    padding-inline: clamp(16px, 3vw, 48px);
}

.cv-card-area .row.row--25 {
    --bs-gutter-x: 22px;
    --bs-gutter-y: 22px;
}

.cv-card-area .tmp-sticky-top {
    top: 20px;
    z-index: 20;
}

.tmp-contact-about-inner {
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--inam-shadow);
}

.tmp-contact-about-inner .thumbnail {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, #0b1e45, #0a5d79);
}

.tmp-contact-about-inner .thumbnail img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12%;
    object-fit: contain;
}

.tmp-contact-about-inner .content {
    padding: 22px 4px 4px;
}

.tmp-contact-about-inner .title-area .title {
    margin-bottom: 5px;
    color: var(--inam-ink);
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 750;
    letter-spacing: -.035em;
}

.tmp-contact-about-inner .subtitle,
.tmp-contact-about-inner .info-box,
.tmp-contact-about-inner .info-box a {
    color: var(--inam-muted);
}

.tmp-contact-about-inner .info-box {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    overflow-wrap: anywhere;
}

.tmp-contact-about-inner .info-box a:hover {
    color: var(--inam-accent-dark);
}

.tmp-contact-about-inner .social-link {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.tmp-contact-about-inner .social-link a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--inam-border);
    border-radius: 50%;
    background: #f8fafc;
    color: var(--inam-ink);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.tmp-contact-about-inner .social-link a:hover {
    transform: translateY(-2px);
    border-color: var(--inam-accent);
    background: var(--inam-accent);
    color: #fff;
}

.tmp-contact-about-inner .download-btn,
.portfolio-contact a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--inam-accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.tmp-contact-about-inner .download-btn {
    width: 100%;
}

.tmp-contact-about-inner .download-btn:hover,
.portfolio-contact a:hover {
    transform: translateY(-2px);
    background: var(--inam-accent-dark);
    color: #fff;
}

.tmp-tab-content-area,
.tmp-all-tab-content {
    width: 100%;
}

.tmp-all-tab-content {
    overflow: hidden;
    min-height: 660px;
    padding: clamp(22px, 3.5vw, 52px);
    border: 1px solid var(--inam-border);
    border-radius: 26px;
    background: var(--inam-surface);
    box-shadow: var(--inam-shadow);
}

.tmp-all-tab-content .tab-pane {
    color: var(--inam-ink);
}

.tmp-all-tab-content .section-head {
    max-width: 780px;
    margin-bottom: 34px !important;
}

.tmp-all-tab-content .section-head .custom-title {
    color: var(--inam-accent-dark);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.tmp-all-tab-content .section-head .title {
    color: var(--inam-ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.12;
}

.tmp-all-tab-content .section-head .description {
    max-width: 68ch;
    color: var(--inam-muted);
    font-size: 16px;
    line-height: 1.8;
}

.about-us-card,
.counter-card,
.education-experience-card,
.progress-wrapper,
.blog-card-style-two,
.contact-form,
.portfolio-contact {
    border: 1px solid var(--inam-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(23, 36, 58, .045);
}

.about-us-card,
.education-experience-card,
.progress-wrapper,
.contact-form {
    height: 100%;
    padding: 22px;
}

.about-us-card,
.counter-card,
.education-experience-card,
.tmp-portfolio {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.about-us-card:hover,
.counter-card:hover,
.education-experience-card:hover,
.tmp-portfolio:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 141, 166, .35);
    box-shadow: 0 18px 34px rgba(23, 36, 58, .10);
}

.about-us-card .card-title,
.education-experience-card .edu-sub-title,
.education-experience-card .edu-title,
.counter-card .counter-para {
    color: var(--inam-ink);
}

.about-us-card .card-para,
.education-experience-card .edu-para {
    color: var(--inam-muted);
    line-height: 1.75;
}

.counter-card {
    height: 100%;
    padding: 22px;
}

.counter-card .counter-title {
    color: var(--inam-accent-dark);
    font-size: 34px;
    font-weight: 760;
}

.tab-navigation-button {
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--inam-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--inam-shadow);
}

.tab-navigation-button .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--inam-muted);
    font-weight: 700;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.tab-navigation-button .nav-link:hover {
    color: var(--inam-accent-dark);
    background: #effafe;
}

.tab-navigation-button .nav-link.active {
    border-color: rgba(7, 141, 166, .15);
    background: #eaf8fb;
    color: var(--inam-accent-dark);
}

.tmp-portfolio {
    overflow: hidden;
    border: 1px solid var(--inam-border);
    border-radius: 18px;
    background: #fff;
}

.tmp-portfolio img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.tmp-portfolio .portfolio-card-content-wrap {
    padding: 18px;
}

.tmp-portfolio .portfoli-card-para {
    color: var(--inam-accent-dark);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tmp-portfolio .portfolio-card-title,
.tmp-portfolio .portfolio-card-title a {
    color: var(--inam-ink);
    line-height: 1.35;
}

.portfolio-contact {
    padding: 24px;
}

.portfolio-contact a {
    padding: 0 22px;
}

.cv-card-area a:focus-visible,
.cv-card-area button:focus-visible {
    outline: 3px solid #16b8ce;
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .cv-card-area {
        padding-block: 18px 48px;
    }

    .cv-card-area .row.row--25 > .order-1,
    .cv-card-area .row.row--25 > .order-2,
    .cv-card-area .row.row--25 > .order-3 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .cv-card-area .row.row--25 > .order-1 { order: 1 !important; }
    .cv-card-area .row.row--25 > .order-2 { order: 2 !important; }
    .cv-card-area .row.row--25 > .order-3 { order: 3 !important; }

    .cv-card-area .tmp-sticky-top {
        position: static !important;
    }

    .tmp-contact-about-inner {
        display: grid;
        grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
        align-items: center;
        gap: 24px;
    }

    .tmp-contact-about-inner .content {
        padding: 8px 4px;
    }

    .tab-navigation-button {
        position: sticky;
        top: 8px;
        z-index: 30;
        display: flex;
        flex-flow: row nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .tab-navigation-button .nav-item {
        flex: 0 0 auto;
    }

    .tab-navigation-button .nav-link {
        min-height: 42px;
        justify-content: center;
        padding: 8px 16px;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .cv-card-area > .plr--150 {
        padding-inline: 12px;
    }

    .tmp-contact-about-inner {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 19px;
    }

    .tmp-contact-about-inner .thumbnail { border-radius: 14px; }
    .tmp-contact-about-inner .thumbnail img { padding: 10%; }
    .tmp-contact-about-inner .content { padding: 0; }
    .tmp-contact-about-inner .title-area .title { font-size: 20px; }
    .tmp-contact-about-inner .info-box { gap: 5px; margin-top: 10px; font-size: 13px; }
    .tmp-contact-about-inner .social-link { gap: 7px; margin-top: 12px; }
    .tmp-contact-about-inner .social-link a { width: 34px; height: 34px; }
    .tmp-contact-about-inner .download-btn { min-height: 42px; margin-top: 12px; }

    .tmp-all-tab-content {
        min-height: 0;
        padding: 22px 16px;
        border-radius: 20px;
    }

    .tmp-all-tab-content .section-head .title { font-size: 31px; }
    .tmp-all-tab-content .section-head .description { font-size: 15px; }
    .about-us-card,
    .education-experience-card,
    .progress-wrapper,
    .contact-form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
