/**
 * Lady Arquitetura - Estilos da Página de Detalhes do Projeto
 * Tema: Rosa Claro e Elegante
 */

/* Projeto Hero Section */
.projeto-hero {
    height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 100px 0 50px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.projeto-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.projeto-hero-content {
    color: var(--white);
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    animation: fadeIn 1s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projeto-hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.projeto-hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.projeto-hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--primary-light);
    font-style: italic;
}

.projeto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 18px;
}

.meta-item span {
    font-weight: 500;
}

/* Projeto Descrição Section */
.projeto-descricao {
    padding: 80px 0;
    background-color: var(--white);
}

.projeto-content {
    display: flex;
    gap: 50px;
}

.projeto-texto {
    flex: 2;
}

.projeto-texto h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.projeto-texto h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.projeto-texto p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.features-list {
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--primary-dark);
    margin-right: 15px;
    font-size: 18px;
}

.projeto-sidebar {
    flex: 1;
}

.sidebar-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px var(--shadow);
}

.sidebar-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-card ul {
    margin-top: 15px;
}

.sidebar-card ul li {
    margin-bottom: 12px;
    padding-left: 5px;
    position: relative;
}

.cta-card {
    background-color: var(--primary-light);
    text-align: center;
}

.cta-card h3 {
    text-align: center;
}

.cta-card h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-card p {
    margin-bottom: 25px;
}

/* Projeto Galeria Section */
.projeto-galeria {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.projeto-galeria::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    top: -80px;
    left: -80px;
    opacity: 0.4;
    border-radius: 50%;
}

.projeto-galeria h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.projeto-galeria .separator {
    margin-bottom: 20px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.galeria-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--white);
}

.galeria-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
    display: block;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.galeria-item:hover .galeria-caption {
    padding-bottom: 20px;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.zoom-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Modal de Visualização de Imagem */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.image-modal.active .modal-container {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(to right, var(--primary-light), var(--white));
}

.modal-title {
    margin: 0;
    font-size: 20px;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.modal-content img.changing {
    opacity: 0;
    transform: scale(0.95);
}

.modal-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content:hover .modal-nav {
    opacity: 1;
}

.nav-prev, .nav-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    backdrop-filter: blur(2px);
}

.nav-prev:hover, .nav-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.fullscreen-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background-color: var(--primary-light);
    transform: scale(1.1);
    color: var(--secondary-dark);
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
    }
    
    .modal-content img {
        max-height: 60vh;
    }
    
    .nav-prev, .nav-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .galeria-item img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-footer {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Projeto Video Section */
.projeto-video {
    padding: 80px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.projeto-video::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    opacity: 0.5;
    border-radius: 50%;
}

.projeto-video::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -50px;
    left: -50px;
    opacity: 0.4;
    border-radius: 50%;
}

.projeto-video h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.projeto-video .separator {
    position: relative;
    z-index: 2;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--shadow);
    z-index: 2;
    border: 8px solid var(--white);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Outros Projetos Section */
.outros-projetos {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.outros-projetos h2 {
    text-align: center;
    margin-bottom: 20px;
}

.projetos-relacionados {
    display: flex;
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.projeto-card {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.projeto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.projeto-card:hover img {
    transform: scale(1.1);
}

.projeto-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.projeto-card-info h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 20px;
}

.projeto-card-info p {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projeto-hero {
        height: 60vh;
        padding: 80px 0 40px;
        align-items: flex-end;
    }
    
    .projeto-hero-content {
        padding: 25px;
        max-width: 100%;
    }

    .projeto-hero-content h1 {
        font-size: 36px;
    }
    
    .projeto-hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .projeto-meta {
        gap: 20px;
    }
    
    .meta-item {
        font-size: 14px;
    }
    
    .projeto-content {
        flex-direction: column;
    }
    
    .projetos-relacionados {
        flex-direction: column;
        gap: 18px;
        margin-top: 32px;
    }

    .projeto-card {
        display: grid;
        grid-template-columns: 42% 1fr;
        min-height: 170px;
        margin-bottom: 0;
        background-color: var(--white);
    }

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

    .projeto-card img {
        height: 100%;
        min-height: 170px;
    }

    .projeto-card:hover img {
        transform: none;
    }

    .projeto-card-info {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        background: var(--secondary-color);
    }

    .projeto-card-info h3 {
        font-size: 20px;
        line-height: 1.2;
        overflow-wrap: normal;
    }

    .projeto-card-info p {
        margin-bottom: 14px;
    }

    .video-container {
        max-width: 100%;
        margin-top: 30px;
        border-width: 5px;
    }
}

@media (max-width: 576px) {
    .projeto-hero {
        height: auto;
        min-height: 60vh;
        padding: 120px 0 40px;
    }
    
    .projeto-hero-content {
        padding: 20px;
    }
    
    .projeto-hero-content h1 {
        font-size: 28px;
    }
    
    .projeto-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .meta-item {
        width: 100%;
    }
    
    .projetos-relacionados {
        flex-direction: column;
        gap: 16px;
    }
}

/* Refinos mobile para páginas de projeto */
@media (max-width: 900px) {
    .projeto-hero {
        margin-top: 66px;
        background-attachment: scroll !important;
    }

    .projeto-descricao,
    .projeto-galeria {
        padding: 56px 0;
    }

    .projeto-content {
        gap: 28px;
    }

    .sidebar-card {
        padding: 24px 20px;
    }

    .galeria-grid {
        gap: 18px;
        margin-top: 32px;
    }
}

@media (max-width: 576px) {
    .projeto-hero {
        min-height: 68svh;
        padding: 96px 0 32px;
    }

    .projeto-hero-content {
        padding: 18px;
        border-radius: 16px;
    }

    .projeto-hero-content h1 {
        font-size: clamp(28px, 10vw, 36px);
        line-height: 1.1;
    }

    .projeto-hero-content p {
        font-size: 15px;
    }

    .projeto-meta {
        gap: 12px;
    }

    .meta-item {
        align-items: flex-start;
    }

    .projeto-texto h2 {
        font-size: 26px;
    }

    .projeto-texto h3 {
        font-size: 21px;
    }

    .features-list li {
        align-items: flex-start;
    }

    .galeria-item img {
        height: 240px;
    }

    .outros-projetos {
        padding: 56px 0;
    }

    .projetos-relacionados {
        margin-top: 28px;
    }

    .projeto-card {
        grid-template-columns: 40% 1fr;
        min-height: 160px;
        border-radius: 16px;
    }

    .projeto-card img {
        min-height: 160px;
    }

    .projeto-card-info {
        padding: 18px 16px;
    }

    .projeto-card-info h3 {
        font-size: 18px;
    }

    .projeto-card-info p {
        font-size: 13px;
    }

    .projeto-card-info .btn-small {
        align-self: flex-start;
        padding: 7px 14px;
        font-size: 12px;
    }

    .modal-container {
        width: calc(100% - 24px);
    }
}