:root {
    /* Brand Gradient Palette */
    --gradient-start: #00BCD4;
    --gradient-mid: #2196F3;
    --gradient-end: #7C3AED;

    --core-gradient-start: #F59E0B;
    --core-gradient-mid: #EC4899;
    --core-gradient-end: #8B5CF6;

    --brand-primary: #2196F3;

    --ar-gray: #F3F4F6;

    --surface-color: #FFFFFF;
    --border-color: #E2E8F0;

    --text-primary: #0F172A;
    --text-secondary: #334155;

    --font-main: 'Inter', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);

    --sidebar-width: 340px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--ar-gray);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14.5px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

a:hover {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Container */
.page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* Fixed Sidebar Profile Panel */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #FFFFFF;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.02);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    margin-bottom: 0.85rem;
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.15);
    flex-shrink: 0;
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.profile-name {
    font-size: 1.6rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.profile-domain {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.mobile-nav-toggle .chevron {
    transition: transform 0.25s var(--transition);
}

.mobile-nav-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    margin-top: 0.25rem;
}

.sidebar-nav a {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #F8FAFC;
    transition: all 0.25s var(--transition);
    display: block;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    border-color: transparent;
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(33, 150, 243, 0.2);
}

.sidebar-footer {
    font-size: 0.68rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer .profile-address {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.35;
    font-weight: 500;
}

.sidebar-footer .profile-email {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Main Content Viewport */
.content-container {
    margin-left: var(--sidebar-width);
    padding: 2.25rem 2.75rem;
    max-width: calc(1400px - var(--sidebar-width));
    background-color: var(--ar-gray);
    min-height: 100vh;
}

section {
    padding: 2rem 2.25rem;
    margin-bottom: 1.15rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    scroll-margin-top: 1.5rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.015);
}

section:last-of-type {
    margin-bottom: 0;
}

.section-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

h2.section-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
    line-height: 1.2;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end)) 1;
    padding-left: 0.75rem;
    letter-spacing: -0.02em;
}

h3.subheading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3.subheading.no-top-margin {
    margin-top: 0;
}

p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    margin-bottom: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify;
    text-justify: inter-word;
}

p:last-of-type {
    margin-bottom: 0;
}

.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 1.15rem 0;
}

.simple-list li {
    padding: 0.5rem 0.75rem;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    transition: border-color 0.2s;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem 0.75rem;
    width: 100%;
}

.simple-list li:hover {
    border-color: var(--brand-primary);
}

.simple-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.simple-list li span.right-role {
    font-weight: 600;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tiny Narrow Cards for Seasonal Roles */
.tiny-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.tiny-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tiny-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.2s var(--transition);
}

.tiny-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.4);
    background: #FFFFFF;
}

.tiny-card:hover::before {
    width: 3px;
}

.tiny-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tiny-card-company {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Animated Ecosystem Loop Graphic */
.ecosystem-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 400px;
    margin: 1.25rem auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecosystem-hub {
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--core-gradient-start), var(--core-gradient-mid), var(--core-gradient-end));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
    z-index: 5;
    animation: pulseCore 4s ease-in-out infinite;
}

@keyframes pulseCore {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25); }
    50% { transform: scale(1.05); box-shadow: 0 14px 35px rgba(236, 72, 153, 0.35); }
}

.ecosystem-hub span {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    opacity: 0.9;
}

.ecosystem-hub strong {
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.08rem;
}

.ecosystem-orbit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ecosystem-orbit-ring {
    fill: none;
    stroke: url(#orbitGradient);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    animation: rotateOrbit 45s linear infinite;
    transform-origin: center;
}

@keyframes rotateOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ecosystem-node {
    position: absolute;
    width: 110px;
    height: 110px;
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    animation: floatNode 6s ease-in-out infinite;
}

.ecosystem-node:nth-child(even) {
    animation-delay: -3s;
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.ecosystem-node.node-team { top: 10px; left: calc(50% - 55px); }
.ecosystem-node.node-product { top: calc(50% - 55px); left: 15px; z-index: 6; }
.ecosystem-node.node-fit { top: calc(50% - 55px); left: calc(50% - 55px); z-index: 6; background: #FFFFFF; }
.ecosystem-node.node-ux { top: calc(50% - 55px); right: 15px; z-index: 6; }
.ecosystem-node.node-profit { bottom: 10px; left: calc(50% - 55px); }

.ecosystem-node .node-index {
    font-size: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
}

.ecosystem-node h3 {
    font-size: 0.65rem;
    line-height: 1.15;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.ecosystem-node:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.25);
    z-index: 10;
    animation-play-state: paused;
}

.ecosystem-node:hover .node-index {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    opacity: 0.85;
}

.ecosystem-node:hover h3 {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 0.95rem;
    margin-top: 1.15rem;
}

.grid.single-column {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    padding: 1.15rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s var(--transition);
    position: relative;
    overflow: hidden;
}

.card.compact {
    padding: 0.75rem 1.25rem;
}

.card.compact h3 {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    transition: height 0.2s var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(33, 150, 243, 0.07);
    border-color: rgba(33, 150, 243, 0.4);
    background: #FFFFFF;
}

.card:hover::before {
    height: 3px;
}

.card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
    background-color: #FFFFFF;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-color);
}

.card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.card p {
    font-size: 0.86rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    text-align: left;
}

.contact-section {
    text-align: center;
    padding: 1.5rem 1.5rem;
}

.contact-section .profile-address {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.contact-section .profile-email {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============ Responsive breakpoints ============ */

/* Tablets and small laptops: sidebar collapses to a top bar */
@media (max-width: 1024px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
    }
    .content-container {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem 1.5rem;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .sidebar-nav {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.3s var(--transition), opacity 0.2s ease, margin-top 0.3s var(--transition);
    }
    .sidebar-nav.nav-open {
        max-height: 600px;
        opacity: 1;
        margin-top: 0.75rem;
    }
}

/* Phones */
@media (max-width: 680px) {
    body {
        font-size: 14px;
    }
    .content-container {
        padding: 1.25rem 1rem;
    }
    section {
        padding: 1.5rem 1.25rem;
        margin-bottom: 0.9rem;
        border-radius: 8px;
    }
    h2.section-heading {
        font-size: 1.3rem;
    }
    .profile-name {
        font-size: 1.4rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .tiny-cards-container {
        grid-template-columns: 1fr 1fr;
    }
    .ecosystem-container {
        height: 360px;
        max-width: 280px;
    }
    .ecosystem-node {
        width: 85px;
        height: 85px;
        padding: 0.25rem;
    }
    .ecosystem-node.node-team { top: 10px; left: calc(50% - 42.5px); }
    .ecosystem-node.node-product { top: calc(50% - 42.5px); left: 8px; }
    .ecosystem-node.node-fit { top: calc(50% - 42.5px); left: calc(50% - 42.5px); }
    .ecosystem-node.node-ux { top: calc(50% - 42.5px); right: 8px; }
    .ecosystem-node.node-profit { bottom: 10px; left: calc(50% - 42.5px); }
    .ecosystem-hub {
        width: 75px;
        height: 75px;
        top: calc(50% - 37.5px);
        left: calc(50% - 37.5px);
    }
    .ecosystem-hub strong { font-size: 0.65rem; }
    .ecosystem-node h3 { font-size: 0.55rem; }
}

/* Small phones */
@media (max-width: 420px) {
    .sidebar {
        padding: 1.25rem 1rem;
    }
    .content-container {
        padding: 1rem 0.75rem;
    }
    section {
        padding: 1.15rem 1rem;
    }
    .tiny-cards-container {
        grid-template-columns: 1fr;
    }
    .simple-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}
