/* ===========================
   MODERN RETRO TERMINAL PORTFOLIO
   Backend Engineer Theme
   =========================== */

/* CSS Variables for Easy Customization */
:root {
    /* Forest Green Palette — anchor: #1a560f */
    --bg-primary:   #080e08;
    --bg-secondary: #0f1a0f;
    --bg-terminal:  #0b110b;
    --accent-cyan:  #3dba2f;   /* primary accent — replaces teal */
    --accent-green: #2a7a20;   /* dim/secondary accent */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-dim: #6b7280;

    /* Terminal Colors */
    --terminal-border:  #1e3a1a;
    --terminal-shadow:  rgba(61, 186, 47, 0.20);
    --scanline-color:   rgba(61, 186, 47, 0.04);

    /* Fonts */
    --font-main: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
}

/* ===========================
   BASE STYLES
   =========================== */

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

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #090d09 50%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===========================
   CRT SCREEN EFFECTS (Optimized)
   =========================== */

/* Scanline Effect - Static (no animation) */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        var(--scanline-color) 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* CRT Overlay - Subtle Screen Curve Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
}

/* Subtle Glow - Static (no animation) */
.terminal-glow {
    box-shadow: 0 0 10px var(--terminal-shadow),
                0 0 20px var(--terminal-shadow);
}

/* ===========================
   TERMINAL CONTAINER
   =========================== */

.terminal-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===========================
   TERMINAL HEADER
   =========================== */

.terminal-header {
    background: var(--bg-terminal);
    border: 2px solid var(--terminal-border);
    border-bottom: 1px solid var(--terminal-border);
    border-radius: 12px 12px 0 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.control-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.control-dot.red {
    background: #ff5f56;
    box-shadow: 0 0 5px #ff5f56;
}

.control-dot.yellow {
    background: #ffbd2e;
    box-shadow: 0 0 5px #ffbd2e;
}

.control-dot.green {
    background: #27c93f;
    box-shadow: 0 0 5px #27c93f;
}

.terminal-title {
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===========================
   PROFILE SECTION
   =========================== */

header {
    background: var(--bg-terminal);
    border: 2px solid var(--terminal-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 10px var(--terminal-shadow);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px var(--terminal-shadow),
                0 0 60px rgba(61, 186, 47, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 40px var(--terminal-shadow),
                0 0 80px rgba(61, 186, 47, 0.4);
}

.profile-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.profile-name {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

/* .section-icon removed — replaced by output-header left border */

.title-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* ===========================
   SOCIAL MEDIA BUTTONS
   =========================== */

.social-media-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-media-button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.social-media-button:hover {
    filter: brightness(1.2) drop-shadow(0 0 10px var(--accent-cyan));
    transform: scale(1.15) translateY(-3px);
}

/* ===========================
   TERMINAL NAVIGATION
   =========================== */

.terminal-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--terminal-border);
}

.nav-btn {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--text-primary);
    border: 2px solid var(--terminal-border);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.05em;
    min-width: 110px;
    font-family: var(--font-main);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(61, 186, 47, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 186, 47, 0.3);
}

.nav-btn.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(61, 186, 47, 0.15);
}

/* ===========================
   CONTENT CONTAINER
   =========================== */

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

.content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content.active {
    display: block;
}

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

/* ===========================
   TERMINAL OUTPUT STYLING
   =========================== */

.terminal-output {
    background: var(--bg-terminal);
    border: 2px solid var(--terminal-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.output-header {
    color: var(--accent-cyan);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-left: 14px;
    border-bottom: 1px solid var(--terminal-border);
    border-left: 3px solid var(--accent-cyan);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.output-content {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.8;
}

.output-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

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

/* Skill Legend */
.skill-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--terminal-border);
    border-radius: 8px;
    margin-bottom: 28px;
}

.legend-comment {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(107, 114, 128, 0.8);
    white-space: nowrap;
    margin-right: 4px;
}

.legend-tiers {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.legend-tier {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-desc {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Segoe UI', sans-serif;
}

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

.skill-category {
    background: rgba(31, 41, 55, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--terminal-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(61, 186, 47, 0.35);
    box-shadow: 0 6px 24px rgba(61, 186, 47, 0.08);
}

.skill-category h3 {
    color: var(--accent-cyan);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--terminal-border);
}

/* .folder-icon removed — replaced by skill-category h3::before */
.skill-category h3::before {
    content: '▸';
    color: var(--accent-green);
    margin-right: 8px;
    font-size: 13px;
}

.output-content h4::before {
    content: '— ';
    color: var(--accent-green);
    font-weight: 400;
}

/* Skill rows */
.skill-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.skill-name {
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    flex: 1;
    min-width: 0;
}

/* Tier badges */
.skill-tier {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    flex-shrink: 0;
}

.tier-familiar {
    color: rgba(156, 163, 175, 0.85);
    background: rgba(107, 114, 128, 0.12);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tier-proficient {
    color: rgba(139, 148, 255, 0.95);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.tier-advanced {
    color: rgba(61, 186, 47, 0.85);
    background: rgba(61, 186, 47, 0.08);
    border: 1px solid rgba(61, 186, 47, 0.3);
}

.tier-expert {
    color: #3dba2f;
    background: rgba(61, 186, 47, 0.15);
    border: 1px solid rgba(61, 186, 47, 0.6);
    box-shadow: 0 0 8px rgba(61, 186, 47, 0.2);
    animation: expert-pulse 3s ease-in-out infinite;
}

@keyframes expert-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(61, 186, 47, 0.2); }
    50%       { box-shadow: 0 0 12px rgba(61, 186, 47, 0.45); }
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid var(--terminal-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-card::after {
    content: 'Click to view on GitHub →';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(61, 186, 47, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--terminal-border);
}

.project-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(61, 186, 47, 0.3));
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(5deg);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--accent-cyan);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.7;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

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

.tech-tag {
    background: rgba(61, 186, 47, 0.1);
    color: var(--accent-cyan);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(61, 186, 47, 0.3);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: rgba(61, 186, 47, 0.2);
    border-color: var(--accent-cyan);
}

/* Screenshots Gallery */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.screenshot-wide {
    grid-column: 1 / -1;
}

.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--terminal-border);
    background: rgba(31, 41, 55, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(61, 186, 47, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.screenshot-caption {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
    border-top: 1px solid var(--terminal-border);
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
    }
    .screenshot-wide {
        grid-column: 1;
    }
}

/* Game Era Divider */
.game-era-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
}

.game-era-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
}

.game-era-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.07);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    white-space: nowrap;
}

/* .game-era-icon removed — decorative flanking icons stripped */

.game-era-text {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(168, 85, 247, 0.75);
    letter-spacing: 0.5px;
}

.game-era-text strong {
    color: rgba(192, 132, 252, 0.95);
}

.era-comment {
    color: rgba(107, 114, 128, 0.9);
    margin-right: 6px;
}

/* Game Dev project cards — subtle purple tint to differentiate from current work */
.game-dev-card {
    opacity: 0.82;
    border-color: rgba(168, 85, 247, 0.25);
}

.game-dev-card:hover {
    opacity: 1;
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.game-dev-card::after {
    content: 'Click to view on GitHub →';
}

.tech-tag.game-tag {
    background: rgba(168, 85, 247, 0.1);
    color: rgba(192, 132, 252, 0.9);
    border-color: rgba(168, 85, 247, 0.3);
}

.tech-tag.game-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
}

.more-projects-notice {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: rgba(31, 41, 55, 0.3);
    border-radius: 8px;
    border: 1px dashed var(--terminal-border);
}

.more-projects-notice p {
    color: var(--text-dim);
    font-size: 14px;
    font-style: italic;
}

/* ===========================
   CAREER/RESUME SECTION
   =========================== */

.resume-section {
    text-align: center;
    padding: 40px 20px;
}

.resume-text {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.download-cv-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-terminal);
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 5px 20px rgba(61, 186, 47, 0.4);
}

.download-cv-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(61, 186, 47, 0.6);
}

/* .btn-icon removed — nav buttons are text-only */

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

.terminal-footer {
    background: var(--bg-terminal);
    border: 2px solid var(--terminal-border);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 1400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.terminal-footer p {
    color: var(--text-dim);
    font-size: 14px;
    margin: 5px 0;
}

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

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

@media (max-width: 768px) {
    .terminal-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    header {
        padding: 25px 20px;
    }

    .profile-section {
        flex-direction: column;
        gap: 25px;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .typing-text {
        font-size: 24px;
    }

    .profile-info h1 {
        font-size: 22px;
    }

    .terminal-nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        width: 100%;
    }

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

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

    .terminal-output {
        padding: 20px;
    }

    .output-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: 20px;
        animation: none;
        border-right: none;
        white-space: normal;
        width: 100%;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .social-media-button {
        width: 35px;
        height: 35px;
    }

    .project-image {
        height: 160px;
    }

    .project-image img {
        width: 90px;
        height: 90px;
    }
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: rgba(31, 41, 55, 0.6);
    border: 2px solid var(--terminal-border);
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(61, 186, 47, 0.3);
}

.service-icon {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-green);
    font-family: var(--font-main);
    margin-bottom: 20px;
    padding: 5px 10px;
    border: 1px solid var(--terminal-border);
    border-radius: 4px;
    display: inline-block;
}

.service-card h3 {
    color: var(--accent-cyan);
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-tagline {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    font-style: italic;
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 20px 0;
    padding: 0;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.service-cta {
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 20px;
    font-size: 16px;
}

.contact-prompt {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(61, 186, 47, 0.05);
    border-radius: 8px;
    border: 1px solid var(--terminal-border);
}

.contact-prompt p {
    font-size: 18px;
    margin: 0;
}

.inline-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

/* ===========================
   SERVICE DETAIL PAGES
   =========================== */

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--terminal-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-main);
    float: right;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.service-detail-heading {
    color: var(--accent-cyan);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.output-content h4 {
    color: var(--accent-green);
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-includes {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.include-item {
    background: rgba(31, 41, 55, 0.4);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.include-item strong {
    color: var(--accent-cyan);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.include-item p {
    margin: 0;
    font-size: 14px;
}

.process-list {
    list-style: none;
    counter-reset: process-counter;
    padding: 0;
}

.process-list li {
    counter-increment: process-counter;
    padding: 15px 0 15px 50px;
    position: relative;
    color: var(--text-secondary);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.process-list li::before {
    content: counter(process-counter);
    position: absolute;
    left: 0;
    top: 12px;
    width: 35px;
    height: 35px;
    background: var(--accent-cyan);
    color: var(--bg-terminal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.use-cases {
    list-style: none;
    padding: 0;
}

.use-cases li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-secondary);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.use-cases li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 18px;
}

.capabilities-list {
    list-style: none;
    padding: 0;
}

.capabilities-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.tech-stack-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tech-badge {
    background: rgba(61, 186, 47, 0.1);
    color: var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid rgba(61, 186, 47, 0.3);
    font-weight: 500;
}

.cta-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(61, 186, 47, 0.05);
    border-radius: 8px;
}

.primary-cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-terminal);
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: 0 5px 20px rgba(61, 186, 47, 0.4);
    transition: all 0.3s ease;
}

.primary-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(61, 186, 47, 0.6);
}

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

.contact-section {
    max-width: 900px;
    margin: 0 auto;
}

.contact-heading {
    color: var(--accent-cyan);
    font-size: 28px;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-intro {
    text-align: center;
    font-size: 17px;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.contact-method {
    background: rgba(31, 41, 55, 0.4);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--terminal-border);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.contact-brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

svg.contact-brand-icon {
    color: var(--accent-green);
    stroke: var(--accent-green);
}

.contact-method:hover .contact-brand-icon {
    opacity: 1;
    transform: scale(1.08);
}

.contact-info h4 {
    color: var(--accent-cyan);
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.contact-link {
    color: var(--accent-green);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.contact-note {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.response-time {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.response-time p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 15px;
}

.contact-cta {
    text-align: center;
    margin-top: 40px;
    padding: 35px;
    background: rgba(61, 186, 47, 0.05);
    border-radius: 12px;
    border: 2px solid var(--accent-cyan);
}

.contact-cta h4 {
    color: var(--accent-cyan);
    font-size: 22px;
    margin: 0 0 15px 0;
}

.contact-cta p {
    font-size: 16px;
    margin-bottom: 25px;
}

.primary-cta-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-terminal);
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(61, 186, 47, 0.4);
    transition: all 0.3s ease;
}

.primary-cta-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(61, 186, 47, 0.6);
}

/* ===========================
   ACCESSIBILITY
   =========================== */

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

/* Focus States for Keyboard Navigation */
button:focus,
a:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Selection Styling */
::selection {
    background: var(--accent-cyan);
    color: var(--bg-terminal);
}

::-moz-selection {
    background: var(--accent-cyan);
    color: var(--bg-terminal);
}

/* ===========================
   DETAIL CARDS & SYSLENS
   =========================== */

/* Cards that navigate to a detail page rather than GitHub */
.project-card.detail-card::after {
    content: 'Click to view details →';
}

/* SysLens SVG icon — CSS filter tints it to match the green accent */
.syslens-card-image img {
    filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(500%) hue-rotate(78deg) brightness(115%);
    width: 80px;
    height: 80px;
}
