/* =========================================
   PIERRE CRAPEZ - PORTFOLIO SITE
   Styles.css - Estilos Principais
   ========================================= */

/* -----------------------------------------
   1. CSS Reset e Variáveis
   ----------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --color-background: #F5F5F0;
    --color-background-alt: #EEEEE8;
    --color-surface: #FFFFFF;
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-muted: #7A7A7A;
    --color-accent: #2C2C2C;
    --color-accent-hover: #1A1A1A;
    --color-border: #D4D4D0;
    --color-border-light: #E8E8E4;
    
    /* Cores de Estado */
    --color-success: #2E7D32;
    --color-error: #C62828;
    --color-warning: #EF6C00;
    
    /* Cor de destaque (laranja) */
    --color-highlight: #E85D04;
    
    /* Tipografia */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Tamanhos de Fonte */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Larguras */
    --max-width: 1400px;
    --header-height: 80px;
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* -----------------------------------------
   2. Estilos Base
   ----------------------------------------- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
}

/* Scrollbar Minimalista */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-primary);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* -----------------------------------------
   3. Header
   ----------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.logo:hover h1 {
    color: var(--color-text-secondary);
}

/* Navegação */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-separator {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    user-select: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link.active {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 4px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* -----------------------------------------
   4. Conteúdo Principal
   ----------------------------------------- */
.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* -----------------------------------------
   5. Página Inicial - Hero Home
   ----------------------------------------- */
.hero-home {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
    background-color: var(--color-background);
}

.hero-home-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-home-image {
    display: flex;
    justify-content: flex-end;
}

.hero-home-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.hero-home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-home-name {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero-home-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    min-height: 2rem;
    display: flex;
    align-items: center;
}

.hero-home-subtitle .typing-cursor {
    background-color: var(--color-highlight);
    height: 1.2em;
}

/* Introdução */
.intro-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-surface);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-quote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-xl);
    border-left: 3px solid var(--color-border);
    text-align: left;
}

.intro-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Destaques */
.featured-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-background);
}

.section-title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.featured-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.featured-info {
    padding: var(--spacing-md);
}

.featured-info h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xs);
}

.featured-info p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.section-action {
    text-align: center;
}

/* -----------------------------------------
   6. Botões
   ----------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-surface);
    border: 2px solid var(--color-accent);
}

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

.btn-secondary {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

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

.btn-danger {
    background-color: var(--color-error);
    color: var(--color-surface);
    border: 2px solid var(--color-error);
}

.btn-danger:hover {
    background-color: #B71C1C;
    border-color: #B71C1C;
}

/* -----------------------------------------
   7. Página Sobre
   ----------------------------------------- */
.about-section {
    padding: var(--spacing-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-image {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-xl));
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-align: justify;
}

.about-details h3,
.about-contact h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.details-list li {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    padding-left: var(--spacing-lg);
    position: relative;
}

.details-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

.about-contact p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.contact-email {
    margin-top: var(--spacing-md);
}

.contact-email a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-email a:hover {
    text-decoration: none;
}

/* -----------------------------------------
   8. Página Trabalhos - Galeria
   ----------------------------------------- */
.gallery-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl);
}

.gallery-header {
    margin-bottom: var(--spacing-2xl);
}

.gallery-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-xl);
}

/* Filtros - Estilo Pílula */
.gallery-filters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-secondary);
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-primary);
}

.filter-btn.active {
    background-color: var(--color-text-primary);
    color: var(--color-background);
    border-color: var(--color-text-primary);
}

/* Separador de filtros */
.filter-separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-border-light);
    margin: var(--spacing-sm) 0;
}

/* -----------------------------------------
   Layout da Galeria com Painel
   ----------------------------------------- */
.gallery-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: calc(100vh - var(--header-height) - 100px);
}

.gallery-main {
    flex: 1;
    min-width: 0;
    padding-right: var(--spacing-xl);
}

/* -----------------------------------------
   Painel Lateral Sticky - Exposição
   ----------------------------------------- */
.exhibition-panel {
    position: sticky;
    top: var(--header-height);
    width: 0;
    flex-shrink: 0;
    background-color: var(--color-background);
    border-left: 1px solid var(--color-border-light);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, width 0.4s ease;
    align-self: stretch;
    margin-top: calc(-1 * var(--spacing-2xl));
    padding-top: var(--spacing-2xl);
    margin-bottom: calc(-1 * var(--spacing-3xl));
    padding-bottom: var(--spacing-3xl);
}

.exhibition-panel.visible {
    width: 340px;
    opacity: 1;
    visibility: visible;
}

.exhibition-panel-content {
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-2xl) + var(--spacing-sm));
    display: flex;
    flex-direction: column;
    min-width: 340px;
}

.exhibition-panel-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-highlight);
    margin-bottom: var(--spacing-sm);
}

.exhibition-panel-name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

.exhibition-panel-divider {
    width: 40px;
    height: 1px;
    background-color: var(--color-border);
    margin: var(--spacing-md) 0;
}

.exhibition-panel-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.exhibition-panel-detail {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.exhibition-panel-detail-label {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.exhibition-panel-detail-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
}

.exhibition-panel-description {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-top: auto;
    padding-top: var(--spacing-lg);
}

/* Transição do texto interno */
.exhibition-panel-name,
.exhibition-panel-detail-value,
.exhibition-panel-description {
    transition: opacity 0.3s ease;
}

.exhibition-panel.changing .exhibition-panel-name,
.exhibition-panel.changing .exhibition-panel-detail-value,
.exhibition-panel.changing .exhibition-panel-description {
    opacity: 0;
}

/* Reduzir movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .exhibition-panel {
        transition: none;
    }
    
    .exhibition-panel-name,
    .exhibition-panel-detail-value,
    .exhibition-panel-description {
        transition: none;
    }

    .gallery-item {
        animation: none;
        opacity: 1;
    }
}

/* Painel Mobile - Horizontal (oculto em desktop) */
.exhibition-panel-mobile {
    display: none;
}

/* Grid do Mural - Layout Masonry */
.gallery-grid {
    column-count: 4;
    column-gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    cursor: pointer;
    margin-bottom: var(--spacing-md);
    break-inside: avoid;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: galleryItemIn 0.5s ease forwards;
}

@keyframes galleryItemIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Delay escalonado para os itens */
.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.05s; }
.gallery-item:nth-child(3) { animation-delay: 0.1s; }
.gallery-item:nth-child(4) { animation-delay: 0.15s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.25s; }
.gallery-item:nth-child(7) { animation-delay: 0.3s; }
.gallery-item:nth-child(8) { animation-delay: 0.35s; }
.gallery-item:nth-child(9) { animation-delay: 0.4s; }
.gallery-item:nth-child(10) { animation-delay: 0.45s; }
.gallery-item:nth-child(n+11) { animation-delay: 0.5s; }

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

.gallery-empty {
    text-align: center;
    padding: var(--spacing-3xl);
    color: var(--color-text-muted);
    grid-column: 1 / -1;
    opacity: 0;
    animation: fadeInEmpty 0.4s ease 0.3s forwards;
}

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

/* -----------------------------------------
   9. Galeria - Itens de Vídeo
   ----------------------------------------- */

/* Remover autoplay hover - apenas efeito de crescimento */
.gallery-item video {
    display: none !important;
}

.gallery-item[data-type="video"] .gallery-image {
    position: relative;
}

/* Indicador de vídeo pequeno no canto superior direito */
.video-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: opacity 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.gallery-item:hover .video-indicator {
    opacity: 0.7;
}

.video-indicator svg {
    width: 14px;
    height: 14px;
    color: var(--color-highlight);
    fill: var(--color-highlight);
}

/* Esconder duração da galeria */
.video-duration {
    display: none;
}

.gallery-item-video {
    cursor: pointer;
}

.gallery-item-video .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-item-video .video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.gallery-item-video:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item-video .video-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item-video:hover .video-play-icon {
    transform: scale(1.1);
    background: #fff;
}

.gallery-item-video .video-play-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-highlight);
    margin-left: 4px;
}

/* -----------------------------------------
   10. Lightbox
   ----------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height - melhor suporte mobile */
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    /* Prevenir scroll no body quando lightbox está aberto */
    overflow: hidden;
    overscroll-behavior: contain;
    /* Garantir que cubra toda a tela em mobile */
    -webkit-overflow-scrolling: touch;
}

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

/* Quando lightbox está ativo, bloquear scroll do body */
body.lightbox-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 48px;
    height: 48px;
    font-size: var(--text-3xl);
    color: var(--color-surface);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: var(--text-2xl);
    color: var(--color-surface);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    z-index: 10;
}

.lightbox-prev {
    left: var(--spacing-lg);
}

.lightbox-next {
    right: var(--spacing-lg);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    display: flex;
    max-width: 90vw;
    max-height: 90vh;
    gap: var(--spacing-xl);
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-info {
    width: 300px;
    padding: var(--spacing-xl);
    color: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow-y: auto;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-surface);
}

.lightbox-category {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-date,
.lightbox-location {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-description {
    font-size: var(--text-base);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------
   11. Video Player - Lightbox
   ----------------------------------------- */

/* Container do vídeo no lightbox */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumbnail/Poster do vídeo */
.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-poster-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Botão de play central no poster */
.video-play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-play-button:hover {
    transform: scale(1.05);
}

.video-play-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid var(--color-highlight);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-play-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-highlight);
    margin-left: 4px;
}

.video-play-button:hover .video-play-icon {
    background: rgba(232, 93, 4, 0.15);
    transform: scale(1.05);
}

.video-play-text {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-highlight);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* -----------------------------------------
   12. Video Player - Controles
   ----------------------------------------- */

/* Container dos controles */
.video-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 0 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

/* Mostrar controles quando hover, classe ativa ou pausado */
.video-container:hover .video-player-controls,
.video-container.show-controls .video-player-controls,
.video-container.paused .video-player-controls {
    opacity: 1;
    pointer-events: auto;
}

/* ESCONDER controles quando poster está visível */
.video-container:has(.video-poster-overlay:not(.hidden)) .video-player-controls {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fallback para navegadores sem :has() */
.video-container .video-poster-overlay:not(.hidden) ~ .video-player-controls {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Barra de progresso */
.video-player-progress {
    width: 100%;
    padding: 0 20px;
    cursor: pointer;
    order: 1;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: height 0.2s ease;
}

.video-player-progress:hover .video-progress-bar {
    height: 6px;
}

.video-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-highlight);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

/* Handle/Círculo do progresso */
.video-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 14px;
    height: 14px;
    background: var(--color-highlight);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    pointer-events: none;
    left: 0%;
}

.video-player-progress:hover .video-progress-handle,
.video-progress-bar.dragging .video-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Barra de ferramentas */
.video-controls-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    order: 2;
}

/* Botões dos controles */
.video-control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.video-control-btn svg {
    width: 20px;
    height: 20px;
}

/* Tempo do vídeo */
.video-time-display {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    margin-left: 8px;
}

/* Espaçador */
.video-controls-spacer {
    flex: 1;
}

/* -----------------------------------------
   13. Volume - Slider aparece à DIREITA
   ----------------------------------------- */
.video-volume-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    position: relative;
}

.video-volume-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease, margin 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.video-volume-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.video-volume-btn svg {
    width: 20px;
    height: 20px;
}

/* Quando hover, o ícone move para esquerda */
.video-volume-container:hover .video-volume-btn {
    margin-left: -80px;
}

/* Slider container - aparece à DIREITA do botão */
.video-volume-slider-container {
    position: absolute;
    right: 0;
    width: 0;
    overflow: visible;
    transition: width 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

/* Quando hover, slider aparece */
.video-volume-container:hover .video-volume-slider-container {
    width: 75px;
    opacity: 1;
    pointer-events: auto;
}

/* Slider com barra colorida */
.video-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    overflow: visible;
    background: linear-gradient(
        to right,
        var(--color-highlight) 0%,
        var(--color-highlight) var(--volume-percent, 100%),
        rgba(255, 255, 255, 0.3) var(--volume-percent, 100%),
        rgba(255, 255, 255, 0.3) 100%
    );
}

/* Track - WebKit */
.video-volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

/* Thumb - Círculo laranja */
.video-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-highlight);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
    margin-top: -5px;
    border: none;
    position: relative;
    z-index: 10;
}

.video-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox */
.video-volume-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
}

.video-volume-slider::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--color-highlight);
}

.video-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--color-highlight);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------
   14. Fullscreen
   ----------------------------------------- */
.video-fullscreen-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.video-fullscreen-btn svg {
    width: 20px;
    height: 20px;
}

/* -----------------------------------------
   15. Estados do Vídeo
   ----------------------------------------- */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-highlight);
    border-radius: 50%;
    animation: videoSpin 0.8s linear infinite;
    z-index: 15;
    display: none;
}

.video-container.loading .video-loading-spinner {
    display: block;
}

@keyframes videoSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* -----------------------------------------
   16. Footer
   ----------------------------------------- */
.footer {
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    order: 1;
}

.footer-right {
    display: flex;
    align-items: center;
    order: 2;
}

.footer-credit {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer-credit a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--color-text-primary);
}

/* Morphing Shape - Forma Geométrica Animada */
.morphing-shape {
    width: 28px;
    height: 28px;
    position: relative;
    animation: rotateShape 10s linear infinite;
}

@keyframes rotateShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.morphing-shape svg {
    width: 100%;
    height: 100%;
}

.morphing-shape polygon {
    fill: var(--color-highlight);
}

/* -----------------------------------------
   17. Utilitários
   ----------------------------------------- */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-normal) ease-out;
}

/* -----------------------------------------
   Typing Effect - Efeito de Digitação
   ----------------------------------------- */
.typing-container {
    display: inline-block;
    position: relative;
}

.typing-text {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--color-highlight);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Variante para hero */
.hero-title .typing-cursor {
    height: 0.9em;
    width: 3px;
}

/* Variante para texto claro (lightbox, etc) */
.typing-cursor-light {
    background-color: var(--color-surface);
}

/* Scroll suave para elementos */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}