/* --- ADIÇÕES DE ACESSIBILIDADE (COPIE ISTO PARA O INÍCIO DO CSS) --- */

/* Foco visível para navegação por teclado (Essencial) */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Link de Pular Conteúdo (Só aparece quando focado) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #000;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: bold;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only (Esconde visualmente mas o leitor lê) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Restante do CSS permanece igual ao anterior... */
/* ... (Mantenha todo o CSS anterior aqui) ... */

/* Ajuste sutil na badge do pacote */
.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-bottom-left-radius: 10px;
}

.tech-title {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* --- VARIÁVEIS E BASE (FUTURISTA) --- */
:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.7);
    --primary: #00f3ff;
    --secondary: #bc13fe;
    --github-color: #ffffff;
    --base44-color: #ffbd2e;
    --whatsapp-color: #25d366;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-display: 'Courier New', monospace;
    --font-body: system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --- BARRA DE ROLAGEM --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 20%);
}

/* --- ANIMAÇÃO REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--primary);
}

.btn {
    padding: 12px 30px;
    border: 1px solid var(--primary);
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: #fff;
    color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

/* --- MENU MOBILE --- */
.mobile-menu-icon {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    border-left: 1px solid var(--primary);
    transition: 0.4s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: var(--secondary);
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-links li {
    margin: 30px 0;
}

.mobile-links a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-display);
    display: block;
}

.mobile-links a:hover {
    color: var(--primary);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.glitch-text {
    position: relative;
}

/* --- TYPEWRITER --- */
.typing-text {
    color: var(--secondary);
    font-weight: bold;
    border-right: 2px solid var(--primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

/* --- TECH STACK SLIDER --- */
.tech-stack-container {
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: var(--glass-border);
    border-bottom: var(--glass-border);
    margin-bottom: 50px;
    overflow: hidden;
}

.tech-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tech-track {
    display: flex;
    width: calc(100px * 16);
    animation: scroll 20s linear infinite;
}

.tech-track i {
    width: 100px;
    font-size: 3rem;
    color: var(--text-muted);
    text-align: center;
    transition: 0.3s;
}

.tech-track i:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    transform: scale(1.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100px * 8));
    }
}

/* --- SOBRE --- */
.about {
    padding: 100px 0;
}

.about-card {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: #ccc;
    line-height: 1.6;
}

.section-subtitle {
    color: var(--secondary);
    margin-bottom: 15px;
}

.about-img {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    overflow: hidden;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- SERVIÇOS (PACKS) --- */
.services {
    padding: 100px 0;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.pack-card {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.pack-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.highlight-card {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.1);
}

.pack-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pack-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.pack-features {
    list-style: none;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.pack-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pack-features li::before {
    content: "►";
    color: var(--secondary);
    font-size: 0.8rem;
}

/* --- PORTFÓLIO --- */
.portfolio {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.project-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.project-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

.project-thumb {
    width: 100%;
    height: 180px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
}

/* TAGS */
.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #000;
    border-radius: 4px;
    z-index: 10;
}

.tag-github {
    background-color: var(--github-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tag-base44 {
    background-color: var(--base44-color);
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* --- DEPOIMENTOS --- */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.testimonial-card p {
    color: #ccc;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.client-info h4 {
    color: var(--primary);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --- FAQ --- */
.faq {
    padding: 100px 0;
    background: #080808;
}

.faq-item {
    background: #111;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #aaa;
    transition: 0.3s;
}

.faq-item.open .faq-answer {
    padding: 20px;
    max-height: 200px;
}


/* --- FOOTER & CONTACT FORM --- */
footer {
    padding: 50px 0;
    border-top: 1px solid #333;
    margin-top: 50px;
    background: #030303;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-form input,
.footer-form textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-body);
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-form textarea {
    resize: none;
    height: 100px;
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

.copyright {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #555;
    font-size: 0.9rem;
}

.footer-note {
    font-size: 0.8rem;
    margin-top: 5px;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 2px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- MODAL NAVEGADOR --- */
.browser-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.browser-modal.active {
    display: flex;
    opacity: 1;
}

.browser-header {
    height: 50px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #333;
    gap: 15px;
    justify-content: space-between;
}

.browser-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
    cursor: pointer;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.address-bar {
    flex: 1;
    background: #000;
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid #333;
    text-align: center;
    margin: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.toggle-interaction {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.toggle-switch {
    width: 30px;
    height: 16px;
    background: #333;
    border-radius: 10px;
    position: relative;
    transition: 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-active .toggle-switch {
    background: var(--primary);
}

.toggle-active .toggle-switch::after {
    transform: translateX(14px);
}

.browser-window {
    flex: 1;
    position: relative;
    background: #fff;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.click-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .address-bar {
        display: none;
    }

    .browser-header {
        padding: 0 10px;
    }

    .toggle-interaction span {
        font-size: 0.7rem;
    }

    .toggle-switch {
        width: 25px;
        height: 14px;
    }

    .toggle-switch::after {
        width: 10px;
        height: 10px;
        left: 2px;
        top: 2px;
    }

    .toggle-active .toggle-switch::after {
        transform: translateX(11px);
    }

    .tech-track i {
        font-size: 2rem;
        width: 80px;
    }

    .tech-track {
        width: calc(80px * 16);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-80px * 8));
        }
    }
}