/* ===========================
   VARIÁVEIS E RESET GLOBAL
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #ffc107;
    --accent-dark: #ffb300;
    --gray-dark: #3a3a3a;
    --gray-medium: #707070;
    --gray-light: #e8e8e8;
    --bg-light: #f5f5f5;
    --bg-dark: #0f0f0f;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #d3d3d3;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--secondary-color);
}

section {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

#home {
    content-visibility: visible;
}

/* ===========================
   CONTAINER
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--accent-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    animation: slideInRight 0.8s ease-out;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    touch-action: pan-y;
    cursor: grab;
}

.hero-carousel:active {
    cursor: grabbing;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

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

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: var(--accent-color);
    width: 32px;
    border-radius: 6px;
    border-color: var(--accent-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.2);
}

/* ===========================
   SERVICES HIGHLIGHT SECTION
   =========================== */

.services-highlight {
    padding: 60px 0;
    background: white;
    border-top: 1px solid var(--border-color);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.highlight-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--accent-color);
}

.highlight-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    padding: 80px 0;
    background: white;
}

.about h2,
.services h2,
.portfolio h2,
.contact h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--primary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p:first-child {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   SERVICES SECTION
   =========================== */

.services {
    padding: 80px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */

.portfolio {
    padding: 80px 0;
    background: white;
}

.portfolio-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-carousel {
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;
    cursor: grab;
}

.portfolio-carousel:active {
    cursor: grabbing;
}

.portfolio-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    transition: transform 0.5s ease;
    width: 100%;
}

.portfolio-item {
    flex: 0 0 calc(50% - 20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    cursor: pointer;
    max-height: fit-content;
}

.portfolio-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.project-3d-viewer {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-3d-viewer canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 1 !important;
}

.project-3d-viewer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.06) 0%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
    z-index: 2;
}

.project-3d-viewer:hover .click-hint {
    animation-duration: 0.8s;
}

.project-3d-viewer:hover {
    background: linear-gradient(135deg, #efefef 0%, #ddd 100%);
}

.project-3d-viewer.interactive {
    cursor: grab;
}

.project-3d-viewer.interactive:active {
    cursor: grabbing;
}

.loading {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.click-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.98) 0%, rgba(255, 179, 0, 0.98) 100%);
    color: #000;
    padding: 24px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    animation: pulse-hint 1.2s ease-in-out infinite;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.click-hint i {
    font-size: 36px;
    animation: bounce-icon 0.8s ease-in-out infinite;
}

.click-hint:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
}

.click-hint::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 193, 7, 0.4);
    border-radius: 50px;
    animation: pulse-ring 1.5s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 8px 32px rgba(255, 193, 7, 0.5);
    }
    50% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 12px 48px rgba(255, 193, 7, 0.65);
    }
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        opacity: 0.4;
    }
    100% {
        width: 160%;
        height: 160%;
        opacity: 0;
        box-shadow: 0 0 0 20px rgba(255, 193, 7, 0);
    }
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.project-category {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

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

.portfolio-indicator.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

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

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
    padding: 80px 0 120px 0;
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    color: var(--text-primary);
}

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

.contact-form textarea {
    resize: vertical;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 24px 0 32px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        max-height: 500px;
        padding: 20px 0;
    }

    .nav-link {
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: var(--bg-light);
        color: var(--accent-color);
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 35px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-carousel {
        height: 320px;
    }

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

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid {
        display: flex;
        gap: 0;
    }

    .project-3d-viewer {
        height: 350px;
    }

    .click-hint {
        padding: 14px 18px;
        font-size: 13px;
        animation: none;
        box-shadow: 0 6px 18px rgba(255, 193, 7, 0.35);
    }

    .click-hint i {
        font-size: 24px;
        animation: none;
    }

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

    .about h2,
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-grid {
        display: flex;
        gap: 0;
    }


    .portfolio-item {
        flex: 0 0 100%;
            /* Força cada item a ter 100% da largura da tela */
        padding: 0 10px;
            /* Adiciona um respiro nas laterais */
    }

    .footer .container {
        flex-direction: column;
    }

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

    .service-card:hover,
    .portfolio-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .nav-links {
        gap: 0;
    }

    .about h2,
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 28px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .project-info {
        padding: 20px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-form {
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-media,
    .click-hint,
    .click-hint i {
        animation: none !important;
    }
}

/* ===========================
   ANIMAÇÕES ADICIONAIS
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}
