/* ==============================
   RESET E VARIÁVEIS GLOBAIS
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f8f8f8;
    --accent-color: #007AFF;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    --vh: 1vh;
}

/* ==============================
   ESTILOS GLOBAIS
   ============================== */
html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Garantir que páginas secundárias não sobreponham o header */
body:not(.home-page) {
    padding-top: 0;
    z-index: 1;
    position: relative;
}

/* ==============================
   PÁGINA HOME ESPECÍFICA
   ============================== */
body.home-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* ==============================
   HEADER MODERNO
   ============================== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition-smooth);
}

.modern-header .header-logo a {
    display: inline-block;
    transition: var(--transition-fast);
}

.modern-header .header-logo a:hover {
    transform: scale(1.05);
}

.modern-header .header-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-fast);
}

/* ==============================
   MENU HORIZONTAL MODERNO
   ============================== */
.modern-header-nav {
    display: flex;
    gap: 36px;
    align-items: center;
}

.modern-nav-link {
    color: white;
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modern-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    backdrop-filter: blur(10px);
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: white;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modern-nav-link.active::after,
.modern-nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ==============================
   BOTÃO HAMBÚRGUER (MOBILE)
   ============================== */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.menu-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
    border-radius: 1px;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==============================
   SEÇÃO HERO
   ============================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease-out 0.5s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==============================
   FOOTER HERO
   ============================== */
.hero-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.location-info {
    color: white;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==============================
   MENU MOBILE OTIMIZADO
   ============================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 100001;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header-bar {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-close {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.3rem;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: scale(0.95);
}

.mobile-menu-content {
    flex: 1;
    padding: 30px 0;
    background: var(--white);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px 30px;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link.active {
    color: var(--accent-color);
    background: rgba(0, 122, 255, 0.05);
    transform: translateX(8px);
    padding-left: 38px;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.mobile-nav-link.active::after,
.mobile-nav-link:hover::after {
    transform: scaleY(1);
}

/* ==============================
   PÁGINAS SECUNDÁRIAS - HEADER
   ============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100000;
}

.header-logo img {
    height: 90px;
    max-width: 400px;
    filter: brightness(0) invert(0);
}

.header-nav {
    display: flex;
    gap: 36px;
    margin-top: 0;
}

.header-nav a {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 300;
    margin: 0 15px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

.header-nav a:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.2s, transform 0.2s;
}

.header-nav a.active::after,
.header-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* ==============================
   PÁGINAS SECUNDÁRIAS - MOBILE HEADER
   ============================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 100000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-logo-small img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(0);
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: var(--transition-fast);
    box-shadow: none;
    z-index: 100001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-fast);
    box-shadow: none;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==============================
   PÁGINAS SECUNDÁRIAS - CONTEÚDO
   ============================== */
.page-content {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--white);
}

.secondary-page {
    padding-top: 120px;
}

/* ==============================
   PÁGINA PROJETOS
   ============================== */

/* REGRA GLOBAL PARA GARANTIR VISIBILIDADE DOS FILTROS */
.filters-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    background: #fff !important;
    padding: 30px 60px 20px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    min-height: 100px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
    max-height: none !important;
    height: auto !important;
    margin-top: 120px !important;
}
.filters-section {
    background: #fff;
    padding: 30px 60px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* Container principal da página de projetos */
.projects-page {
    z-index: 1;
    position: relative;
}

/* Garantir que os filtros sejam sempre visíveis no desktop */
@media (min-width: 769px) {
    .filters-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        background: #fff !important;
        padding: 30px 60px 20px !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        min-height: 100px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        transform: none !important;
        padding-top: 30px !important;
        margin-top: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .filters-container {
        display: flex !important;
        gap: 30px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
    }
    
    .filter-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        min-width: 180px !important;
    }
    
    /* Garantir que nenhum elemento sobreponha os filtros no desktop */
    .filters-section * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .filters-section select {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        padding: 10px !important;
        min-width: 150px !important;
    }
    
    .filters-section label {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #333 !important;
        font-weight: 600 !important;
    }
    
    /* Garantir que os filtros sejam visíveis no desktop com margem adequada */
    .secondary-page .filters-section {
        margin-top: 120px !important;
        padding-top: 30px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 10 !important;
        background: #fff !important;
        min-height: 100px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        transform: none !important;
        max-height: none !important;
        height: auto !important;
    }
}

.filters-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #333;
}

.filter-group select:hover {
    border-color: #999;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.project-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.1s ease-out;
    cursor: pointer;
    background: transparent;
}

.project-card:hover {
    transform: scale(1.02);
    transition: transform 0.05s ease-out;
}

.project-image {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: transform 0.15s ease-out;
}

.project-card:hover .project-image {
    transform: scale(1.05);
    transition: transform 0.1s ease-out;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: none;
    color: white !important;
    padding: 15px 20px;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 10;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.1s ease-out;
}

.project-overlay .project-info {
    text-align: left;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #ffffff !important;
    display: block !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.project-type {
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: block !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
}

/* ==============================
   PÁGINA DETALHES DO PROJETO
   ============================== */
.project-details-page {
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.project-details-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 100px;
}

.project-sidebar {
    width: 400px;
    background: #fff;
    padding: 60px 40px;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    left: 0;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 10;
}

.project-info-card {
    max-width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-header {
    margin-bottom: 40px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
}

.project-category {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-details-list {
    margin-bottom: 40px;
}

.detail-group {
    margin-bottom: 25px;
}

.detail-group h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-group p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.project-description h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.project-gallery-main {
    flex: 1;
    margin-left: 400px;
    padding: 60px 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 4/3;
    border-radius: 4px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* ==============================
   PÁGINA ESCRITÓRIO
   ============================== */
.story-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    min-height: 100vh;
    padding-top: 140px;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.story-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.story-text p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.story-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
}

/* ==============================
   PÁGINA CONTATO
   ============================== */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    min-height: 100vh;
    padding-top: 140px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: #f0f0f0;
}

.contact-item:hover .contact-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #333, #555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-details h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%232c3e50' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.submit-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* ==============================
   RESPONSIVIDADE MOBILE
   ============================== */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
    }
    
    body.home-page {
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        overflow: hidden;
        background: #000;
        position: relative;
        width: 100%;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Remover apenas a tarja transparente na página home no mobile */
    body.home-page .modern-header {
        background: transparent !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
    }
    
    /* Header mobile otimizado */
    .modern-header {
        padding: 15px 20px;
        height: 70px;
        background: rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 10000;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .modern-header .header-logo img {
        height: 70px;
        max-width: 250px;
        object-fit: contain;
    }
    
    .modern-header-nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: flex;
        width: 48px;
        height: 48px;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .menu-toggle:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .menu-line {
        width: 22px;
        height: 2px;
    }
    
    /* Hero section mobile */
    .hero-section {
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        width: 100vw;
        position: relative;
        overflow: hidden;
        z-index: 1;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Garantir que a página home não tenha espaços no topo */
    body.home-page .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        top: 0 !important;
    }
    
    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        z-index: 1;
    }
    
    .hero-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.5) 100%
        );
        z-index: 2;
    }
    
    .hero-content {
        padding: 0 25px;
        margin-top: -50px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        opacity: 0.95;
    }
    
    /* Footer mobile otimizado */
    .hero-footer {
        padding: 20px;
        background: transparent;
        height: auto;
        min-height: 80px;
        z-index: 3;
    }
    
    .location-info {
        font-size: 0.95rem;
        font-weight: 400;
    }
    
    .social-media {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.25);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .social-link:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* Menu mobile responsivo */
    .mobile-menu {
        width: 280px;
        max-width: 90vw;
    }
    
    .mobile-menu-header-bar {
        padding: 18px 20px;
    }
    
    .mobile-menu-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .mobile-nav-link {
        font-size: 1.05rem;
        padding: 18px 25px;
        min-height: 56px;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:active,
    .mobile-nav-link.active {
        padding-left: 33px;
        transform: translateX(6px);
    }
    
    /* Páginas secundárias mobile */
    .header {
        display: none !important;
    }
    
    .mobile-header {
        display: flex !important;
        z-index: 100000 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        height: 70px;
        padding: 10px 20px;
    }
    
    .page-content {
        padding-top: 120px;
        z-index: 1;
        position: relative;
        overflow-x: hidden;
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 0 15px;
        z-index: 1;
        position: relative;
    }
    
    .filters-section {
        padding: 20px 15px !important;
        padding-top: 100px !important;
        z-index: 1 !important;
        position: relative !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #fff !important;
        margin-bottom: 20px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        min-height: 80px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        clip: auto !important;
        clip-path: none !important;
        transform: none !important;
        max-height: none !important;
        height: auto !important;
        margin-top: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Garantir que os filtros sejam visíveis no desktop mesmo dentro da media query mobile */
    @media (min-width: 769px) {
        .filters-section {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            position: relative !important;
            z-index: 10 !important;
            background: #fff !important;
            padding: 30px 60px 20px !important;
            margin-bottom: 0 !important;
            border-bottom: 1px solid #e0e0e0 !important;
            min-height: 100px !important;
            width: 100% !important;
            box-sizing: border-box !important;
            overflow: visible !important;
            clip: auto !important;
            clip-path: none !important;
            transform: none !important;
            max-height: none !important;
            height: auto !important;
            padding-top: 30px !important;
            margin-top: 120px !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
        }
    }
    
    .filters-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* Garantir que os elementos dos filtros sejam visíveis no desktop */
    @media (min-width: 769px) {
        .filters-container {
            display: flex !important;
            gap: 30px !important;
            align-items: center !important;
            justify-content: flex-start !important;
            flex-wrap: wrap !important;
            max-width: 1400px !important;
            margin: 0 auto !important;
        }
        
        .filter-group {
            display: flex !important;
            flex-direction: column !important;
            gap: 8px !important;
            min-width: 180px !important;
        }
        
        .filters-section * {
            visibility: visible !important;
            opacity: 1 !important;
        }
        
        .filters-section select {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            background: #fff !important;
            border: 1px solid #ddd !important;
            padding: 10px !important;
            min-width: 150px !important;
        }
        
        .filters-section label {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            color: #333 !important;
            font-weight: 600 !important;
        }
    }
    
    .project-details-container {
        flex-direction: column;
        gap: 0;
        margin-top: 100px !important;
        min-height: auto !important;
        background: transparent !important;
    }
    
    .project-sidebar {
        width: 100%;
        padding: 30px 20px;
        position: relative !important;
        order: 1;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        overflow-y: visible !important;
        z-index: 1;
        border-right: none !important;
        background: transparent !important;
    }
    
    .project-gallery-main {
        width: 100%;
        padding: 20px;
        order: 2;
        margin-left: 0;
        position: relative;
        z-index: 1;
        background: transparent;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-info-card {
        max-width: 100%;
        background: #fff !important;
        padding: 20px !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        margin-bottom: 20px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-section {
        padding: 1rem;
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .modern-header {
        padding: 12px 18px;
        height: 65px;
    }
    
    .modern-header .header-logo img {
        height: 65px;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .hero-footer {
        padding: 18px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }
    
    .location-info {
        font-size: 0.9rem;
        order: 2;
    }
    
    .social-media {
        order: 1;
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 20px;
        text-align: center;
    }
    
    .mobile-menu {
        width: 260px;
        max-width: 95vw;
    }
    
    .mobile-menu-content {
        padding: 25px 0;
    }
    
    .mobile-nav-link {
        font-size: 1rem;
        padding: 16px 20px;
        min-height: 52px;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link:active,
    .mobile-nav-link.active {
        padding-left: 28px;
        transform: translateX(5px);
    }
    
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 20px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .story-text h2,
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-section {
        padding: 0.5rem;
        padding-top: 100px;
    }
    
    .contact-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 360px) {
    .modern-header {
        padding: 10px 15px;
        height: 60px;
    }
    
    .modern-header .header-logo img {
        height: 60px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }
    
    .hero-footer {
        padding: 15px;
        gap: 12px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 0.25rem;
        padding-top: 90px;
    }
    
    .contact-content {
        padding: 0 0.25rem;
        gap: 1rem;
    }
    
    /* Política de privacidade mobile */
    .privacy-section {
        padding: 1rem;
        padding-top: 100px;
    }
    
    .privacy-container {
        padding: 1.5rem;
    }
    
    .privacy-container h1 {
        font-size: 2rem;
    }
    
    .privacy-section-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section-content h3 {
        font-size: 1.1rem;
    }
    
    .privacy-section-content p,
    .privacy-section-content li {
        font-size: 0.9rem;
    }
}

/* ==============================
   FIXES PARA MOBILE BROWSERS
   ============================== */
@supports (-webkit-touch-callout: none) {
    body.home-page {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
    
    .hero-section {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
    
    .mobile-menu {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
    
    .mobile-menu-overlay {
        height: -webkit-fill-available;
        min-height: 100vh;
    }
}

/* Otimizações para mobile browsers */
@media screen and (max-width: 768px) {
    body.home-page {
        overscroll-behavior: none;
        -webkit-overscroll-behavior: none;
        position: relative;
        overflow: hidden;
    }
    
    .hero-image {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .mobile-menu {
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    * {
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .hero-title,
    .hero-subtitle,
    .location-info {
        -webkit-user-select: text;
        user-select: text;
    }
    
    /* Correções específicas para problemas de mobile */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Garantir que o html da página home não tenha espaçamento */
    body.home-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    html body.home-page {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .modern-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100000 !important;
    }
    
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 100000 !important;
    }
}

@media (display-mode: standalone) {
    body.home-page {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .modern-header {
        padding-top: calc(15px + env(safe-area-inset-top));
        padding-left: calc(20px + env(safe-area-inset-left));
        padding-right: calc(20px + env(safe-area-inset-right));
    }
    
    .hero-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
        padding-left: calc(20px + env(safe-area-inset-left));
        padding-right: calc(20px + env(safe-area-inset-right));
    }
}

/* ==============================
   PÁGINA POLÍTICA DE PRIVACIDADE
   ============================== */
.privacy-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    min-height: 100vh;
    padding-top: 140px;
}

.privacy-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.privacy-container h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.privacy-section-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem 0;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.privacy-section-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.privacy-section-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.privacy-section-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.privacy-section-content li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.privacy-section-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-info-privacy {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.contact-info-privacy p {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-info-privacy a {
    color: var(--accent-color);
    text-decoration: underline;
}

.contact-info-privacy a:hover {
    color: #0056b3;
}

/* ==============================
   CHECKBOX DE CONSENTIMENTO LGPD
   ============================== */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-light);
}

.consent-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.2rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}

.consent-label span {
    flex: 1;
}

.consent-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.consent-label a:hover {
    color: #0056b3;
}

/* ==============================
   BANNER DE COOKIES
   ============================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 1rem 2rem;
    z-index: 1000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.cookie-banner button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Responsividade do banner de cookies */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .cookie-banner p {
        font-size: 0.85rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .cookie-banner button {
        align-self: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.8rem;
    }
    
    .cookie-banner p {
        font-size: 0.8rem;
    }
    
    .cookie-banner button {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ==============================
   ANIMAÇÕES
   ============================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================
   MODAL DE IMAGENS
   ============================== */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.modal-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.modal-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

/* ==============================
   CORREÇÕES PARA MOBILE - PROJETOS
   ============================== */
@media (max-width: 768px) {
    /* Mostrar sempre o nome e tipo do projeto no mobile */
    .project-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
        padding: 20px 15px;
    }
    
    .project-name {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .project-type {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    /* Ajustes para o modal no mobile - mais próximo do menu */
    .image-modal {
        align-items: flex-start !important;
        padding-top: 50px !important;
    }
    
    .modal-image {
        max-width: 95% !important;
        max-height: 85% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .modal-nav {
        padding: 0 15px;
    }
    
    .modal-nav button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .project-overlay {
        padding: 15px 12px;
    }
    
    .project-name {
        font-size: 1rem;
    }
    
    .project-type {
        font-size: 0.75rem;
    }
    
    /* Modal ainda mais próximo do menu em telas pequenas */
    .image-modal {
        align-items: flex-start !important;
        padding-top: 40px !important;
    }
    
    .modal-image {
        max-width: 98%;
        max-height: 80%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-nav {
        padding: 0 10px;
    }
    
    .modal-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

       /* ==============================
          AJUSTES PARA DESKTOP - MODAL
          ============================== */
       @media (min-width: 769px) {
           /* Modal com posicionamento mais inteligente para desktop */
           .image-modal {
               align-items: center !important;
               justify-content: center !important;
               padding: 80px 20px !important;
               box-sizing: border-box !important;
           }
           
           /* Imagem com dimensionamento mais inteligente */
           .modal-image {
               max-width: 95% !important;
               max-height: 85vh !important;
               width: auto !important;
               height: auto !important;
               object-fit: contain !important;
               display: block !important;
               margin: 0 auto !important;
               box-sizing: border-box !important;
               /* Garantir que a imagem nunca seja cortada */
               clip-path: none !important;
               overflow: visible !important;
           }
           
           /* Ajustes específicos para diferentes aspectos de imagem */
           .modal-image[src*="landscape"],
           .modal-image[src*="wide"] {
               max-height: 75vh !important;
               max-width: 90% !important;
           }
           
           .modal-image[src*="portrait"],
           .modal-image[src*="tall"] {
               max-height: 90vh !important;
               max-width: 80% !important;
           }
           
           .modal-image[src*="square"] {
               max-height: 80vh !important;
               max-width: 85% !important;
           }
       }

/* ==============================
   CORREÇÃO FORÇADA PARA DESKTOP - MODAL
   ============================== */
@media (min-width: 769px) {
    /* Modal com posicionamento mais inteligente para desktop */
    .image-modal {
        align-items: center !important;
        justify-content: center !important;
        padding: 80px 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Imagem com dimensionamento mais inteligente */
    .modal-image {
        max-width: 95% !important;
        max-height: 85vh !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        /* Garantir que a imagem nunca seja cortada */
        clip-path: none !important;
        overflow: visible !important;
    }
    
    /* Ajustes específicos para diferentes aspectos de imagem */
    .modal-image[src*="landscape"],
    .modal-image[src*="wide"] {
        max-height: 75vh !important;
        max-width: 90% !important;
    }
    
    .modal-image[src*="portrait"],
    .modal-image[src*="tall"] {
        max-height: 90vh !important;
        max-width: 80% !important;
    }
    
    .modal-image[src*="square"] {
        max-height: 80vh !important;
        max-width: 85% !important;
    }
}

/* ==============================
   MENSAGENS DO FORMULÁRIO
   ============================== */
.mensagem-formulario {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    animation: fadeInUp 0.3s ease-out;
}

.mensagem-formulario.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem-formulario.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mensagem-formulario.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 768px) {
    .mensagem-formulario {
        padding: 12px 16px;
        margin-bottom: 15px;
        font-size: 14px;
    }
}
