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

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e8e8e8;
    --text-primary: #2a2a2a;
    --text-secondary: #555555;
    --border-color: #d0d0d0;
    --link-color: #0066cc;
    --grid-color: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    --bg-primary: #0e0e0e;
    --bg-secondary: #1a1a1a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --link-color: #66b3ff;
    --grid-color: rgba(255, 255, 255, 0.03);
}

html, body {
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.banner {
    width: 100%;
    height: 25%;
    display: block;
    margin: 0 auto;
}

.site-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.about-me {
    flex: 3;
}

.status {
    margin-top: 18px;
    flex: 1;
    min-width: 200px;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    width: 50px;
    transition: opacity 0.3s ease;
    vertical-align: middle;
}

.header-logo-light {
    display: inline;
}

.header-logo-dark {
    display: none;
}

[data-theme="dark"] .header-logo-light {
    display: none;
}

[data-theme="dark"] .header-logo-dark {
    display: inline;
}

.banner-img {
    width: 250px;
    display: block;
    margin-bottom: 0;
}

.quote {
    font-style: italic;
    font-size: 14px;
    color: var(--text-secondary);
}

h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h5 {
    margin: 20px 0 5px 0;
}

p, li {
    font-size: 16px;
}

ul {
    padding-left: 20px;
    list-style-type: none;
}

li {
    margin-bottom: 8px;
}

li:before {
    content: "- ";
    margin-left: -15px;
}

a:not(:has(img)) {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.2s, color 0.3s;
}

a:not(:has(img)):hover {
    border-color: var(--link-color);
}

.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    float: left;
    margin-right: 20px;
    margin-bottom: 0;
}

.social-links i {
    width: 20px;
    margin-right: 5px;
}

.footer {
    margin-top: 60px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cool-sites {
    margin: 20px 0;
    position: relative;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px;
    height: 33px;
    overflow: hidden;
}

.buttons-container {
    display: flex;
    position: absolute;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee {
    display: inline-block;
    animation: marquee 5s linear infinite;
}

.button-img {
    height: 31px;
    margin-right: 10px;
    border: 1px solid var(--border-color);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online { background-color: #43b581; }
.status-idle { background-color: #faa61a; }
.status-dnd { background-color: #f04747; }
.status-offline { background-color: #747f8d; }

.spotify-container {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.spotify-art {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    float: left;
    margin-right: 10px;
}

.spotify-info {
    font-size: 13px;
    line-height: 1.4;
}

.spotify-song {
    font-weight: bold;
    margin-bottom: 3px;
}

.discord-status {
    margin-bottom: 20px;
}

.status-loading {
    font-size: 14px;
    color: var(--text-secondary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-right: 10px;
    transition: color 0.3s ease;
    display: inline-block;
}

.theme-toggle:hover {
    color: var(--link-color);
}

.theme-icon {
    display: none;
}

.theme-icon.active {
    display: inline;
}

.project-item {
    margin-bottom: 8px;
    list-style: none;
}

.project-item:before {
    content: none;
}

.project-header {
    cursor: pointer;
    padding: 0;
    background: none;
}

.project-header:hover .project-title a {
    border-color: var(--link-color);
}

.project-arrow {
    margin-right: 5px;
    transition: transform 0.2s ease;
    font-size: 10px;
    display: inline-block;
    width: 10px;
}

.project-arrow.expanded {
    transform: rotate(180deg);
}

.project-title {
    display: inline;
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
}

.project-content.expanded {
    max-height: 1000px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.project-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.project-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.project-images img {
    max-width: 200px;
    border: 1px solid var(--border-color);
}

.nav-links {
    margin: 20px 0;
}

.nav-links ul {
    padding-left: 0;
}

.nav-links li {
    margin-bottom: 8px;
}

.nav-links li:before {
    content: none;
}

.nav-links a {
    margin: 0;
    border-bottom: none;
    display: inline-block;
}

.nav-links a:hover {
    text-decoration: underline;
}

.pbuttons a {
    text-decoration: none;
}

.blog-img {
    width: 100%;
    margin: 20px 0 0 0;
    border-radius: 4px;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-grid img,
.gallery-grid video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .site-container {
        flex-direction: column;
    }

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

    .status {
        width: 100%;
    }
}
