/* Tejus Gupta — tejusgupta.dev
   Shared styles. Loaded by every page from /assets/styles.css. */

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

:root {
    --bg: #1e1e2e;
    --text-primary: #cdd6f4;
    --text-secondary: #a6adc8;
    --accent: #89b4fa;
    --accent-hover: #b4befe;
    --border: #313244;
    --card-bg: rgba(137, 180, 250, 0.05);
}

[data-theme="macchiato"] {
    --bg: #24273a;
    --text-primary: #cad3f5;
    --text-secondary: #a5adcb;
    --accent: #8aadf4;
    --accent-hover: #b7bdf8;
    --border: #363a4f;
    --card-bg: rgba(138, 173, 244, 0.05);
}

[data-theme="frappe"] {
    --bg: #303446;
    --text-primary: #c6d0f5;
    --text-secondary: #a5adce;
    --accent: #8caaee;
    --accent-hover: #babbf1;
    --border: #414559;
    --card-bg: rgba(140, 170, 238, 0.05);
}

[data-theme="latte"] {
    --bg: #eff1f5;
    --text-primary: #4c4f69;
    --text-secondary: #6c6f85;
    --accent: #1e66f5;
    --accent-hover: #04a5e5;
    --border: #dce0e8;
    --card-bg: rgba(30, 102, 245, 0.03);
}

[data-theme="gruvbox-dark"] {
    --bg: #282828;
    --text-primary: #ebdbb2;
    --text-secondary: #a89984;
    --accent: #83a598;
    --accent-hover: #8ec07c;
    --border: #3c3836;
    --card-bg: rgba(131, 165, 152, 0.05);
}

[data-theme="gruvbox-light"] {
    --bg: #fbf1c7;
    --text-primary: #3c3836;
    --text-secondary: #665c54;
    --accent: #076678;
    --accent-hover: #427b58;
    --border: #d5c4a1;
    --card-bg: rgba(7, 102, 120, 0.03);
}

[data-theme="nord"] {
    --bg: #2e3440;
    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --accent: #88c0d0;
    --accent-hover: #8fbcbb;
    --border: #3b4252;
    --card-bg: rgba(136, 192, 208, 0.05);
}

[data-theme="tokyo-night"] {
    --bg: #1a1b26;
    --text-primary: #c0caf5;
    --text-secondary: #9aa5ce;
    --accent: #7aa2f7;
    --accent-hover: #bb9af7;
    --border: #24283b;
    --card-bg: rgba(122, 162, 247, 0.05);
}

[data-theme="one-dark"] {
    --bg: #282c34;
    --text-primary: #abb2bf;
    --text-secondary: #5c6370;
    --accent: #61afef;
    --accent-hover: #c678dd;
    --border: #3e4451;
    --card-bg: rgba(97, 175, 239, 0.05);
}

[data-theme="one-light"] {
    --bg: #fafafa;
    --text-primary: #383a42;
    --text-secondary: #696c77;
    --accent: #4078f2;
    --accent-hover: #a626a4;
    --border: #e5e5e6;
    --card-bg: rgba(64, 120, 242, 0.03);
}

[data-theme="dracula"] {
    --bg: #282a36;
    --text-primary: #f8f8f2;
    --text-secondary: #6272a4;
    --accent: #bd93f9;
    --accent-hover: #ff79c6;
    --border: #44475a;
    --card-bg: rgba(189, 147, 249, 0.05);
}

[data-theme="everforest"] {
    --bg: #2d353b;
    --text-primary: #d3c6aa;
    --text-secondary: #859289;
    --accent: #a7c080;
    --accent-hover: #83c092;
    --border: #3d484d;
    --card-bg: rgba(167, 192, 128, 0.05);
}

[data-theme="solarized-dark"] {
    --bg: #002b36;
    --text-primary: #839496;
    --text-secondary: #586e75;
    --accent: #268bd2;
    --accent-hover: #2aa198;
    --border: #073642;
    --card-bg: rgba(38, 139, 210, 0.05);
}

[data-theme="solarized-light"] {
    --bg: #fdf6e3;
    --text-primary: #657b83;
    --text-secondary: #93a1a1;
    --accent: #268bd2;
    --accent-hover: #2aa198;
    --border: #eee8d5;
    --card-bg: rgba(38, 139, 210, 0.03);
}

[data-theme="rose-pine"] {
    --bg: #191724;
    --text-primary: #e0def4;
    --text-secondary: #908caa;
    --accent: #c4a7e7;
    --accent-hover: #ebbcba;
    --border: #26233a;
    --card-bg: rgba(196, 167, 231, 0.05);
}

[data-theme="monokai"] {
    --bg: #272822;
    --text-primary: #f8f8f2;
    --text-secondary: #75715e;
    --accent: #66d9ef;
    --accent-hover: #a6e22e;
    --border: #3e3d32;
    --card-bg: rgba(102, 217, 239, 0.05);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Skip-to-content link for keyboard / screen-reader users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Visually hidden (kept available to screen readers) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections render visible by default. The fade-in animation only runs when
   the user has not opted out of motion (this also keeps crawlers /
   Lighthouse / reduced-motion users seeing content immediately — fixes the
   old NO_FCP bug). Each top-level section fills the viewport for visual
   rhythm; .project-block overrides this for nested cards. Snap is off — 
   arrow-key navigation jumps via scrollIntoView in app.js. */
section {
    min-height: 100vh;
    margin-bottom: 0;
    padding: 80px 0;
    scroll-margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
    section {
        animation: fadeIn 0.6s ease-out both;
    }

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

    section:nth-of-type(1) { animation-delay: 0.05s; }
    section:nth-of-type(2) { animation-delay: 0.10s; }
    section:nth-of-type(3) { animation-delay: 0.15s; }
    section:nth-of-type(4) { animation-delay: 0.20s; }
    section:nth-of-type(5) { animation-delay: 0.25s; }
    section:nth-of-type(6) { animation-delay: 0.30s; }
}

.hero {
    padding-top: 0;
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 0;
}

.hero h1 {
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .role {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 520px;
}

.hero .statement {
    font-size: 19px;
    max-width: 600px;
    margin-bottom: 60px;
    padding-left: 24px;
    border-left: 2px solid var(--accent);
}

.hero .links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero .links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.hero .links a:hover,
.hero .links a:focus-visible {
    color: var(--accent);
}

.hero .links a.resume-link {
    color: var(--accent);
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 1px;
}

.hero .links a.resume-link:hover,
.hero .links a.resume-link:focus-visible {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 60px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.section-heading:hover,
.section-heading:focus-visible {
    color: var(--accent);
}

.section-heading:hover .share-btn,
.section-heading:focus-visible .share-btn {
    opacity: 1;
}

.share-btn {
    opacity: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.share-btn:hover,
.share-btn:focus-visible {
    color: var(--accent);
    transform: scale(1.1);
    opacity: 1;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg);
    border: 1px solid var(--accent);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.philosophy p {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.8;
}

/* Projects section container holds the header + each project article. */
.projects {
    min-height: auto;
    padding: 0;
    display: block;
}

.projects-header {
    min-height: 100vh;
    margin-bottom: 0;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 0;
}

.projects-header h2 {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 60px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.project-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.project-card {
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.project-card:hover,
.project-card:focus-visible {
    border-color: var(--accent);
    border-left: 2px solid var(--accent);
    padding-left: 19px;
    outline: none;
}

.project-card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
}

.project-card-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    min-width: 200px;
}

.project-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    flex: 1;
}

.project-card-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.project-card-arrow {
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0;
    transition: all 0.2s ease;
}

.project-card:hover .project-card-arrow,
.project-card:focus-visible .project-card-arrow {
    opacity: 1;
    color: var(--accent);
}

.project {
    min-height: 100vh;
    margin-bottom: 0;
    padding: 80px 0;
    scroll-margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project h3,
.project h1 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.project-heading:hover,
.project-heading:focus-visible {
    color: var(--accent);
}

.project-heading:hover .share-btn,
.project-heading:focus-visible .share-btn {
    opacity: 1;
}

.project .tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.project-content {
    display: grid;
    gap: 32px;
}

/* Nested info cards inside a .project — they are <section>s for semantics
   but must render as compact cards, not full-height blocks. This overrides
   the generic `section` rule above. */
.project-block {
    min-height: 0;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 4px;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s;
    display: block;
    animation: none;
}

.project-block h3,
.project-block h4 {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-weight: 500;
    border: none;
    padding: 0;
}

.project-block p {
    font-size: 16px;
    line-height: 1.7;
}

.project .tech-list {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2;
}

.project .project-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.project .project-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}

.project .project-links a:hover,
.project .project-links a:focus-visible {
    color: var(--accent-hover);
}

/* Breadcrumb (project pages) */
.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--accent);
}

.breadcrumbs span[aria-current="page"] {
    color: var(--accent);
}

/* Project page nav (prev/next) */
.project-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.project-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    max-width: 45%;
}

.project-nav a:hover,
.project-nav a:focus-visible {
    color: var(--accent);
}

.project-nav .nav-prev::before { content: "← "; }
.project-nav .nav-next::after { content: " →"; }
.project-nav .nav-home {
    color: var(--accent);
}

.build-section p {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.8;
}

.build-section ol {
    margin: 40px 0;
    padding-left: 0;
    list-style: none;
    counter-reset: c;
}

.build-section li {
    margin-bottom: 16px;
    font-size: 18px;
    padding-left: 48px;
    position: relative;
    counter-increment: c;
}

.build-section li::before {
    content: counter(c);
    position: absolute;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
}

.now-item {
    margin-bottom: 48px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 4px;
    border-left: 2px solid var(--border);
}

.now-item strong {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.now-item p {
    font-size: 16px;
    line-height: 1.7;
}

footer {
    min-height: 100vh;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer .contact a {
    font-size: 24px;
    color: var(--accent);
    text-decoration: none;
}

footer .contact a:hover,
footer .contact a:focus-visible {
    color: var(--accent-hover);
}

footer .signoff {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 40px;
    max-width: 520px;
}

/* Hamburger Menu */
.hamburger-container {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
}

.hamburger-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1001;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
    border-color: var(--accent);
    transform: scale(1.05);
    outline: none;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hamburger-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hamburger-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.menu-item:hover,
.menu-item:focus-visible {
    background: var(--card-bg);
    color: var(--accent);
    outline: none;
}

.menu-icon {
    font-size: 18px;
}

.menu-text {
    flex: 1;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.menu-shortcut {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 6px;
    background: var(--card-bg);
    border-radius: 4px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
    position: relative;
}

.modal-overlay.open .modal {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.modal-body {
    overflow-y: auto;
    padding: 12px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.theme-card {
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-card:hover,
.theme-card:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
    outline: none;
}

.theme-card.active {
    border-color: var(--accent);
    background: var(--card-bg);
    box-shadow: 0 0 0 2px var(--accent);
}

.theme-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.theme-emoji {
    font-size: 24px;
}

.theme-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.theme-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.theme-colors {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.nav-list {
    list-style: none;
}

.nav-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}

.nav-item:hover,
.nav-item.focused {
    background: var(--card-bg);
    border-left-color: var(--accent);
    color: var(--accent);
}

.nav-item.sub {
    padding-left: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-item.sub.focused,
.nav-item.sub:hover {
    color: var(--accent);
}

.help-content {
    padding: 24px;
    line-height: 1.8;
}

.help-section {
    margin-bottom: 32px;
}

.help-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--accent);
}

.help-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.help-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.help-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

.help-tips {
    margin-top: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 2px solid var(--accent);
}

.help-tips h4 {
    margin-bottom: 12px;
}

.help-tips p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.help-tips p:last-child {
    margin-bottom: 0;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus-visible {
    color: var(--accent);
    outline: none;
}

/* Scroll Spy Indicator */
.scroll-spy {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.scroll-spy:empty {
    display: none;
}

.scroll-spy-item {
    height: 2px;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 1px;
    opacity: 0.5;
}

.scroll-spy-item.main {
    width: 16px;
}

.scroll-spy-item.sub {
    width: 10px;
    margin-left: 6px;
}

.scroll-spy-item:hover {
    opacity: 1;
    background: var(--text-secondary);
}

.scroll-spy-item.active {
    background: var(--accent);
    opacity: 1;
}

.scroll-spy-item.active.main {
    width: 20px;
}

.scroll-spy-item.active.sub {
    width: 14px;
}

.scroll-spy-item::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.scroll-spy-item:hover::before {
    opacity: 1;
}

.theme-card.focused {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.current-theme-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 16px;
}

.current-theme-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
}

.current-theme-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .scroll-spy {
        display: none;
    }

    .hamburger-container {
        top: 24px;
        right: 24px;
    }

    .hamburger-btn {
        width: 44px;
        height: 44px;
    }

    .hamburger-menu {
        right: 0;
        min-width: 160px;
    }

    .hero {
        padding-top: 0;
        margin-bottom: 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .role {
        font-size: 18px;
    }

    .hero .statement {
        font-size: 17px;
        padding-left: 16px;
    }

    h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    section {
        padding: 60px 0;
    }

    .project {
        padding: 60px 0;
    }

    .projects-header {
        padding: 60px 0;
    }

    .project-card {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .project-card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
    }

    .project-card-title {
        min-width: auto;
        text-align: left;
    }

    .project-card-desc {
        text-align: left;
    }

    .project-card-tech {
        margin-top: 4px;
        text-align: left;
    }

    .project-card-arrow {
        display: none;
    }

    .project h3,
    .project h1 {
        font-size: 26px;
    }

    footer {
        padding: 60px 0;
    }

    footer .contact a {
        font-size: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

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