/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

body {
    background-color: #0a0a0a;
    color: #e8f4f8;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    position: relative;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-wrapper {
    flex: 1;
}

/* Scanline */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(to bottom,
            rgba(0, 191, 255, 0.03),
            rgba(0, 191, 255, 0.03) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 9999;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 191, 255, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3 {
    font-family: 'Press Start 2P', monospace;
    color: #00bfff;
    text-shadow:
        0 0 10px #00bfff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

a {
    color: #87ceeb;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: #00bfff;
    text-shadow: 0 0 5px #00bfff;
    border-bottom: 1px solid #00bfff;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.site-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem;
    color: #00bfff;
    text-shadow:
        0 0 10px #00bfff;
    margin: 0;
    letter-spacing: 4px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #00bfff;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.3);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.navbar li {
    font-family: 'Press Start 2P', monospace;
}

.navbar a {
    font-size: 0.7rem;
    padding: 4px 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar a:hover {
    border: 1px solid #00bfff;
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.navbar a.active {
    background: rgba(0, 191, 255, 0.2);
    border: 1px solid #00bfff;
    color: #00bfff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.content {
    max-width: 900px;
    margin: auto;
    padding: 30px 20px;
}

section {
    display: none;
    text-align: center;
    padding: 20px 0;
    border-radius: 8px;
    background: rgba(0, 191, 255, 0.02);
    margin-bottom: 15px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

section p {
    margin: 10px 0;
}

/* Word Count */
.word-count {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 2px solid #00bfff;
    padding: 20px;
    margin: 20px auto;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.word-count .count {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.8rem;
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff;
    margin: 8px 0;
}

/* Blockquote */
blockquote {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border-left: 4px solid #00bfff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
}

blockquote p {
    margin: 0 0 10px 0;
}

blockquote cite {
    font-size: 1.1rem;
    color: #87ceeb;
}

/* Project grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.project-tile {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 2px solid #00bfff;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.project-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
    transition: 0.5s;
}

.project-tile:hover::before {
    left: 100%;
}

.project-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
    border-color: #87ceeb;
}

.project-tile h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.project-tile p {
    margin: 8px 0;
    font-size: 1.1rem;
}


.fun-facts {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: auto;
}

.fun-facts li {
    margin: 12px 0;
    padding: 8px;
    border-left: 3px solid #00bfff;
    background: rgba(0, 191, 255, 0.05);
    border-radius: 0 5px 5px 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    border-top: 2px solid #00bfff;
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .navbar a {
        font-size: 0.7rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 0.9rem;
    }

    .content {
        padding: 25px 15px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 15px 0;
    }
}

/* Project styling */
.project {
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 2px solid #00bfff;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.project-header {
    background: rgba(0, 191, 255, 0.05);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.project-header:hover {
    background: rgba(0, 191, 255, 0.1);
}

.project-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    background: #00bfff;
    color: #0a0a0a;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 10px;
    font-family: 'VT323', monospace;
}

.project-stats {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.project-content {
    display: none;
}

.project-content.active {
    display: block;
}

.content-tabs {
    display: flex;
    background: rgba(0, 191, 255, 0.05);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #87ceeb;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'VT323', monospace;
    min-width: 120px;
}

.tab-button:hover {
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
}

.tab-button.active {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    text-shadow: 0 0 5px #00bfff;
}

.tab-content {
    display: none;
    padding: 25px;
    text-align: left;
}

.tab-content.active {
    display: block;
}

.character-card,
.lore-section {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.character-name,
.lore-title {
    color: #00bfff;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.excerpt {
    background: rgba(0, 191, 255, 0.03);
    border-left: 4px solid #00bfff;
    padding: 20px;
    margin: 15px 0;
    font-style: italic;
    position: relative;
}

.progress-bar {
    background: #333;
    height: 15px;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: linear-gradient(90deg, #00bfff, #87ceeb);
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* Mobile responsive for project content */
@media (max-width: 768px) {
    .project-stats {
        font-size: 1rem;
        gap: 10px;
    }

    .content-tabs {
        flex-direction: column;
    }

    .tab-button {
        flex: none;
    }
}

.spotify-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
    border: 2px solid #00bfff;
    border-radius: 8px;
    padding: 20px;
    max-width: 350px;
    margin: 20px auto;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
    text-align: center;
}

.spotify-widget img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

.spotify-info p {
    margin: 5px 0;
    color: #00bfff;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    text-shadow: 0 0 5px #00bfff;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00bfff, #87ceeb);
    border-radius: 8px;
    transition: width 0.3s ease;
}