html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

.box {
    display: flex;
    flex-direction: column;
}

.title-section {
    color: #ffffff;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #080108;
    /* Roxo quase preto */

    /* Múltiplos gradientes para criar as manchas de luz do esboço */
    background-image:
        radial-gradient(circle at 15% 25%, rgba(42, 18, 77, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(42, 18, 77, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% -10%, rgba(42, 18, 77, 0.12) 0%, transparent 40%);

    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    overflow-x: hidden;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    background-color: transparent;
    color: #fff;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: clamp(20px, 10vw, 80px);
    padding-inline: 20px;
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.menu .btn-mobile {
    font-size: 1.5rem;
    z-index: 101;
    position: relative;
}

.menu .logo {
    width: clamp(150px, 2vw, 150px);
    height: auto;
    position: relative;
    z-index: 101;
}


.menu ul {
    display: none;
    list-style: none;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
    width: 100%;
    position: static;
    margin-top: 1.5rem;
    padding: 2rem 1rem;
    background: rgba(20, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.menu ul.show {
    display: flex;
}

.menu ul li {
    text-align: center;
}

.menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all .3s ease;
}

.menu ul li a:hover {
    color: #d800ff;
}


/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: clamp(120px, 18vh, 220px);
    padding-inline: 20px;
    padding-bottom: clamp(40px, 10vh, 120px);
    gap: clamp(20px, 6vw, 40px);
}

/* HEADLINE */
.hero h1 {
    color: #FFFFFF;
    /* Texto principal em branco puro para leitura clara */
    text-align: center;
    font-size: clamp(40px, 8vw, 100px);
    /* Ajustei o tamanho para não quebrar tanto em telas médias */
    line-height: 1.1;
    max-width: 15ch;
    font-weight: 700;
}

.destaque-neon {
    color: #d800ff;
    text-shadow: 0 0 10px rgba(216, 0, 255, 0.5), 0 0 20px rgba(216, 0, 255, 0.2);
}

.hero h1 span {
    color: #d800ff;
    /* O Magenta vibrante que você usa */
    font-weight: 700;
    /* Efeito de Glow (Brilho) */
    text-shadow: 0 0 20px rgba(216, 0, 255, 0.4), 0 0 40px rgba(216, 0, 255, 0.2);
}

/* SUBHEADLINE */
.hero h2 {
    color: #ffffffd2;
    text-align: center;

    font-size: clamp(10px, 1vw, 22px);
    font-weight: 300;
    max-width: 36ch;
}

.btn-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary,
.btn-secondary {
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.services {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-grid-services {
    width: 100%;
    padding-inline: 20px;
    max-width: 1440px;
    text-align: center;
}

.subtitle-section {
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARDS FIÉIS AO ESBOÇO */
.service-card {
    background: rgba(255, 255, 255, 0.12);
    /* Mais sólido para evitar o aspecto 'apagado' */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    padding: 40px;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 0, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(216, 0, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d800ff;
    font-size: 24px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
    font-size: 1rem;
}

/* --- SEÇÃO PORTFÓLIO --- */

.section-portfolio {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 100px;
    margin-bottom: 100px;
}

.section-portfolio h2 {
    margin-bottom: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1440px;
    padding-inline: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 0, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.project-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: auto;
    /* Garante que não achate */
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.9);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 1, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.view-btn {
    padding: 12px 24px;
    background: #fff;
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #d800ff;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-info h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-info p {
    color: rgba(255, 255, 255, 0.95);
    /* Quase branco para maior clareza */
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 5px;
}

.about {
    width: 100%;
    padding-top: 120px;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1440px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    padding-inline: 20px;
}

.about-text h2 {
    margin-bottom: 25px;
    text-align: left; /* Keep left alignment for the About section layout */
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.95);
    /* Aumentado para nitidez */
}

/* FOTO */

.about-photo {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-photo img {
    width: 100%;
    max-width: 480px;
    height: auto;
    /* Fix para não achatar */
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.about-photo img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: brightness(1.1);
}

/* Glow */

.about-photo::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(216, 0, 255, 0.45) 0%, transparent 70%);
    filter: blur(120px);
    z-index: 1;
}

/* Fade inferior */

.about-photo::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;

    z-index: 3;
}

/* Responsivo */

@media (max-width: 1000px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text p {
        margin: 0 auto;
    }

    .about-photo {
        margin-top: 40px;
    }

    .about-photo img {
        max-width: 320px;
    }
}

.footer {
    margin-top: 160px;
    padding: 100px 0 60px;
    background: linear-gradient(to top, #050005, #080108);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CTA superior */

.footer-cta {
    text-align: center;
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 30px;
}

.footer-btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-btn:hover {
    transform: translateY(-4px);
}

/* Divisor */

.footer-divider {
    width: 100%;
    max-width: 1440px;
    padding-inline: 20px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(216, 0, 255, 0.6),
            transparent);
    margin-bottom: 40px;
}

/* Parte inferior */

.footer-bottom {
    width: 100%;
    max-width: 1440px;
    padding-inline: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-meta span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Mobile */

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   SEÇÃO PROCESSO
   ========================================= */

.process-section {
    padding: 100px 0;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-inline: 20px;
}

.process-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: #d800ff;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

/* Reutilizando .title-section do global para o h2 */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Linha de conexão (Aparece apenas em telas grandes) */
@media (min-width: 1024px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 50px; /* Alinhado com os ícones */
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(216, 0, 255, 0.3), transparent);
        z-index: 0;
    }
}

.process-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(216, 0, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d800ff, #8a2be2); /* Adaptado para cores do site */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.process-card:hover::before {
    opacity: 1;
}

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(216, 0, 255, 0.1);
    border: 1px solid rgba(216, 0, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d800ff;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.process-card:hover .step-icon-wrapper {
    background: linear-gradient(135deg, #d800ff, #8a2be2);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(216, 0, 255, 0.4);
    transform: scale(1.1);
    border-color: transparent;
}

.step-number-bg {
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    z-index: -1;
    transition: color 0.4s ease;
}

.process-card:hover .step-number-bg {
    color: rgba(216, 0, 255, 0.05);
}

.process-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.process-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
}



/* =========================================
   ANIMAÇÕES (substitui GSAP)
   ========================================= */

/* Hero: animação de entrada */
.animate-on-load {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load.delay-1 {
    transition-delay: 0.25s;
}

.animate-on-load.delay-2 {
    transition-delay: 0.5s;
}

/* Scroll Reveal: cards e seções */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger para cards lado a lado */
.services-grid .scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }

.process-grid .scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.process-grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.process-grid .scroll-reveal:nth-child(4) { transition-delay: 0.45s; }

.portfolio-grid .scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .scroll-reveal:nth-child(3) { transition-delay: 0.3s; }

/* Respeitar preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .animate-on-load,
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE – EMPILHA CTA */
@media (max-width: 768px) {
    .btn-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* DESKTOP MENU & HEADER */
@media (min-width: 769px) {
    .menu .btn-mobile {
        display: none;
    }

    .menu {
        position: static;
        flex-wrap: nowrap;
    }

    .menu ul {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        margin-top: 0;
        padding: 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        gap: 2.5rem;
        box-shadow: none;
    }

    .menu ul li {
        text-align: left;
    }

    .menu ul li a {
        font-size: 1rem;
    }
}
