/* Retro 80's Terminal Resume Stylesheet */

:root {
    /* Default Theme - Green Terminal */
    --primary-color: #00ff41;
    --secondary-color: #00cc33;
    --bg-color: #0a0a0a;
    --terminal-bg: #000000;
    --glow-color: rgba(0, 255, 65, 0.5);
    --text-shadow: 0 0 5px var(--glow-color);

    /* Accent colors from palette */
    --purple-accent: #a78bfa;
    --blue-accent: #60a5fa;
    --cyan-accent: #22d3ee;
    --orange-accent: #fb923c;
    --coral-accent: #fb7185;
    --yellow-accent: #fbbf24;

    /* Equalizer bar colors */
    --eq-color-1: #00ff41;
    --eq-color-2: #00cc33;
    --eq-color-3: #00ff55;
    --eq-color-4: #00ee44;
}

/* Alternate Theme - Cyan/Blue Terminal */
[data-theme="blue"] {
    --primary-color: #22d3ee;
    --secondary-color: #00bcd4;
    --bg-color: #0a0a0a;
    --terminal-bg: #000000;
    --glow-color: rgba(34, 211, 238, 0.5);
    --text-shadow: 0 0 5px var(--glow-color);

    /* Accent colors - swap blues and greens */
    --purple-accent: #a78bfa;
    --blue-accent: #00ff41;
    --cyan-accent: #00cc33;
    --orange-accent: #fb923c;
    --coral-accent: #fb7185;
    --yellow-accent: #fbbf24;

    /* Equalizer bar colors - cyan theme */
    --eq-color-1: #22d3ee;
    --eq-color-2: #00bcd4;
    --eq-color-3: #1de9ff;
    --eq-color-4: #0dcaf0;
}

/* Purple Terminal Theme */
[data-theme="purple"] {
    --primary-color: #a78bfa;
    --secondary-color: #9333ea;
    --bg-color: #0a0a0a;
    --terminal-bg: #000000;
    --glow-color: rgba(167, 139, 250, 0.5);
    --text-shadow: 0 0 5px var(--glow-color);

    /* Accent colors - purple dominant */
    --purple-accent: #22d3ee;
    --blue-accent: #60a5fa;
    --cyan-accent: #c084fc;
    --orange-accent: #fb923c;
    --coral-accent: #fb7185;
    --yellow-accent: #fbbf24;

    /* Equalizer bar colors - purple theme */
    --eq-color-1: #a78bfa;
    --eq-color-2: #9333ea;
    --eq-color-3: #c084fc;
    --eq-color-4: #a855f7;
}

/* Red Terminal Theme */
[data-theme="red"] {
    --primary-color: #ff4444;
    --secondary-color: #ef4444;
    --bg-color: #0a0a0a;
    --terminal-bg: #000000;
    --glow-color: rgba(255, 68, 68, 0.5);
    --text-shadow: 0 0 5px var(--glow-color);

    /* Accent colors - red dominant */
    --purple-accent: #a78bfa;
    --blue-accent: #60a5fa;
    --cyan-accent: #22d3ee;
    --orange-accent: #fb923c;
    --coral-accent: #fb7185;
    --yellow-accent: #fbbf24;

    /* Equalizer bar colors - red theme */
    --eq-color-1: #ff4444;
    --eq-color-2: #ef4444;
    --eq-color-3: #ff5555;
    --eq-color-4: #f87171;
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CRT Effect Container */
.crt {
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    animation: flicker 0.15s infinite;
}

/* Subtle CRT flicker */
@keyframes flicker {
    0% {
        opacity: 0.97;
    }
    5% {
        opacity: 1;
    }
    10% {
        opacity: 0.98;
    }
    100% {
        opacity: 0.97;
    }
}

/* Terminal Window */
.terminal {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 50px rgba(0, 255, 65, 0.05);
    border-radius: 5px;
    overflow: hidden;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
    from {
        box-shadow: 0 0 20px var(--glow-color), inset 0 0 50px rgba(0, 255, 65, 0.05);
    }
    to {
        box-shadow: 0 0 30px var(--glow-color), inset 0 0 50px rgba(0, 255, 65, 0.08);
    }
}

/* Terminal Header */
.terminal-header {
    background: var(--secondary-color);
    color: var(--terminal-bg);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid var(--primary-color);
}

.terminal-title {
    animation: terminalFlash 1.2s infinite, terminalTitlePulse 2s infinite ease-in-out;
}

@keyframes terminalTitlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.015);
    }
}

@keyframes terminalFlash {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    33% {
        opacity: 0.7;
        text-shadow: none;
    }
    66% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    }
}

.terminal-close {
    cursor: pointer;
    font-size: 18px;
}

/* Content Area */
.content {
    padding: 15px;
    text-shadow: var(--text-shadow);
    position: relative;
}

.content > * {
    position: relative;
    z-index: 1;
}

/* ASCII Art */
.ascii-art {
    font-size: 10px;
    line-height: 1.2;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    white-space: pre;
    overflow-x: auto;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header Section */
.resume-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    animation: fadeIn 1s ease-in;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.name {
    font-size: 36px;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 0 10px var(--glow-color);
    animation: flashBlink 1.5s infinite alternate, colorPulse 2s infinite;
    transition: transform 0.2s ease;
    user-select: none;
}

.name:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px var(--glow-color), 0 0 30px var(--glow-color);
}

/* EQ and Ticker Wrapper */
.eq-ticker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

/* Equalizer Styles */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--glow-color), inset 0 0 10px rgba(0, 255, 65, 0.1);
}

.eq-bar {
    flex: 1;
    min-width: 3px;
    height: 10px;
    background: var(--bar-color);
    box-shadow: 0 0 8px var(--bar-color), 0 0 12px var(--bar-color);
    animation: eqBounce var(--duration) ease-in-out var(--delay) infinite alternate;
    border-radius: 2px 2px 0 0;
}

@keyframes eqBounce {
    0% {
        height: 8px;
        opacity: 0.6;
    }
    25% {
        height: 25px;
        opacity: 0.9;
    }
    50% {
        height: 15px;
        opacity: 0.8;
    }
    75% {
        height: 40px;
        opacity: 1;
    }
    100% {
        height: 10px;
        opacity: 0.7;
    }
}

/* Quote Ticker - Bottom of page */
.quote-ticker {
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--cyan-accent);
    border-radius: 3px;
    padding: 8px 10px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4), inset 0 0 10px rgba(34, 211, 238, 0.1);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.quote-ticker:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), inset 0 0 15px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    position: relative;
}

.quote-item {
    display: none;
    padding: 0 20px;
    font-size: 14px;
    color: var(--cyan-accent);
    font-style: italic;
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    white-space: nowrap;
    position: absolute;
    left: 0;
    text-align: left;
}

.quote-item.active {
    display: inline-block;
    opacity: 1;
}

.quote-item.scrolling {
    animation: quote-scroll-horizontal 15s linear;
}

.quote-item.centered {
    left: 50%;
    transform: translateX(-50%);
}

@keyframes quote-scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(0);
    }
    90% {
        transform: translateX(calc(var(--ticker-width) - 100% - 40px));
    }
    100% {
        transform: translateX(calc(var(--ticker-width) - 100% - 40px));
    }
}

.quote-item::before {
    content: "◆ ";
    color: var(--purple-accent);
    margin-right: 8px;
}

.quote-item::after {
    content: " - " attr(data-author);
    font-size: 11px;
    color: var(--blue-accent);
    opacity: 0.7;
    font-style: normal;
    margin-left: 8px;
}

@keyframes flashBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color);
    }
    25% {
        opacity: 0.7;
        text-shadow: 0 0 5px var(--glow-color);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 30px var(--glow-color), 0 0 40px var(--glow-color);
    }
    75% {
        opacity: 0.8;
        text-shadow: 0 0 8px var(--glow-color);
    }
}

@keyframes colorPulse {
    0%, 100% {
        color: var(--primary-color);
    }
    50% {
        color: var(--secondary-color);
    }
}

.title {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-weight: normal;
    animation: rapidBlink 0.8s infinite;
    user-select: none;
    cursor: pointer;
    text-shadow: 0 0 10px var(--glow-color);
}

@keyframes rapidBlink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0.6;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(167, 139, 250, 0.6);
        color: var(--purple-accent);
    }
    50% {
        text-shadow: 0 0 20px rgba(96, 165, 250, 0.7), 0 0 30px rgba(96, 165, 250, 0.5);
        color: var(--blue-accent);
    }
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

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

.logo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--terminal-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--glow-color);
    text-shadow: none;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 30px;
    margin-bottom: 15px;
}

.left-column {
    min-width: 0;
    margin-left: -20px;
}

.right-column {
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    margin-right: -20px;
}

/* Prompt Line */
.prompt-line {
    margin: 3px 0 3px 0;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.prompt {
    color: var(--secondary-color);
    display: inline-block;
}

.command {
    color: var(--primary-color);
    margin-left: 10px;
    display: inline-block;
}

.typed-text {
    animation: typing 2s steps(20, end);
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Section Styling */
.section {
    margin: 8px 0 12px 0;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--glow-color);
    white-space: pre;
    animation: headerFlash 2s infinite, headerColorShift 3s infinite, headerPulse 1.6s infinite ease-in-out;
}

@keyframes headerFlash {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--glow-color);
    }
    20% {
        opacity: 0.6;
        text-shadow: 0 0 5px var(--glow-color);
    }
    40% {
        opacity: 1;
        text-shadow: 0 0 25px var(--glow-color), 0 0 35px var(--glow-color);
    }
    60% {
        opacity: 0.8;
        text-shadow: 0 0 8px var(--glow-color);
    }
    80% {
        opacity: 1;
        text-shadow: 0 0 15px var(--glow-color);
    }
}

@keyframes headerColorShift {
    0%, 100% {
        color: var(--secondary-color);
    }
    25% {
        color: var(--primary-color);
    }
    50% {
        color: var(--cyan-accent);
    }
    75% {
        color: var(--blue-accent);
    }
}

@keyframes headerPulse {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.98);
    }
    60% {
        transform: scale(1.02);
    }
}

.left-column .section-header {
    margin-left: 0;
    padding-left: 0;
}

.left-column .prompt-line {
    margin-left: 0;
    padding-left: 0;
}

.section-content {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
}

.left-column .section-content {
    margin-left: 0;
    padding-left: 0;
}

/* Job Entries */
.job-entry {
    margin-bottom: 10px;
    padding: 0;
    transition: all 0.3s ease;
}

.job-entry:last-child {
    margin-bottom: 0;
}

.job-entry:hover {
    transform: translateX(3px);
}

.job-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 3px;
    animation: jobTitlePulse 2s infinite ease-in-out;
}

@keyframes jobTitlePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 5px var(--glow-color);
    }
    30% {
        opacity: 0.85;
        transform: scale(0.99);
        text-shadow: 0 0 3px var(--glow-color);
    }
    60% {
        opacity: 1;
        transform: scale(1.01);
        text-shadow: 0 0 10px var(--glow-color);
    }
}

.job-meta {
    color: var(--blue-accent);
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.job-description ul {
    list-style: none;
    padding-left: 15px;
}

.job-description li {
    margin-bottom: 5px;
    position: relative;
}

.job-description li {
    color: var(--secondary-color);
    font-size: 13px;
    line-height: 1.5;
}

.job-description li:before {
    content: "→";
    position: absolute;
    left: -15px;
    color: var(--cyan-accent);
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 12px;
    margin-left: 0;
    padding-left: 0;
}

.sidebar-section .section-header {
    margin-left: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sidebar-section .section-content {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
}

/* Content Box - Same styling as job-entry */
.content-box {
    padding: 8px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

.content-box:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.right-column .prompt-line {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.right-column .section {
    margin-left: 0;
    padding-left: 0;
}

.sidebar-section p {
    margin: 0;
    padding: 0;
}

.content-box p {
    margin: 0;
}

/* Summary typewriter text */
.typewriter {
    color: var(--primary-color);
    animation: summaryColorCycle 1.8s infinite;
}

@keyframes summaryColorCycle {
    0%, 100% {
        opacity: 1;
        color: var(--primary-color);
        text-shadow: 0 0 8px var(--glow-color);
    }
    25% {
        opacity: 0.6;
        color: var(--secondary-color);
        text-shadow: 0 0 3px var(--glow-color);
    }
    50% {
        opacity: 1;
        color: var(--cyan-accent);
        text-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
    }
    75% {
        opacity: 0.8;
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--glow-color);
    }
}

/* Achievement Grid */
.achievement-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.achievement-item {
    margin-bottom: 8px;
    padding: 0;
    transition: all 0.3s ease;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

.achievement-item:hover {
    transform: translateX(3px);
}

.achievement-title {
    font-weight: bold;
    margin-bottom: 2px;
    color: var(--primary-color);
    font-size: 14px;
    animation: achievementFlash 1.8s infinite;
}

@keyframes achievementFlash {
    0%, 100% {
        opacity: 1;
        color: var(--primary-color);
        text-shadow: 0 0 8px var(--glow-color);
        transform: scale(1) translateX(0);
    }
    25% {
        opacity: 0.6;
        color: var(--secondary-color);
        text-shadow: 0 0 3px var(--glow-color);
        transform: scale(0.98) translateX(-2px);
    }
    50% {
        opacity: 1;
        color: var(--cyan-accent);
        text-shadow: 0 0 20px rgba(34, 211, 238, 0.7);
        transform: scale(1.02) translateX(2px);
    }
    75% {
        opacity: 0.8;
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--glow-color);
        transform: scale(1) translateX(0);
    }
}

.achievement-desc {
    font-size: 12px;
    color: var(--blue-accent);
    line-height: 1.4;
    opacity: 0.9;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-item {
    padding: 6px 12px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--primary-color);
    font-size: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    background: var(--primary-color);
    color: var(--terminal-bg);
    text-shadow: none;
    transform: scale(1.05);
}

/* Colorful skill items */
.skill-item:nth-child(4n+1) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.skill-item:nth-child(4n+2) {
    border-color: var(--cyan-accent);
    color: var(--cyan-accent);
}

.skill-item:nth-child(4n+3) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.skill-item:nth-child(4n+4) {
    border-color: #00ff88;
    color: #00ff88;
}

/* Strengths */
.strength-item {
    margin-bottom: 8px;
    padding: 0;
}

.strength-item:last-child {
    margin-bottom: 0;
}

.strength-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--primary-color);
    animation: strengthPulse 1.4s infinite ease-in-out;
}

@keyframes strengthPulse {
    0%, 100% {
        opacity: 1;
        color: var(--primary-color);
        text-shadow: 0 0 5px var(--glow-color);
        transform: scale(1) translateX(0);
    }
    30% {
        opacity: 0.7;
        color: var(--secondary-color);
        text-shadow: 0 0 2px var(--glow-color);
        transform: scale(0.98) translateX(-2px);
    }
    60% {
        opacity: 1;
        color: var(--cyan-accent);
        text-shadow: 0 0 15px rgba(34, 211, 238, 0.7), 0 0 25px rgba(34, 211, 238, 0.6);
        transform: scale(1.02) translateX(2px);
    }
}

.strength-desc {
    color: var(--blue-accent);
    padding-left: 15px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
}

.footer-line {
    color: var(--secondary-color);
    font-size: 10px;
}

.footer-content {
    padding: 15px 0;
    color: var(--primary-color);
    font-size: 14px;
    animation: footerColorCycle 4s infinite;
}

@keyframes footerColorCycle {
    0%, 100% {
        color: var(--primary-color);
    }
    33% {
        color: var(--cyan-accent);
    }
    66% {
        color: var(--purple-accent);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 1px solid var(--terminal-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr 420px;
        gap: 40px;
    }

    .left-column {
        margin-left: -10px;
    }

    .right-column {
        margin-right: -10px;
    }
}

@media (max-width: 768px) {
    .crt {
        padding: 10px;
    }

    .content {
        padding: 15px;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-column {
        margin-left: 0;
    }

    .right-column {
        margin-right: 0;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .eq-ticker-wrapper {
        gap: 8px;
    }

    .quote-ticker {
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .logo-circle {
        width: 80px;
        height: 80px;
        font-size: 28px;
        align-self: center;
    }

    .name {
        font-size: 28px;
        text-align: center;
    }

    .equalizer {
        height: 40px;
        padding: 6px 15px;
    }

    .eq-bar {
        min-width: 2px;
    }

    .quote-ticker {
        padding: 6px 8px;
        height: 28px;
    }

    .quote-item {
        font-size: 12px;
        padding: 0 10px;
    }

    .quote-item::after {
        font-size: 10px;
    }

    .title {
        font-size: 18px;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

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

    .section-content {
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-header {
        font-size: 12px;
    }

    .section-header {
        font-size: 14px;
    }

    .name {
        font-size: 24px;
    }

    .equalizer {
        height: 35px;
        padding: 5px 10px;
        gap: 3px;
    }

    .eq-bar {
        min-width: 2px;
    }

    .eq-ticker-wrapper {
        gap: 6px;
    }

    .quote-ticker {
        padding: 5px 6px;
        height: 26px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .quote-item {
        font-size: 11px;
        padding: 0 8px;
    }

    .quote-item::after {
        font-size: 9px;
    }

    @keyframes quote-scroll-horizontal {
        0% {
            transform: translateX(0);
        }
        10% {
            transform: translateX(0);
        }
        90% {
            transform: translateX(calc(var(--ticker-width) - 100% - 20px));
        }
        100% {
            transform: translateX(calc(var(--ticker-width) - 100% - 20px));
        }
    }

    .title {
        font-size: 16px;
    }

    .logo-circle {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--terminal-bg);
    text-shadow: none;
}

/* Disable all animations when toggled off */
[data-animations="disabled"] * {
    animation: none !important;
    transition: none !important;
}

/* Keep essential transitions for interactivity */
[data-animations="disabled"] .popover-backdrop,
[data-animations="disabled"] .popover-window,
[data-animations="disabled"] button:hover,
[data-animations="disabled"] .skill-item:hover,
[data-animations="disabled"] .forth-button:hover,
[data-animations="disabled"] .chat-button:hover {
    transition: all 0.3s ease !important;
}

/* Scan Line Effect */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

/* Popover Backdrop */
.popover-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.popover-backdrop.open {
    display: block;
    opacity: 1;
}

/* Popover Window Base Styles */
.popover-window {
    display: none;
    position: fixed;
    top: 5vh;
    left: 2vw;
    right: 2vw;
    transform: scale(0.9);
    width: auto;
    max-width: calc(100vw - 4vw);
    height: calc(90vh - 10vh);
    max-height: 650px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    background: var(--terminal-bg);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 50px rgba(0, 255, 65, 0.05);
    border-radius: 5px;
    overflow: hidden;
    animation: terminalGlow 2s ease-in-out infinite alternate;
}

.popover-window.open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

/* Ensure popover stays within viewport - progressive height reduction */
@media (max-height: 900px) {
    .popover-window {
        top: 3vh;
        height: calc(94vh - 6vh);
        max-height: 600px;
    }
}

@media (max-height: 800px) {
    .popover-window {
        top: 2vh;
        height: calc(96vh - 4vh);
        max-height: 550px;
    }
}

@media (max-height: 700px) {
    .popover-window {
        top: 2vh;
        height: calc(96vh - 4vh);
        max-height: 500px;
    }
}

@media (max-height: 600px) {
    .popover-window {
        top: 1vh;
        height: calc(98vh - 2vh);
        max-height: 450px;
    }
}

/* Popover Header (Terminal Window Style) */
.popover-header {
    background: var(--secondary-color);
    color: var(--terminal-bg);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.popover-title {
    font-size: 14px;
    animation: terminalFlash 1.2s infinite, popoverTitlePulse 1.8s infinite ease-in-out;
}

@keyframes popoverTitlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.popover-close {
    background: none;
    border: none;
    color: var(--terminal-bg);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popover-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
}

/* Section Popover Content */
.popover-section-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 255, 65, 0.03);
}

.popover-section-content .section-content {
    max-width: 100%;
}

.popover-section-content .content-box {
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 15px;
}

/* Make section headers interactive */
.sidebar-section .section-header:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color), 0 0 20px var(--glow-color);
    transform: translateX(3px);
}

/* WAForth Popover Specific */
#waforth-section {
    display: none;
}

#waforth-section.open {
    display: flex;
}

.waforth-container {
    padding: 20px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.waforth-output-container {
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
}

.forth-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--primary-color);
}

.forth-output-line {
    margin-bottom: 5px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.forth-greeting {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    padding-bottom: 10px;
}

.forth-input-echo {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.forth-error {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.waforth-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.forth-input {
    width: 100%;
    padding: 12px;
    background: #000000;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
}

.forth-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3), inset 0 0 10px rgba(0, 255, 65, 0.2);
}

.forth-input::placeholder {
    color: rgba(0, 255, 65, 0.4);
}

.waforth-buttons {
    display: flex;
    gap: 10px;
}

.forth-button {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forth-button:hover {
    background: var(--primary-color);
    color: var(--terminal-bg);
    text-shadow: none;
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.forth-button:active {
    transform: translateY(0);
    box-shadow: 0 0 10px var(--glow-color);
}

.forth-execute-btn {
    border-color: var(--purple-accent);
    color: var(--purple-accent);
}

.forth-execute-btn:hover {
    border-color: var(--purple-accent);
    background: var(--purple-accent);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

.forth-clear-btn {
    border-color: var(--orange-accent);
    color: var(--orange-accent);
}

.forth-clear-btn:hover {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
    color: var(--terminal-bg);
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.6);
}

/* Responsive Design for WAForth */
@media (max-width: 768px) {
    .waforth-output-container {
        min-height: 200px;
        max-height: 300px;
    }

    .waforth-buttons {
        flex-direction: column;
    }

    .forth-button {
        width: 100%;
    }
}

/* LLM Chat Popover Specific */
#llm-chat-section {
    display: none;
}

#llm-chat-section.open {
    display: flex;
}

/* Adjust container heights for popover mode */
.popover-window .waforth-container,
.popover-window .llm-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.popover-window .section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.llm-chat-container {
    padding: 20px;
    background: rgba(0, 255, 65, 0.03);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.llm-chat-output-container {
    margin-bottom: 20px;
    border: 2px solid var(--cyan-accent);
    background: rgba(0, 0, 0, 0.5);
    flex: 1;
    min-height: 200px;
    overflow-y: auto;
    padding: 15px;
    box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.2);
}

.chat-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--primary-color);
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 3px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-message.user {
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.chat-message.assistant {
    background: rgba(34, 211, 238, 0.1);
    border-left: 3px solid var(--cyan-accent);
    color: var(--cyan-accent);
}

.chat-message.system {
    background: rgba(251, 146, 60, 0.1);
    border-left: 3px solid var(--orange-accent);
    color: var(--orange-accent);
    font-style: italic;
}

.chat-greeting {
    color: var(--cyan-accent);
    font-style: italic;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.3);
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(34, 211, 238, 0.5);
}

.chat-role {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.8;
}

.chat-content {
    margin-top: 5px;
}

.chat-loading {
    color: var(--purple-accent);
    font-style: italic;
}

.chat-loading #spinner {
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    color: var(--cyan-accent);
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
    margin-right: 5px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.llm-chat-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.chat-input {
    width: 100%;
    padding: 12px;
    background: #000000;
    border: 2px solid var(--cyan-accent);
    color: var(--cyan-accent);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.1);
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--blue-accent);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3), inset 0 0 10px rgba(34, 211, 238, 0.2);
}

.chat-input::placeholder {
    color: rgba(34, 211, 238, 0.4);
}

.llm-chat-buttons {
    display: flex;
    gap: 10px;
}

.chat-button {
    flex: 1;
    padding: 12px 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 2px solid var(--cyan-accent);
    color: var(--cyan-accent);
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chat-button:hover {
    background: var(--cyan-accent);
    color: var(--terminal-bg);
    text-shadow: none;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
}

.chat-button:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.chat-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-button:disabled:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan-accent);
    transform: none;
}

.chat-send-btn {
    border-color: var(--blue-accent);
    color: var(--blue-accent);
}

.chat-send-btn:hover:not(:disabled) {
    background: var(--blue-accent);
    border-color: var(--blue-accent);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

.chat-clear-btn {
    border-color: var(--orange-accent);
    color: var(--orange-accent);
}

.chat-clear-btn:hover {
    background: var(--orange-accent);
    border-color: var(--orange-accent);
    color: var(--terminal-bg);
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.6);
}

/* Responsive Design for LLM Chat */
@media (max-width: 768px) {
    .llm-chat-output-container {
        min-height: 200px;
        max-height: 350px;
    }

    .llm-chat-buttons {
        flex-direction: column;
    }

    .chat-button {
        width: 100%;
    }

    /* Popover responsive adjustments */
    .popover-window {
        left: 1.5vw;
        right: 1.5vw;
        top: 2vh;
        height: calc(96vh - 4vh);
        max-height: 650px;
    }

    .popover-header {
        padding: 6px 10px;
    }

    .popover-title {
        font-size: 12px;
    }
}

/* Additional mobile height constraints */
@media (max-width: 480px) {
    .popover-window {
        left: 1vw;
        right: 1vw;
        top: 1vh;
        height: calc(98vh - 2vh);
        max-height: 700px;
    }

    .popover-header {
        padding: 5px 8px;
    }

    .popover-title {
        font-size: 11px;
    }
}

/* Add cursor pointer to equalizer for click interaction */
.equalizer {
    cursor: pointer;
    transition: all 0.3s ease;
}

.equalizer:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 15px rgba(0, 255, 65, 0.2);
}
