:root {
    scroll-behavior: smooth;
    color-scheme: light dark;
    --bg-color-light: #ffffff;
    --bg-color-dark: #09090b;
    --bg-color: var(--bg-color-light);

    --text-primary-light: #09090b;
    --text-primary-dark: #fafafa;
    --text-primary: var(--text-primary-light);

    --text-secondary-light: #71717a;
    --text-secondary-dark: #a1a1aa;
    --text-secondary: var(--text-secondary-light);

    --link-color-light: #18181b;
    --link-color-dark: #f4f4f5;
    --link-color: var(--link-color-light);

    --link-hover-light: #000000;
    --link-hover-dark: #ffffff;
    --link-hover: var(--link-hover-light);

    --border-color-light: #e4e4e7;
    --border-color-dark: #27272a;
    --border-color: var(--border-color-light);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: var(--bg-color-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --link-color: var(--link-color-dark);
        --link-hover: var(--link-hover-dark);
        --border-color: var(--border-color-dark);
    }
}

/* Injected dark theme */

[data-theme="dark"] {
        --bg-color: var(--bg-color-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --link-color: var(--link-color-dark);
        --link-hover: var(--link-hover-dark);
        --border-color: var(--border-color-dark);
}

[data-theme="light"] {
        --bg-color: var(--bg-color-light);
        --text-primary: var(--text-primary-light);
        --text-secondary: var(--text-secondary-light);
        --link-color: var(--link-color-light);
        --link-hover: var(--link-hover-light);
        --border-color: var(--border-color-light);
}

html, body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optional noise overlay for texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: light) {
    .noise {
        opacity: 0.05;
    }
}

/* Injected light theme */

[data-theme="light"] .noise {
        opacity: 0.05;
    }


.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 12vh 20px 40px;
    position: relative;
    z-index: 1;
}

.hero {
    margin-bottom: 80px;
}

h1 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.current-role {
    margin-bottom: 2.5rem;
}

.current-role p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--link-hover);
    transform: translateY(-2px);
}

.section {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px dashed var(--border-color);
}

p, li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Card styling */
.card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.015);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: dark) {
    .card:hover {
        border-color: #444;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        background-color: rgba(255, 255, 255, 0.03);
        transform: translateY(-3px);
    }
}

/* Injected dark theme */

[data-theme="dark"] .card:hover {
        border-color: #444;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        background-color: rgba(255, 255, 255, 0.03);
        transform: translateY(-3px);
    }


@media (prefers-color-scheme: light) {
    .card {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }
    .card:hover {
        border-color: #bbb;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-3px);
    }
}

/* Injected light theme */

[data-theme="light"] .card {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }
[data-theme="light"] .card:hover {
        border-color: #bbb;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        transform: translateY(-3px);
    }


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    margin-bottom: 0;
}

.date-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background-color: rgba(128, 128, 128, 0.12);
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Bullet list */
.bullet-list {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.bullet-list li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
    .tags span {
        background-color: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* Injected light theme */

[data-theme="light"] .tags span {
        background-color: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }


/* Edu item */
.edu-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}
.edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.edu-header h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-right: 1rem;
}

.edu-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* Status Pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background-color: rgba(0, 255, 0, 0.05);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    margin-bottom: 1.5rem;
}

@media (prefers-color-scheme: light) {
    .status-pill {
        background-color: rgba(34, 197, 94, 0.1);
        color: #16a34a;
        border: 1px solid rgba(34, 197, 94, 0.3);
    }
}

/* Injected light theme */

[data-theme="light"] .status-pill {
        background-color: rgba(34, 197, 94, 0.1);
        color: #16a34a;
        border: 1px solid rgba(34, 197, 94, 0.3);
    }


.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@media (prefers-color-scheme: light) {
    .status-dot {
        background-color: #16a34a;
        box-shadow: 0 0 6px #16a34a;
    }
}

/* Injected light theme */

[data-theme="light"] .status-dot {
        background-color: #16a34a;
        box-shadow: 0 0 6px #16a34a;
    }


@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(120deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@media (prefers-color-scheme: light) {
    .gradient-text {
        background: linear-gradient(120deg, #111, #666);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* Injected light theme */

[data-theme="light"] .gradient-text {
        background: linear-gradient(120deg, #111, #666);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }


/* Icon Link */
.icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.icon-link:hover {
    color: var(--link-hover);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.skill-category h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.skill-category p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Standard Lists */
ul.list-container {
    list-style-type: none;
}

ul.list-container li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

ul.list-container li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.site-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-quote {
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.quote-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quote-author {
    text-align: right;
    margin-bottom: 0;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    margin-bottom: 3rem;
}

.footer-nav h4, .footer-connect h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 0.8rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(4, 36px);
    justify-content: start;
    gap: 0.5rem;
}

.connect-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.connect-grid a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}
.footer-bottom p {
    margin: 0;
}

@media (max-width: 600px) {
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .nav-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Command Palette Dialog */
.cmdk-dialog {
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: inherit;
    margin: 10vh auto auto;
}

.cmdk-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cmdk-container {
    display: flex;
    flex-direction: column;
}

.cmdk-search {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.8rem;
    color: var(--text-secondary);
}

.cmdk-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.cmdk-results {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cmdk-group-title {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.cmdk-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.1s, color 0.1s;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.cmdk-item:hover, .cmdk-item:focus {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

@media (prefers-color-scheme: light) {
    .cmdk-item:hover, .cmdk-item:focus {
        background: rgba(0, 0, 0, 0.06);
    }
}

[data-theme="light"] .cmdk-item:hover, [data-theme="light"] .cmdk-item:focus {
        background: rgba(0, 0, 0, 0.06);
}

.cmdk-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.cmdk-item-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.cmdk-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.cmdk-item-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.cmdk-item-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cmdk-item-shortcut {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    margin-left: auto;
    border: 1px solid var(--border-color);
}

/* Page List Item */
.page-list-item {
    display: block;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    background-color: transparent;
}
.page-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: light) {
    .page-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }
}

/* Injected light theme */

[data-theme="light"] .page-list-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

.page-list-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.page-list-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Subpage Styles */
.page-header {
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.gear-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: none;
    margin-bottom: 0.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border-radius: 8px;
}
.gear-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
@media (prefers-color-scheme: light) {
    .gear-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }
}

/* Injected light theme */

[data-theme="light"] .gear-item:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }

.gear-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 6px;
    margin-right: 1rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.gear-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gear-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
    }
}
.media-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
}
.media-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.media-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.section-title-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Simple Experience Item */
.exp-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 0;
}
@media (max-width: 600px) {
    .exp-item-simple {
        flex-direction: column;
        gap: 0.5rem;
    }
    .exp-right {
        text-align: left !important;
    }
}
.exp-item-simple h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}
.text-secondary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.text-right {
    text-align: right;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-outline:hover {
    background: rgba(128, 128, 128, 0.1);
}
.status-pill-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    margin-bottom: 0;
}

/* Detailed Experience Page */
.exp-detail-card {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px dashed var(--border-color);
}
.exp-detail-card:last-child {
    border-bottom: none;
}
.exp-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
    .exp-detail-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    .exp-detail-header .text-right {
        text-align: left;
    }
}
.exp-detail-header h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.tech-tools-section h4 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.tech-icon-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
}
.what-ive-done-section h4 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.what-ive-done-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.what-ive-done-section ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.what-ive-done-section ul li::before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

/* Top Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav-left {
    display: flex;
    gap: 1.5rem;
}
.nav-left a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-left a:hover {
    color: var(--text-primary);
}
.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-cmdk-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.nav-cmdk-btn:hover {
    background: rgba(128,128,128,0.2);
}
.nav-cmdk-btn .kbd {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
}
.nav-theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.nav-theme-btn:hover {
    background: rgba(128,128,128,0.1);
}


/* Email Copy Button */
.email-copy-btn {
    background-color: rgba(128, 128, 128, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.email-copy-btn:hover {
    background-color: rgba(128, 128, 128, 0.15);
    color: var(--text-primary);
    transform: translateY(-1px);
}
[data-theme="light"] .email-copy-btn {
    background-color: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .email-copy-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Smooth Theme Transitions */
html, body, svg, path, .card, .cmdk-dialog, .cmdk-item, .page-list-item, .gear-item, .btn-outline, .status-pill, .status-pill-sm, .navbar, .email-copy-btn { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease; }

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}
@media (max-width: 600px) {
    .top-navbar {
        padding: 1rem 15px;
    }
    .nav-left {
        gap: 0.8rem;
    }
    .nav-left a {
        font-size: 0.85rem;
    }
    .nav-right {
        gap: 0.5rem;
    }
    .nav-cmdk-btn .kbd {
        display: none;
    }
}

/* Cursor Glow Effect */
.card, .blog-card, .pdf-frame-wrapper, .gear-item, .page-list-item {
    position: relative;
}

.card::before, .blog-card::before, .pdf-frame-wrapper::before, .gear-item::before, .page-list-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .card::before, [data-theme="light"] .blog-card::before, [data-theme="light"] .pdf-frame-wrapper::before, [data-theme="light"] .gear-item::before, [data-theme="light"] .page-list-item::before {
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 0, 0, 0.04),
        transparent 40%
    );
}

.card:hover::before, .blog-card:hover::before, .pdf-frame-wrapper:hover::before, .gear-item:hover::before, .page-list-item:hover::before {
    opacity: 1;
}

/* Blog Reading Layout */
.blog-header {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.blog-hero-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}
.blog-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.blog-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.blog-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.share-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .share-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 5rem;
}
.blog-content p {
    margin-bottom: 1.5rem;
}

/* Floating TOC Pill */
.floating-toc {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
[data-theme="light"] .floating-toc {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: black;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.floating-toc .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}
[data-theme="light"] .floating-toc .dot {
    background: black;
}
.floating-toc .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
}
/* Fix global footer sticky behavior */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.section {
    flex: 1;
    padding-bottom: 1rem;
}

[data-theme="light"] .floating-toc .spinner {
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: black;
}

/* Custom 16:9 Banner Layout */
.custom-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #ffffff;
    background-image: url('vibe_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="light"] .custom-banner {
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.banner-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #111;
    line-height: 1.1;
    z-index: 2;
}
.banner-title strong {
    font-weight: 700;
}
.banner-illustration {
    display: none; /* Hide the clunky inline image */
}
.banner-watermark {
    position: absolute;
    bottom: 5%;
    right: 5%;
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    color: rgba(0,0,0,0.6);
    z-index: 2;
}

/* Thought Section */
.thought-section {
    text-align: center;
    margin: 1rem auto 3rem auto;
    max-width: 600px;
    padding: 0 1rem;
}
.thought-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}
.thought-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Centered Sleek Footer */
.global-footer {
    padding: 3rem 1rem 2rem 1rem;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.footer-nav-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.footer-nav-centered a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-nav-centered a:hover {
    color: var(--text-primary);
}

.footer-social-centered {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer-social-centered a {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
}
.footer-social-centered a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    border-color: var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .footer-social-centered a:hover {
    background: rgba(0, 0, 0, 0.03);
}

.footer-bottom-centered {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-bottom-centered p {
    margin: 0;
    font-size: 0.85rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Custom Text Selection */
::selection {
    background-color: rgba(0, 255, 255, 0.2); /* Cyan tint */
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.1);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover:not(:disabled) {
    opacity: 0.9;
}

.btn-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
}

.form-status.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
