* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark theme (default) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
    position: relative;
}

/* Particle canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    background: rgba(30, 30, 46, 0.95);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Theme toggle button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: white;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(20deg);
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    overflow: hidden;
}

.avatar-placeholder picture {
    width: 100%;
    height: 100%;
    display: block;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

h1 {
    font-size: 32px;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* Live status indicator */
.live-status {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

.live-info {
    font-size: 13px;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
    }
}

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

.tagline {
    font-size: 18px;
    color: #9146ff;
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.description {
    font-size: 16px;
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.email-display {
    font-size: 15px;
    margin-top: 12px;
    font-weight: 500;
}

.email-display a {
    color: #9146ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-display a:hover {
    color: #b57bff;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.link-card:hover:before {
    transform: translateX(0);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.link-card i:first-child {
    font-size: 24px;
    margin-right: 16px;
    min-width: 24px;
}

.link-card span {
    flex-grow: 1;
}

.link-card i:last-child {
    font-size: 18px;
    opacity: 0.8;
}

.twitch {
    background: linear-gradient(135deg, #9146ff 0%, #772ce8 100%);
}

.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.steam {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
}

.kofi {
    background: linear-gradient(135deg, #ff5e5b 0%, #ff3838 100%);
}

.streamelements {
    background: linear-gradient(135deg, #00c853 0%, #00a843 100%);
}

.tts-guide {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.email {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
    transition: color 0.3s ease;
}

/* Light theme */
body[data-theme="light"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body[data-theme="light"] .container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] h1 {
    color: #2d3748;
}

body[data-theme="light"] .tagline {
    color: #667eea;
}

body[data-theme="light"] .description {
    color: #718096;
}

body[data-theme="light"] .live-info {
    color: #718096;
}

body[data-theme="light"] .email-display a {
    color: #667eea;
}

body[data-theme="light"] .email-display a:hover {
    color: #764ba2;
}

body[data-theme="light"] footer {
    color: #718096;
}

body[data-theme="light"] .link-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3748;
}

body[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .container {
        padding: 30px 20px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    h1 {
        font-size: 28px;
    }

    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .link-card {
        padding: 16px 20px;
        font-size: 15px;
    }
}
