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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 100%);
    color: #e8e8f0;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 2rem 0;
    border-bottom: 1px solid rgba(100, 80, 255, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    font-size: 2rem;
    background: none;
    color: #a855f7;
}

.nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #a0a0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #c084fc;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 80, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

.subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-filter {
    display: flex;
    gap: 1rem;
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 2rem;
}

.filter-btn, .view-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    color: #a0a0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .view-btn:hover {
    color: #c084fc;
}

.filter-btn.active {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    color: white;
}

.view-btn.active {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0 3rem 0;
}

.portfolio-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-item {
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    border: 1px solid rgba(100, 80, 255, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
}

.list-view .portfolio-item {
    display: flex;
    flex-direction: row;
    transform: none;
}

.list-view .portfolio-item:hover {
    transform: translateX(5px);
}

.portfolio-media {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-view .portfolio-media {
    aspect-ratio: 1;
}

.list-view .portfolio-media {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.audio-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.audio-wave-icon svg {
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.audio-info {
    text-align: center;
}

.audio-genre {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.audio-title-small {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.audio-player {
    width: 90%;
    max-width: 250px;
    height: 32px;
    border-radius: 2rem;
}

.portfolio-info {
    padding: 1.25rem;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #e8e8f0;
}

.portfolio-category {
    font-size: 0.8rem;
    color: #a855f7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 80, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #707090;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #707090;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    color: #c084fc;
}

.loading-state {
    text-align: center;
    padding: 4rem;
    color: #a0a0b0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.light-theme {
    background: linear-gradient(135deg, #f5f0ff 0%, #e8e0ff 100%);
    color: #1a1a2e;
}

body.light-theme .portfolio-item {
    background: rgba(255, 255, 255, 0.7);
}

body.light-theme .portfolio-title {
    color: #1a1a2e;
}

body.light-theme .category-filter {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .header { flex-direction: column; text-align: center; }
    .nav { justify-content: center; gap: 1rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .list-view .portfolio-media { width: 100px; height: 100px; }
    .footer { flex-direction: column; text-align: center; }
}

body.light-theme .about-tagline,
body.light-theme .humor-block p,
body.light-theme .hobby-card p,
body.light-theme .lang-table td:first-child,
body.light-theme .level-legend {
    color: #1a1a2e !important;
}

body.light-theme .hobby-card h3 {
    color: #6b21c0 !important;
}