:root {
    --bg-color: #050508;
    --text-main: #ffffff;
    --text-muted: #8e929b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #4a90e2;
    /* dynamic */
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow: hidden;
    /* No scrolling, app-like feel */
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.audio-widget {
    position: fixed;
    bottom: 2rem;
    right: 5vw;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 25;
    background: rgba(20, 20, 25, 0.6);
    padding: 0.35rem 0.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.audio-widget:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-widget:has(.audio-toggle-btn.playing) .audio-cover {
    animation: spin 10s linear infinite;
}

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

.audio-cover-container {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.audio-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audio-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.audio-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding-right: 0.5rem;
}

.audio-title:hover {
    color: var(--accent);
}

.audio-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
    color: var(--text-main);
}

.audio-toggle-btn.playing {
    color: var(--accent);
}

.logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 12px;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    cursor: default;
    user-select: none;
}

.logo-accent {
    color: var(--accent);
    transition: color 0.4s ease, text-shadow 0.4s ease;
    text-shadow: 0 0 15px var(--accent);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

#background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.15;
    z-index: -1;
    transition: background 0.8s ease, opacity 0.8s ease;
    filter: blur(80px);
    border-radius: 50%;
}

.launcher-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5vw;
}

.project-showcase {
    display: flex;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    transition: color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-icon {
    font-size: 1.2rem;
}

.project-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.project-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

.project-about {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    line-height: 1.8;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.project-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    perspective: 1000px;
}

.visual-card {
    width: 400px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    transition: background 0.8s ease;
}

.visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    border-radius: 20px;
    opacity: 0.5;
    z-index: 1;
}

.visual-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 8, 1) 0%, rgba(5, 5, 8, 0) 100%);
    border-radius: 20px;
}

.visual-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(80px);
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}

.visual-inner {
    font-size: 8rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--glass-border);
    transform: translateZ(50px);
    z-index: 5;
    position: relative;
}

.app-navigator {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.app-icon:hover .app-icon-img {
    transform: scale(1.1);
}

.app-icon.active {
    border-color: var(--accent);
    color: var(--text-main);
    transform: scale(1.15) translateY(-5px);
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    z-index: 20;
}

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

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateY(-3px);
}

.social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        height: auto;
        min-height: 100vh;
    }

    .top-bar {
        position: relative;
        padding: 1.5rem 5vw;
    }

    .launcher-container {
        padding: 1rem 5vw 6rem 5vw;
        height: auto;
    }

    footer {
        position: relative;
        padding: 2rem 1rem 5rem 1rem;
    }

    .project-showcase {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .project-content {
        align-items: center;
    }

    .tech-stack {
        justify-content: center;
    }

    .project-title {
        font-size: 3.5rem;
    }

    .visual-card {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .audio-widget {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto;
        transform: none;
    }

    .audio-widget:hover {
        transform: translateY(-2px);
    }

    .audio-info {
        display: none;
    }

    .project-showcase {
        gap: 1.5rem;
    }

    .project-title {
        font-size: 2rem;
    }

    .project-desc {
        font-size: 1rem;
    }

    .app-icon {
        width: 48px;
        height: 48px;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .btn {
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }

    .visual-card {
        width: 220px;
        height: 220px;
    }

    .visual-inner {
        font-size: 5rem;
    }
}