/* 
  Design Philosophy: A24 Style - Minimalista, Clean, Moderno
  Cores: Preto (#000), Branco (#fff), Verde Cinzentado (#4a6741)
  Tipografia: Futura / Montserrat (moderna, clean)
  Responsivo: Desktop (vídeos) + Mobile (cartazes)
*/

/* Fontes carregadas via <link> em cada HTML para evitar @import bloqueante */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #111A17;
    --primary-white: #F3F8F4;
    --accent-green-light: #718878;
    --accent-green-dark: #244235;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --border-color: #e0e0e0;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Space Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-black);
    background-color: var(--primary-white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 400;
}

/* Títulos principais com estilo da home */
.page-title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary-white);
    letter-spacing: -0.5px;
    line-height: 1.15;
    font-style: italic;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 500;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    font-weight: 300;
}

/* Navbar - A24 Style (Transparent Overlay) */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10; /* Reduzido para não bloquear cliques no conteúdo abaixo */
    background-color: transparent;
    padding: 1rem 2rem 2rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

    .nav-logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(0) invert(1);
    transition: all 0.3s ease;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 0.5rem;
    position: fixed;
    top: 80px;
    right: 0;
    width: 200px;
    height: auto;
    background-color: rgba(243, 248, 244, 0.6);
    flex-direction: column;
    padding: 2rem 1.5rem;
    border: none;
    box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-green-light);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.hamburger.active span {
    background-color: var(--primary-black);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--primary-black);
}

.hero.mobile-only {
    height: auto;
    min-height: 100vh;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: glitch-in 0.6s ease-out;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sem efeito de transição - carregamento direto */

/* Logo Centralizada */
.hero-logo-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.hero-logo {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(0) invert(1);
    opacity: 0.95;
    transition: all 0.3s ease;
}

/* Esconder logo do nav no desktop (só na home) */
.desktop-hide {
    display: none;
}

@media (max-width: 768px) {
    .desktop-hide {
        display: block;
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem 3rem 2rem;
}

.hero-titles {
    width: 100%;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-height: 280px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-list::-webkit-scrollbar {
    display: none;
}

.project-title {
    cursor: pointer;
    font-size: 2.2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--primary-white);
    transition: all 0.3s ease;
    padding: 0.15rem 0;
    border-left: none;
    padding-left: 0;
    letter-spacing: -0.5px;
    line-height: 1.15;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    opacity: 0.7;
}

.project-title .title-text {
    font-style: italic;
}

.project-title .title-year {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
    font-style: normal;
}

.project-title:hover {
    color: var(--accent-green-light);
    opacity: 1;
}

.project-title.active {
    color: var(--primary-white);
    opacity: 1;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-white);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 20;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Carousel */
.hero-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-items {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: relative;
    z-index: 1;
}

.carousel-item {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: var(--primary-black);
}

/* Mobile Titles Inside Video */
    .hero-titles-mobile {
        position: absolute;
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        cursor: pointer;
    }
    
    .title-item {
        display: flex;
        align-items: baseline;
        gap: 0.4rem;
        color: var(--primary-white);
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }
    
    .title-item .title-text {
        font-size: 1.2rem;
        font-weight: 400;
        font-style: italic;
        line-height: 1.25;
        display: block;
        margin: 0;
        opacity: 0.6;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }
    
    .title-item .title-year {
        font-size: 0.6rem;
        font-weight: 400;
        opacity: 0.5;
        display: inline;
    }
    
    .title-item.active .title-text {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 1;
    }
    
    .title-item.active .title-year {
        opacity: 0.8;
    }
    
    .hero-arrow-mobile {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        z-index: 10;
        color: var(--primary-white);
        font-size: 0.8rem;
        opacity: 0.6;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    /* Mobile Title Outside Video - Hidden */
    .hero-title-outside-mobile {
        display: none;
    }

    .arrow-indicator {
        display: none;
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Projects Section */
.projects-section {
    padding: 6rem 2rem;
    background-color: var(--primary-black);
}

.projects-section h2 {
    color: var(--primary-white);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--primary-white);
    background-color: var(--primary-black);
    color: var(--primary-white);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    background-color: var(--accent-green-light);
    color: var(--primary-white);
    border-color: var(--accent-green-light);
}

.filter-btn.active {
    background-color: var(--accent-green-dark);
    color: var(--primary-white);
    border-color: var(--accent-green-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--primary-white);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.project-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    background-color: var(--primary-white);
    display: block;
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-card-meta {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.project-card-type {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--primary-white);
    padding: 0.3rem 0.8rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Section */
.about-section {
    padding: 6rem 2rem;
    background-color: var(--primary-white);
    border-top: 1px solid var(--primary-black);
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--primary-black);
}

.about-photo {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    aspect-ratio: 3/4;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 0.95rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--primary-black);
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 0 1.8rem 0;
    padding: 0;
    max-width: 100%;
}

.about-text strong {
    font-weight: 700;
    color: var(--primary-black);
}

.about-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.9;
}
.contact-section {
    background-color: transparent;
    padding: 2rem 0;
    border-radius: 0;
    border-top: 1px solid var(--primary-black);
    padding-top: 3rem;
}3px solid var(--accent-green);
}

.contact-section h3 {
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    font-size: 1rem;
}

.contact-item a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.contact-btn {
    padding: 1rem 1.5rem;
    background-color: var(--accent-green);
    color: var(--primary-white);
    border: none;
    border-radius: 0;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 103, 65, 0.3);
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0.5rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-container p {
    color: var(--primary-white);
    margin-bottom: 0.25rem;
    font-weight: 300;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
}

.social-links a:hover {
    color: var(--accent-green);
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        overflow: visible;
    }

    .hero-container {
        height: auto;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    /* Vídeo quadrado no mobile */
    .hero-media.mobile-only {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .hero-media.mobile-only video {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Subir títulos no mobile */
    .hero-titles-mobile {
        bottom: 5rem;
    }

    .nav-container {
        padding: 0;
    }

    .navbar {
        padding: 1.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .hero-logo {
        height: 60px;
    }

    .hamburger span {
        width: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .project-title {
        font-size: 0.9rem;
    }

    .hero-overlay {
        padding: 2rem 1.5rem 2rem 1.5rem;
    }

    .hero-overlay-mobile {
        padding: 3rem 1rem 1.5rem 1rem;
        min-height: 170px;
    }

    .hero-title-mobile .project-title-large {
        font-size: 1.7rem;
    }

    .projects-section,
    .about-section {
        padding: 4rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-image {
        height: 250px;
    }

    .about-main {
        display: block;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .about-photo {
        display: none;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-content {
        gap: 1rem;
        width: 100%;
        margin: 0 auto;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.7;
        text-align: justify;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin: 0 0 1.8rem 0;
        padding: 0 1.5rem;
    }

    .about-text {
        width: 100%;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .project-title {
        font-size: 0.85rem;
    }

    .hero-overlay {
        padding: 1.5rem 1rem 1.5rem 1rem;
    }

    .hero-overlay-mobile {
        padding: 3rem 0.8rem 1rem 0.8rem;
        min-height: 160px;
    }

    .hero-title-mobile .project-title-large {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .projects-section,
    .about-section {
        padding: 3rem 1rem;
    }

    .project-card-content {
        padding: 1rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .logo-img {
        height: 35px;
    }

    .hero-logo {
        height: 50px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}


/* YouTube Thumbnail Styles */
.projeto-video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
    background-color: var(--primary-black);
    border-radius: 0;
    overflow: hidden;
}

.youtube-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
}

.youtube-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.youtube-thumbnail a:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    padding: 0;
    padding-left: 4px;
}

.play-button svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.youtube-thumbnail a:hover .play-button {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Mobile - Botão de play menor */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
        background-color: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .youtube-thumbnail a:hover .play-button {
        background-color: rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.projeto-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.projeto-description {
    padding: 2rem;
    background-color: var(--primary-white);
}

.projeto-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-black);
}

.projeto-ficha {
    padding: 2rem;
    background-color: var(--light-gray);
}

.projeto-ficha h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ficha-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.ficha-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ficha-label {
    font-weight: 600;
    color: var(--primary-black);
}

.ficha-value {
    color: var(--dark-gray);
}


/* YouTube Modal Styles */
.youtube-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.youtube-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    max-height: 600px;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    overflow: hidden;
}

.youtube-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.youtube-modal-close:hover {
    color: var(--accent-green-light);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .youtube-modal-content {
        width: 95%;
        height: 60vh;
        max-height: 400px;
    }
    
    .youtube-modal-close {
        font-size: 30px;
        right: 10px;
        top: 10px;
    }
}
