html, body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0d0e12; 
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.15) 0%, transparent 50%), 
        radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 55%); 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: cover;
}

.portfolio-section {
    background-color: transparent !important; 
    min-height: 100vh;         
    width: 100%;
    display: flex;             
    justify-content: center;   
    align-items: center;       
    padding: 80px 20px;        
    box-sizing: border-box;
}

.portfolio-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secao-titulo {
    color: #fff;
    text-shadow: 0 0 10px #ffffffa1;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin: 30px 0 15px 0;
    padding-left: 0; 
    text-align: center; 
    font-family: 'Poppins', sans-serif;
}

#contact {
    color: #fff;
    text-shadow: 0 0 10px #ffffffa1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.conteudo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.conteudo p {
    text-align: center;
}

.gallery-container {
    display: grid;
    gap: 30px;
    width: 100%;
    margin-bottom: 60px;
}

.long-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 950px;
    width: 100%;
    margin: 0 auto 60px auto;
}

.shorts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
}

.card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 20px rgba(0, 0, 0, 0.3);
}

.long-container .card {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.shorts-container .card.vertical {
    aspect-ratio: 9 / 16;
    width: 100%;
    height: auto;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.card.playing .video-wrapper {
    opacity: 1;
    pointer-events: auto;
}

.card.playing .play-btn {
    opacity: 0;
    pointer-events: none;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0), rgba(255,255,255,0.2));
    
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.play-btn {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 20px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

.card:hover::before { 
    opacity: 1; 
}

.card:hover .play-btn {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .long-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }
    
    .shorts-container {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 100%;
    }

    .play-btn {
        width: 55px;
        height: 55px;
    }

    .play-btn::after {
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 13px solid #fff;
        margin-left: 4px;
    }
}
