#chapter04 .section-content {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    overflow: visible;
    display: block;
    box-sizing: border-box;
}

.portfolio-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.portfolio-header .tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 400px);
    gap: 2rem;
    width: 100%;
    margin: 0 auto 2rem auto;
    padding: 0 2rem;
    justify-content: center;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    min-height: 320px;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.video-container:hover video {
    opacity: 0.9;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
}

.portfolio-info p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

.no-videos {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.no-videos h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 400;
}

.no-videos p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 1rem 1rem 6rem 1rem;
    }
    
    .portfolio-header h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin-bottom: 6rem;
    }
    
    .portfolio-item {
        min-height: 280px;
    }
}