/* ========= RESET & BASE ========= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --orange: #e67e22;
    --orange-light: #f39c12;
    --orange-dark: #d35400;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-600: #4b5563;
    --grey-800: #1f2937;
    --grey-900: #111827;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --memberships-accent: #2563eb;
    --contact-accent: #db2777;
    /* Light background tints derived from accents (subtle) */
    --memberships-bg: rgba(37,99,235,0.06);
    --contact-bg: rgba(219,39,119,0.06);
    /* Section-specific backgrounds and accents (default / "male") */
    --programmer-bg: #fff7ed;
    --portfolio-bg: #f8f0ff;
    --educator-bg: #f0fff9;
    --adviser-bg: #fff5f0;
    --business-bg: #fdf0ff;
    --programmer-accent: var(--orange);
    --portfolio-accent: #6b21a8;
    --educator-accent: #059669;
    --adviser-accent: #dc2626;
    --business-accent: #7c3aed;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--grey-800);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========= HEADER / NAVBAR ========= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-200);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--grey-900);
}

.navbar__brand span {
    color: var(--orange);
}

.navbar__links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey-600);
    transition: color var(--transition);
    position: relative;
}

.navbar__links a:hover {
    color: var(--orange);
}

.navbar__links a.btn-nav {
    background: var(--orange);
    color: var(--white);
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.navbar__links a.btn-nav:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: var(--orange);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    z-index: 2000;
}

/* ========= HERO ========= */
.hero {
    padding: 10rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero__greeting {
    font-size: 1.15rem;
    color: var(--orange);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--grey-900);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero__title span {
    color: var(--orange);
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--grey-600);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}

.btn--outline:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========= SECTIONS ========= */
.section {
    padding: 5rem 2rem;
}

.section--alt {
    background: var(--grey-50);
}

.section__header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.section__icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Colour section icons to match their accent variables */
#programmer .section__icon { color: var(--programmer-accent); }
#portfolio .section__icon { color: var(--portfolio-accent); }
#educator .section__icon { color: var(--educator-accent); }
#adviser .section__icon   { color: var(--adviser-accent); }
#business .section__icon  { color: var(--business-accent); }

/* Ensure role labels use section accents where applicable */
#portfolio .card__role  { color: var(--portfolio-accent); }
#educator .card__role   { color: var(--educator-accent); }
#adviser .card__role    { color: var(--adviser-accent); }
#business .card__role   { color: var(--business-accent); }

.section__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 0.5rem;
}

.section__desc {
    color: var(--grey-600);
    font-size: 1.05rem;
}

/* ========= CARD GRID ========= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--grey-900);
    margin-bottom: 0.35rem;
}

.card__role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.card__text {
    font-size: 0.95rem;
    color: var(--grey-600);
}

.card__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.card__link:hover {
    color: var(--orange-dark);
}

/* Contact form styles */
#contact form {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#contact label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--grey-800);
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--grey-900);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.12);
}

#contact textarea { min-height: 140px; resize: vertical; }

#contact button[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

#contact button[type="submit"]:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* Ensure contact form is responsive */
@media (max-width: 640px) {
    #contact form { gap: 0.6rem; max-width: 100%; padding: 0 1rem; }
}

/* Center contact cards container */
#contact .cards { display: flex; justify-content: center; }

/* ========= SKILLS PILLS ========= */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 900px;
    margin: 3rem auto 0;
}

.skill-pill-wrapper {
    width: auto;
    text-align: center;
    position: relative;
    display: inline-block;
}

.skill-details {
    /* Popover-style inline description shown when a skill is clicked */
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: var(--grey-800);
    font-size: 0.9rem;
    max-width: 320px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 60;
    white-space: normal;
}

.skill-pill {
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--grey-800);
    transition: all var(--transition);
}

.skill-pill.active {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: var(--shadow-sm);
}

.skill-pill-wrapper.open .skill-details {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.skill-details::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--white);
}

/* ========= PORTFOLIO PROJECT CARDS ========= */
.card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.card--link:hover,
.card--link:focus {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    outline: none;
}


/* Portfolio compact layout for columns of small project cards */
#portfolio .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

#portfolio .card {
    padding: 1rem;
}

#portfolio .card .card__text {
    font-size: 0.9rem;
    color: var(--grey-600);
}

.project-thumb {
    width: 100%;
    height: 110px;
    background: var(--grey-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-600);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}




/* Skills table layout */
.skills-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 900px;
    margin: 0 auto;
}
.skills-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--grey-200);
    vertical-align: top;
}
.skills-table-name {
    width: 35%;
    font-weight: 700;
    color: var(--grey-900);
}
.skills-table-desc {
    width: 65%;
    color: var(--grey-600);
}

/* Toggle button support removed */

.skill-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
/* ========= FAQ ACCORDION ========= */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.faq-item {
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.faq-item.open {
    border-color: var(--orange);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 1.15rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--grey-800);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}
.faq-question:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: -3px;
}
.faq-item.open .faq-question {
    color: var(--orange-dark);
    background: var(--programmer-bg);
}

/* Left accent that spans the whole FAQ item (question + answer) */
.faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: transparent;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    transition: background 0.25s ease;
    z-index: 0;
}
.faq-item.open::before {
    background: var(--orange);
}
.faq-question,
.faq-answer {
    position: relative;
    z-index: 1;
}
.faq-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--grey-600);
    transition: transform 0.25s ease, color 0.25s ease;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--orange);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: var(--programmer-bg);
}
.faq-answer-inner {
    padding: 0.9rem 1.4rem 1.35rem;
}
.faq-answer-inner .card__text {
    line-height: 1.75;
}
.faq-answer-inner .card__text + .card__text {
    margin-top: 0.75rem;
}

/* Hide the mobile toggle by default on wide screens */
.navbar__toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--grey-600);
    cursor: pointer;
    padding: 0.25rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 760px) {
    .navbar__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .navbar__links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--grey-200);
        z-index: 999;
    }

    .navbar__links a {
        padding: 0.6rem 0.5rem;
        display: block;
        border-radius: 8px;
        color: var(--grey-800);
    }

    .navbar.navbar--open .navbar__links {
        display: flex;
    }
}

/* ========= GENDER / THEME TOGGLE ========= */
.navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.gender-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gender-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--grey-200);
    border-radius: 50%;
    background: transparent;
    color: var(--grey-600);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.gender-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.gender-btn[aria-pressed="true"] {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

.pronoun-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--grey-200);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--grey-600);
    transition: all var(--transition);
    margin-left: 0.1rem;
    line-height: 1;
}

.pronoun-info-link:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* ========= PINK (FEMALE) THEME ========= */
body.theme-female {
    --orange: #d63384;
    --orange-light: #e879a0;
    --orange-dark: #a11c5e;
    /* Section backgrounds — feminine */
    --programmer-bg: #fff0f6;
    --portfolio-bg: #f8f0ff;
    --educator-bg: #f0fff9;
    --adviser-bg: #fff5f0;
    --business-bg: #fdf0ff;
    --programmer-accent: #d63384;
    /* Make Contact section use the primary orange when female theme is active */
    --contact-accent: #e67e22;
    --contact-bg: rgba(230,126,34,0.06);
}

 

/* ========= PRONOUNS PAGE ========= */
.pronoun-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--grey-600);
    line-height: 1.75;
    max-width: 620px;
}
/* ========= SECTION ACCENTS ========= */
.section {
    border-left: 6px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

#programmer {
    background: var(--programmer-bg);
    border-left-color: var(--programmer-accent);
}

#programmer .card__role {
    color: var(--programmer-accent);
}

#portfolio {
    background: var(--portfolio-bg);
    border-left-color: var(--portfolio-accent);
}

#educator {
    background: var(--educator-bg);
    border-left-color: var(--educator-accent);
}

#adviser {
    background: var(--adviser-bg);
    border-left-color: var(--adviser-accent);
}

#business {
    background: var(--business-bg);
    border-left-color: var(--business-accent);
}

#memberships {
    background: var(--memberships-bg);
    border-left-color: var(--memberships-accent);
}

#contact {
    background: var(--contact-bg);
    border-left-color: var(--contact-accent);
}

/* ========= FOOTER ========= */
.footer {
    background: var(--grey-50);
    border-top: 1px solid var(--grey-200);
    box-shadow: 0 -6px 18px rgba(17,24,39,0.03);
    color: var(--grey-600);
}
.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
}
.footer__accent {
    width: 64px;
    height: 4px;
    background: var(--orange);
    margin: 0 auto 0.6rem;
    border-radius: 3px;
}

.footer__inner strong {
    color: var(--orange);
    font-weight: 700;
}

/* ========= BACKGROUND DECORATIONS ========= */
.page-bg-deco {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Female flowers hidden by default; swap on theme toggle */
.bg-deco--female { display: none; }

body.theme-female .bg-deco--male   { display: none; }
body.theme-female .bg-deco--female { display: block; }