/* UNIFIED BRAND PALETTE */
:root {
    color-scheme: dark light;
    --bg: #1a1a1a;
    /* Corporate Deep Anthracite */
    --bg-alt: #111111;
    /* Corporate Even Darker */
    --card-bg: #222222;
    /* Corporate Card Background */
    --text: #ffffff;
    /* Pristine White */
    --muted: #aaaaaa;
    /* Tech Gray */
    --accent: #1fe030;
    /* Electric Circuit Green */
    --accent-hover: #48ff60;
    /* Glow Green */
    --border: #333333;
    /* Sharp structural division */
    --div: #444444;
    --soft: rgba(31, 224, 48, 0.12);
    /* Green glow tint */
}

/* Unified light theme overrides */
[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-alt: #e0e0e0;
    --card-bg: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --accent: #0d6e16;
    /* Enhanced High-Contrast Green (WCAG legibility-compliant) */
    --accent-hover: #16a325;
    --border: #e5e7eb;
    --div: #d1d5db;
    --soft: rgba(13, 110, 22, 0.18);
    /* INCREASED GLOW: Boosted opacity for visible aura in light mode */
}

@media print {
    [data-theme="dark"] {
        all: unset;
    }

    :root {
        --bg: #f5f5f7;
        --bg-alt: #e0e0e0;
        --card-bg: #ffffff;
        --text: #111827;
        --muted: #383c41;
        --accent: #0d6e16;
        --accent-hover: #16a325;
        --border: #e5e7eb;
        --div: #d1d5db;
        --soft: rgba(13, 110, 22, 0.18);
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }
    header,
    .theme-toggle,
    .hamburger,
    .copy-btn,
    .mobile-menu {
        display: none !important;
    }
    /* .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    .pill {
        border: 1px solid #ccc;
        background: #eee;
    } */
    main {
        padding: 1rem !important;
    }

    h2 {
        margin-top: 0rem !important;
        margin-bottom: 0rem !important;
    }

    h2::after {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }

    .card {
        margin-bottom: 1rem !important;
    }

    .profile.collapsed {
        position: static !important;
        transform: none !important;
    }

    .profile.collapsed .profile-title {
        display: block !important;
    }

    .profile.collapsed .clearance-badge {
        font-size: 1rem !important;
    }

    .profile.collapsed .profile-name {
        font-size: 3rem !important;
    }
}

html {
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-alt) 90%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

nav {
    display: flex;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a,
.dropdown-toggle {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

nav a:hover,
.dropdown-toggle:hover {
    color: var(--accent);
}

/* Dropdown Logic */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem;
    color: var(--text);
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition:
        background-color 0.3s,
        color 0.3s;
}

.theme-toggle:hover {
    background: var(--soft);
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger div {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
}

.mobile-menu a {
    color: var(--muted);
    padding: 0.5rem 0;
    text-decoration: none;
    font-weight: 600;
}

.mobile-menu a:hover {
    color: var(--accent);
}

h2 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 1100px) {
    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

/* Container maintaining flow height to prevent layout jumps */
#profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Profile Section */
.profile {
    position: relative;
    text-align: center;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, top, left;
}

.profile-inner {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-name-group {
    text-align: left;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.profile-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Collapsed into header style */
.profile.collapsed {
    position: fixed;
    top: 0.6rem;
    left: 1rem;
    transform: scale(0.35);
    transform-origin: top left;
    z-index: 200;
}

.profile.collapsed .profile-name {
    font-size: 4.5rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .profile.collapsed .profile-name {
        font-size: 3.5rem;
    }
}

.profile.collapsed .profile-title {
    display: none;
    /* Hide subtitle when collapsed in header */
}

/* .clearance-badge::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 2px;
    background-color: var(--bg-alt);
    mask: url("/assets/icons/shield.svg") no-repeat center / contain;
    -webkit-mask: url("/assets/icons/shield.svg") no-repeat center / contain;
    transform: translateY(2px);
} */

.clearance-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    background: var(--accent);
    color: var(--bg);
    border-radius: 4px;
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
}

.profile.collapsed .clearance-badge {
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 0rem;
}

.headshot {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--soft);
}

.headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.hero p {
    max-width: 68ch;
    margin: 1.5rem auto 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.3s,
        transform 0.3s,
        box-shadow 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--soft);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    /* Job title is now corporate green */
    margin-bottom: 0.25rem;
}

/* Style for the split-out employer line */
.card-employer {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    /* White in dark mode, dark grey in light mode */
    margin-bottom: 0.25rem;
}

.card-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* List styling */
article ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

article li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

/* Pills */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pill {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--bg-alt);
    transition:
        border-color 0.3s,
        color 0.3s;
}

.card:hover .pill {
    border-color: var(--border);
    color: var(--text);
}

.pill:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Aliases/Contact Box Style */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s;
}

.contact-item:hover {
    border-color: var(--accent);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-value a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: var(--accent-hover);
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
