/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Mode (Default) */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --link-color: #0066cc;
    --link-hover-color: #004499;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --link-color: #66b3ff;
    --link-hover-color: #99ccff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 20px;
}

/* SPA View Management */
.view {
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.view[style*="display: none"] {
    opacity: 0;
}

.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
    margin: 0 auto;
}
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

nav {
    margin-top: 2rem;
}

nav a {
    color: var(--link-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid var(--link-color);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--link-hover-color);
    border-color: var(--link-hover-color);
    transform: translateY(-2px);
}

.about-content {
    margin-top: 2rem;
    text-align: left;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    display: block;
    transition: transform 0.3s ease;
}

.theme-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color) !important;
    fill: none !important;
}

.theme-icon svg * {
    stroke: var(--text-color) !important;
    fill: none !important;
}

.copyright {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.6;
    z-index: 10;
}

/* Pong Game Canvas */
#pong-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}
