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

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #4f46e5;
    --secondary-color: #6366f1;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --bg-color: #000000;
    --bg-light: #000000;
    --bg-dark: #000000;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: "Kode Mono", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

section[id] {
    scroll-margin-top: 5rem;
}

/* Index section sidebar */
.index-page {
    --sidebar-width: 15rem;
    --sidebar-collapsed-width: 2.75rem;
}

.index-page .section-sidebar {
    position: fixed;
    top: 5rem;
    left: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    height: calc(100vh - 5rem);
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-color);
    overflow: hidden;
    transition: width 0.3s ease;
}

.index-page.sidebar-collapsed .section-sidebar {
    width: var(--sidebar-collapsed-width);
    padding: 1rem 0.5rem;
}

.index-page .index-main {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
}

.index-page.sidebar-collapsed .index-main {
    margin-left: var(--sidebar-collapsed-width);
}

.section-sidebar-toggle {
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.section-sidebar-toggle:hover,
.section-sidebar-toggle:focus-visible {
    border-color: var(--primary-color);
    color: var(--primary-color);
    outline: none;
}

.index-page.sidebar-collapsed .section-sidebar-toggle {
    margin-bottom: 0;
}

.section-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.index-page.sidebar-collapsed .section-sidebar-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.section-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.section-sidebar-link {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.section-sidebar-link:hover,
.section-sidebar-link:focus-visible {
    color: var(--text-color);
    background-color: rgba(139, 92, 246, 0.12);
    outline: none;
}

.section-sidebar-link.active {
    color: var(--primary-color);
    background-color: rgba(139, 92, 246, 0.18);
    font-weight: 600;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('assets/images/parasocialist/Weich-performance-1.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 60vh;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid var(--primary-color);

}

.btn-primary {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-dark);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.projects-section {
    background-color: var(--bg-light);
}

.projects-grid,
.live-performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: 0;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.project-media {
    position: relative;
}

.project-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #000000;
    display: block;
}

.project-info {
    position: absolute;
    inset: 0;
}

.project-tooltip {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    text-align: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.project-card:hover .project-tooltip,
.project-card:focus-visible .project-tooltip,
.project-info:hover .project-tooltip {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 0;
}

.project-mobile-subtitle {
    display: none;
    font-size: 1.125rem;
}

.project-mobile-subdescription {
    display: none;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #111111;
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-light);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* Project Page Styles */
.project-header {
    background: #000000;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.project-body h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-body h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-body p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.project-body ul,
.project-body ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-body li {
    margin-bottom: 0.5rem;
}

.project-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.project-body a:hover {
    text-decoration: underline;
}

/* Media Embedding */
.media-container {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media-container video,
.media-container audio {
    width: 100%;
    display: block;
}

.media-container iframe {
    width: 100%;
    border: none;
    display: block;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img,
.image-gallery-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.image-gallery-link {
    display: block;
    text-decoration: none;
}

.image-gallery img:hover,
.image-gallery-link:hover img {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .index-page .section-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        overflow: visible;
    }

    .index-page.sidebar-collapsed .section-sidebar {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .index-page .index-main,
    .index-page.sidebar-collapsed .index-main {
        margin-left: 0;
    }

    .index-page .section-sidebar {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-sidebar-toggle {
        width: auto;
        min-width: 2.5rem;
        margin-bottom: 0;
    }

    .section-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        flex: 1 1 100%;
    }

    .index-page.sidebar-collapsed .section-sidebar-nav {
        display: none;
    }

    .section-sidebar-list {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1 1 100%;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .projects-grid,
    .live-performances-grid {
        grid-template-columns: 1fr;
    }

    .project-mobile-subtitle {
        display: block;
        padding: 0.75rem 1rem 1rem;
        font-size: 0.875rem;
        line-height: 1.5;
        color: var(--text-light);
    }

    .project-info {
        display: none;
    }

    .project-card:hover {
        transform: none;
    }

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

    .project-header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

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

    section {
        padding: 3rem 0;
    }
}

