/* /Layout/MainLayout.razor.rz.scp.css */
.main-content {
    max-width: 1500px;
    margin: auto;
    width: 95vw;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.header {
    max-width: 1200px;
    width: 90vw;
    display: grid;
    align-items: center;
    gap: 18px;
    padding: 18px 0;
    grid-template-columns: auto auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: auto;
}

.header__icon {
    display: flex;
    align-items: center;
}

.title {
    font-size: 2em;
    font-family: var(--header-font);
    font-weight: bold;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    font-family: var(--main-font);
    text-transform: uppercase;
}

/* Navigation styles */
.header__brand {
    display: block;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit
}

.header__nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.is-active {
    color: var(--accent);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-item--cta .nav-link {
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 12px;
    border-radius: 4px;
}

.opportunity-banner {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 18px;
    border: 1px solid rgba(245, 166, 35, 0.28);
    border-radius: 6px;
    background: rgba(245, 166, 35, 0.08);
    color: var(--text);
    text-align: center;
}

.opportunity-banner__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.opportunity-banner__status {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 8px 1px 0;
    border-radius: 50%;
    background: #66d17a;
    box-shadow: 0 0 0 3px rgba(102, 209, 122, 0.14);
}

.opportunity-banner__link {
    margin-left: 6px;
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.opportunity-banner__link:hover {
    color: var(--accent-light);
}

/* Mobile: stack brand then a horizontally-scrollable nav bar under it */
@media (max-width: 800px) {
    .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        width: 100vw;
    }

    .header__brand {
        padding: 4vw;
        margin: auto;
    }

    .header__nav {
        margin-left: 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255,255,255,0.03);
    }

    .nav-list {
        gap: 18px;
        padding: 12px 4vw;
        width: max-content; /* allow horizontal scroll */
        margin: auto;
    }

    .nav-link.is-active::after {
        bottom: -10px;
    }

    .opportunity-banner {
        width: 92vw;
        margin-top: 12px;
        padding: 10px 14px;
    }

    .opportunity-banner__status {
        margin-left: 2px;
    }

    .opportunity-banner__link {
        display: inline-block;
        margin-left: 0;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* Uses centralized color variables from the global :root in app.css */
/* Local page-level overrides can be added here if needed in future */

.main-content {
    color: var(--text);
    padding: 48px 32px;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: auto;
    background-color: transparent; /* allow global svg to show through */
}

.hero {
    padding: 1rem 0;
    background: url(/images/hero-banner.png);
    background-size: cover;
}

.hero__name {
    font-size: 7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0 0 6px 0;
}

.hero__role {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 16px 0;
}

.hero__lead {
    color: var(--muted);
    font-size: 1.8rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.hero__separator {
    border-color: var(--accent);
    max-width: 50px;
    text-align: left;
    margin-bottom: 18px;
    margin-left: 0;
}

.hero__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.btn--primary {
    background: var(--accent);
    color: var(--on-accent) !important;
    transition: background-color ease-in-out 0.3s;
}

.btn--primary:hover
{
    background: var(--accent-light);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(var(--white-rgb), 0.08);
    color: var(--text);
}

.achievements__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-content: start;
    list-style: none;
    padding: 0;
}

.capabilities__list {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
    column-wrap: wrap;
    padding: 0;
}

.capability {
    width: 250px;
    text-align: center;
    margin: auto;
}

.capability__title {
    text-align: center;
    font-size: 1.2rem;
    height: 50px;
    text-transform: uppercase;
    font-weight: bold;
}

.achievement {
    width: 250px;
}

.achievements__title {
    color: var(--accent);
}

.achievement__statistic {
    color: var(--accent);
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: bold
}

.about {
    margin: 36px 0;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    column-wrap: wrap;
}

.about h2 {
    letter-spacing: 2px;
    margin: 0 1rem 0 0;
}

.about__rule {
    transform: rotateX(90deg);
    margin: 0 1rem;
}

.experience {
    margin-top: 36px;
}

.experience h2 {
    letter-spacing: 2px;
    margin-bottom: 6px
}

.experience__lead {
    color: var(--muted);
    margin-bottom: 18px
}

.experience {
    margin-top: 36px;
    position: relative;
    /* leave space for the section title so the vertical line doesn't overlap it */
    padding-top: 8px;
}

/* timeline list and layout */
.experience__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-left: 0;
}

/* explicit vertical line element */
.experience__vertical {
    position: absolute;
    left: 225px; /* aligns with the markers */
    top: 75px;
    bottom: 12px;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.95;
    z-index: 1;
}

.experience__item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
    position: relative;
}

.experience__title {
    position: relative;
    z-index: 5; /* ensure the title sits above the vertical line */
}

.experience__left {
    position: relative;
    padding-right: 8px;
}

.experience__date {
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.2rem 0;
}

.experience__marker {
    position: absolute;
    left: 100%;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.06);
    border: 2px solid rgba(var(--black-rgb), 0.35);
    z-index: 3; /* sit above the vertical line */
}

/* Place cards in the right column */
.experience__item .exp-card {
    grid-column: 2;
    margin: 0;
    position: relative;
    z-index: 2; /* ensure cards sit above the vertical line */
}


.exp-card {
    position: relative;
    padding: 0 18px;
    margin: 18px 0 18px 0;
    border-radius: 6px;
}

.exp-card__header {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.exp-card__meta {
    display: flex;
    flex-direction: column;
    max-width: 72%;
}

.exp-card__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

.expr-card__type {
    border-style: solid;
    border-width: 1px;
    text-transform: uppercase;
    margin-left: 2rem;
    padding: 0.1rem 0.2rem;
    letter-spacing: 0.1rem;
    word-break: keep-all;
    margin: 0 0 0.3rem 0;
    align-self: flex-start;
}

.expr-card__type--contract {
    border-color: var(--accent);
    color: var(--accent);
}

.expr-card__type--permanent {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.exp-card__company {
    color: var(--muted);
    margin: 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.1
}

.exp-card__date {
    color: var(--muted);
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap
}

@media (max-width: 600px) {
    .exp-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px
    }

    .exp-card__meta {
        max-width: 100%
    }

    .exp-card__date {
        margin-left: 0
    }
}

.exp-card ul {
    margin: 8px 0 0 18px;
    color: var(--muted)
}

.card {
    background: var(--panel);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(var(--black-rgb), 0.4);
    border: 1px solid var(--accent);
}

.card__title {
    color: var(--accent-2);
    font-weight: 700;
    margin: 0 0 12px 0
}

.skills ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.skills li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.03)
}

.skills strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px
}

.skills .muted {
    color: var(--muted);
    font-size: 13px
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.contact-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    color: var(--muted)
}

.contact-list a {
    color: var(--accent-2);
    text-decoration: none
}

/* Timeline: switch date out of the left column on small screens to avoid squishing content */
@media (max-width: 600px) {
    .experience__item {
        grid-template-columns: 1fr; /* stack into a single column */
        gap: 12px;
    }

    .experience__vertical {
        display: none; /* hide the central vertical line on small screens */
    }

    .experience__left {
        padding-right: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .experience__marker {
        position: relative;
        left: 0;
        top: 0;
        box-shadow: none;
        margin-right: 6px;
    }

    .experience__date {
        margin-left: 0;
        color: var(--accent-2);
        font-weight: 700;
        font-size: 0.95rem;
        white-space: normal;
    }

    .experience__item .exp-card {
        grid-column: 1;
        margin-left: 0;
    }
}

.contact__icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border-radius: 6px
}

/* Prevent flex children from forcing overflow and ensure consistent sizing */
.home-container,
.hero,
.content,
.card {
    box-sizing: border-box;
    min-width: 0; /* allows flex items to shrink on mobile */
}

/* Make images and media responsive */
img,
.hero img,
.avatar {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.brand-icon {
    width: 80px;
}

/* Avoid long words or code blocks causing horizontal overflow */
p, li, .copy, code {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Optional: if your page uses a horizontal layout, force column on small screens */
@media (max-width: 600px) {
    .home-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        width: 100%;
    }

    .hero,
    .content,
    .card {
        width: 100%;
        padding: 0;
    }

    .hero__name {
        font-size: clamp(2rem, 11vw, 7rem);
        letter-spacing: 0.5px;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    /* If some parts may still overflow, allow touch-friendly horizontal scroll */
    .overflow-x-auto {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
