/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #030303; 
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 2px;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; 
    backdrop-filter: none;
    padding: 40px 5%; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    transition: all 0.5s ease;
}

.main-nav {
    display: flex;
    gap: 50px; 
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', cursive; 
    font-weight: 400; 
    font-size: 1.6rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
    transition: color 0.4s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e63946;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover {
    color: #e63946;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* ========== HERO COM VÍDEO E FADE BACKGROUND ========== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0; 
    animation: fadeInVideo 3s ease 0.5s forwards; 
}

@keyframes fadeInVideo {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw; 
    height: calc(100vw * 0.5625); 
    min-height: 100vh; 
    min-width: calc(100vh * 1.77777778); 
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.vignette-left-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
    pointer-events: none;
    background: 
        linear-gradient(to top, #030303 0%, rgba(3,3,3,0) 25%),
        radial-gradient(circle, rgba(3,3,3,0) 0%, rgba(3,3,3,0.5) 30%, rgba(3,3,3,0.9) 60%, rgba(3,3,3,1) 85%, #030303 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    width: 100%;
}

.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 8.5rem; 
    margin-bottom: -10px; 
    letter-spacing: 12px; 
    margin-right: -12px; 
    color: #fff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
    opacity: 0; 
    animation: revealHeroName 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    line-height: 1;
    text-align: center;
    width: 100%; 
    display: block; 
}

@keyframes revealHeroName {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-content p {
    font-size: 1.5rem; 
    font-weight: 300;
    margin-bottom: 40px;
    margin-top: 0;
    color: #ddd;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    text-align: center;
    width: 100%;
    transform: translateX(2.5px);
}

/* ========== BOTÕES ========== */
.btn-group {
    display: flex;
    gap: 20px; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
}

.btn-primary {
    background: #e63946;
    color: #fff;
}

.btn-primary:hover {
    background: #fff;
    color: #e63946;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230,57,70,0.3);
}

.btn-secondary {
    border: 1px solid #e63946;
    color: #fff;
    background: rgba(0,0,0,0.3); 
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-3px);
}

/* ========== FILTROS FLUTUANTES NO HERO ========== */
.hero-filters {
    position: absolute;
    bottom: 50px; 
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    z-index: 3;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.5); 
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); 
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e63946;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
}

.filter-btn.active::after,
.filter-btn:hover::after {
    width: 100%;
}


/* ========== TRABALHOS (GALERIA ACORDEÃO) ========== */
.trabalhos {
    padding: 40px 0 80px 0; 
    background: #030303;
    min-height: 50vh;
    width: 100%;
}

.trabalhos-grid {
    display: flex;
    flex-direction: row;
    height: 70vh; 
    min-height: 400px;
    max-height: 700px;
    width: 100%;
    margin: 0;
    gap: 2px; 
    overflow: hidden;
}

.filter-animate {
    opacity: 0;
    animation: ultraSmoothFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes ultraSmoothFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.aristide-item {
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 40px; 
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.3, 1);
    background: #111;
}

.aristide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(40%); 
    transition: all 0.7s cubic-bezier(0.25, 1, 0.3, 1);
}

.aristide-item:hover {
    flex: 8; 
}

.aristide-item:hover .aristide-img {
    filter: grayscale(0%) brightness(100%); 
    transform: scale(1.05); 
}

.aristide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.aristide-item:hover .aristide-overlay {
    opacity: 1;
}

.aristide-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.3, 1);
    pointer-events: none;
}

.aristide-item:hover .aristide-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.aristide-cat {
    color: #e63946;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.aristide-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 400; 
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.aristide-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: all 0.5s ease;
}

.play-text {
    background: rgba(230, 57, 70, 0.95);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 15px 35px;
    border-radius: 50px;
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.aristide-item:hover .aristide-play-overlay {
    opacity: 1;
}

.aristide-item:hover .play-text {
    transform: scale(1) translateY(0);
}

/* ========== MODAL (POPUP) E EFEITO DE VIDRO ISOLADO ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

/* Camada separada só para o desfoque, libertando os botões da armadilha */
.modal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: -1;
    transition: all 0.6s ease;
    pointer-events: none;
}

.modal.show::before {
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    width: 96vw;
    max-width: 1400px;
    min-height: auto;
    height: auto;
    margin: auto; 
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}

.modal.show .modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-container.instagram-modal {
    max-width: 850px;
}

.modal-video {
    width: calc(70% - 40px);
    aspect-ratio: 16 / 9;
    max-height: none;
    height: auto;
    background: #000;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05); 
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.modal-video.instagram-layout {
    width: 100%;
    max-width: 450px; 
    height: 75vh; 
    min-height: 550px;
    aspect-ratio: auto;
    margin: 0; 
    background: transparent;
    border: none;
    box-shadow: none;
}

/* ========== ESPAÇO EXTRA DO MILANOTE ========== */
.modal-container.has-extra {
    margin-bottom: 540px; 
}

.modal-container.fullscreen-active {
    transform: none !important;
}

.modal-extra {
    position: absolute;
    top: calc(100% + 20px); 
    left: 0;
    width: 100%; 
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-extra iframe {
    width: 100% !important; 
    height: 500px; 
    border: none;
    display: block;
}

.expand-btn {
    position: absolute;
    top: 15px;
    right: 25px; 
    background: rgba(0, 0, 0, 0.8); 
    border: 2px solid rgba(255,255,255,0.1); 
    backdrop-filter: blur(10px);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.expand-btn:hover {
    background: #e63946;
    transform: scale(1.1);
    border-color: #e63946;
}

.modal-extra.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3000; 
    margin: 0 !important;
    border-radius: 0;
    border: none;
}

.modal-extra.fullscreen iframe {
    height: 100% !important;
}

.modal-extra.fullscreen .expand-btn {
    position: fixed !important; 
    top: 25px;
    right: 100px; 
    z-index: 99999;
}

.modal-info {
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 340px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    overflow: hidden;
}

.reveal-wrap {
    overflow: hidden;
    display: block;
    padding-bottom: 5px; 
}

.reveal-text {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .reveal-text {
    transform: translateY(0);
}

.modal-info-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.modal.show .modal-info-header h2 { transition-delay: 0.1s; }
.modal.show .modal-info-header .cat { transition-delay: 0.2s; }
.modal.show .modal-client-year .client { transition-delay: 0.3s; }
.modal.show .modal-client-year .year { transition-delay: 0.4s; }

.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .reveal-fade {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.modal-info-header {
    flex-shrink: 0;
}

.modal-info-header .cat {
    color: #e63946;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-client-year {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-client-year .client,
.modal-client-year .year {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 400;
}

.modal-client-year .client strong,
.modal-client-year .year strong {
    color: #fff;
}

.modal-info-scroll {
    flex: 1;
    overflow-y: auto; 
    padding-right: 15px;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.modal-info-scroll::-webkit-scrollbar {
    width: 3px;
}

.modal-info-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modal-info-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.modal-info-scroll p {
    color: #bbb;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
}

.close-modal {
    position: fixed; 
    top: 25px;
    right: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 99999; 
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-modal:hover {
    background: #e63946;
    border-color: #e63946;
    color: #fff;
    transform: scale(1.1) rotate(90deg); 
}

/* ========== FOOTER ========== */
.footer {
    background: #030303;
    text-align: center;
    padding: 60px 5%;
    border-top: 1px solid #111;
}

.social-links a {
    color: #666;
    margin: 0 15px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-5px); 
}

.footer p {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #444;
}

/* ========== RESPONSIVO (MOBILE E TABLET) ========== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 7rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 768px) {
    .site-header {
        background: rgba(3, 3, 3, 0.5); 
        padding: 20px 5%;
    }
    .mobile-toggle {
        display: block;
        margin-left: auto; 
    }
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(3,3,3,0.98);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 25px;
    }
    .main-nav.active {
        left: 0;
    }

    .hero {
        padding-top: 80px; 
    }

    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: 5px;
        margin-right: -5px; 
    }
    .hero-content p {
        font-size: 1rem;
        transform: translateX(0); 
    }
    .hero-filters {
        bottom: 30px;
        gap: 15px;
    }

    .trabalhos { 
        padding: 30px 5% 80px 5%; 
    }
    .trabalhos-grid {
        flex-direction: column;
        height: auto;
        max-height: none;
        gap: 15px;
    }
    .aristide-item {
        width: 100%;
        height: 250px; 
        flex: none !important;
        border-radius: 8px; 
    }
    .aristide-img {
        filter: grayscale(0%) brightness(70%);
    }
    .aristide-overlay {
        opacity: 1;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    }
    .aristide-info {
        opacity: 1;
        transform: translateY(0);
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .aristide-title {
        font-size: 1.5rem;
        white-space: normal; 
    }
    .aristide-play-overlay {
        opacity: 1;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 20px;
    }
    .play-text {
        padding: 8px 15px;
        font-size: 0.6rem;
        transform: scale(1) translateY(0);
    }
    
    .modal {
        padding: 10px;
        align-items: center;
    }
    .modal-container {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: auto;
        width: 100%;
        gap: 15px;
    }
    
    .modal-container.has-extra {
        margin-bottom: 0;
    }

    .modal-video {
        width: 100%;
        height: auto;
        max-height: none;
        flex: none;
    }
    
    .modal-video.instagram-layout {
        max-width: 100%;
        height: 70vh;
        min-height: 450px;
        margin: 0 auto;
    }

    .modal-extra {
        position: relative;
        top: auto;
        margin-top: 15px;
        width: 100%;
    }

    .modal-info {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        bottom: auto;
        flex: 1;
        padding: 20px;
        margin-top: 10px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .modal-extra.fullscreen .expand-btn {
        top: 15px;
        right: 70px; 
        width: 40px;
        height: 40px;
    }
}