/* ============================================================
   TOMASZ MAJ - PERSONAL WEBSITE
   Dark circuit-board aesthetic with light orange accents
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0b0f;
    --bg-card: rgba(20, 20, 28, 0.85);
    --bg-card-hover: rgba(30, 30, 42, 0.95);
    --text: #d4d4dc;
    --text-muted: #7a7a8a;
    --text-bright: #f0f0f5;
    --accent: #e8924a;
    --accent-glow: rgba(232, 146, 74, 0.25);
    --accent-dim: #c07030;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(232, 146, 74, 0.3);
    --radius: 8px;
    --radius-lg: 14px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-width: 140px;
    --content-offset: 160px;
    --section-gap: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--text-bright);
}

strong {
    color: var(--text-bright);
    font-weight: 600;
}

/* ---------- CANVAS BACKGROUND ---------- */
#circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- SIDE NAVIGATION ---------- */
#side-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.nav-track {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
}

.nav-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 1px;
}

.nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 1px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav-item:hover {
    color: var(--text-bright);
}

.nav-item.active {
    color: var(--text-bright);
}

.nav-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-item:hover .nav-label,
.nav-item.active .nav-label {
    opacity: 1;
}

.nav-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.nav-item:hover .nav-circle {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-item.passed .nav-circle {
    border-color: var(--accent);
    background: var(--accent);
}

.nav-item.passed .nav-label {
    opacity: 0.85;
    color: var(--text);
}

.nav-item.active .nav-circle {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- MAIN CONTENT ---------- */
main {
    position: relative;
    z-index: 1;
    margin-left: var(--content-offset);
    max-width: 960px;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 40px;
}

.section-inner {
    width: 100%;
    max-width: 880px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.title-index {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.8;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    min-height: 100vh;
    justify-content: center;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    min-height: 1.2em;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero-first {
    color: var(--text-bright);
    display: block;
}

.hero-last {
    color: var(--accent);
    display: block;
}

.hero-title {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 24px;
}

.hero-title .accent {
    color: var(--accent);
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: all 0.3s;
}

.highlight-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.highlight-icon {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.highlight-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---------- JOURNEY / TIMELINE ---------- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: -40px;
    top: 0;
    transform: translateX(-100%);
    padding-right: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    width: max-content;
}

.timeline-marker {
    position: absolute;
    left: -46px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    transition: background 0.3s;
}

.timeline-item:hover .timeline-marker {
    background: var(--accent);
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tech span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 3px 10px;
    background: rgba(232, 146, 74, 0.08);
    border: 1px solid rgba(232, 146, 74, 0.15);
    border-radius: 20px;
    color: var(--accent);
    white-space: nowrap;
}

/* ---------- EXPERTISE GRID ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s;
}

.expertise-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.expertise-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 14px;
    opacity: 0.85;
}

.expertise-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 14px;
}

.expertise-card ul {
    list-style: none;
}

.expertise-card li {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 3px 0;
    padding-left: 14px;
    position: relative;
}

.expertise-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    transform: translateY(-50%);
}

/* ---------- PARTNERSHIP ---------- */
.partnership-intro {
    margin-bottom: 48px;
}

.partnership-intro h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 16px;
    line-height: 1.3;
}

.partnership-intro p {
    font-size: 0.95rem;
    max-width: 640px;
    line-height: 1.8;
}

.partnership-offerings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.offering {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.35s;
}

.offering:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.offering-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0.7;
}

.offering h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.offering p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.partnership-cta {
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(232, 146, 74, 0.05), transparent);
}

.partnership-cta p {
    font-size: 1.1rem;
    color: var(--text-bright);
    font-weight: 500;
}

/* ---------- TOOLS / PASSWORD GENERATOR ---------- */
.password-generator {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.password-generator h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.tool-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pw-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.pw-length-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-length-control label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pw-length-control label span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px var(--accent-glow);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px var(--accent-glow);
}

.pw-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pw-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.pw-option:hover {
    color: var(--text);
}

.pw-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: transparent;
}

.pw-option input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.pw-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-generate {
    align-self: flex-start;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.02em;
}

.btn-generate:hover {
    background: var(--accent-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-generate:active {
    transform: translateY(0);
}

.pw-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    transition: border-color 0.2s;
}

.pw-row:hover {
    border-color: var(--border-hover);
}

.pw-value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-bright);
    word-break: break-all;
    letter-spacing: 0.03em;
    user-select: all;
}

.pw-copy {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    padding: 5px 14px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.pw-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pw-copy.copied {
    border-color: #4ade80;
    color: #4ade80;
}

.pw-strength {
    display: flex;
    gap: 3px;
    margin-left: 8px;
}

.pw-strength-bar {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.pw-strength-bar.active.weak { background: #ef4444; }
.pw-strength-bar.active.medium { background: #eab308; }
.pw-strength-bar.active.strong { background: #22c55e; }
.pw-strength-bar.active.very-strong { background: #4ade80; }

/* ---------- EXPERIMENTAL / CHAT ---------- */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 520px;
    max-width: 680px;
}

.chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.chat-msg {
    max-width: 85%;
    animation: msgIn 0.3s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg .msg-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.chat-msg.bot .msg-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-content {
    background: var(--accent);
    color: var(--bg);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-msg .msg-content p {
    margin-bottom: 8px;
}

.chat-msg .msg-content p:last-child {
    margin-bottom: 0;
}

/* Generative UI elements in chat */
.chat-card {
    background: rgba(232, 146, 74, 0.06);
    border: 1px solid rgba(232, 146, 74, 0.15);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 10px;
}

.chat-card h4 {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}

.chat-card p, .chat-card a {
    font-size: 0.82rem;
}

.chat-card a {
    display: block;
    padding: 2px 0;
}

.chat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.chat-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 2px 8px;
    background: rgba(232, 146, 74, 0.1);
    border: 1px solid rgba(232, 146, 74, 0.2);
    border-radius: 12px;
    color: var(--accent);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.chat-suggestions {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(232, 146, 74, 0.06);
}

.chat-form {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    background: var(--accent);
    border: none;
    color: var(--bg);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--accent-dim);
}

.chat-send:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- CONNECT SECTION ---------- */
.connect-content {
    max-width: 560px;
}

.connect-intro {
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.connect-links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.connect-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s;
}

.connect-link:hover {
    border-color: var(--accent);
    color: var(--text-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.connect-link svg {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.connect-link:hover svg {
    opacity: 1;
}

.connect-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.inline-link {
    color: var(--accent);
    border-bottom: 1px dashed var(--accent);
}

.inline-link:hover {
    color: var(--text-bright);
    border-color: var(--text-bright);
}

/* ---------- FOOTER ---------- */
#site-footer {
    position: relative;
    z-index: 1;
    margin-left: var(--content-offset);
    padding: 40px 40px 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.footer-hidden {
    opacity: 0.04;
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: opacity 0.5s;
    text-decoration: none;
    user-select: none;
}

.footer-hidden:hover {
    opacity: 0.3;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.section-inner {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-section .section-inner {
    opacity: 1;
    transform: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root {
        --content-offset: 100px;
        --nav-width: 80px;
    }

    .nav-label {
        display: none;
    }

    #side-nav {
        left: 16px;
    }

    .timeline-item::before {
        position: static;
        transform: none;
        padding: 0;
        margin-bottom: 4px;
        display: block;
    }
}

@media (max-width: 768px) {
    :root {
        --content-offset: 0;
    }

    #side-nav {
        display: none;
    }

    main {
        margin-left: 0;
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .partnership-offerings {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -30px;
    }

    .connect-links {
        flex-direction: column;
    }

    .chat-container {
        height: 450px;
    }

    #site-footer {
        margin-left: 0;
        padding: 30px 20px;
    }
}
