@import url('https://fonts.googleapis.com/css2?family=VT323&family=Space+Mono:wght@400;700&display=swap');

@font-face {
    font-family: 'IBM VGA';
    src: url('https://int10h.org/oldschool-pc-fonts/fontlist/font?WebPlus_IBM_VGA_8x16.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-black: #000000;
    --bg-dark: #0d0d0d;
    --bg-card: #111111;
    --text-white: #ffffff;
    --text-gray: #888888;
    --text-light: #cccccc;
    --accent-red: #ff0000;
    --accent-green: #00ff00;
    --border-white: #ffffff;
    --border-gray: #333333;
    --font-retro: 'VT323', 'IBM VGA', 'Courier New', monospace;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-retro);
    background: var(--bg-black);
    color: var(--text-white);
    line-height: 1.5;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* ===== Scanlines - subtle CRT effect ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* ASCII Circuit Background */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    font-family: 'VT323', monospace;
    font-size: 14px;
    line-height: 1.2;
    color: var(--circuit-color, #334);
    opacity: 1;
}

.circuit-node {
    position: absolute;
    white-space: pre;
    transition: opacity 1s ease;
    text-shadow: 0 0 5px var(--circuit-color, #334);
    opacity: 0.7;
}

.circuit-wire-char {
    position: absolute;
    transition: opacity 1s ease;
    opacity: 0.5;
}

.marquee-container {
    background: var(--text-white);
    color: var(--bg-black);
    padding: 12px 0;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--text-white);
}

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

.header {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-gray);
}

.nav {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav a:hover {
    border-bottom: 2px solid var(--text-white);
}

.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-gray);
}

.hero-ascii {
    font-size: 6px;
    line-height: 1.0;
    color: var(--text-gray);
    margin-bottom: 30px;
    opacity: 0.6;
    overflow-x: auto;
    position: relative;
    z-index: 10;
}

.hero-ascii-large {
    font-size: 16px;
    line-height: 1.1;
    color: var(--accent-green);
    opacity: 0.9;
}

.hero-ascii pre {
    display: inline-block;
    text-align: left;
}

.stats-row {
    display: inline-flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.stats-box-small {
    width: 120px;
    height: 180px;
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black);
    border: 1px solid var(--border-gray);
    box-sizing: border-box;
}

.stats-box-small .stat-label {
    font-size: 10px;
}

.stats-box-small .stat-value {
    font-size: 12px;
}

/* Glitch effect - more subtle */
.glitch {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: normal;
    letter-spacing: 15px;
    color: var(--text-white);
    text-transform: uppercase;
    position: relative;
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { text-shadow: 2px 0 var(--accent-red), -2px 0 cyan; }
    25% { text-shadow: -2px 0 var(--accent-red), 2px 0 cyan; }
    50% { text-shadow: 2px 2px var(--accent-red), -2px -2px cyan; }
    75% { text-shadow: -2px -2px var(--accent-red), 2px 2px cyan; }
    100% { text-shadow: 2px 0 var(--accent-red), -2px 0 cyan; }
}

.subtitle {
    font-size: 16px;
    color: var(--text-gray);
    letter-spacing: 8px;
    margin-top: 20px;
    text-transform: uppercase;
}

.blink {
    animation: blink 1s step-end infinite;
    font-size: 24px;
    color: var(--text-white);
}

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

.stats-box {
    margin-top: 50px;
    display: inline-flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 50px;
    border: 1px solid var(--border-gray);
}

.stat {
    text-align: left;
}

.stat-label {
    color: var(--text-gray);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stat-value {
    color: var(--text-white);
    font-size: 16px;
    display: block;
    margin-top: 5px;
    letter-spacing: 1px;
}

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

/* ===== Sections ===== */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-gray);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-white);
    text-transform: uppercase;
    font-weight: normal;
}

.bracket {
    color: var(--text-gray);
    font-size: 14px;
}

.content-box {
    padding: 30px;
    border: 1px solid var(--border-gray);
    background: var(--bg-card);
}

.content-box p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

/* Now Playing section - solid background */
#vibes {
    background: var(--bg-black);
    padding: 40px 30px;
    border: 1px solid var(--border-gray);
    position: relative;
    z-index: 1;
}

.highlight {
    color: var(--text-white);
    border-bottom: 1px solid var(--text-white);
}

.blink-cursor::after {
    content: '█';
    animation: blink 1s step-end infinite;
}

/* ===== Experience Items with Company Logos ===== */
.exp-item {
    padding: 40px;
    border: 1px solid var(--border-gray);
    margin-bottom: 30px;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.exp-item:hover {
    border-color: var(--text-white);
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    opacity: 0.9;
    transition: all 0.2s ease;
}

.exp-item:hover .company-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.company-logo-placeholder {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

.exp-header-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-company {
    font-size: 20px;
    color: var(--text-white);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.exp-date {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.exp-role {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.exp-list {
    list-style: none;
    margin-bottom: 25px;
}

.exp-list li {
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.exp-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--text-gray);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 11px;
    padding: 6px 14px;
    border: 1px solid var(--border-gray);
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border: 1px solid var(--border-gray);
    padding: 35px;
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--text-white);
}

.project-title {
    font-size: 14px;
    color: var(--text-white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.folder-icon {
    color: var(--text-gray);
    margin-right: 10px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.project-tech {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 2px;
    border-top: 1px solid var(--border-gray);
    padding-top: 20px;
    text-transform: uppercase;
}

/* ===== Skills ===== */
.skills-container {
    display: grid;
    gap: 25px;
}

.skill-block {
    border: 1px solid var(--border-gray);
    padding: 30px;
    background: var(--bg-card);
}

.skill-title {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.skill-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-bar span {
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid var(--border-gray);
    color: var(--text-light);
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.skill-bar span:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

/* ===== Contact ===== */
.contact-box {
    border: 1px solid var(--border-gray);
    padding: 40px;
    background: var(--bg-card);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: center;
}

.contact-label {
    color: var(--text-gray);
    font-size: 11px;
    letter-spacing: 2px;
    min-width: 100px;
    text-transform: uppercase;
}

.contact-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.contact-link:hover {
    border-bottom: 1px solid var(--text-white);
}

.guestbook {
    text-align: center;
    padding: 40px;
    border: 1px solid var(--border-gray);
    background: var(--bg-card);
}

.guestbook p {
    letter-spacing: 4px;
    font-size: 14px;
    text-transform: uppercase;
}

.guestbook .small {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* ===== Song List ===== */
.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gray);
}

.song-list li:last-child {
    border-bottom: none;
}

.song-list a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.song-list a:hover {
    color: var(--accent-green);
}

.song-list a::before {
    content: '> ';
    color: var(--accent-green);
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0;
    text-align: center;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-small {
    font-size: 10px !important;
    letter-spacing: 2px !important;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 1;
}

.badges {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    font-size: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border-gray);
    color: var(--text-gray);
    letter-spacing: 2px;
}

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

/* ===== Scrollbar - minimal ===== */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-gray);
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-ascii {
        font-size: 4px;
    }
    
    .glitch {
        letter-spacing: 8px;
    }
    
    .stats-row {
        gap: 30px;
    }
    
    .stats-box {
        gap: 30px;
        padding: 25px 30px;
    }
    
    .monster-can-box,
    .gif-box {
        padding: 20px 15px;
    }
    
    .monster-can-spinner {
        width: 50px;
        height: 100px;
    }
    
    .gif-box img {
        width: 50px;
        height: 100px;
    }
    
    .nav {
        gap: 25px;
    }
    
    .nav a {
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exp-header-text {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-ascii {
        font-size: 6px;
        line-height: 1.0;
        overflow-x: auto;
    }
    
    .hero-ascii-large {
        font-size: 8px;
    }
    
    .glitch {
        letter-spacing: 4px;
        font-size: 2rem;
    }
    
    .subtitle {
        letter-spacing: 4px;
        font-size: 12px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .monster-can-box,
    .stats-box-small,
    .gif-box {
        width: 100%;
        max-width: 200px;
        padding: 15px;
    }
    
    .monster-can-spinner {
        width: 40px;
        height: 80px;
    }
    
    .gif-box img {
        width: 40px;
        height: 80px;
    }
    
    .section-header h2 {
        font-size: 12px;
    }
}

/* Monster Can Spinner */
.monster-can-box {
    width: 120px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border-gray);
    background: var(--bg-black);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.monster-can-box:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
}

.monster-can-spinner {
    width: 50px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.monster-can-spinner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: canRotate 2s linear infinite;
}

@keyframes canRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* GIF Box */
.gif-box {
    width: 120px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border-gray);
    background: var(--bg-black);
    overflow: hidden;
    box-sizing: border-box;
}

.gif-box img {
    width: 50px;
    height: 100px;
    object-fit: cover;
}
