/* ============================================================
   André Pinho — Portfolio CSS
   Theme: Cyber/Infra Dark Terminal
   ============================================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f1117;
    --bg-tertiary: #161b22;
    --bg-card: #111318;
    --bg-hover: #1c2128;
    
    --accent-green: #00ff41;
    --accent-green-dim: #00cc33;
    --accent-cyan: #00f0ff;
    --accent-purple: #b026ff;
    --accent-purple-dim: #7c3aed;
    --accent-yellow: #f0e100;
    --accent-red: #ff4d4d;
    --accent-orange: #ff9500;
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-inverse: #0a0a0f;
    
    --font-mono: 'Fira Code', 'Consolas', 'Monaco', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow-green: 0 0 20px rgba(0, 255, 65, 0.15);
    --shadow-glow-purple: 0 0 20px rgba(176, 38, 255, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green-dim) var(--bg-secondary);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-green-dim);
    border-radius: 4px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure images and containers don't overflow */
img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
}

/* Break long words */
.project-desc, .timeline-desc, .about-text p, .contact-desc, .modal-section p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    background: rgba(0, 255, 65, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-top: 12px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo-prompt {
    color: var(--accent-green);
}

.nav-logo-cursor {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--accent-green);
    background: rgba(0, 255, 65, 0.08);
}

.nav-link .cmd {
    color: var(--accent-green);
    opacity: 0.7;
}

.nav-cta {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--accent-green);
    gap: 8px;
}

.nav-cta:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: var(--shadow-glow-green);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 32px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-sub {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--accent-green);
    margin-top: 12px;
}

.bracket {
    color: var(--text-muted);
}

.cursor {
    color: var(--accent-green);
    animation: blink 1s step-end infinite;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-green-dim);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: var(--shadow-glow-green);
}

.btn-icon {
    font-weight: 700;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Terminal */
.terminal-wrapper {
    flex: 1;
    max-width: 520px;
    width: 100%;
}

.terminal {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 255, 65, 0.15);
    overflow: hidden;
    box-shadow: var(--shadow-glow-green), var(--shadow);
    transition: var(--transition);
}

.terminal:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.2), var(--shadow);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    gap: 12px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-tab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(0, 255, 65, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    min-height: 280px;
}

.terminal-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.terminal-prompt {
    color: var(--accent-green);
    font-weight: 600;
    white-space: nowrap;
}

.terminal-cmd {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 0;
    word-break: break-word;
}

.terminal-output.spaced {
    line-height: 2;
}

.term-accent {
    color: var(--accent-cyan);
    font-weight: 600;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.highlight {
    color: var(--accent-green);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Code Block */
.code-block {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 255, 65, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-key {
    color: var(--accent-purple);
}

.code-str {
    color: var(--accent-green);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-4px);
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-cat-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 255, 65, 0.15);
    color: var(--accent-green);
    border-color: rgba(0, 255, 65, 0.4);
    transform: scale(1.05);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    border-color: rgba(0, 255, 65, 0.25);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-6px);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
}

.project-badge.private {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.project-badge.public {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border-radius: 4px;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.project-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 1px solid;
}

.project-btn-primary {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 255, 65, 0.3);
}

.project-btn-primary:hover {
    background: rgba(0, 255, 65, 0.2);
}

.project-btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border-color: rgba(110, 118, 129, 0.3);
}

.project-btn-secondary:hover {
    color: var(--text-secondary);
    border-color: rgba(110, 118, 129, 0.5);
}

/* Experience / Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-purple));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: rgba(0, 255, 65, 0.2);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(0, 255, 65, 0.06);
    color: var(--text-secondary);
    border-radius: 100px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: var(--shadow-glow-green);
    transform: translateX(4px);
}

.contact-link-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    color: var(--accent-green);
}

.contact-link-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-link-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-terminal-box {
    height: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow-green), 0 25px 50px rgba(0,0,0,0.5);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent-red);
    background: rgba(255, 77, 77, 0.1);
}

.modal-header {
    padding: 32px 32px 0;
}

.modal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
    font-weight: 600;
}

.modal-badge.private {
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.modal-body {
    padding: 24px 32px;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    color: var(--accent-green);
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-stack span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 100px;
}

.modal-highlights {
    list-style: none;
    padding: 0;
}

.modal-highlights li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.modal-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-meta-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 110px;
}

.meta-value {
    color: var(--text-secondary);
}

.meta-value.link {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.meta-value.link:hover {
    color: var(--accent-green);
}

.modal-footer {
    padding: 0 32px 32px;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-prompt {
    color: var(--accent-green);
}

.footer-cmd {
    color: var(--text-muted);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.heart {
    color: var(--accent-red);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-green);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 100px 20px 60px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .terminal-wrapper {
        max-width: 100%;
        width: 100%;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .skill-category {
        padding: 20px;
    }
    .code-block {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
        z-index: 999;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 20px;
    }
    .project-header {
        margin-bottom: 12px;
    }
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    .project-title {
        font-size: 1.05rem;
    }
    .project-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 4;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-marker {
        left: -24px;
        width: 12px;
        height: 12px;
    }
    .timeline-content {
        padding: 20px;
    }
    .section {
        padding: 48px 0;
    }
    .section-header {
        margin-bottom: 40px;
        padding: 0 16px;
    }
    .container {
        padding: 0 16px;
    }
    .modal {
        padding: 12px;
        align-items: flex-start;
    }
    .modal-content {
        max-height: 95vh;
        border-radius: var(--radius-sm);
    }
    .modal-header {
        padding: 20px 20px 0;
    }
    .modal-body {
        padding: 16px 20px;
    }
    .modal-footer {
        padding: 0 20px 20px;
    }
    .modal-title {
        font-size: 1.35rem;
    }
    .modal-section h4 {
        font-size: 0.85rem;
    }
    .modal-meta-item {
        flex-direction: column;
        gap: 2px;
    }
    .meta-label {
        min-width: auto;
    }
    .contact-link {
        padding: 12px;
        gap: 12px;
    }
    .contact-link-value {
        font-size: 0.8rem;
        word-break: break-all;
    }
    .contact-terminal-box .terminal-body {
        font-size: 0.75rem;
        padding: 14px;
    }
    .stat-card {
        padding: 18px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .footer {
        padding: 40px 0;
    }
    .footer-brand {
        font-size: 0.95rem;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 48px;
        gap: 28px;
    }
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    .hero-title-sub {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 20px;
    }
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .terminal {
        border-radius: var(--radius-sm);
    }
    .terminal-header {
        padding: 10px 12px;
    }
    .terminal-title {
        font-size: 0.7rem;
    }
    .terminal-tab {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    .terminal-body {
        padding: 12px;
        font-size: 0.72rem;
        line-height: 1.6;
        min-height: auto;
    }
    .terminal-output {
        margin-bottom: 10px;
        font-size: 0.7rem;
    }
    .terminal-line {
        gap: 4px;
    }
    .terminal-prompt {
        font-size: 0.7rem;
    }
    .terminal-cmd {
        font-size: 0.7rem;
    }
    .section-tag {
        font-size: 0.75rem;
    }
    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .about-lead {
        font-size: 1.05rem;
    }
    .about-text p {
        font-size: 0.9rem;
    }
    .code-content {
        padding: 14px;
        font-size: 0.75rem;
    }
    .skill-cat-header h3 {
        font-size: 0.95rem;
    }
    .skill-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    .timeline-role {
        font-size: 1.05rem;
    }
    .timeline-company {
        font-size: 0.85rem;
    }
    .timeline-desc {
        font-size: 0.85rem;
    }
    .timeline-tags span {
        font-size: 0.7rem;
    }
    .contact-title {
        font-size: 1.35rem;
    }
    .contact-desc {
        font-size: 0.9rem;
    }
    .contact-link-icon {
        font-size: 1.25rem;
        width: 32px;
    }
    .contact-link-label {
        font-size: 0.7rem;
    }
}

/* Print */
@media print {
    #bg-canvas,
    .nav,
    .hero-actions,
    .modal {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
