/* Base & Reset */
body {
    background-color: #0B0B0B;
    color: #FFFFFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Esconde cursor padrão */
}

::selection { background: rgba(102, 51, 153, 0.4); color: #FFF; }

/* Noise Texture (Apple/Editorial feel) */
.noise-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04; 
    mix-blend-mode: screen; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}
.cursor-dot {
    width: 8px; height: 8px;
    background-color: #ff6b06;
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(102, 51, 153, 0.6);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-hover .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(102, 51, 153, 0.2);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Preloader */
#preloader { 
    position: fixed; inset: 0; background: #0B0B0B; z-index: 99999; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
}

/* Hero Text Gradient compatível com SplitType */
.text-gradient {
    background: linear-gradient(to right, #FFFFFF, #6A6A6A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.text-gradient .char {
    background: inherit;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Box Grid */
.bento-card {
    background: linear-gradient(180deg, #111111 0%, #0B0B0B 100%);
    border: 1px solid #2A2A2A;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
    overflow: hidden;
    position: relative;
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.bento-card:hover {
    border-color: rgba(102, 51, 153, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(102, 51, 153, 0.15);
}

/* Glowing Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

/* Lenis Smooth Scroll Setup */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Portfolio Mask */
.portfolio-container { will-change: transform; }
.img-mask { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }

/* Portfolio image scroll effect */
.portfolio-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

/* Custom transitions for new sections */
#comparativo li {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#comparativo li:hover {
    transform: translateX(6px);
}

#primeira-impressao .p-6 {
    backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
#primeira-impressao .p-6:hover {
    background-color: rgba(26, 26, 26, 0.8);
}

/* Portfolio Expanded Grid Filter Buttons */
.modal-filter-btn {
    background-color: #111111;
    color: #888888;
    border: 1px solid #2A2A2A;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.modal-filter-btn:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-color: #444444;
}
.modal-filter-btn.active {
    background-color: #663399; /* primary */
    color: #FFFFFF;
    border-color: #663399;
    box-shadow: 0 0 20px rgba(102, 51, 153, 0.4);
}

/* Grid Project Cards */
.modal-project-card {
    will-change: transform;
    transition: border-color 0.4s ease;
}

/* Altura idêntica para os textos do portfólio para manter os boxes flex-1 alinhados */
.portfolio-text-wrapper {
    height: 210px;
}
@media (min-width: 768px) {
    .portfolio-text-wrapper {
        height: 115px;
    }
}

/* Menu Mobile Hamburguer */
#btn-hamburger span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#btn-hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#btn-hamburger.open span:nth-child(2) {
    opacity: 0;
}
#btn-hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Timeline Custom Styles */
.timeline-node, .diff-timeline-node {
    box-shadow: 0 0 0 4px rgba(11, 11, 11, 1); /* Garante que a linha guia não passe por cima do fundo do número */
}
.timeline-node.active-node, .diff-timeline-node.active-node {
    border-color: #ff6b06 !important;
    color: #FFFFFF !important;
    background-color: #111111 !important;
    box-shadow: 0 0 0 4px rgba(11, 11, 11, 1), 0 0 20px rgba(255, 107, 6, 0.4), inset 0 0 10px rgba(255, 107, 6, 0.2) !important;
}

/* FAQ Accordion Styles */
.faq-item.active .faq-icon svg {
    transform: rotate(45deg);
    color: #ff6b06; /* secondary */
}
.faq-content {
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
}
.faq-item.active .faq-content {
    opacity: 1;
}



