/* ============================================
   BRUTALIST TERMINAL - Portfolio Styles
   ============================================ */

:root {
    /* Typography - Monospace dominant for brutalist feel */
    --font-display: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    /* Modular spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Brutalist borders */
    --border-width: 2px;
    --border-thick: 3px;

    /* Motion - Playful bouncy easing */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;

    /* Light theme - Paper brutalist */
    --bg: #f5f5f0;
    --bg-alt: #ffffff;
    --bg-soft: #ebebeb;
    --surface: #ffffff;
    --border: #0a0a0a;
    --border-muted: #d4d4d4;
    --text: #0a0a0a;
    --text-muted: #525252;
    --text-light: #737373;
    --accent: #ff3d00;
    --accent-hover: #ff6d00;
    --accent-subtle: rgba(255, 61, 0, 0.08);
    --shadow-color: #0a0a0a;
    --nav-bg: rgba(245, 245, 240, 0.95);
    --card-bg: #ffffff;
    --card-hover-bg: #fafafa;
    --noise-opacity: 0.03;
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #141414;
    --bg-soft: #1a1a1a;
    --surface: #141414;
    --border: #e5e5e5;
    --border-muted: #404040;
    --text: #f5f5f0;
    --text-muted: #a3a3a3;
    --text-light: #d4d4d4;
    --accent: #00ff88;
    --accent-hover: #00ffaa;
    --accent-subtle: rgba(0, 255, 136, 0.1);
    --shadow-color: #000000;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --card-bg: #141414;
    --card-hover-bg: #1a1a1a;
    --noise-opacity: 0.04;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--duration-normal) var(--ease-out-expo),
                color var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Links - Brutalist underline animation */
a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: color var(--duration-fast) var(--ease-out-expo);
}

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

a:not(.btn):not(.nav-link):not(.brand):not(.contact-card):not(.project-link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--duration-normal) var(--ease-bounce);
}

a:not(.btn):not(.nav-link):not(.brand):not(.contact-card):not(.project-link):hover::after {
    width: 100%;
}

/* ============================================
   LAYOUT
   ============================================ */

.section {
    padding: var(--space-xl) var(--space-md);
    display: flex;
    justify-content: center;
    position: relative;
}

/* Brutalist section dividers */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: var(--border-width);
    background: var(--border);
    opacity: 0.15;
}

.section:first-of-type::before {
    display: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION - Brutalist Style
   ============================================ */

.terminal-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-thick) solid var(--border);
    z-index: 1000;
    transition: background var(--duration-normal) var(--ease-out-expo);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.brand {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all var(--duration-fast) var(--ease-bounce);
}

.brand:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    position: relative;
    transition: all var(--duration-fast) var(--ease-bounce);
    border: var(--border-width) solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: var(--border-width);
    background: var(--accent);
    transform: translateX(-50%);
    transition: width var(--duration-normal) var(--ease-bounce);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--accent);
    border-color: var(--accent);
}

.nav-link.active::before {
    width: 0;
}

.nav-link.external {
    color: var(--accent);
    border: var(--border-width) solid var(--accent);
}

.nav-link.external:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Nav right container */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Theme toggle - Brutalist */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: var(--border-width) solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-bounce);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: rotate(15deg) scale(1.05);
}

.theme-toggle:active {
    transform: rotate(-15deg) scale(0.95);
}

.theme-icon {
    position: absolute;
    font-size: 1.2rem;
    transition: all var(--duration-normal) var(--ease-bounce);
}

.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--accent);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    color: var(--text-muted);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: var(--border-width) solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-bounce);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all var(--duration-normal) var(--ease-bounce);
    transform-origin: center;
}

.nav-toggle:hover {
    border-color: var(--accent);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   TERMINAL WINDOW - Brutalist
   ============================================ */

.terminal-window {
    background: var(--card-bg);
    border: var(--border-thick) solid var(--border);
    box-shadow: 8px 8px 0 var(--shadow-color);
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-bounce),
                box-shadow var(--duration-normal) var(--ease-out-expo),
                background var(--duration-normal) var(--ease-out-expo);
}

.terminal-window:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--shadow-color);
}

/* Scroll reveal animation */
.terminal-window.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.terminal-window.reveal.from-left {
    transform: translateX(-40px);
}

.terminal-window.reveal.from-right {
    transform: translateX(40px);
}

.terminal-window.visible {
    opacity: 1;
    transform: translate(0, 0);
    transition: transform 0.8s var(--ease-bounce),
                opacity 0.6s var(--ease-out-expo);
}

.terminal-window.visible:hover {
    transform: translate(-4px, -4px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--bg);
}

[data-theme="dark"] .terminal-header {
    background: var(--border);
    color: var(--bg);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.amber { background: #ffbd2e; }
.terminal-dot.green { background: #28ca42; }

.terminal-title {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.terminal-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero::before {
    display: none;
}

.hero-terminal {
    width: 100%;
}

.hero-body {
    padding: 3rem;
}

.hero-prompt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-prompt::before {
    content: '$';
    font-weight: 700;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
    display: flex;
    align-items: baseline;
}

.cursor {
    display: inline-block;
    width: 0.5ch;
    height: 1em;
    background: var(--accent);
    margin-left: 0.25ch;
    animation: blink 1s step-end infinite;
}

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

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: var(--space-md) 0;
    max-width: 45ch;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: var(--space-lg);
}

/* ============================================
   BUTTONS - Brutalist with Bounce
   ============================================ */

.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border: var(--border-thick) solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all var(--duration-fast) var(--ease-bounce);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::after {
    display: none;
}

.btn:hover {
    transform: translate(-3px, -3px);
}

.btn:active {
    transform: translate(1px, 1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 6px 6px 0 var(--shadow-color);
}

.btn-primary:active {
    box-shadow: 2px 2px 0 var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.btn-secondary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 6px 6px 0 var(--shadow-color);
}

.btn-secondary:active {
    box-shadow: 2px 2px 0 var(--shadow-color);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */

.section-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 0 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-heading::before {
    content: '//';
    color: var(--accent);
    font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-body {
    display: grid;
    gap: var(--space-lg);
}

.about-narrative {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-narrative p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.lead-text {
    font-size: 1.2rem !important;
    color: var(--text) !important;
    font-weight: 500;
    border-left: var(--border-thick) solid var(--accent);
    padding-left: var(--space-md);
}

.about-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: var(--border-width) solid var(--border-muted);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text);
}

.meta-value a {
    color: var(--accent);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-body {
    gap: var(--space-md);
}

.skills-tiered {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.skill-tier {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.tier-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.tier-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-muted);
}

.tier-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    font-family: var(--font-mono);
    padding: 0.6rem 1rem;
    border: var(--border-width) solid var(--border-muted);
    background: var(--bg-alt);
    transition: all var(--duration-fast) var(--ease-bounce);
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.skill-tier.primary .skill-item {
    font-weight: 600;
    color: var(--text);
    border-color: var(--border);
}

.skill-tier.secondary .skill-item {
    color: var(--text-light);
}

.skill-tier.learning .skill-item {
    color: var(--text-muted);
    border-style: dashed;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio-body {
    display: grid;
    gap: var(--space-md);
}

.portfolio-entry {
    padding: var(--space-md);
    border: var(--border-width) solid var(--border-muted);
    background: var(--bg-alt);
    transition: all var(--duration-normal) var(--ease-bounce);
    position: relative;
}

.portfolio-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height var(--duration-normal) var(--ease-bounce);
}

.portfolio-entry:hover {
    border-color: var(--border);
    transform: translateX(8px);
}

.portfolio-entry:hover::before {
    height: 100%;
}

.project-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: var(--space-sm) 0;
}

.tech-stack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: var(--space-md) 0;
}

.tech-stack li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border-muted);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-fast) var(--ease-bounce);
}

.project-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.project-link::before {
    content: '> ';
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.project-link:hover::before {
    opacity: 1;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 160px;
    width: var(--border-width);
    height: 100%;
    background: var(--border-muted);
}

.experience-entry {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-lg);
    position: relative;
}

.experience-entry::before {
    content: '';
    position: absolute;
    left: 154px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bg);
    border: var(--border-thick) solid var(--accent);
    z-index: 1;
}

.experience-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
    padding-right: var(--space-lg);
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-left: var(--space-md);
}

.experience-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.experience-company {
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 500;
}

.experience-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-top: var(--space-xs);
}

.experience-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.experience-highlights li {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.experience-highlights li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-sm) var(--space-md);
    border: var(--border-width) solid var(--accent);
    background: var(--accent-subtle);
    width: fit-content;
}

.availability-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

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

.availability-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.method-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.method-link {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
}

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

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: var(--space-md);
    border: var(--border-width) solid var(--border-muted);
    background: var(--bg-alt);
    transition: all var(--duration-fast) var(--ease-bounce);
    text-decoration: none;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--shadow-color);
}

.contact-card::after {
    display: none;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 600;
}

.card-handle {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */

.terminal-footer {
    padding: var(--space-lg) var(--space-md);
    border-top: var(--border-thick) solid var(--border);
    background: var(--bg);
    transition: background var(--duration-normal),
                border-color var(--duration-normal);
}

.terminal-footer .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--duration-fast) var(--ease-bounce);
}

.footer-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.link-strip a + a::before {
    display: none;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
    transition: width 50ms linear;
}

/* ============================================
   UTILITY
   ============================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
    .terminal-body {
        padding: 2rem;
    }

    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .timeline::before {
        display: none;
    }

    .experience-entry {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .experience-entry::before {
        display: none;
    }

    .experience-period {
        text-align: left;
        padding-right: 0;
    }

    .experience-content {
        padding-left: 0;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        right: -100%;
        flex-direction: column;
        align-items: flex-start;
        background: var(--bg);
        width: 240px;
        height: calc(100vh - 64px);
        padding: 2rem 1.5rem;
        border-left: var(--border-thick) solid var(--border);
        transition: right var(--duration-normal) var(--ease-bounce);
        gap: 0.25rem;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        padding: 0.75rem 0;
        border: none;
        background: transparent;
        text-align: left;
        color: var(--text-muted);
        width: 100%;
    }

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

    .nav-link.active {
        color: var(--accent);
    }

    .nav-link.external {
        color: var(--text-muted);
        border: none;
        background: transparent;
    }

    .nav-link.external:hover {
        color: var(--accent);
    }

    .nav-link::before {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: var(--space-lg);
    }

    .hero-body {
        padding: 2rem;
    }

    .terminal-window {
        box-shadow: 6px 6px 0 var(--shadow-color);
    }

    .terminal-window:hover {
        transform: translate(-2px, -2px);
        box-shadow: 8px 8px 0 var(--shadow-color);
    }
}

@media (max-width: 640px) {
    .hero-name {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .terminal-body {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .about-meta {
        grid-template-columns: 1fr;
    }

    .terminal-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-md) var(--space-sm);
    }

    .terminal-body {
        padding: 1.25rem;
    }

    .terminal-header {
        padding: 0.75rem 1rem;
    }

    .terminal-dot {
        width: 10px;
        height: 10px;
    }

    .skill-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .portfolio-entry {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .terminal-window.reveal {
        opacity: 1;
        transform: none;
    }
}
