/* Família de fontes Futurist completa */
@font-face {
    font-family: 'Futurist';
    src: url('../img/logo/fonte/Futurist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futurist';
    src: url('../img/logo/fonte/Futurist-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futurist';
    src: url('../img/logo/fonte/Futurist-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Futurist';
    src: url('../img/logo/fonte/Futurist-Bold-Italic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'FUTRFW';
    src: url('../img/logo/fonte/FUTRFW.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FUTRST';
    src: url('../img/logo/fonte/FUTRST.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FUTRST';
    src: url('../img/logo/fonte/FUTRSTB.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FUTRST';
    src: url('../img/logo/fonte/FUTRSTI.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'FUTRST';
    src: url('../img/logo/fonte/FUTRSTBI.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Fonte Calibre (se disponível localmente) ou fallback para Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta de cores baseada em #cccccc */
    --primary-color: #cccccc;       /* Cor principal */
    --primary-hover: #b8b8b8;       /* Hover mais escuro */
    --secondary-color: #999999;     /* Cinza médio */
    --accent-color: #777777;        /* Cinza escuro para contraste */
    --bg-color: #cccccc;            /* Fundo principal #cccccc */
    --card-bg: #cccccc;             /* Mesma cor do site para consistência */
    --text-primary: #333333;        /* Texto principal escuro */
    --text-secondary: #666666;      /* Texto secundário */
    --border-color: #cccccc;        /* Bordas com a cor principal */
    --glass-bg: rgba(204, 204, 204, 0.15); /* Glass effect com #cccccc */
}

body {
    font-family: 'Futurist', 'FUTRFW', 'FUTRST', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

/* Classes utilitárias para fontes */
.futurist-font {
    font-family: 'Futurist', sans-serif;
}

.futurist-regular {
    font-family: 'Futurist', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.futurist-bold {
    font-family: 'Futurist', sans-serif;
    font-weight: 700;
    font-style: normal;
}

.futurist-italic {
    font-family: 'Futurist', sans-serif;
    font-weight: 400;
    font-style: italic;
}

.futurist-bold-italic {
    font-family: 'Futurist', sans-serif;
    font-weight: 700;
    font-style: italic;
}

.futrst-font {
    font-family: 'FUTRST', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futurist', 'FUTRST', Arial, sans-serif;
    font-weight: 700;
}

.tab-active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
    background-color: rgba(204, 204, 204, 0.1);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.tab-active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
}

.project-card {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal {
    backdrop-filter: blur(10px);
}

/* Garantir que o modal de projetos seja sempre exibido corretamente */
#project-modal {
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#project-modal.hidden {
    display: none !important;
    pointer-events: none !important;
}

#project-modal:not(.hidden) {
    display: flex;
    pointer-events: auto;
}

.glass-effect {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Estilos para a página inicial */
#content-inicio {
    padding: 0;
}

#content-inicio .bg-opacity-90 {
    backdrop-filter: blur(5px);
}

#content-inicio .h-screen {
    height: calc(100vh - 64px); /* Ajusta a altura considerando o cabeçalho */
}

/* Garantir que a imagem inicial ocupe todo o container */
#content-inicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajustes para os projetos em destaque */
#content-inicio .group:hover h4 {
    color: #4a5568;
}

#content-inicio .group {
    transition: transform 0.3s ease;
}

#content-inicio .group:hover {
    transform: translateY(-5px);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    #content-inicio .h-screen {
        height: auto;
    }
    
    #content-inicio .w-full.md\:w-2\/3 {
        height: 50vh;
    }
}

/* Melhoria nas imagens de fundo */
.bg-cover.bg-center {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Aplicar cor principal em elementos importantes */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.text-primary {
    color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.content-section {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Estilos específicos do header */
header.glass-effect {
    background-color: var(--bg-color);
    padding: 1.25rem 0;
    border: none;
    position: relative;
    z-index: 100;
}

.content-section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.editable {
    position: relative;
}

/* Efeito de hover apenas no modo admin */
.admin-mode .editable:hover {
    background-color: rgba(255, 255, 0, 0.1);
    cursor: pointer;
}

.admin-mode .editable::after {
    content: '✏️';
    position: absolute;
    right: 5px;
    top: 5px;
    opacity: 0.5;
}

/* Classe para fundo padrão do site */
.site-bg {
    background-color: var(--bg-color);
}

/* Estilos para modal administrativo */
#admin-panel {
    backdrop-filter: blur(5px);
}

/* Sincronização de altura entre texto e imagem na seção "Nós" */
@media (min-width: 768px) {
    .image-container {
        position: relative;
        min-height: 400px; /* Altura mínima garantida */
    }
    
    /* Força layout lado a lado em desktop */
    .flex.md\\:flex-row {
        display: flex !important;
        flex-direction: row !important;
    }
    
    .flex-1 {
        flex: 1 !important;
    }
    
    #text-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-width: 45%;
        max-width: 50%;
    }
    
    .image-container {
        min-width: 45%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .flex.md\\:flex-row {
        flex-direction: column !important;
    }
    
    .image-container {
        order: 2;
    }
    
    #text-content {
        order: 1;
    }
}

/* JavaScript será usado para sincronizar as alturas */
.height-synced {
    min-height: var(--text-height, auto);
}

#admin-panel .site-bg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Scrollbar personalizada para o modal */
#admin-panel .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#admin-panel .overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#admin-panel .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#admin-panel .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Estilos para inputs de arquivo no admin */
input[type="file"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background-color: white !important;
    font-size: 14px !important;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: #374151;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #4b5563;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

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

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 10001;
    transition: background-color 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lightbox-nav:disabled:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* Clickable images cursor */
.clickable-image {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}