:root {
    --bg-color: #111111;
    --text-color: #e0e0e0;
    --accent-color: #4b8bf4;
    --card-bg: #1a1a1a;
    --border-radius: 8px;
    --font-family: 'JetBrains Mono', 'Courier New', 'Courier', 'Lucida Console', Monaco, monospace;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.light-theme {
    --bg-color: #f5f5f5;
    --text-color: #222222;
    --card-bg: #ffffff;
    --accent-color: #0066cc;
    --border-color: rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.5px;
}

.typed-name {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(30, end);
    margin-top: 4rem;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.username-tag {
    margin-top: 0.0rem;
    margin-bottom: 1rem;
}

.tagline {
    max-width: 700px;
    margin: 1rem auto;
    color: #aaa;
    font-size: 0.95rem;
}

.light-theme .tagline {
    color: #555;
}

.section-title {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.products {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.light-theme .product-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-icon {
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
}
.social-links a:hover {
    color: var(--accent-color);
    position: relative;
}
.social-links a:hover::after {
    content: "_";
    animation: blink 1s infinite;
    position: absolute;
}

.product-description {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.light-theme .product-description {
    color: #666;
}

.product-meta {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #777;
    letter-spacing: 0.5px;
}

.light-theme .product-meta {
    color: #888;
}

.section-intro {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

.light-theme .section-intro {
    color: #555;
}

.section-divider {
    border-top: 1px solid var(--border-color);
    margin: 5rem 0 3rem 0;
}

.about {
    margin-top: 1rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: 0.95rem;
}

.photo {
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.photo img {
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    margin-top: 5rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #777;
}

.light-theme .copyright {
    color: #888;
}

.theme-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch svg {
    width: 18px;
    height: 18px;
}

h1 a:hover::after,
h2 a:hover::after,
h3 a:hover::after {
    content: "_";
    animation: blink 1s infinite;
}

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

.moon-icon {
    display: block;
}

.sun-icon {
    display: none;
}

.light-theme .moon-icon {
    display: none;
}

.light-theme .sun-icon {
    display: block;
}

#copy-popup {
    visibility: hidden;
    min-width: 120px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border-radius: 4px;
    padding: 0.5rem;
    position: fixed;
    z-index: 1000;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#copy-popup.show {
    visibility: visible;
    opacity: 1;
}
