/* ============================================
   PORTFÓLIO SIMPLES
   ============================================ */

/* ============================================
   PORTFÓLIO - TEMA ESCURO DOIS IRMÃOS
   ============================================ */

.portfolio-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 181, 91, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(58, 80, 107, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-title {
    font-size: 3.2rem;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #ffffff 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray);
}


/* Filtros */
.portfolio-filters {
    background: #1a1a1a;
    padding: 25px 0;
    border-bottom: 1px solid #333;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #d4b55b;
    color: #d4b55b;
}

.filter-btn.active {
    background: #d4b55b;
    color: #000;
    border-color: #d4b55b;
}

/* Galeria de Projetos */
.projects-gallery {
    padding: 60px 0;
    background: #121212;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #d4b55b;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4b55b;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.project-details i {
    color: #d4b55b;
}

/* Miniaturas */
.project-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.project-thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-thumbnails img:hover,
.project-thumbnails img.active {
    border-color: #d4b55b;
}

/* Botão de ver fotos */
.view-photos-btn {
    width: 100%;
    background: #d4b55b;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.view-photos-btn:hover {
    background: #c9a74a;
}

/* Modal de Fotos */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.photo-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4b55b;
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-image-container {
    position: relative;
    height: 500px;
    background: #000;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-nav:hover {
    background: rgba(212, 181, 91, 0.9);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-info {
    padding: 20px;
    text-align: center;
}

.modal-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-description {
    color: #aaa;
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 80px 0 40px;
    }
    
    .portfolio-hero h1 {
        font-size: 2.2rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 220px;
    }
    
    .modal-image-container {
        height: 400px;
    }
    
    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 1.8rem;
    }
    
    .modal-image-container {
        height: 300px;
    }
    
    .project-thumbnails img {
        width: 70px;
        height: 50px;
    }
}
/* ============================================
   BOTÕES DO YOUTUBE (NOVA ABA)
   ============================================ */

/* Botão flutuante na imagem - Agora é um link */
.youtube-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #FF0000; /* Vermelho do YouTube */
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    text-decoration: none; /* Remove sublinhado do link */
}

.youtube-btn:hover {
    background: #CC0000;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

/* Container para os botões lado a lado */
.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.project-buttons button,
.project-buttons a {
    flex: 1;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    border: none;
    text-decoration: none; /* Para links */
}

/* Botão de fotos */
.view-photos-btn {
    background: #d4b55b;
    color: #000;
}

.view-photos-btn:hover {
    background: #c9a74a;
}

/* Botão do YouTube */
.youtube-link-btn {
    background: #FF0000;
    color: white;
    text-decoration: none;
}

.youtube-link-btn:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 0, 0.3);
}

/* Classe para quando tem só um botão */
.view-photos-btn.full-width {
    width: 100%;
}

/* Indicador visual para links externos */
.youtube-btn::after,
.youtube-link-btn::after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.8;
}

/* ============================================
   ESTADO PARA PROJETOS SEM VÍDEO
   ============================================ */

/* Se quiser manter o botão mas desabilitado */
.youtube-link-btn.disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.youtube-link-btn.disabled::after {
    content: " (em breve)";
    font-size: 0.8em;
}

.youtube-link-btn.disabled:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .project-buttons {
        flex-direction: column;
    }
    
    .project-buttons button,
    .project-buttons a {
        width: 100%;
    }
    
    .youtube-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .youtube-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        bottom: 10px;
        right: 10px;
    }
    
    .project-buttons button,
    .project-buttons a {
        padding: 10px;
        font-size: 0.9rem;
    }
}