/* ===== RESET E CONFIGURAÇÕES BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li, figure {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #C9A848;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --overlay-color: rgba(0, 0, 0, 0.65);
    --font-main: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #000;
    overflow-x: hidden;
}

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

/* ===== HEADER - ATUALIZADO CONFORME PÁGINA INICIAL ===== */
header {
    background-color: rgba(3, 3, 3, 0.8);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
    border-radius: 0;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.logo img {
    max-width: 150px;
    height: auto;
}

/* Menu Mobile - PADRONIZADO */
nav {
    position: relative;
}

.menu-icon {
    display: block;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 2rem;
}

.menu.menu-visible {
    display: flex;
    transform: translateX(0);
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    display: block;
}

.menu-logo {
    margin-bottom: 2rem;
}

.menu-logo img {
    max-width: 120px;
    height: auto;
}

.menu ul {
    list-style: none;
    width: 100%;
    padding: 0;
}

.menu ul li {
    text-align: center;
    margin: 1rem 0;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem;
    transition: color 0.3s;
}

.menu ul li a:hover,
.menu ul li a[aria-current="page"] {
    color: #C9A848;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Menu Desktop - ATUALIZADO CONFORME PÁGINA INICIAL */
@media (min-width: 1024px) {
    header {
        width: 95%;
        max-width: 1400px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .menu-icon {
        display: none;
    }

    .menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        transform: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
    }

    .close-menu,
    .menu-logo {
        display: none;
    }

    .menu ul {
        display: flex;
        align-items: center;
        gap: 3rem;
        width: auto;
        justify-content: center;
    }

    .menu ul li {
        margin: 0;
    }

    .menu ul li a {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 1rem 1.5rem;
        position: relative;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .menu ul li a::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .menu ul li a:hover {
        background-color: rgba(201, 168, 72, 0.1);
        color: var(--primary-color);
    }

    .menu ul li a:hover::after {
        width: 70%;
    }

    .menu ul li a[aria-current="page"] {
        color: var(--primary-color);
        background-color: rgba(201, 168, 72, 0.15);
    }

    .menu ul li a[aria-current="page"]::after {
        width: 70%;
    }

    .overlay {
        display: none !important;
    }
}

/* Desktop Large - Ainda mais centralizado */
@media (min-width: 1440px) {
    header {
        width: 90%;
        max-width: 1600px;
        padding: 1.5rem 3rem;
    }

    .menu ul {
        gap: 4rem;
    }

    .menu ul li a {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }
}

/* ===== HERO SECTION ===== */
.portfolio-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    padding-top: 120px;
}

.hero-background {
    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;
    filter: brightness(0.6) contrast(1.2);
    transition: transform 20s ease-in-out;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
    color: var(--text-color);
}

.hero-text {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201, 168, 72, 0.2);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-separator {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.highlight-accent {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 15px rgba(201, 168, 72, 0.3);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
    cursor: pointer;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    position: relative;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlights-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.section-separator {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.section-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.highlights-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    background: rgba(201, 168, 72, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.highlights-carousel {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card {
    min-width: 100%;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    min-height: 450px;
}

.card-image {
    position: relative;
    width: 60%;
    height: 450px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8) contrast(1.1);
}

.highlight-card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #e6c456);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 30px rgba(201, 168, 72, 0.4);
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(201, 168, 72, 0.6);
}

.play-button i {
    margin-left: 4px;
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(201, 168, 72, 0.9);
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-content {
    width: 40%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(201, 168, 72, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(201, 168, 72, 0.3);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid rgba(201, 168, 72, 0.3);
    padding: 0.7rem 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    font-weight: 500;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    color: #000;
    background: linear-gradient(135deg, var(--primary-color), #e6c456);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(201, 168, 72, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.portfolio-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(201, 168, 72, 0.2);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8) contrast(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-info {
    text-align: center;
    color: white;
    z-index: 2;
}

.portfolio-info h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-category {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.action-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    background: rgba(201, 168, 72, 0.2);
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.content-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.content-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(201, 168, 72, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 72, 0.3);
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.content-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.cta-content {
    background: rgba(26, 26, 26, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(201, 168, 72, 0.2);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.cta-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), #e6c456);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(201, 168, 72, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(201, 168, 72, 0.4);
    background: linear-gradient(135deg, #e6c456, var(--primary-color));
}

/* ===== MODAIS ===== */
.video-modal,
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    background: rgba(201, 168, 72, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.modal-close:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

.modal-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.project-details {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(201, 168, 72, 0.2);
    color: var(--text-color);
}

.project-details h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.project-details h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.project-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: var(--text-color);
    position: relative;
    margin-top: auto;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-top {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.footer-column {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }

.footer-brand {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-width: 160px;
    height: auto;
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.footer-tagline strong {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links li a:hover {
    color: var(--primary-color);
    background: rgba(201, 168, 72, 0.1);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.3rem;
    background: rgba(201, 168, 72, 0.1);
    border: 2px solid rgba(201, 168, 72, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 72, 0.3);
}

.footer-cta {
    text-align: center;
    padding: 1.8rem 1.3rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(201, 168, 72, 0.2);
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), #e6c456);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(201, 168, 72, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(201, 168, 72, 0.4);
}

.footer-middle {
    padding: 2rem 0;
    background: rgba(26, 26, 26, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-area {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coverage-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.coverage-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.primary-location {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.7rem 1.3rem;
    background: rgba(201, 168, 72, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(201, 168, 72, 0.3);
}

.secondary-locations {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.5;
}

.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.8);
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.site-credits {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

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

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

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

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    header {
        left: 0;
        transform: none;
        width: 100%;
        padding: 0.5rem 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .logo img {
        max-width: 120px;
    }

    .portfolio-hero {
        min-height: 600px;
        padding-top: 80px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }

    .highlight-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-image {
        width: 100%;
        height: 300px;
    }

    .card-content {
        width: 100%;
        padding: 2rem;
    }

    .card-content h3 {
        font-size: 1.6rem;
    }

    .portfolio-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* ===== DESKTOP PEQUENO/MÉDIO (1024px - 1366px) - AJUSTE PRINCIPAL ===== */
@media (min-width: 1024px) and (max-width: 1366px) {
    /* Hero ajustado para desktop pequeno */
    .hero-title {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }

    .hero-description {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Carousel ajustado */
    .highlights-carousel-container {
        max-width: 1000px;
    }

    .highlight-card {
        min-height: 400px;
    }

    .card-image {
        height: 400px;
    }

    .card-content h3 {
        font-size: 1.8rem;
    }

    .card-content p {
        font-size: 1rem;
    }

    /* Portfolio grid ajustado */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .content-header h3 {
        font-size: 1.2rem;
    }

    .portfolio-content p {
        font-size: 0.85rem;
    }

    /* Footer ajustado */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-logo img {
        max-width: 140px;
    }

    .footer-tagline {
        max-width: 250px;
        margin-left: 0;
        margin-right: 0;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .footer-title {
        text-align: left;
    }

    .footer-title::after {
        left: 0;
        transform: none;
    }

    .footer-links {
        align-items: flex-start;
    }
}

/* ===== DESKTOP GRANDE (1367px+) ===== */
@media (min-width: 1367px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 4rem;
    }

    .footer-brand {
        text-align: left;
    }

    .footer-logo img {
        max-width: 180px;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .footer-title {
        text-align: left;
    }

    .footer-title::after {
        left: 0;
        transform: none;
    }

    .footer-links {
        align-items: flex-start;
    }
}

/* ===== FOCUS STATES ===== */
.filter-btn:focus,
.action-btn:focus,
.play-button:focus,
.carousel-btn:focus,
.btn-primary:focus,
.modal-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* ===== OTIMIZAÇÕES ===== */
img {
    max-width: 100%;
    height: auto;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.portfolio-hero,
.carousel-track {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.hidden {
    display: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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