@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Forced Premium Dark Mode */
    --primary: #ffa300;
    --primary-rgb: 255, 163, 0;
    --secondary: #3d2c10;
    --text: #f0f0f0;
    --text-light: #cccccc;
    --bg: #121212;
    --bg-alt: #0a0a0a;
    --card-bg: #1e1e1e;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.5);

    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom Scrollbar - Premium Aesthetic */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), #ff6b6b);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}



/* Preloader Styles */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
}

[data-theme="dark"] #loader {
    background: #0a0a0a;
}

.loader-content {
    text-align: center;
}

.loader-logo img {
    height: 60px;
    margin-bottom: 20px;
    animation: loaderPulse 2s infinite ease-in-out;
}

@media (max-width: 768px) {
    .loader-logo img {
        height: 40px;
    }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

[data-theme="dark"] .loader-bar {
    background: rgba(255, 255, 255, 0.05);
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    animation: loaderFill 2.5s cubic-bezier(0.1, 0, 0.1, 1) forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loaderFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

#loader.loaded {
    transform: translateY(-100%);
    visibility: hidden;
}

/* Reading Progress Bar */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1002;
    background: transparent;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
}



/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

[data-theme="dark"] #back-to-top {
    background: rgba(30, 30, 30, 0.8);
    color: white;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Cursor rules moved to global body.main-site * selector */

/* Dark Mode Background Effect (Dots & Spotlights) */
[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255, 163, 0, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 163, 0, 0.05), transparent 25%),
        radial-gradient(#333 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px;
    /* Dots pattern */
    background-attachment: fixed;
}



/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    color: var(--text);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilitários de Animação */
.anim-scale {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.anim-scale:hover {
    transform: scale(1.03);
}

/* Scale Up */
.anim-scale:active {
    transform: scale(0.97);
}

/* Scale Down */

/* Header Sticky */
/* Header Sticky */
header {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

header.scrolled {
    top: 25px;
    width: 85%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 14px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

/* Hide by default on desktop */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--text);
    z-index: 1002;
}

/* Nav Menu Default */
.nav-menu ul {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Hide mobile-only buttons on desktop */
.menu-close-btn {
    display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-right {
        gap: 15px;
    }

    header {
        width: 95%;
        padding: 12px 25px;
        top: 30px;
    }

    header.scrolled {
        width: 92%;
    }

    .nav-menu {
        position: fixed;
        inset: 0;
        /* Top, Right, Bottom, Left: 0 */
        width: 100%;
        height: 100dvh;
        /* Dynamic viewport height */
        background: var(--bg);
        /* Ensure this is the dark background */
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        z-index: 2000000;
        /* High z-index */
        flex-direction: column;
        border-radius: 0;

        /* Hidden State */
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        /* Active State */
        transform: translateX(0);
        visibility: visible;
        opacity: 1;

        /* Reset overrides */
        right: 0;
        left: 0;
        top: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
        background: transparent;
        padding: 10px;
    }

    /* Hide toggle button when menu is open (using body class added by JS) */
    body.menu-open .mobile-menu-toggle {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Close Button inside Menu */
    .menu-close-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        background: transparent;
        color: var(--text);
        cursor: pointer;
        z-index: 2000001;
        /* Above menu background */
        display: flex;
        /* Ensure icon centers */
        padding: 10px;
        border-radius: 50%;
        border: 1px solid var(--border);
    }
}

/* Lucide Icon Sizing */
i[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    display: inline-block;
}

.mobile-menu-toggle i[data-lucide] {
    width: 28px;
    height: 28px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a:hover {
    color: var(--primary);
}

/* Hero Section */
/* Hero Section */
/* Hero Section - Split Layout */
.hero {
    min-height: 100vh;
    /* Full height */
    padding: 120px 5% 0;
    /* Adjusted padding */
    background: transparent;
    /* Transparent to show dots */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background decoration - Lava Lamp Fluid Effect */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: var(--secondary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    filter: blur(40px);
    opacity: 0.6;
    animation: none;
}

@keyframes lavaLamp {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(0deg) scale(1.0);
    }

    20% {
        border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
        transform: translate(10%, 15%) rotate(45deg) scale(1.2);
    }

    40% {
        border-radius: 67% 33% 47% 53% / 37% 48% 52% 63%;
        transform: translate(-15%, 5%) rotate(90deg) scale(0.85);
    }

    60% {
        border-radius: 30% 70% 20% 80% / 30% 30% 70% 70%;
        transform: translate(5%, -20%) rotate(135deg) scale(1.15);
    }

    80% {
        border-radius: 80% 20% 50% 50% / 50% 50% 80% 20%;
        transform: translate(20%, -5%) rotate(180deg) scale(0.95);
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) rotate(360deg) scale(1.0);
    }
}

/* Secondary lava shape for depth */
.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.1;
    z-index: 0;
    border-radius: 50%;
    animation: none;
}

/* Dark Mode Overrides for Hero */
[data-theme="dark"] .hero::before {
    background: #2a2a2a;
    /* Gray tone requested for Dark Mode */
    opacity: 0.8;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    /* Flexbox for side-by-side */
    flex-direction: row !important;
    /* Force row */
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text);
    /* Variable! */
    font-weight: 600;
    /* Semibold */
}

.hero h1 span:first-child,
.hero h1 {
    font-weight: 600;
    /* Semibold */
    color: var(--text);
}

.hero h1 br+span,
.hero h1 br+em,
.hero h1 span.secondary-font {
    display: block;
    font-weight: 300;
    font-style: normal;
    font-size: 0.8em;
    color: var(--text-light);
    margin-top: 5px;
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light);
    /* Variable! */
    margin-bottom: 40px;
    max-width: 500px;
    font-weight: 300;
    /* Light */
}

.hero .btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 20px;
    /* Começa com menos raio */
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 0 #cc6d00;
    /* Sombra 3D laranja escuro */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #cc6d00, 0 15px 30px rgba(255, 163, 0, 0.3);
}

.typing-cursor {
    font-size: 0.65em;
    /* Faz o texto animado ser menor que o título */
    display: block;
    /* Opcional: coloca o texto animado em uma nova linha se preferir */
    margin-top: 10px;
}

.typing-cursor::after {
    content: '|';
    /* Pipe cursor instead of dots to avoid confusion */
    animation: blink 1s infinite;
    color: var(--primary);
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* 3D Image Container */
/* 3D Image Container */
.hero-image-right {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 600px;
    /* Reduced to enhance 3D distortion */
}

/* Hero Stacked Images */
.hero-card-3d {
    width: 100%;
    max-width: 650px;
    position: relative;
    /* Context for absolute positioning */
    left: -5%;
    /* Shift container left to balance the right-shifted image */
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    cursor: pointer;
    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-3d img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.hero-img-main {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-img-secondary {
    width: 85%;
    position: absolute;
    top: 40%;
    left: 40%;
    /* Moved further right */
    z-index: 3;
    /* Overlapping on top */
    margin-top: 0;
}

/* Hover effects apply to both */
.hero-card-3d:hover .hero-img-main,
.hero-card-3d:hover .hero-img-secondary {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-card-3d:hover .hero-img-main {
    transform: translateY(-10px) scale(1.02);
}

.hero-card-3d:hover .hero-img-secondary {
    transform: translateY(10px) scale(1.02);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding: 120px 5% 60px;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column !important;
        /* Stack on mobile/tablet */
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero::before {
        width: 100%;
        height: 50%;
        top: 0;
        right: 0;
        border-radius: 0 0 500px 500px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

.btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    /* Semibold */
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important;
    box-shadow: none;
    border-radius: 16px;
    /* Começa levemente quadrado */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0px #cc6d00, 0 8px 15px rgba(0, 0, 0, 0.2) !important;
    background: var(--primary) !important;
    filter: brightness(1.1);
}

/* Projetos - Behance Style Carousel */
.section {
    padding: 80px 5%;
}

/* Section labels handled in new-sections.css */

.section-title {
    font-size: 3rem;
    /* Larger */
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    /* Semibold */
    letter-spacing: -1px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title span.secondary-font,
.section-title br+span,
.section-title br+font,
.section-title br+b,
.section-title br+* {
    display: block;
    font-weight: 500;
    font-size: 0.8em;
    -webkit-text-fill-color: var(--primary);
    /* Laranja conforme solicitado */
    margin-top: 5px;
    letter-spacing: 0;
}

[id="home"] .section-title br+* {
    -webkit-text-fill-color: var(--text-light);
    /* Mantém home conforme solicitado */
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    font-weight: 300;
    /* Light */
}

/* Reusable Lava Lamp Backgrounds */
.section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: 15vh;
    /* Centralização visual ao clicar no menu */
}

/* Aplicar também em seções que podem não ter a classe section ou ter overrides */
#clientes,
#faq,
#projetos,
#testimonials,
#pacotes,
#freebies,
#sobre {
    scroll-margin-top: 15vh;
}

.lava-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: none;
}

.lava-bg-right {
    top: -10%;
    right: -10%;
    animation-duration: 25s;
    animation-direction: alternate-reverse;
}

.lava-bg-left {
    bottom: -10%;
    left: -10%;
    animation-duration: 30s;
}

.lava-bg-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.03;
    animation-duration: 35s;
}

.lava-bg-accent {
    background: var(--secondary);
    width: 350px;
    height: 350px;
    opacity: 0.06;
    animation-duration: 18s;
    animation-direction: alternate;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered items reset so they can be triggered by JS */
.package-card-new,
.testimonial-card,
.faq-item,
.project-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    /* Faster reveal */
}

.package-card-new.visible,
.testimonial-card.visible,
.faq-item.visible,
.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal Scroll System (Arrastável) */
/* Horizontal Scroll System (Arrastável) */
/* Horizontal Scroll System (Arrastável) */
.horizontal-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    /* scroll-snap-type removido para fluidez total */
    gap: 30px;

    /* Configuração Full Width (Extremidades) */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* Padding mantém o alinhamento visual com o conteúdo (5%) mas permite rolar até a borda */
    padding: 40px 5%;

    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;

    /* Centraliza se não houver overflow (poucos itens) */
    justify-content: center;

    /* Fade Mask: Suavizado nas bordas (apenas 3%) para dar sensação de ir até o canto */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.horizontal-scroll-wrapper.overflowing {
    justify-content: flex-start !important;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-wrapper:active {
    cursor: grabbing;
}

/* Permitir que o flex-start assuma quando o conteúdo transbordar */
@media (min-width: 769px) {
    .horizontal-scroll-wrapper {
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .horizontal-scroll-wrapper {
        justify-content: flex-start !important;
        padding: 20px 5%;
        /* Mantém consistência lateral no mobile */

        /* Máscara ajustada para mobile */
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    }
}

.scroll-item {
    flex: 0 0 400px;
    /* scroll-snap-align removido */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px) {
    .scroll-item {
        flex: 0 0 320px;
    }
}

/* Project Card Neo */
.project-card-neo {
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
}

.project-card-neo .card-image {
    width: 100%;
    height: 100%;
}

.project-card-neo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card-neo:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-tag {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    /* Semibold */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-overlay h3 {
    color: white;
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 600;
    /* Semibold */
}

/* Testimonial Card Neo */
.testimonial-card-neo {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: left;
    /* Alinhado à esquerda conforme solicitado */
    position: relative;
}

.testimonial-card-neo::before {
    content: '“';
    /* Aspa única de abertura */
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.12;
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

/* Esconder explicitamente aspas do tema anterior ou de outros arquivos */
.testimonial-text::before,
.testimonial-text::after,
.testimonial-card-neo::after {
    display: none !important;
    content: none !important;
}

/* Garantir que não haja aspas de fechamento automáticas */
.testimonial-card-neo::after {
    display: none !important;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 20px;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-photo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Freebie Card Neo */
.freebie-card-neo {
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a1a 100%);
    padding: 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 260px;
    /* Reduzido conforme solicitado */
}

.freebie-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    /* Semibold */
    margin-bottom: 15px;
}

.freebie-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.freebie-content p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.download-btn-neo {
    display: inline-block;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    /* Semibold */
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 0.9rem;
    box-shadow: 0 4px 0 #cc6d00;
    /* Sombra sólida inicial */
}

.download-btn-neo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #cc6d00, 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Efeitos de Arredondamento nos Cards (Tiptap Style) */
.project-card-neo,
.testimonial-card-neo,
.freebie-card-neo,
.package-card-featured {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card-neo:hover,
.testimonial-card-neo:hover,
.freebie-card-neo:hover,
.package-card-featured:hover {
    border-radius: 50px !important;
    /* Efeito Super Redondo */
    transform: translateY(-5px) scale(1.05) !important;
    /* Scale added */
    z-index: 10;
    /* Bring to front */
}

/* Updated Package Button for 3D effect matching others */
.package-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 0 #cc6d00;
    /* 3D Shadow Match */
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #cc6d00, 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.package-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #cc6d00;
}

/* Noise Texture Removed */

/* Modal - Glassmorphism (Vitrified Effect) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.4);
    /* Reduced opacity for glass effect */
    backdrop-filter: blur(15px);
    /* Strong blur */
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    /* Translucent */
    padding: 30px;
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Deeper shadow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Subtle border */
}

/* Dark Mode Modal Overrides */
[data-theme="dark"] .modal-content {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    color: var(--text);
    background: var(--bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.reference-field-group {
    margin-top: 25px !important;
    margin-bottom: 30px !important;
}

.reference-field-group label {
    color: var(--primary) !important;
    font-weight: 600 !important;
    /* Semibold */
    margin-bottom: 20px !important;
    display: block !important;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Pacotes */
/* Packages Featured Grid Layout */
.packages-grid-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1350px;
    margin: 80px auto;
    align-items: center;
    padding: 20px;
}

.package-card-featured {
    background: var(--card-bg);
    border-radius: 35px;
    padding: 50px 30px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}

.package-side {
    transform: scale(0.9);
    filter: brightness(0.8);
    opacity: 0.9;
    z-index: 1;
    min-height: 550px;
}

.package-center {
    transform: scale(1.05);
    min-height: 680px;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a1a 100%);
    border: none;
    /* Remove borda duplicada, deixa só o pseudo-elemento */
}

.package-center::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Segue o arredondamento do pai */
    padding: 2px;
    /* Espessura da borda gradiente */
    background: linear-gradient(135deg, var(--primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: inherit;
    /* Garante sincronia na animação */
}

.package-card-featured:hover {
    transform: translateY(-10px) scale(inherit);
    filter: brightness(1);
}

.package-center:hover {
    transform: scale(1.08) translateY(-10px);
}

@media (max-width: 1200px) {
    .packages-grid-featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .package-side,
    .package-center {
        transform: none;
        min-height: auto;
        opacity: 1;
        filter: none;
    }
}

@media (max-width: 650px) {
    .packages-grid-featured {
        grid-template-columns: 1fr;
    }
}

.package-card.recommended {
    border: 2px solid var(--primary);
    background: var(--secondary);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    /* Semibold */
}

/* Form inputs */
input,
textarea,
select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    background: #fdfdfd;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    outline: none;
}

/* Mobile */
@media (max-width: 768px) {
    body::after {
        display: none !important;
    }

    #particles-canvas {
        display: none !important;
    }

    .lava-bg {
        animation: none !important;
    }



    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 50px;
    }

    .hero-container {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero::before,
    .hero::after {
        animation: none !important;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 30px;
    }

    /* Reset Hero Stack for Mobile */
    .hero-card-3d {
        left: -5%;
        /* Revert to -5% if that was the desired stack center */
        margin: 40px auto 0;
        max-width: 100%;
        transform: none !important;
    }

    .hero-img-main {
        width: 100% !important;
    }

    .hero-img-secondary {
        width: 80% !important;
        right: -20% !important;
        /* Revert positioning */
    }

    /* Carousel adjustments for mobile */
    .project-carousel {
        flex-direction: column;
        gap: 30px;
    }

    .carousel-arrow {
        display: flex !important;
        /* Restore arrows if they want them or keeping hidden? User said "tire as setas", so keeping hidden. */
        display: none !important;
    }

    .project-indicators {
        margin-top: 20px;
    }

    .project-item {
        grid-template-columns: 1fr;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project-item.active {
        opacity: 1;
        pointer-events: auto;
        padding: 0;
    }

    .project-img {
        height: 250px;
    }

    .project-display {
        min-height: auto;
        /* Reset fixed height for mobile stacking */
    }

    .project-description {
        min-height: auto;
        /* Allow content to dictate height on mobile */
        -webkit-line-clamp: 3;
        /* Shorter on mobile */
        line-clamp: 3;
    }

    .project-title {
        font-size: 1.8rem;
        min-height: auto;
    }

    .btn-view-gallery {
        display: flex;
        margin: 20px auto 0;
        width: fit-content;
    }

    /* Section Spacing */
    .section {
        padding: 60px 5%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Rendering Optimization */
    .section {
        content-visibility: auto;
        contain-intrinsic-size: 1px 500px;
    }

    /* Simplify shadows only on mobile to save GPU */
    .project-image-container,
    .package-card-new,
    .testimonial-card,
    .faq-item,
    .btn,
    .btn-view-gallery {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    /* Hardware acceleration for scroll and mouse animations */
    .fade-in,
    .package-card-new,
    .testimonial-card,
    .faq-item,
    .project-item,
    .hero-card-3d,
    .cursor-light,
    .custom-cursor,
    .btn,
    .btn-view-gallery {
        will-change: transform, opacity;
        transform: translateZ(0);
        /* Force GPU */
    }

    .project-img {
        will-change: transform;
    }

    .btn:active,
    .package-btn:active,
    .social-icon:active,
    .carousel-arrow:active {
        transform: scale(0.96) !important;
    }

    .readonly-input {
        background: var(--bg-alt) !important;
        border-color: var(--border) !important;
        cursor: not-allowed !important;
        color: var(--text-light) !important;
        opacity: 0.8;
        font-weight: 600;
        border-style: dashed !important;
    }

    #referenciaField {
        border-width: 2px !important;
        padding: 15px !important;
    }
}



/* -------------------------------------------------------------------------- */
/* MASONRY EXPLORATION                                                        */
/* -------------------------------------------------------------------------- */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    transition: var(--transition);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.08);
}

.masonry-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.masonry-item:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* -------------------------------------------------------------------------- */
/* FREEBIES (DOWNLOADS)                                                       */
/* -------------------------------------------------------------------------- */


.freebie-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    border: 1px solid var(--border);
    transition: var(--transition);
}



.freebie-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.freebie-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.freebie-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s;
}

.btn-download:hover {
    gap: 15px;
}

/* Announcement Bar (Top) */
.announcement-bar {
    position: relative;
    z-index: 2001;
    /* Above progress bar if needed, but relative */
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.announcement-bar p {
    margin: 0;
    animation: fadeInScale 0.5s ease-out;
}

.announcement-bar a {
    transition: opacity 0.2s;
}

.announcement-bar a:hover {
    opacity: 0.8;
}

/* Adjust header if announcement bar exists */
body.has-announcement header {
    top: 70px;
    /* Offset original top by approx bar height */
}

@media (max-width: 768px) {
    body.has-announcement header {
        top: 60px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 800px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 100px;
    /* Ultra-rounded premium look */
    z-index: 999999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: none;
    /* Controlled by script.js */
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.cookie-banner.visible {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.btn-cookie {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.85rem;
}

.btn-cookie:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 163, 0, 0.4);
}

@media (max-width: 768px) {
    .cookie-banner {
        border-radius: 20px;
        padding: 20px;
        bottom: 15px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 163, 0, 0.4);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}