/* ============================================
   PORTFÓLIO PREMIUM - SOLNER
   Página de Projetos e Cases de Sucesso
============================================ */

:root {
    --primary-blue: #001489;
    --accent-orange: #dc582a;
    --accent-yellow: #FFB600;
    --success-green: #10b981;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --gradient-blue: linear-gradient(135deg, #001489 0%, #0a2b9e 50%, #6366f1 100%);
    --gradient-orange: linear-gradient(135deg, #dc582a 0%, #ea580c 100%);

    --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 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    --font-main: 'Noir Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

/* CORREÇÃO BUG VIEWPORT */
body.page-template-page-portfolio,
body[class*="body-"],
.body-4,
.body-8 {
    overflow: visible !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
}

html {
    overflow: visible !important;
    overflow-y: auto !important;
}

.portfolio-premium-page {
    background: var(--white);
    overflow-x: hidden;
    overflow-y: visible !important;
}

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

/* ============================================
   ANIMAÇÕES
============================================ */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-element.delay-1 { transition-delay: 0.1s; }
.fade-in-element.delay-2 { transition-delay: 0.2s; }
.fade-in-element.delay-3 { transition-delay: 0.3s; }
.fade-in-element.delay-4 { transition-delay: 0.4s; }

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes arrow-float {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ============================================
   HERO PORTFÓLIO
============================================ */
.hero-portfolio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 194px;
    padding-bottom: 140px;
    margin-top: 0;
}

.hero-portfolio .hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/img-fundo-portfolio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-portfolio .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.hero-portfolio .hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 182, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(220, 88, 42, 0.12) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 3;
}

.hero-portfolio .hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 4;
}

.hero-portfolio .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge-cinema {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(220, 88, 42, 0.8),
                0 0 16px rgba(220, 88, 42, 0.4);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    gap: -8px;
}

.arrow {
    opacity: 0;
    animation: arrow-float 2s ease-in-out infinite;
}

.arrow-1 { animation-delay: 0s; }
.arrow-2 { animation-delay: 0.3s; }
.arrow-3 { animation-delay: 0.6s; }

/* ============================================
   NÚMEROS DESTAQUE
============================================ */
.numeros-portfolio-section {
    padding: 60px 0;
    background: var(--gradient-blue);
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.numero-item {
    text-align: center;
    color: var(--white);
}

.numero-valor {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.numero-label {
    font-size: 15px;
    opacity: 0.9;
}

/* ============================================
   SECTION HEADER
============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-orange);
    margin-bottom: 12px;
    position: relative;
    padding: 0 20px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-orange);
    opacity: 0.4;
}

.section-eyebrow::before {
    left: -30px;
}

.section-eyebrow::after {
    right: -30px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    color: var(--primary-blue);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-600);
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PROJETOS SHOWCASE
============================================ */
.projetos-showcase {
    padding: 100px 0 80px;
    background: var(--white);
}

/* ============================================
   PROJETO CARD — Layout Principal
============================================ */
.projeto-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: 24px;
    border: 2px solid var(--gray-300);
    padding: 40px;
    margin-bottom: 48px;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.projeto-card:last-child {
    margin-bottom: 0;
}

/* Reversed Layout */
.projeto-reversed {
    grid-template-columns: 1fr 1.15fr;
}

/* Featured Badge */

/* ============================================
   GALLERY
============================================ */
.projeto-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.gallery-main:hover .gallery-main-img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
}

.gallery-main:hover .gallery-overlay {
    background: rgba(0, 20, 137, 0.35);
    opacity: 1;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.thumb {
    flex: 1;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    background: none;
    outline: none;
}

.thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.thumb.active {
    border-color: var(--accent-orange);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(220, 88, 42, 0.3);
}

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

/* ============================================
   PROJECT INFO
============================================ */
.projeto-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tags */
.projeto-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tag svg {
    flex-shrink: 0;
}

.tag-solar,
.tag-local,
.tag-comercial {
    background: rgba(0, 20, 137, 0.08);
    color: var(--primary-blue);
}


/* Title */
.projeto-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Description */
.projeto-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   STAT CARDS
============================================ */
.projeto-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    background: var(--gray-50);
    border-radius: 14px;
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(12px);
}

.stat-card.stat-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    white-space: nowrap;
}

.stat-number small {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.stat-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 4px;
    white-space: nowrap;
}

/* ============================================
   PROJECT CTA BUTTON
============================================ */
.projeto-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(220, 88, 42, 0.3);
    width: fit-content;
    cursor: pointer;
}

.projeto-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(220, 88, 42, 0.45);
}

.projeto-cta-btn svg {
    transition: transform 0.3s ease;
}

.projeto-cta-btn:hover svg {
    transform: translateX(4px);
}

/* Video Thumbnail */
.thumb-video {
    position: relative;
}

.thumb-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border-radius: inherit;
    transition: background 0.3s ease;
}

.thumb-video:hover .thumb-play-icon {
    background: rgba(220, 88, 42, 0.6);
}

/* Video Modal */
.portfolio-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-video-modal.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.video-modal-close:hover {
    opacity: 1;
}

.video-modal-player {
    width: 100%;
    border-radius: 16px;
    display: block;
    background: #000;
}

/* ============================================
   DEPOIMENTOS CAROUSEL (igual Home)
============================================ */
.depoimentos-home-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.depoimentos-carousel-wrapper {
    position: relative;
    overflow: visible;
}

.depoimentos-carousel {
    overflow-x: clip;
    overflow-y: visible;
    position: relative;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.depoimentos-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    padding: 16px 0;
}

.depoimentos-home-section .depoimento-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.depoimento-rating {
    font-size: 18px;
    color: var(--accent-yellow);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.depoimento-texto {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0 0 24px;
    font-style: italic;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.autor-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.autor-info span {
    font-size: 12px;
    color: var(--gray-500);
}

/* Depoimentos Nav */
.depoimentos-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-glass-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--gray-800);
    transition: all 0.3s ease;
}

.carousel-glass-arrow:hover {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: scale(1.08);
}

.depoimentos-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.depoimento-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s ease;
}

.depoimento-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-orange);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .depoimentos-home-section .depoimento-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .depoimentos-home-section .depoimento-card {
        flex: 0 0 100%;
    }

    .depoimentos-home-section {
        padding: 60px 0;
    }
}

/* ============================================
   LIGHTBOX
============================================ */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-image-wrap {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   RESPONSIVO
============================================ */

/* Tablet landscape */
@media (max-width: 1100px) {
    .projeto-card {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .projeto-reversed {
        grid-template-columns: 1fr 1fr;
    }

    .projeto-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .projeto-card,
    .projeto-reversed {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Reset order for reversed on mobile */
    .projeto-reversed .projeto-info {
        order: 2;
    }

    .projeto-reversed .projeto-gallery {
        order: 1;
    }

    .projeto-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-portfolio {
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .scroll-indicator {
        bottom: 24px;
    }

    .numeros-portfolio-section {
        padding: 40px 0;
    }

    .numero-valor {
        font-size: 36px;
    }

    .numero-label {
        font-size: 13px;
    }

    .projetos-showcase {
        padding: 60px 0 40px;
    }

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

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .section-eyebrow::before,
    .section-eyebrow::after {
        width: 20px;
    }

    .section-eyebrow::before {
        left: -14px;
    }

    .section-eyebrow::after {
        right: -14px;
    }

    .projeto-card {
        padding: 16px;
        margin-bottom: 32px;
        border-radius: 20px;
    }

    .projeto-card::before {
        border-radius: 22px;
    }

    .gallery-main {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .gallery-thumbs {
        gap: 6px;
    }

    .thumb {
        border-radius: 8px;
    }

    .projeto-title {
        font-size: 22px;
    }

    .projeto-desc {
        font-size: 14px;
    }

    .projeto-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 16px;
    }

    .projeto-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
    }

    /* Lightbox mobile */
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 8px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-portfolio {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .numeros-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .numero-valor {
        font-size: 28px;
    }

    .projeto-card {
        padding: 12px;
        gap: 20px;
    }

    .projeto-tags {
        gap: 6px;
    }

    .tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .depoimento-texto {
        font-size: 14px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

/* Very small mobile */
@media (max-width: 380px) {
    .projeto-title {
        font-size: 20px;
    }

    .gallery-thumbs {
        flex-wrap: wrap;
    }

    .thumb {
        flex: 0 0 calc(33.333% - 5px);
    }
}
