/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --bg-quaternary: #252525;
    
    --text-amber: #ffc64d;
    --text-amber-dim: #cc8800;
    --text-amber-bright: #ffcc33;
    --text-amber-glow: rgba(255, 176, 0, 0.4);
    
    --text-cyan: #00d4ff;
    --text-cyan-dim: #0099bb;
    --text-cyan-glow: rgba(0, 212, 255, 0.3);
    
    --text-dim: #666666;
    --text-dimmer: #444444;
    --text-white: #eeeeee;
    --text-white-dim: #aaaaaa;
    
    --error: #ff4444;
    --error-glow: rgba(255, 68, 68, 0.4);
    --success: #33ff66;
    --success-dim: #22cc44;
    
    --border-subtle: #222222;
    --border-active: #333333;
    
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --cursor-blink: blink 1s step-end infinite;
    
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    --glow-amber: 0 0 20px var(--text-amber-glow);
    --glow-cyan: 0 0 15px var(--text-cyan-glow);
}

/* ===== CRT Scanline Effect ===== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.11),
        rgba(0, 0, 0, 0.11) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
}

/* ===== Corner Glows ===== */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 60% 110% at 30px 40px, rgba(0, 212, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 60% 110% at calc(100% - 30px) 40px, rgba(255, 198, 77, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9997;
}

/* ===== CRT Flicker Animation ===== */
@keyframes crtFlicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.97; }
    15% { opacity: 0.94; }
    20% { opacity: 0.98; }
    100% { opacity: 0.97; }
}

.terminal {
    animation: crtFlicker 4s infinite;
}

/* ===== Language Toggle ===== */
.lang-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1001;
    background-color: var(--bg-secondary);
    border: 1px solid var(--text-amber-dim);
    color: var(--text-amber);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lang-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-amber);
    color: var(--text-amber-bright);
    box-shadow: 0 0 15px var(--text-amber-glow);
    transform: translateY(-1px);
}

.lang-current {
    font-weight: 700;
    color: var(--text-amber-bright);
}

.lang-separator {
    color: var(--text-dim);
}

.lang-option {
    color: var(--text-dim);
    transition: color var(--transition-fast);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-amber);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Boot Screen ===== */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.boot-content {
    max-width: 600px;
    width: 100%;
}

.boot-line {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1.0s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }
.boot-line:nth-child(5) { animation-delay: 1.8s; }
.boot-line:nth-child(6) { animation-delay: 2.2s; }
.boot-line:nth-child(7) { animation-delay: 2.6s; }

.boot-line .success {
    color: var(--success);
    text-shadow: 0 0 8px rgba(51, 255, 102, 0.4);
}

.boot-line.blink {
    animation: fadeIn 0.3s ease forwards, blink 1s step-end infinite;
    animation-delay: 2.6s, 3s;
}

/* ===== Terminal ===== */
.terminal {
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.terminal.hidden {
    display: none;
}

/* ===== Hero Header with FRC ASCII ===== */
.hero-header {
    margin-bottom: 3rem;
    padding: 0 0 2rem 0;
    border-bottom: 2px solid var(--border-subtle);
    position: relative;
}

.hero-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--text-cyan) 33%, var(--text-amber) 66%, transparent 100%);
    opacity: 0.6;
}

.frc-ascii {
    font-size: 0.60rem;
    line-height: 1;
    color: var(--text-cyan);
    margin-bottom: 1.5rem;
    white-space: pre;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
    text-shadow: 0 0 10px var(--text-cyan-glow);
    letter-spacing: 0;
    text-align: center;
    margin-left: -0.8em;
    margin-top: 1.3em;
}

.hero-content {
    /*padding-left: 1rem;
    border-left: 3px solid var(--text-amber-dim);*/
    transition: border-color var(--transition-medium);
    text-align: center;
}

.hero-content:hover {
    border-left-color: var(--text-amber);
}

.hero-prompt {
    color: var(--text-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    /*display: flex;*/
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.hero-prompt::before {
    content: '►';
    color: var(--text-amber);
    font-size: 0.8rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-amber-bright);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-white-dim);
    font-weight: 400;
}

.hero-tagline .separator {
    color: var(--text-amber-dim);
    margin: 0 0.5rem;
}

/* ===== Tagline (Legacy - keeping for compatibility) ===== */
.tagline {
    display: none;
}

/* ===== Sections ===== */
.section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
}

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

/* Section Window Styling */
.section::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: -1rem;
    right: -1rem;
    bottom: -1.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all var(--transition-medium);
    pointer-events: none;
}

.section.visible:hover::before {
    border-color: var(--border-subtle);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, transparent 50%);
}

.section.interactive.visible:hover::before {
    border-color: transparent;
    background: none;
}

.section.active::before {
    border-color: var(--border-active);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
    box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.03);
}

/* ===== Command Line ===== */
.command-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
    padding: 0.5rem 0;
}

.section.active .command-line {
    position: relative;
}

.section.active .command-line::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--text-amber);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--text-amber-glow);
}

.section-separator {
    flex-grow: 1;
    position: relative;
    height: 1em;
    margin-left: 0.5rem;
    min-width: 20px;
}

.section-separator::after {
    content: '▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.65rem;
    color: var(--text-dimmer);
    opacity: 0.3;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    letter-spacing: 0;
}

.command-line.spacer {
    margin-top: 2rem;
}

.prompt {
    color: var(--text-cyan);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.section.active .prompt {
    color: var(--text-cyan);
    text-shadow: var(--glow-cyan);
}

.command {
    color: var(--text-white);
    font-weight: 400;
    font-size: 0.95rem;
}

/* Section type indicators */
.command-line .section-indicator {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-left: auto;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.section:hover .section-indicator {
    opacity: 0.6;
}

/* ===== Output ===== */
.output {
    padding-left: 0;
    /* margin-left: 0.5rem; */
}

.js-enabled noscript {
    display: none;
}

/* ===== Typewriter Effect ===== */
.typewriter {
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

.typewriter.typing {
    animation: typing 0.05s steps(1, end);
}

.typewriter.completed {
    border-right: none;
}

/* Delays for staggered animations */
.delay-1 { animation-delay: 0.8s !important; }
.delay-2 { animation-delay: 1.6s !important; }
.delay-3 { animation-delay: 2.4s !important; }
.delay-4 { animation-delay: 3.2s !important; }

/* ===== File Entries (Stack Section) ===== */
.file-entry {
    display: grid;
    grid-template-columns: 110px 120px 140px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.25rem;
    border-left: 2px solid transparent;
    transition: all var(--transition-medium);
    border-radius: 0 4px 4px 0;
}

.file-entry:hover {
    background-color: var(--bg-secondary);
    border-left-color: var(--text-amber-dim);
    transform: translateX(4px);
}

.file-entry:hover .filename {
    color: var(--text-amber-bright);
    text-shadow: 0 0 8px var(--text-amber-glow);
}

.file-entry .permissions {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.file-entry .filename {
    color: var(--text-amber);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.file-entry.secondary .filename {
    color: var(--text-amber-dim);
}

.file-entry.secondary:hover .filename {
    color: var(--text-amber);
}

/* Progress Bar Redesign */
.progress-bar {
    display: inline-block;
    width: 100px;
    height: 10px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--text-dimmer);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.3) 4px,
        rgba(0, 0, 0, 0.3) 8px
    );
    z-index: 2;
}

.progress-bar .fill {
    display: block;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--text-amber-dim) 0%,
        var(--text-amber) 50%,
        var(--text-amber-bright) 100%
    );
    box-shadow: 0 0 10px var(--text-amber-glow);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.progress-bar .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.file-entry.secondary .progress-bar .fill {
    background: linear-gradient(
        90deg,
        var(--text-dimmer) 0%,
        var(--text-amber-dim) 100%
    );
    box-shadow: none;
}

.file-entry .level {
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.file-entry:hover .level {
    color: var(--text-white-dim);
}

/* Stack Category Headers */
.stack-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    border-left: 3px solid var(--text-cyan);
}

.stack-category:first-child {
    margin-top: 0;
}

.stack-category-icon {
    color: var(--text-cyan);
    font-size: 1rem;
}

.stack-category-title {
    color: var(--text-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stack-category-count {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-left: auto;
}

/* ===== Methodology Blocks ===== */
.methodology-block {
    margin-bottom: 1.5rem;
    padding: 1rem 1rem 1rem 1.25rem;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, transparent 100%);
    border-left: 2px solid var(--text-cyan-dim);
    border-radius: 0 4px 4px 0;
    transition: all var(--transition-medium);
}

.methodology-block:hover {
    border-left-color: var(--text-cyan);
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, transparent 100%);
}

.methodology-block h3 {
    color: var(--text-cyan);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.methodology-block h3::before {
    content: '#';
    color: var(--text-amber-dim);
    font-weight: 400;
}

.methodology-block div {
    color: var(--text-amber);
    padding-left: 1.5ch;
    line-height: 1.7;
}

/* ===== Formation Blocks ===== */
.formation-block {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-medium);
}

.formation-block:hover {
    border-color: var(--border-active);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.formation-block h3 {
    color: var(--text-cyan);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.formation-block h3::before {
    content: '#';
    color: var(--text-amber-dim);
    font-weight: 400;
}

.formation-block div {
    color: var(--text-amber);
    padding-left: 2ch;
    margin-bottom: 0.4rem;
    line-height: 1.6;
    position: relative;
}

.formation-block div::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--text-amber-dim);
}

/* ===== Log Entries (Achievements) ===== */
.log-entry {
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--text-amber);
    border-radius: 0 6px 6px 0;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.log-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--text-amber-dim) 0%, transparent 100%);
    opacity: 0.3;
}

.log-entry:hover {
    border-left-color: var(--text-amber-bright);
    background-color: var(--bg-tertiary);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.log-entry .timestamp {
    color: var(--text-cyan);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.log-entry .log-title {
    color: var(--text-amber-bright);
    font-weight: 700;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.log-title .contact-link {
    font-size: 1.05rem;
}

.log-entry .log-content {
    margin-top: 0.75rem;
    padding-left: 1.5ch;
}

.log-entry .log-content div {
    color: var(--text-amber);
    margin-bottom: 0.35rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5ch;
}

.log-entry .log-content div::before {
    content: '└─>';
    position: absolute;
    left: -1.5ch;
    color: var(--text-amber-dim);
    font-size: 0.85rem;
}

/* ===== Contact Section ===== */
.contact-line {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.contact-line:hover {
    border-left-color: var(--text-cyan);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.contact-label {
    color: var(--text-cyan);
    display: inline-block;
    min-width: 100px;
    font-weight: 700;
}

.contact-value {
    color: var(--text-amber);
}

.contact-link {
    color: var(--text-amber);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-amber-dim);
    transition: all var(--transition-fast);
    padding: 0.1rem 0;
    font-size: inherit;
}

.contact-link:hover {
    color: var(--bg-primary);
    background-color: var(--text-amber);
    border-bottom-color: var(--text-amber);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    text-decoration: none;
}

.spacer-text {
    height: 0.5rem;
}

.typewriter-spacer {
    height: 0.75rem;
}

.hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== Interactive Section ===== */
.section.interactive {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-subtle);
    position: relative;
}

.section.interactive .section-label {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: var(--bg-primary);
    padding: 0 0.75rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 1px;
    z-index: 10;
}

.input-wrapper {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.input-wrapper:focus-within {
    outline: none;
}

.input-cursor {
    outline: none;
    color: var(--text-white);
    caret-color: transparent;
    display: inline;
    margin-left: 0;
    min-width: 1px;
}

.cursor {
    display: inline;
    color: var(--text-amber);
    animation: blink 1s step-end infinite;
    margin-left: 0;
    font-weight: 700;
}

#command-output {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-left: 3px solid var(--text-cyan);
    border-radius: 0 4px 4px 0;
    white-space: pre-wrap;
    font-family: var(--font-mono);
    line-height: 1.6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 500;
    min-height: 50px;
}

#command-output.hidden {
    display: none !important;
}

#command-output:not(.hidden) {
    display: block !important;
}

#command-output.error {
    border-left-color: var(--error);
    background: linear-gradient(90deg, rgba(255, 68, 68, 0.05) 0%, var(--bg-secondary) 100%);
}

#command-output .section-title {
    color: var(--text-cyan);
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

#command-output .cmd-name {
    color: var(--text-amber-bright);
    font-weight: 700;
}

#command-output .cmd-desc {
    color: var(--text-dim);
}

#command-output strong {
    font-weight: 700;
    color: var(--text-amber-bright);
}

/* ===== Neofetch Styles ===== */
.neofetch-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.neofetch-ascii {
    font-size: 0.65rem;
    line-height: 1;
    color: var(--text-amber);
    flex-shrink: 0;
    user-select: none;
    white-space: pre;
}

.neofetch-info {
    line-height: 1;
    flex: 1;
}

.neofetch-info strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-amber-bright);
    font-size: 1.1rem;
}

.neofetch-line {
    display: block;
    margin: 0;
    padding: 0.05rem 0;
}

.neofetch-label {
    display: inline-block;
    width: 110px;
    color: var(--text-amber-bright);
    font-weight: 700;
}

.neofetch-value {
    color: var(--text-dim);
}

.neofetch-separator {
    color: var(--text-amber-dim);
    display: block;
    margin: 0.1rem 0;
}

@media (max-width: 768px) {
    .neofetch-container {
        flex-direction: row;
        gap: 1rem;
    }

    .neofetch-ascii {
        font-size: 0.45rem;
    }
}

/* ===== Footer ===== */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-subtle);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--text-amber-dim) 50%, transparent 100%);
}

.footer-line {
    margin-bottom: 0.5rem;
}

.dim {
    color: var(--text-dimmer);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px var(--text-amber-glow); }
    50% { box-shadow: 0 0 20px var(--text-amber-glow), 0 0 30px var(--text-amber-glow); }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--text-amber-dim) 0%, var(--text-dim) 100%);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--text-amber) 0%, var(--text-amber-dim) 100%);
}

/* ===== Selection ===== */
::selection {
    background-color: var(--text-amber);
    color: var(--bg-primary);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .terminal {
        padding: 1rem;
    }
    
    .frc-ascii {
        font-size: 0.60rem;
        line-height: 1;
    }
    
    .hero-name {
        font-size: 1.4rem;
    }

    .file-entry {
        display: grid;
        grid-template-columns: 85px 90px 80px 1fr;
        gap: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .file-entry .permissions {
        font-size: 0.7rem;
    }
    
    .file-entry .filename {
        font-size: 0.85rem;
    }
    
    .file-entry .progress-bar {
        width: 80px;
        height: 8px;
    }
    
    .file-entry .level {
        font-size: 0.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .contact-line {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 0.5rem;
    }
    
    .contact-label {
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .contact-link,
    .contact-value {
        font-size: 0.85rem;
    }
    
    .boot-content {
        padding: 1rem;
    }
    
    .methodology-block,
    .formation-block {
        padding: 0.75rem;
    }
    
    .log-entry {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .command-line {
        font-size: 0.9rem;
    }
    
    .frc-ascii {
        font-size: 0.60rem;
    }
    
    .file-entry {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .file-entry .permissions {
        font-size: 0.75rem;
        color: var(--text-dimmer);
    }
    
    .file-entry .progress-bar {
        width: 100%;
        max-width: 150px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .boot-screen,
    .section.interactive,
    .footer,
    .lang-toggle {
        display: none !important;
    }
    
    body::before {
        display: none;
    }
    
    .terminal {
        padding: 1rem;
        animation: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section::before,
    .section.active::before {
        display: none;
    }
}
