/* Custom UI refinements for this portfolio.
   Keep template CSS in css/style.css and override here. */

:root {
    --brand: #FF9000;
    --ink: #111827;
    --muted: #6b7280;
    --border: rgba(17, 24, 39, 0.12);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero background: subtle keyword word-cloud (low contrast, keeps text readable) */
#fh5co-header .overlay,
.fh5co-cover .overlay {
    background: rgba(255, 144, 0, 0.88);
    overflow: hidden;
}

#fh5co-header .overlay:before,
.fh5co-cover .overlay:before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/hero-wordcloud.svg") center/cover no-repeat;
    opacity: 0.55;
    pointer-events: none;
}

/* Keep hero content above the overlay background */
#fh5co-header .container,
.fh5co-cover .container {
    position: relative;
    z-index: 2;
}

/* Accessible focus ring (keyboard only) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(255, 144, 0, 0.35);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Skip-to-content helpers (works even without Bootstrap helpers) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 12px !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    display: inline-block !important;
    background: #111;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
}

/* Headings: subtle branded underline (not a big “card” effect) */
.fh5co-heading h2::after {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    margin: 14px auto 0;
    background: var(--brand);
    border-radius: 999px;
    opacity: 0.9;
}

/* Hero polish */
.tagline {
    font-size: 18px;
    opacity: 0.95;
    letter-spacing: 0.6px;
    margin-top: -12px;
    margin-bottom: 16px;
}

#fh5co-header .display-tc .profile-thumb,
.fh5co-cover .display-tc .profile-thumb {
    border: 5px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
}

/* Hero: keyword tags (recruiter-friendly, more presentable than bullets) */
.hero-tags {
    margin: 10px auto 18px;
    padding: 10px 12px;
    max-width: 760px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    background: rgba(17, 17, 17, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.hero-tags li {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.1;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .hero-tags {
        max-width: 92vw;
        margin-left: auto;
        margin-right: auto;
    }
}

/* About: keep it clean — bordered panel (not heavy card shadow) */
.info {
    width: 100%;
    float: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 14px;
    box-shadow: none;
    overflow-x: auto;
}

.info li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    float: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.info li:last-child {
    border-bottom: 0;
}

.info li .first-block {
    flex: 0 0 120px;
    width: auto;
}

.info li .second-block {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}

#fh5co-about p {
    text-align: justify;
    font-size: 17px;
}

/* Consistent "impact" bullets used across Resume/Leadership */
.impact-list {
    list-style: none;
    padding-left: 0;
    margin-top: 16px;
    margin-bottom: 0;
}

.impact-list li {
    padding: 8px 0;
    padding-left: 22px;
    position: relative;
}

.impact-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* Core focus: make it look like a “highlight” not a card */
.professional-summary {
    margin: 22px 0 10px;
    padding: 10px 14px;
    border-left: 4px solid var(--brand);
    background: rgba(255, 144, 0, 0.06);
    border-radius: 8px;
}

.professional-summary h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.core-focus {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.core-focus li {
    padding: 9px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.core-focus li:first-child {
    border-top: 0;
}

/* Timeline: subtle elevation on hover only */
.timeline>li>.timeline-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 18px 18px;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline>li>.timeline-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}

.company {
    color: var(--muted);
}

/* Skills: remove square “cards” — keep charts clean and aligned */
#fh5co-skills .chart {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding-top: 0;
    margin-bottom: 26px;
}

#fh5co-skills .chart span {
    margin-top: -28px;
}

#fh5co-skills .chart span strong {
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: 0.2px;
}

#fh5co-skills .chart span {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.65);
}

/* Progress bars: a bit thicker for readability */
.progress {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 7px;
    border-radius: 999px;
}

/* Training tiles: keep polish but reduce the “card everywhere” feel */
.work {
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.work .desc {
    background: rgba(255, 255, 255, 0.90);
}

/* Buttons: gentle emphasis */
.btn.btn-default.btn-lg {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}

.btn.btn-default.btn-lg:hover {
    transform: translateY(-1px);
}

/* Mobile tweaks */
@media screen and (max-width: 768px) {

    #fh5co-header,
    .fh5co-cover {
        background-attachment: scroll;
    }

    .tagline {
        font-size: 16px;
        letter-spacing: 0.3px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }

    .timeline>li>.timeline-panel:hover,
    .work:hover,
    .btn.btn-default.btn-lg:hover {
        transform: none !important;
    }
}