/* THE ARCADE - Custom Styles */

:root {
    --arcade-primary: #ff6b35;
    --arcade-secondary: #f7931e;
    --arcade-accent: #00d4ff;
    --arcade-neon: #39ff14;
    --arcade-purple: #8a2be2;
    --arcade-dark: #1a1a2e;
    --arcade-darker: #16213e;
    --arcade-glow: rgba(0, 212, 255, 0.3);
    --pixel-font: 'Jersey 25', monospace;
    
    /* Neon color palette for console cards */
    --neon-pink: #ff00c8;
    --neon-blue: #00d9ff;
    --neon-green: #39ff14;
    --neon-orange: #ff7f11;
    --neon-purple: #9f00ff;
}

/* Arcade Blacklight Carpet Texture */
.blacklight-carpet {
    background-color: #000;
    background-image: url('https://opengameart.org/sites/default/files/oga-textures/136049/arcade_carpet_1_512.png');
    background-size: 512px 512px;
    background-repeat: repeat;
    background-attachment: fixed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* CRT Scanline Overlay */
.crt-scanlines {
    position: relative;
}

.crt-scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 3px;
    pointer-events: none;
    z-index: 1;
    animation: scanline-flicker 0.15s linear infinite;
}

/* Noise Texture Overlay */
.carpet-noise {
    position: relative;
}

.carpet-noise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.015) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 8px 8px, 12px 12px, 6px 6px;
    background-position: 0 0, 4px 4px, 2px 2px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Hero Section with CRT Effects */
.arcade-hero {
    min-height: 70vh;
    background: linear-gradient(135deg, var(--arcade-dark) 0%, var(--arcade-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.arcade-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%),
        linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.03) 50%);
    background-size: 100% 100%, 4px 4px;
    pointer-events: none;
}

.arcade-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, #ff00ff 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #00ffff 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, #ffff00 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, #ff00ff 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 20px 20px, 10px 10px, 30px 30px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline-flicker 0.1s linear infinite;
}

.crt-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
    animation: crt-pulse 4s ease-in-out infinite;
}

@keyframes scanline-flicker {
    0% { opacity: 1; }
    98% { opacity: 1; }
    99% { opacity: 0.98; }
    100% { opacity: 1; }
}

@keyframes crt-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.arcade-title {
    font-family: var(--pixel-font);
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 10px var(--arcade-accent),
        0 0 20px var(--arcade-accent),
        0 0 30px var(--arcade-accent);
    animation: neon-flicker 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 3;
}

.arcade-subtitle {
    font-family: var(--pixel-font);
    font-size: 1.2rem;
    text-align: center;
    color: var(--arcade-secondary);
    margin-bottom: 2rem;
    text-transform: lowercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 3;
}

.hero-decoration {
    text-align: center;
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--arcade-neon);
    animation: pixel-blink 1.5s ease-in-out infinite;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--arcade-accent),
            0 0 20px var(--arcade-accent),
            0 0 30px var(--arcade-accent);
    }
    50% {
        text-shadow: 
            0 0 5px var(--arcade-accent),
            0 0 10px var(--arcade-accent),
            0 0 15px var(--arcade-accent);
    }
}

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

/* Console Cards */
.featured-consoles {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.console-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.console-card {
    background: rgba(245, 245, 245, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.07),
        inset 0 0 20px rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Individual neon-themed console cards */
.console-card.neon-pink .console-header {
    background: linear-gradient(135deg, var(--neon-pink), #ff44d4);
}

.console-card.neon-blue .console-header {
    background: linear-gradient(135deg, var(--neon-blue), #44e5ff);
}

.console-card.neon-green .console-header {
    background: linear-gradient(135deg, var(--neon-green), #66ff44);
}

.console-card.neon-orange .console-header {
    background: linear-gradient(135deg, var(--neon-orange), #ff9944);
}

.console-card.neon-purple .console-header {
    background: linear-gradient(135deg, var(--neon-purple), #bb44ff);
}

/* Hover effects with pulsing glow for each neon color */
.console-card.neon-pink:hover .console-header {
    box-shadow: 
        0 0 20px rgba(255, 0, 200, 0.6),
        0 0 40px rgba(255, 0, 200, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.console-card.neon-blue:hover .console-header {
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.6),
        0 0 40px rgba(0, 217, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.console-card.neon-green:hover .console-header {
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.6),
        0 0 40px rgba(57, 255, 20, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.console-card.neon-orange:hover .console-header {
    box-shadow: 
        0 0 20px rgba(255, 127, 17, 0.6),
        0 0 40px rgba(255, 127, 17, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.console-card.neon-purple:hover .console-header {
    box-shadow: 
        0 0 20px rgba(159, 0, 255, 0.6),
        0 0 40px rgba(159, 0, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.console-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 10px 25px rgba(0,0,0,0.1),
        0 0 30px var(--arcade-glow);
    border-color: var(--arcade-accent);
}

/* Console Arrows */
.console-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--arcade-neon);
    text-shadow: 0 0 10px var(--arcade-neon);
    animation: arrow-pulse 2s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

.console-header {
    background: linear-gradient(135deg, var(--arcade-primary), var(--arcade-secondary));
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.console-header::after {
    content: '🎮';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
}

.console-header h3 {
    font-family: var(--pixel-font);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.5);
}

.console-year {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--pixel-font);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.console-story {
    padding: 1.5rem 2rem;
    background: #f5f5f5;
}

.console-story p {
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.console-favorites {
    padding: 0 2rem 2rem;
    background: #f5f5f5;
}

.console-favorites h4 {
    color: var(--arcade-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--pixel-font);
    font-weight: 600;
}

.console-favorites ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.console-favorites li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.console-favorites li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--arcade-accent);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.console-favorites li:hover {
    color: var(--arcade-primary);
}

.console-favorites li:hover::before {
    transform: translateX(3px);
}

/* Section Title Overrides */
.featured-consoles .section-title,
.arcade-timeline .section-title {
    color: white;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-consoles .section-title::after,
.arcade-timeline .section-title::after {
    background: var(--arcade-neon);
    box-shadow: 0 0 10px var(--arcade-neon);
}

/* Hall of Fame Slideshow */
.hall-of-fame {
    background: #000;
    color: white;
    padding: 5rem 0;
    overflow: hidden;
    position: relative;
}

/* Removed decorative pattern for clean black background */

.hall-of-fame .section-title {
    color: white;
    position: relative;
    z-index: 2;
}

.hall-of-fame .container {
    position: relative;
    z-index: 2;
}

.hall-of-fame .section-title::after {
    background: var(--arcade-neon);
}

.hall-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--arcade-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.game-slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.game-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.game-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.game-slide.prev {
    transform: translateX(-100%);
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
    align-items: center;
}

.screenshot-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.game-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-container:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-container:hover .game-screenshot {
    transform: scale(1.05);
}

.gallery-btn {
    background: var(--arcade-accent);
    color: var(--arcade-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-family: var(--pixel-font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    background: var(--arcade-neon);
    transform: scale(1.05);
}

.game-info h3 {
    font-family: var(--pixel-font);
    color: var(--arcade-accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-info p {
    color: rgba(255,255,255,0.8);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-family: var(--pixel-font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn.primary {
    background: var(--arcade-primary);
    color: white;
}

.action-btn.secondary {
    background: var(--arcade-secondary);
    color: var(--arcade-dark);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Slideshow Navigation */
.slideshow-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--arcade-accent);
    border-color: var(--arcade-accent);
    color: var(--arcade-dark);
}

.slide-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--arcade-accent);
    transform: scale(1.2);
}

/* The Vault Section */
.vault-section {
    background: 
        url('https://opengameart.org/sites/default/files/chao.png'),
        linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    padding: 5rem 0;
    color: white;
    position: relative;
}

.vault-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
}

.vault-section .section-title {
    color: white;
    position: relative;
    z-index: 2;
}

.vault-section .container {
    position: relative;
    z-index: 2;
}

.vault-section .section-title::after {
    background: var(--arcade-secondary);
}

.vault-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--arcade-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.console-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Project card styling for arcade console collection */
.vault-section .project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 212, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.vault-section .project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 212, 255, 0.2),
        0 0 0 1px rgba(0, 212, 255, 0.1);
}

.vault-section .project-content {
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vault-section .project-content h3 {
    color: var(--arcade-accent);
    font-family: var(--pixel-font);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.vault-section .project-meta {
    color: var(--arcade-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
    margin: 0;
}

.vault-section .project-tag {
    background-color: rgba(0, 212, 255, 0.15);
    color: var(--arcade-accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vault-section .project-status {
    background-color: rgba(255, 107, 53, 0.15);
    color: var(--arcade-primary);
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.vault-section .project-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.vault-section .gallery-main {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0;
    border: none;
    margin: 0;
}

.vault-section .gallery-thumbnails {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 16px 16px;
    margin: 0;
}

.vault-section .loading-indicator {
    color: var(--arcade-accent);
    font-family: var(--pixel-font);
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
}

.console-item {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(57, 255, 20, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: console-glow 3s ease-in-out infinite alternate;
}

.console-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--arcade-neon);
    box-shadow: 
        0 0 30px rgba(57, 255, 20, 0.4),
        0 15px 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
    animation-play-state: paused;
}

.console-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.console-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.console-item:hover .console-image img {
    transform: scale(1.05);
}

.console-info {
    padding: 1.5rem;
    text-align: center;
}

.console-info h3 {
    color: var(--arcade-accent);
    margin-bottom: 0.5rem;
    font-family: var(--pixel-font);
    font-size: 1.2rem;
}

.console-year {
    color: var(--arcade-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}



/* High Score Wall */
.high-scores {
    background: #000;
    padding: 5rem 0;
    color: white;
    position: relative;
}

/* Removed decorative pattern for clean black background */

.high-scores .section-title {
    color: white;
    position: relative;
    z-index: 2;
}

.high-scores .container {
    position: relative;
    z-index: 2;
}

.high-scores .section-title::after {
    background: var(--arcade-neon);
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.score-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.score-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.score-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.score-card h3 {
    color: var(--arcade-neon);
    margin-bottom: 0.5rem;
    font-family: var(--pixel-font);
}

.achievement {
    color: var(--arcade-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.score-detail {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-style: italic;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.bonus-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.bonus-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.bonus-card h3 {
    font-family: var(--pixel-font);
    color: var(--arcade-neon);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.score-item, .vault-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.score-item:last-child, .vault-item:last-child {
    border-bottom: none;
}

.game, .vault-category {
    font-weight: 600;
    color: var(--arcade-secondary);
}

.achievement {
    color: var(--arcade-neon);
    font-family: var(--pixel-font);
}

.vault-item {
    flex-direction: column;
    align-items: flex-start;
}

.vault-item p {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Timeline */
.arcade-timeline {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    position: relative;
    z-index: 2;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 5px 15px rgba(0,0,0,0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--arcade-primary) 0%, 
        var(--arcade-secondary) 50%, 
        var(--arcade-accent) 100%);
    border-radius: 20px 20px 0 0;
}

.timeline-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 10px 25px rgba(0,0,0,0.1),
        0 0 30px var(--arcade-glow);
    border-color: var(--arcade-accent);
}

/* Timeline Arrows */
.timeline-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--arcade-neon);
    text-shadow: 0 0 10px var(--arcade-neon);
    animation: arrow-pulse 2s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes arrow-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

.timeline-year {
    background: linear-gradient(135deg, var(--arcade-primary), var(--arcade-secondary));
    color: white;
    padding: 1.5rem 2rem;
    font-family: var(--pixel-font);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    position: relative;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.timeline-year::after {
    content: '🎮';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.7;
}

.timeline-content {
    padding: 2rem;
    background: white;
}

.timeline-content h4 {
    color: var(--arcade-dark);
    margin-bottom: 1rem;
    font-family: var(--pixel-font);
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Footer */
.arcade-footer {
    font-family: var(--pixel-font);
    color: var(--arcade-accent);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    animation: pixel-blink 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arcade-title {
        font-size: 2.5rem;
    }
    
    .arcade-subtitle {
        font-size: 1rem;
    }
    
    .console-grid {
        grid-template-columns: 1fr;
    }
    
    .console-wall {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .console-item {
        margin-bottom: 1rem;
    }
    
    .console-info {
        padding: 1rem;
    }
    
    .console-item h3 {
        font-size: 1rem;
    }
    
    .console-year {
        font-size: 0.8rem;
    }
    
    .console-image {
        height: 150px;
    }
    
    .scores-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .game-slides {
        height: auto;
        min-height: 600px;
    }
    
    .slideshow-nav {
        gap: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        margin: 0 1rem;
    }
    
    .timeline-year {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .timeline-year::after {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* Hide arrows on mobile for better layout */
    .timeline-item:not(:last-child)::after,
    .console-card:not(:last-child)::after {
        display: none;
    }
}

/* Medium screens - adjust arrow positioning */
@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-item:not(:last-child)::after,
    .console-card:not(:last-child)::after {
        right: -1rem;
        font-size: 1.5rem;
    }
}

/* Console Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--arcade-dark) 0%, var(--arcade-darker) 100%);
    margin: 2% auto;
    padding: 0;
    border: 2px solid var(--arcade-accent);
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.modal-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--arcade-accent);
    font-family: var(--pixel-font);
    margin: 0;
    font-size: 1.8rem;
}

.close {
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--arcade-accent);
}

.modal-body {
    padding: 0;
    color: white;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.modal-tabs {
    display: flex;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: var(--pixel-font);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    color: var(--arcade-accent);
    background: rgba(0, 212, 255, 0.1);
    border-bottom-color: var(--arcade-accent);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--arcade-secondary);
    font-family: var(--pixel-font);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.console-specs, .console-software {
    line-height: 1.6;
}

.console-specs p, .console-software p {
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
}

.console-specs ul, .console-software ul {
    list-style: none;
    padding: 0;
}

.console-specs li, .console-software li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}

.console-specs li:last-child, .console-software li:last-child {
    border-bottom: none;
}

.spec-label, .software-label {
    color: var(--arcade-accent);
    font-weight: 600;
}

.spec-value, .software-value {
    color: rgba(255,255,255,0.9);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .console-wall {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .vault-section .project-content {
        padding: 1.25rem;
        gap: 0.75rem;
    }
    
    .vault-section .project-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .console-wall {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .vault-section .project-content {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .vault-section .project-content h3 {
        font-size: 1.1rem;
    }
    
    .vault-section .project-description {
        font-size: 0.9rem;
    }
    
    .arcade-title {
        font-size: 2rem;
    }
    
    .console-card {
        padding: 1.5rem;
    }
    
    .game-tile {
        padding: 1.5rem;
    }
    
    .bonus-card {
        padding: 2rem;
    }
}