@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Outfit:wght@100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* ==========================================================================
   CONFIGURAÇÃO DE TEMA ESCURO TECNOLÓGICO (VARIÁVEIS)
   ========================================================================== */
:root {
    --bg: #000000;             /* Fundo preto absoluto */
    --bg-soft: #080808;        /* Fundo secundário preto suave */
    --bg-card: rgba(12, 12, 16, 0.7); /* Cartões translúcidos com glassmorphism */
    --border: rgba(0, 240, 255, 0.1); /* Bordas com brilho ciano sutil */
    --border-glow: rgba(0, 240, 255, 0.25);
    --glass: rgba(12, 12, 16, 0.45);

    --text-main: #f8fafc;      /* Títulos e textos de destaque em branco-azul */
    --text-muted: #94a3b8;     /* Parágrafos em cinza-azulado */

    --accent: #00f0ff;         /* Ciano neon tecnológico */
    --accent-purple: #7c3aed;  /* Roxo/violeta tecnológico */
    --gradient: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%); /* Ciano para Violeta */
    
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    --glow-shadow: 0 0 20px rgba(0, 240, 255, 0.15);

    --bg-texture: none;

    --transition: .35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    cursor: url('../../images/pixel-cursor.svg') 0 0, auto;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    transition: color var(--transition);
}

a, button, select, input, textarea, .filter-btn, .whatsapp-float, .btn-gallery, .project-card, .template-card {
    cursor: url('../../images/pixel-pointer.svg') 0 0, pointer;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

.hero-tags span, .timeline-date, .category-tag, .filter-btn, .project-link, .btn-gallery {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 70px 8%;
}

.container {
    max-width: 1200px;
    margin: auto;
}

/* ==========================================================================
   ELEMENTOS DE INTERFACE
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--border-glow);
    border-radius: 999px;
    border: 2px solid var(--bg);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}


/* ==========================================================================
   HEADER, HERO, ABOUT, SERVICES, TIMELINE, CONTATO, FOOTER, MODAL, RESPONSIVE
   ========================================================================== */
#header {
    position: fixed;
    width: 100%;
    height: 3px;
    top: 0;
    left: 0;
    z-index: 1000;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}



#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}


/* Ambient glow effect in the hero background */
#intro::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(50px);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-sub {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: .9rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title .cursor {
    animation: cursor-blink 1.2s step-end infinite;
    -webkit-text-fill-color: var(--accent);
}

@keyframes cursor-blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.hero-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 3rem;
}

.hero-tags {
    display: flex;
    justify-content: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-tags span {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.hero-tags span:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .85rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-text {
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.9;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(14px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow), var(--shadow);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}



.about-text {
    padding: 1rem 0;
}

/* ==========================================================================
   SOBRE SECTION (OVERRIDES PARA DIMINUIR A SEÇÃO)
   ========================================================================== */
#about {
    padding: 70px 8%;
}

#about .about-grid {
    gap: 2.5rem;
}

#about .about-image img {
    max-width: 320px;
}

#about .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

#about .section-text {
    font-size: 1.05rem;
    line-height: 1.75;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    text-align: center;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

.timeline {
    margin-top: 3rem;
    position: relative;
    border-left: 2px solid var(--border);
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.52rem;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    transition: var(--transition);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--accent);
}

.timeline-date {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-box {
    text-align: center;
}

.contact-box p:not(.section-subtitle) {
    color: var(--text-muted);
    margin: 2rem auto;
    max-width: 700px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-links a {
    padding: 1rem 1.8rem;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: var(--transition);
    font-weight: 600;
}

.contact-links a:hover {
    background: var(--gradient);
    color: #07090e;
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
    border-color: var(--accent);
}

footer {
    padding: 3rem 2rem;
    border-top: none;
    text-align: center;
    color: var(--text-muted);
    background-color: var(--bg);
}

.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
    background: #20ba5a;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    animation: modalShow .35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
}

.close-modal:hover {
    color: var(--accent);
}

.modal-content h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 700;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--glass);
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.modal-content textarea {
    min-height: 140px;
    resize: none;
}

.modal-content button {
    padding: 1rem;
    border: none;
    border-radius: 50px;
    background: var(--gradient);
    color: #07090e;
    font-weight: 700;
    cursor: pointer;
    transition: .3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.modal-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

@media(max-width:980px) {
    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 100px 6%;
    }
}

@media(max-width:600px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .navbar {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   EFEITO DE REVEAL GLOBAL (SCROLL ANIMATION)
   ========================================================================== */
.reveal {
    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);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* ==========================================================================
   VITRINE DE TEMPLATES (ESTILOS COMPLEMENTARES)
   ========================================================================== */

.vitrine-section {
    padding: 150px 5% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0 4rem;
}

.filter-btn {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 8px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: #07090e;
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.template-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.template-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--glow-shadow), var(--shadow);
}

.template-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover .template-img img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(7, 9, 14, 0.85);
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.template-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.template-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
}

.template-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.template-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
}

.template-links a:hover {
    background: var(--gradient);
    color: #07090e;
    border-color: var(--accent);
    box-shadow: var(--glow-shadow);
}

.hide {
    display: none !important;
}