/* ============================================
   JoeCyberTech - Cybersecurity Arsenal
   Professional Dark Theme Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1420;
    --bg-card: #141925;
    --bg-card-hover: #1a2030;
    --bg-glass: rgba(20, 25, 37, 0.7);
    --text-primary: #e4e8f1;
    --text-secondary: #8892a8;
    --text-muted: #5a6478;
    --accent: #00f0ff;
    --accent-dim: rgba(0, 240, 255, 0.15);
    --accent-glow: rgba(0, 240, 255, 0.4);
    --accent2: #7b61ff;
    --accent2-dim: rgba(123, 97, 255, 0.15);
    --accent3: #ff3e6c;
    --success: #00e676;
    --warning: #ffab00;
    --danger: #ff3e6c;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 240, 255, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.1);
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;

    /* Severity Colors */
    --severity-critical: #ff1744;
    --severity-high: #ff6d00;
    --severity-medium: #ffab00;
    --severity-low: #00e676;
    --severity-info: #448aff;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #e4e7ec;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1d26;
    --text-secondary: #5a6478;
    --text-muted: #8892a8;
    --accent: #0077cc;
    --accent-dim: rgba(0, 119, 204, 0.1);
    --accent-glow: rgba(0, 119, 204, 0.2);
    --border: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 119, 204, 0.2);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 119, 204, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

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

/* --- Cyber Grid Background --- */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

[data-theme="light"] .cyber-grid {
    opacity: 0.15;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
}

[data-theme="light"] #matrixCanvas {
    opacity: 0.02;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(240, 242, 245, 0.9);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    letter-spacing: -0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-toggle,
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: var(--font-mono);
}

.lang-toggle {
    width: auto;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.lang-toggle:hover,
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

#langLabel {
    color: var(--accent);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title .line1,
.hero-title .line2,
.hero-title .line3 {
    display: block;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    line-height: 1;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #00b8d4);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* Hero Terminal */
.hero-visual {
    flex: 1;
    max-width: 560px;
}

.terminal-window {
    background: #0c1018;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), var(--shadow-glow);
}

[data-theme="light"] .terminal-window {
    background: #1a1d26;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

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

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

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

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 1.2rem;
    min-height: 320px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: #a8b4c8;
}

.terminal-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.prompt {
    color: var(--accent);
    font-weight: 600;
    user-select: none;
}

.command {
    color: #e4e8f1;
}

.output {
    color: var(--text-muted);
    padding-left: 1.2rem;
}

.output.success {
    color: var(--success);
}

.output.accent-text {
    color: var(--accent);
}

.output.warning-text {
    color: var(--warning);
}

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

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

/* --- Sections --- */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.about-card {
    padding: 2rem;
    text-align: center;
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.skill-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tool-tag {
    padding: 0.4rem 0.9rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    font-family: var(--font-mono);
    transition: var(--transition);
}

.tool-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* --- Arsenal Section --- */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.search-bar {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.arsenal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.2rem;
}

/* Arsenal Card */
.arsenal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.arsenal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent, var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.arsenal-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.arsenal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.arsenal-card-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.arsenal-card-severity {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.severity-critical {
    background: rgba(255, 23, 68, 0.15);
    color: var(--severity-critical);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.severity-high {
    background: rgba(255, 109, 0, 0.15);
    color: var(--severity-high);
    border: 1px solid rgba(255, 109, 0, 0.3);
}

.severity-medium {
    background: rgba(255, 171, 0, 0.15);
    color: var(--severity-medium);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

.severity-low {
    background: rgba(0, 230, 118, 0.15);
    color: var(--severity-low);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.severity-info {
    background: rgba(68, 138, 255, 0.15);
    color: var(--severity-info);
    border: 1px solid rgba(68, 138, 255, 0.3);
}

.arsenal-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.arsenal-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.arsenal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.arsenal-tag {
    padding: 0.2rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.arsenal-card-arrow {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

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

.modal-severity {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 1.5rem 0 0.8rem;
    font-family: var(--font-mono);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.modal-body ul {
    list-style: none;
    margin-bottom: 1rem;
}

.modal-body ul li {
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}

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

/* Code Blocks in Modal */
.payload-block {
    background: #0c1018;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
    overflow-x: auto;
    position: relative;
}

[data-theme="light"] .payload-block {
    background: #1a1d26;
}

.payload-block code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: #a8b4c8;
    white-space: pre;
}

.payload-block .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition);
}

.payload-block .copy-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.payload-block .copy-btn.copied {
    background: var(--success);
    color: var(--bg-primary);
    border-color: var(--success);
}

/* --- Methodology --- */
.methodology-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.methodology-timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-num {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
    z-index: 1;
    box-shadow: 0 0 20px var(--accent-dim);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tools span {
    padding: 0.3rem 0.7rem;
    background: var(--accent-dim);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* --- Disclaimer --- */
.disclaimer-section {
    padding: 3rem 2rem;
}

.disclaimer-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-color: rgba(255, 171, 0, 0.2);
    background: rgba(255, 171, 0, 0.03);
}

.disclaimer-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.disclaimer-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--warning);
    margin-bottom: 0.8rem;
}

.disclaimer-box p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Contact --- */
.contact-grid {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.contact-link-icon {
    font-size: 1.2rem;
}

/* --- Footer --- */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.4);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--nav-height) + 3rem);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .modal {
        margin: 1rem;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0.8rem;
    }

    .filter-bar {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .terminal-window {
        font-size: 0.72rem;
    }

    .terminal-body {
        min-height: 220px;
        padding: 0.8rem;
        font-size: 0.72rem;
    }

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

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .payload-block {
        padding: 0.8rem;
    }

    .payload-block code {
        font-size: 0.7rem;
    }

    .timeline-num {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .stat-num {
        font-size: 1.8rem;
    }

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

    .methodology-timeline::before {
        left: 22px;
    }
}

/* Very small screens (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .nav-logo .logo-text {
        font-size: 1rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        text-align: center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .arsenal-card {
        -webkit-tap-highlight-color: transparent;
    }

    .arsenal-card:active {
        background: var(--bg-card-hover);
        border-color: var(--border-accent);
        transform: scale(0.98);
    }

    .btn:active {
        transform: scale(0.97);
    }

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

    .tool-tag:active {
        background: var(--accent);
        color: var(--bg-primary);
    }

    .filter-btn:active {
        background: var(--accent);
        color: var(--bg-primary);
    }

    /* Bigger touch targets */
    .nav-link {
        padding: 0.7rem 1.2rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        min-height: 44px;
    }

    .modal-close {
        width: 44px;
        height: 44px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
    }

    /* Disable hover effects on touch */
    .arsenal-card:hover {
        transform: none;
    }

    .glass-card:hover {
        background: var(--bg-card);
        border-color: var(--border);
        box-shadow: none;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading skeleton for cards */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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