/*
|--------------------------------------------------------------------------
| Theme: Honey Dark
|--------------------------------------------------------------------------
|
| Warm "honey on espresso" theme inspired by busy-bee-design.com.
| honey-dark-base.css is black-white.css with its whites/blacks swapped for
| warm cream/espresso; this file layers the typography and components on top.
| Edit the tokens in :root to retune the whole theme.
|
| Fonts (Google Fonts, SIL Open Font License):
| Fraunces (headings), Geist (body/UI), JetBrains Mono (labels)
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&family=Geist:wght@300..600&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('./honey-dark-base.css');

/*--------------------------------------------------------------------------
| Design tokens
*/
:root {
    --honey-bg: #0e0b07;
    --honey-surface: #15110a;
    --honey-surface-raised: #1c160d;
    --honey-text: #f2ead3;
    --honey-text-body: #c9bfa4;
    --honey-text-muted: #a89f86;
    --honey-text-faint: #908874;
    --honey-accent: #f5c24a;
    --honey-accent-ink: #1a1306;
    --honey-border: rgba(242, 234, 211, 0.08);
    --honey-border-strong: rgba(242, 234, 211, 0.18);
    --honey-glow: 0 0 0 1px rgba(245, 194, 74, 0.32), 0 8px 30px rgba(245, 194, 74, 0.08);

    --honey-font-serif: Fraunces, "Iowan Old Style", Georgia, serif;
    --honey-font-sans: Geist, -apple-system, system-ui, sans-serif;
    --honey-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

    --honey-radius-card: 14px;
    --honey-radius-input: 8px;
    --honey-radius-pill: 999px;
    --honey-ease: 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*--------------------------------------------------------------------------
| Base
*/
body {
    font-family: var(--honey-font-sans);
    font-size: 1.125rem;
    color: var(--honey-text-body);
    background-color: var(--honey-bg);
    /* Faint warm glow behind the hero */
    background-image: radial-gradient(ellipse 60% 50% at 70% 0%, rgba(245, 194, 74, 0.07), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::selection {
    color: var(--honey-accent-ink);
    background-color: var(--honey-accent);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--honey-font-serif);
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--honey-text);
}

h4 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Section sub-heading icons (Skills) */
h4 > svg {
    width: 1em;
    height: 1em;
    margin-right: 0.5rem;
    vertical-align: -0.1em;
    color: var(--honey-accent);
}

a {
    color: var(--honey-text);
    transition: color var(--honey-ease);
}

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

hr {
    border-top: 1px solid var(--honey-border);
}

/*--------------------------------------------------------------------------
| Header
*/
.header {
    background-color: rgba(14, 11, 7, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--honey-border);
}

/* Swap the dark logo artwork for the light variants */
#m-logo {
    content: url('/assets/img/m-wht-logo.svg');
}

/* "JASON" in honey, "MONROE" in cream (the brown original is too dim here) */
#name-logo {
    content: url('/assets/img/name-honey-logo.svg');
}

/*--------------------------------------------------------------------------
| Sidebar navigation
*/
.sections-nav-container {
    background-color: var(--honey-bg);
}

.sections-nav:before {
    border-right: 1px solid var(--honey-border-strong);
}

.sections-nav-link {
    font-family: var(--honey-font-sans);
    font-size: 1.125rem;
    font-weight: 500;
    text-transform: none;
    color: var(--honey-text-body);
    transition: color var(--honey-ease);
}

.sections-nav-link:before {
    border-right: 2px solid var(--honey-accent);
}

.sections-nav-link svg,
.sections-nav-link .icon-career {
    color: var(--honey-text-faint);
    transition: color var(--honey-ease);
}

.sections-nav-link:hover:not(.active),
.sections-nav-link:hover:not(.active) svg,
.sections-nav-link:hover:not(.active) .icon-career {
    color: var(--honey-text);
}

.sections-nav-link.active,
.sections-nav-link.active svg,
.sections-nav-link.active .icon-career {
    color: var(--honey-accent);
}

.sections-nav-info {
    font-family: var(--honey-font-mono);
    font-size: 0.75rem;
    line-height: 2;
    color: var(--honey-text-muted);
}

.sections-nav-info svg {
    margin-right: 0.35rem;
    color: var(--honey-accent);
}

.sections-nav-toggler-bar {
    background-color: var(--honey-text);
}

/*--------------------------------------------------------------------------
| Sections
*/
.content {
    counter-reset: honey-section;
}

.section {
    counter-increment: honey-section;
}

/* Thin rule between sections */
.section + .section {
    border-top: 1px solid var(--honey-border);
}

/* Mono eyebrow above each title, e.g. "§ 02 ——" (:after is taken by the reveal wipe) */
.section-title:before {
    content: "§ " counter(honey-section, decimal-leading-zero);
    display: block;
    width: fit-content;
    margin-bottom: 1.25rem;
    padding-right: 3.75rem;
    font-family: var(--honey-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    line-height: 1.5;
    color: var(--honey-accent);
    background: linear-gradient(var(--honey-accent), var(--honey-accent)) right center / 3rem 1px no-repeat;
}

/* Reveal wipe in honey */
.animation-translate-overline:after {
    background-color: var(--honey-accent);
}

.section-title {
    font-family: var(--honey-font-serif);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--honey-text);
}

@media (min-width: 576px) {
    .section-title {
        font-size: 4.25rem;
    }
}

.section-title > svg,
.section-title > .icon-career {
    width: 0.6em !important;
    height: 0.6em !important;
    vertical-align: 0.05em;
    color: var(--honey-accent);
}

body h2.section-title svg {
    margin-right: 1rem;
}

.section-subtitle {
    font-family: var(--honey-font-serif);
    font-style: italic;
    text-transform: none;
    color: var(--honey-text);
}

.section-next-counter {
    font-family: var(--honey-font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--honey-text-faint);
}

.section-next-label {
    font-family: var(--honey-font-mono);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--honey-accent);
}

.section-next:hover {
    color: var(--honey-accent);
}

/* Same arrow as the base theme, stroked in honey */
.section-next-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40.743' height='17.966'%3E%3Cg transform='translate(-272.157 -1036.73)' fill='none' stroke='%23f5c24a' stroke-width='2'%3E%3Cpath d='M294.686 1044.529l8.754 8.754 8.754-8.754'/%3E%3Cpath d='M313.385 1053.424V1038.6H282.1' transform='translate(-9.946 -.872)'/%3E%3C/g%3E%3C/svg%3E");
}

/*--------------------------------------------------------------------------
| Home / hero
*/
.jumbotron-img {
    border: 1px solid var(--honey-border-strong);
    box-shadow: var(--honey-glow);
}

body .jumbotron .lead {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-family: var(--honey-font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--honey-text-body);
}

.jumbotron .lead svg {
    color: var(--honey-accent);
}

/* Role names match the timeline subtitle (h4.timeline-title) */
body .jumbotron .lead span {
    font-family: var(--honey-font-serif);
    font-style: italic;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--honey-text-muted);
    transition: color var(--honey-ease);
}

/* Hover matches the sidebar links */
body .jumbotron .lead:hover span {
    color: var(--honey-text);
}

/* "STUDENT" / "FREELANCE" become outlined tags */
.jumbotron .lead small {
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--honey-text-muted);
    border: 1px solid var(--honey-border-strong);
    border-radius: var(--honey-radius-pill);
}

/*--------------------------------------------------------------------------
| About (article)
*/
.article {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--honey-text-body);
}

.article a {
    color: var(--honey-text);
    text-decoration: underline;
    text-decoration-color: rgba(245, 194, 74, 0.5);
    text-underline-offset: 0.2em;
}

.article a:hover {
    color: var(--honey-accent);
    text-decoration-color: var(--honey-accent);
}

.article em {
    font-family: var(--honey-font-serif);
    color: var(--honey-accent);
}

/*--------------------------------------------------------------------------
| Cards (Education, Demo Reel, Portfolio)
*/
.card {
    height: calc(100% - 2rem);
    margin-bottom: 2rem;
    padding: 1.75rem;
    color: var(--honey-text-body);
    background-color: var(--honey-surface);
    border: 1px solid var(--honey-border);
    border-radius: var(--honey-radius-card);
    transition: transform var(--honey-ease), border-color var(--honey-ease), box-shadow var(--honey-ease);
}

.card:hover {
    color: var(--honey-text-body);
    transform: translateY(-4px);
    border-color: rgba(245, 194, 74, 0.32);
    box-shadow: var(--honey-glow);
}

.card-body {
    padding: 0;
}

.card-img-top {
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: var(--honey-font-serif);
    font-style: italic;
    font-size: 1.75rem;
    color: var(--honey-text);
}

body .card-title h4 {
    font-size: 1.5rem !important;
    margin: 0;
}

.card-text {
    color: var(--honey-text-body);
}

.card-counter {
    margin-bottom: 1.5rem;
    font-family: var(--honey-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--honey-text-faint);
}

.card-counter:before {
    content: none;
}

/* Education numbers read "01", "02", ... */
#education .card-counter:before {
    content: "0";
    font-size: inherit;
}

/* Keep school logos inside the card */
.card-body img {
    max-width: 100%;
    object-fit: contain;
}

.card-tags {
    font-family: var(--honey-font-mono);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--honey-text-muted);
}

.card video {
    width: 100%;
    border-radius: 8px;
}

/*--------------------------------------------------------------------------
| Skills
*/
.progress-label {
    font-family: var(--honey-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--honey-text-body);
}

.progress {
    height: 3px;
    background-color: var(--honey-border-strong);
    border-radius: var(--honey-radius-pill);
}

.progress-bar {
    background-color: var(--honey-accent);
    border-radius: var(--honey-radius-pill);
}

/*--------------------------------------------------------------------------
| Facts (stat row)
*/
.counter {
    display: flex;
    flex-direction: column-reverse;
    padding-top: 1.5rem;
    border-top: 1px solid var(--honey-border);
    font-family: var(--honey-font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--honey-text);
}

.counter-label {
    margin-top: 0.75rem;
    font-family: var(--honey-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--honey-text-muted);
}

/*--------------------------------------------------------------------------
| Experience (timeline)
*/
.timeline:before {
    border-right: 1px solid var(--honey-border-strong);
}

.timeline:after {
    background-color: var(--honey-accent);
    border-radius: 50%;
}

.timeline-item:before {
    border-right: 2px solid var(--honey-accent);
}

.timeline-date {
    font-family: var(--honey-font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--honey-accent);
}

.timeline-title {
    font-family: var(--honey-font-serif);
    font-weight: 400;
    color: var(--honey-text);
}

body h4.timeline-title {
    font-style: italic;
    font-size: 1.35rem;
    color: var(--honey-text-muted);
}

.timeline-text,
.timeline-item li {
    color: var(--honey-text-body);
}

.timeline-item li::marker {
    color: var(--honey-accent);
}

/*--------------------------------------------------------------------------
| References (logo tiles)
| Stays white so dark logos remain legible and white-backed JPGs blend in
*/
body .reference-logo {
    opacity: 0.9;
    background-color: #fff;
    border: 1px solid var(--honey-border);
    border-radius: var(--honey-radius-card);
    transition: opacity var(--honey-ease), transform var(--honey-ease), box-shadow var(--honey-ease);
}

body .reference-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: var(--honey-glow);
}

/*--------------------------------------------------------------------------
| Buttons
*/
.btn {
    padding: 0.8rem 1.6rem;
    font-family: var(--honey-font-sans);
    font-weight: 600;
    text-transform: none;
    border-width: 1px;
    border-radius: var(--honey-radius-pill);
    transition: color var(--honey-ease), background-color var(--honey-ease), border-color var(--honey-ease), box-shadow var(--honey-ease);
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
    color: var(--honey-accent-ink);
    background-color: var(--honey-accent);
    border-color: var(--honey-accent);
}

.btn-primary:disabled {
    opacity: 0.6;
}

.btn-primary.focus,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active {
    color: var(--honey-accent-ink);
    background-color: #f8cf6a;
    border-color: #f8cf6a;
    box-shadow: var(--honey-glow);
}

.btn-outline-primary {
    color: var(--honey-text);
    background-color: transparent;
    border-color: var(--honey-border-strong);
}

.btn-outline-primary.focus,
.btn-outline-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled):active {
    color: var(--honey-accent);
    background-color: transparent;
    border-color: var(--honey-accent);
}

/*--------------------------------------------------------------------------
| Forms
*/
label {
    font-family: var(--honey-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--honey-text-muted);
}

body .required {
    color: var(--honey-accent);
}

.form-control {
    height: auto;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    color: var(--honey-text);
    background-color: var(--honey-surface);
    border: 1px solid var(--honey-border-strong);
    border-radius: var(--honey-radius-input);
    transition: border-color var(--honey-ease), box-shadow var(--honey-ease);
}

.form-control:focus {
    color: var(--honey-text);
    background-color: var(--honey-surface);
    border-color: var(--honey-accent);
    box-shadow: 0 0 0 3px rgba(245, 194, 74, 0.15);
}

.form-control::placeholder {
    color: var(--honey-text-faint);
}

.form-text.text-muted {
    font-family: var(--honey-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--honey-text-faint) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:active,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover {
    -webkit-text-fill-color: var(--honey-text) !important;
    -webkit-box-shadow: 0 0 0 30px var(--honey-surface) inset !important;
}

.alert {
    border-width: 1px;
    border-radius: var(--honey-radius-input);
}

/*--------------------------------------------------------------------------
| Portfolio carousel + modal
*/
.carousel-indicators:before {
    border-top: 1px solid var(--honey-border-strong);
}

.carousel-indicators li {
    background-color: var(--honey-text);
}

.carousel-indicators .active {
    opacity: 1;
    background-color: var(--honey-accent);
}

/* Tint the white arrow icons toward honey */
.carousel-control-next-icon,
.carousel-control-prev-icon {
    filter: brightness(0) saturate(100%) invert(80%) sepia(52%) saturate(640%) hue-rotate(345deg) brightness(101%);
}

.modal-content {
    background-color: var(--honey-bg);
}

/*--------------------------------------------------------------------------
| Footer
*/
body footer {
    padding: 2rem 0;
    font-family: var(--honey-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--honey-text-faint);
    border-top: 1px solid var(--honey-border);
}
