body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    /* bg-gray-50 */
    color: #161A1E;
}

.hero-bg {
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%33');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay {
    background-color: rgba(3, 14, 39, 0.8);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: #F35B28;
}

/* --- Início: Estilos para o Efeito Hover Direcional --- */
.project-card img {
    transition: transform 0.5s ease-in-out;
}

.project-card:hover img {
    /* This scale effect will only be noticeable on desktop where the image is visible behind the semi-transparent overlay */
    transform: scale(1.05);
}

@media (min-width: 1024px) {
    .project-card {
        perspective: 400px;
    }

    .project-card .project-overlay {
        transform: rotate3d(1, 0, 0, 90deg);
        /* Estado inicial oculto para desktop */
        pointer-events: none;
        /* Mantém o overlay "intocável" no desktop */
    }

    .project-card .view-more-btn {
        pointer-events: auto;
        /* Botão clicável */
    }

    /* Animações de Entrada */
    .in-top .project-overlay {
        transform-origin: 50% 0%;
        animation: in-top 300ms ease 0ms 1 forwards;
    }

    .in-right .project-overlay {
        transform-origin: 100% 0%;
        animation: in-right 300ms ease 0ms 1 forwards;
    }

    .in-bottom .project-overlay {
        transform-origin: 50% 100%;
        animation: in-bottom 300ms ease 0ms 1 forwards;
    }

    .in-left .project-overlay {
        transform-origin: 0% 0%;
        animation: in-left 300ms ease 0ms 1 forwards;
    }

    /* Animações de Saída */
    .out-top .project-overlay {
        transform-origin: 50% 0%;
        animation: out-top 300ms ease 0ms 1 forwards;
    }

    .out-right .project-overlay {
        transform-origin: 100% 50%;
        animation: out-right 300ms ease 0ms 1 forwards;
    }

    .out-bottom .project-overlay {
        transform-origin: 50% 100%;
        animation: out-bottom 300ms ease 0ms 1 forwards;
    }

    .out-left .project-overlay {
        transform-origin: 0% 0%;
        animation: out-left 300ms ease 0ms 1 forwards;
    }
}

/* Keyframes das Animações (podem ficar fora da media query) */
@keyframes in-top {
    from {
        transform: rotate3d(-1, 0, 0, 90deg);
    }

    to {
        transform: rotate3d(0, 0, 0, 0deg);
    }
}

@keyframes in-right {
    from {
        transform: rotate3d(0, -1, 0, 90deg);
    }

    to {
        transform: rotate3d(0, 0, 0, 0deg);
    }
}

@keyframes in-bottom {
    from {
        transform: rotate3d(1, 0, 0, 90deg);
    }

    to {
        transform: rotate3d(0, 0, 0, 0deg);
    }
}

@keyframes in-left {
    from {
        transform: rotate3d(0, 1, 0, 90deg);
    }

    to {
        transform: rotate3d(0, 0, 0, 0deg);
    }
}

@keyframes out-top {
    from {
        transform: rotate3d(0, 0, 0, 0deg);
    }

    to {
        transform: rotate3d(-1, 0, 0, 104deg);
    }
}

@keyframes out-right {
    from {
        transform: rotate3d(0, 0, 0, 0deg);
    }

    to {
        transform: rotate3d(0, -1, 0, 104deg);
    }
}

@keyframes out-bottom {
    from {
        transform: rotate3d(0, 0, 0, 0deg);
    }

    to {
        transform: rotate3d(1, 0, 0, 104deg);
    }
}

@keyframes out-left {
    from {
        transform: rotate3d(0, 0, 0, 0deg);
    }

    to {
        transform: rotate3d(0, 1, 0, 104deg);
    }
}

/* --- Fim: Estilos para o Efeito Hover Direcional --- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.header-scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.client-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.client-swiper .swiper-slide {
    background-position: center;
    background-size: contain;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-swiper .swiper-slide img {
    display: block;
    width: auto;
    max-height: 80px;
    object-fit: contain;
}

.client-swiper .swiper-pagination-bullet {
    background: #F35B28;
    opacity: 0.5;
}

.client-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Estilos dos Cards com Efeito Glow */
:root {
    --glow-sens: 20;
    --card-bg: #FFFFFF;
    --fg: #4B5563;
    /* text-gray-600 */
    --blend: soft-light;
    --glow-blend: plus-lighter;
    /* Cor do brilho baseada na identidade visual #F35B28 */
    --glow-color: 15deg 89% 55%;
    --glow-boost: 5%;
}

#sobre .card-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    #sobre .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    --color-sens: calc(var(--glow-sens) + 20);
    --pointer-°: 45deg;

    position: relative;
    width: 100%;
    min-height: 420px;
    /* Altura mínima para consistência */
    border-radius: 1rem;
    /* 16px */
    isolation: isolate;
    transform: translate3d(0, 0, 0.01px);
    display: grid;
    border: 1px solid rgb(0 0 0 / 10%);
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.card::before,
.card::after,
.card>.glow {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.5s ease-out;
    z-index: -1;
}

.card:not(:hover)::before,
.card:not(:hover)::after,
.card:not(:hover)>.glow {
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

/* Borda colorida com gradiente */
.card::before {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--card-bg) 0 100%) padding-box,
        /* Usando a cor da marca para o gradiente */
        radial-gradient(at 80% 55%, hsl(var(--glow-color) / 0.8) 0px, transparent 50%) border-box,
        radial-gradient(at 20% 90%, hsl(var(--glow-color) / 0.7) 0px, transparent 50%) border-box,
        radial-gradient(at 50% 10%, hsl(var(--glow-color) / 0.9) 0px, transparent 50%) border-box,
        linear-gradient(hsl(var(--glow-color) / 0.6) 0 100%) border-box;

    opacity: calc((var(--pointer-d) - var(--color-sens)) / (100 - var(--color-sens)));

    mask-image: conic-gradient(from var(--pointer-°) at center, black 25%, transparent 40%, transparent 60%, black 75%);
}

/* Efeito de brilho na borda */
.card>.glow {
    --outset: 10px;
    inset: calc(var(--outset) * -1);
    pointer-events: none;
    z-index: 1;

    mask-image: conic-gradient(from var(--pointer-°) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);

    opacity: calc((var(--pointer-d) - var(--glow-sens)) / (100 - var(--glow-sens)));
    mix-blend-mode: var(--glow-blend);
}

.card>.glow::before {
    content: "";
    position: absolute;
    inset: var(--outset);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px hsl(var(--glow-color) / 100%),
        inset 0 0 15px 0 hsl(var(--glow-color) / calc(var(--glow-boost) + 30%)),
        0 0 15px 0 hsl(var(--glow-color) / calc(var(--glow-boost) + 30%)),
        0 0 25px 2px hsl(var(--glow-color) / calc(var(--glow-boost) + 20%));
}

.card .inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card .inner .icon-container {
    width: 4rem;
    /* 64px */
    height: 4rem;
    /* 64px */
    margin: 0 auto 1.5rem;
    /* mb-6 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #F35B28;
    border-radius: 9999px;
    /* rounded-full */
    color: #F35B28;
}

.card .inner h3 {
    font-size: 1.25rem;
    /* text-xl */
    font-weight: 700;
    /* font-bold */
    color: #F35B28;
    margin-bottom: 1rem;
    /* mb-4 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
}

.card .inner .content {
    color: var(--fg);
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
}

.card .inner ul {
    list-style: none;
    padding: 0;
}

.card .inner ul li+li {
    margin-top: 0.5rem;
    /* Adds vertical spacing between list items */
}

.card .inner ul li {
    display: flex;
    align-items: flex-start;
}

.card .inner ul i {
    color: #F35B28;
    margin-right: 0.5rem;
    /* mr-2 */
    margin-top: 0.25rem;
    /* mt-1 */
    flex-shrink: 0;
}

/* Marcador de Seção Ativa */
nav a {
    position: relative;
}

nav a.active-link {
    color: #F35B28 !important;
}

header:not(.header-scrolled) nav a.active-link {
    color: #FFFFFF !important;
}

header nav a.active-link::after {
    content: '';
    position: absolute;
    display: block;
    width: 24px;
    height: 3px;
    background: #F35B28;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    border-radius: 2px;
}

header:not(.header-scrolled) nav a.active-link::after {
    background: #FFFFFF;
}

#mobile-menu a.active-link {
    color: #F35B28 !important;
    background-color: #FEF2EE;
}

/* Dropdown Styles */
.dropdown-menu {
    min-width: 280px;
    /* Largura mínima do dropdown */
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    max-height: 240px;
    /* Altura máxima para ativar o scroll */
    overflow-y: auto;
    /* Adiciona scroll quando necessário */
}

.group:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Estilização para o dropdown quando o header tem fundo branco */
.header-scrolled .dropdown-menu a {
    color: #4B5563;
    /* text-gray-600 */
}

.header-scrolled .dropdown-menu a:hover {
    color: #000000;
    background-color: #F3F4F6;
    /* bg-gray-100 */
}

/* Custom Scrollbar for Dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* --- Início: Estilos para Menu Hambúrguer Animado --- */
.menu-button {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 1s ease;
}

.menu-line {
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: background-color 0.5s ease;
}

.menu-line::before,
.menu-line::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: 1s;
}

.menu-line::before {
    top: -8px;
}

.menu-line::after {
    top: 8px;
}

/* Animação do Estado Ativo */
.menu-button.active {
    transform: rotate(360deg);
    border-radius: 50%;
}

.menu-button.active .menu-line {
    background: transparent;
}

.menu-button.active .menu-line::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-button.active .menu-line::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Cor do X quando ativo */
.header-scrolled .menu-button.active .menu-line::before,
.header-scrolled .menu-button.active .menu-line::after {
    background: #F35B28;
}

.menu-button.active .menu-line::before,
.menu-button.active .menu-line::after {
    background: #FFFFFF;
}

/* --- Fim: Estilos para Menu Hambúrguer Animado --- */

/* --- Início: Animação do Menu Mobile --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

#mobile-menu.open {
    max-height: 500px;
}