/* =========================================
   EvolUIWeb — CSS Principal (Home)
   Idêntico ao template original
   ========================================= */

/* VARIÁVEIS & RESET */
:root {
    --bg-color: #030303;
    --text-main: #FFFFFF;
    --text-muted: #444444;
    --font-display: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #333333;
}
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a var(--bg-color);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--text-main); color: var(--bg-color); }
a { color: inherit; text-decoration: none; }

/* BACKGROUND INTERATIVO */
#canvas-wave {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1; opacity: 0.8; pointer-events: none;
}

/* NAVEGAÇÃO */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 28px 5vw;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 10;
    font-family: var(--font-mono);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px;
    mix-blend-mode: difference;
}

.logo { font-weight: 700; font-size: 1rem; }
.nav-links { display: flex; gap: 30px; }

.nav-links a { opacity: 0.5; transition: all 0.3s ease; padding-bottom: 5px; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; color: var(--text-main); border-bottom: 1px solid var(--text-main); }
.nav-links span { color: var(--text-muted); margin-right: 5px; }

/* Botões auth no nav */
.nav-auth { display: flex; gap: 15px; align-items: center; }
.nav-auth a {
    font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; opacity: 0.5; transition: opacity 0.3s;
}
.nav-auth a:hover { opacity: 1; }
.nav-auth .btn-login {
    border: 1px solid #333; padding: 8px 16px;
    opacity: 1;
}
.nav-auth .btn-login:hover { border-color: #fff; }

/* ANIMAÇÕES DE SCROLL (REVEAL) */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ESTRUTURA GERAL DAS SEÇÕES */
section {
    padding: 15vh 5vw; position: relative;
    border-top: 1px solid #111; min-height: 100vh;
}

.section-header {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--text-muted); margin-bottom: 60px;
    text-transform: uppercase;
}

/* HERO SECTION */
.hero { display: flex; flex-direction: column; justify-content: center; border-top: none; }

.hero h1 {
    font-family: var(--font-display); font-weight: 900;
    font-size: clamp(4rem, 10vw, 12rem);
    line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase;
}

.hero h1 .solid { display: block; }
.hero h1 .muted { color: var(--text-muted); display: block; margin-left: 5vw; position: relative; }
.hero h1 .muted::before {
    content: ''; position: absolute; left: -3vw; top: 10%;
    height: 80%; width: 4px; background-color: var(--text-muted);
}

.sub-tagline {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--text-main); margin-top: 40px; letter-spacing: 1px;
}

.description {
    position: absolute; bottom: 10vh; right: 5vw; max-width: 400px;
    font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6;
    color: #888; text-align: right;
}

/* SEÇÃO DE SERVIÇOS */
.service-list { display: flex; flex-direction: column; }

.service-item {
    display: grid; grid-template-columns: 1fr 2fr;
    padding: 50px 0; border-bottom: 1px solid #111;
    transition: color 0.3s ease;
}

.service-item:hover { color: var(--text-main); background: rgba(255,255,255,0.02); padding-left: 20px; }

.service-item h3 {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900; text-transform: uppercase; letter-spacing: -1px;
}

.service-item p { font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.6; color: #888; align-self: center; }

/* PORTFÓLIO */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }

.project-card {
    border: 1px solid #222; padding: 40px 30px;
    background: rgba(10,10,10,0.4); backdrop-filter: blur(5px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}

.project-card:hover { transform: translateY(-10px); border-color: #555; background: rgba(20,20,20,0.6); }

.project-status {
    font-family: var(--font-mono); color: #00ff66; font-size: 0.7rem;
    margin-bottom: 25px; display: flex; align-items: center; gap: 8px;
}

.project-status::before {
    content: ''; display: block; width: 6px; height: 6px;
    background-color: #00ff66; border-radius: 50%; box-shadow: 0 0 8px #00ff66;
}

.project-card h3 {
    font-family: var(--font-display); font-size: 2rem; font-weight: 900;
    margin-bottom: 15px; letter-spacing: -1px; text-transform: uppercase;
}

.project-card p {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: #888; line-height: 1.6; margin-bottom: 40px; flex-grow: 1;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.project-tech span {
    font-family: var(--font-mono); font-size: 0.65rem;
    padding: 4px 10px; border: 1px solid #333; color: #aaa; letter-spacing: 1px;
}

.project-link {
    font-family: var(--font-mono); font-size: 0.8rem;
    color: var(--text-main); align-self: flex-start;
    border-bottom: 1px solid var(--text-main); padding-bottom: 3px;
    transition: opacity 0.3s ease; text-transform: uppercase;
}
.project-link:hover { opacity: 0.6; }

/* CLIENTES */
.clients-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px; background-color: #222; border: 1px solid #222;
}

.client-item {
    background-color: var(--bg-color); padding: 60px 20px;
    display: flex; justify-content: center; align-items: center;
    transition: background-color 0.3s ease;
}
.client-item:hover { background-color: #0a0a0a; }

.client-logo {
    font-family: var(--font-display); font-weight: 900;
    font-size: 1.5rem; color: #555; text-transform: uppercase;
    letter-spacing: -1px; transition: color 0.3s ease;
}
.client-item:hover .client-logo { color: var(--text-main); }

.client-img {
    max-width: 100%; height: auto; max-height: 50px;
    filter: grayscale(1) brightness(0.5); transition: all 0.3s ease;
}
.client-item:hover .client-img { filter: grayscale(0) brightness(1); }

/* FORMULÁRIO DE CONTATO */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

.contact-info h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900; text-transform: uppercase; line-height: 1;
    margin-bottom: 30px; letter-spacing: -0.04em;
}

.contact-info p {
    font-family: var(--font-mono); color: #888; font-size: 0.9rem;
    line-height: 1.6; margin-bottom: 40px; max-width: 400px;
}

.form-group { position: relative; margin-bottom: 40px; }

.form-group input,
.form-group textarea {
    width: 100%; background: transparent; border: none;
    border-bottom: 1px solid #333; padding: 15px 0;
    color: var(--text-main); font-family: var(--font-mono);
    font-size: 0.9rem; outline: none; transition: border-color 0.3s ease; resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--text-main); }

.form-group label {
    position: absolute; top: 15px; left: 0;
    font-family: var(--font-mono); font-size: 0.8rem; color: #666;
    pointer-events: none; transition: all 0.3s ease; text-transform: uppercase;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -15px; font-size: 0.65rem; color: var(--text-main);
}

.submit-btn {
    background-color: var(--text-main); color: var(--bg-color);
    border: none; padding: 20px 40px;
    font-family: var(--font-display); font-weight: 900; font-size: 1rem;
    text-transform: uppercase; cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease; width: 100%;
}
.submit-btn:hover { background-color: #ccc; transform: translateY(-5px); }

/* FOOTER */
.footer {
    padding: 5vh 5vw; border-top: 1px solid #111; background-color: #000;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 0.75rem; color: #666;
    text-transform: uppercase; letter-spacing: 1px;
}

.social-links { display: flex; gap: 30px; }
.social-links a:hover { color: var(--text-main); }

/* FLASH MESSAGE */
.flash-toast {
    position: fixed; bottom: 30px; right: 30px;
    background: #111; border: 1px solid #333;
    color: #fff; font-family: var(--font-mono); font-size: 0.8rem;
    padding: 16px 24px; z-index: 9999;
    animation: slideIn 0.4s ease;
}
.flash-toast.success { border-color: #00ff66; color: #00ff66; }
.flash-toast.error   { border-color: #ff3333; color: #ff3333; }

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
}

/* 1366x768 — notebook padrão */
@media (max-width: 1366px) and (max-height: 768px) {
    nav               { padding: 20px 4vw; }
    section           { padding: 10vh 5vw; min-height: auto; }
    .hero             { min-height: 100vh; }
    .hero h1          { font-size: clamp(3rem, 8vw, 9rem); }
    .sub-tagline      { margin-top: 24px; }
    .section-header   { margin-bottom: 36px; }
    .service-item     { padding: 32px 0; }
    .stat-value       { font-size: 1.8rem; }
    .portfolio-grid   { gap: 24px; }
    .project-card     { padding: 28px 22px; }
    .contact-wrapper  { gap: 50px; }
    .description      { bottom: 6vh; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .service-item { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
    .service-item:hover { padding-left: 0; }
    .description { position: relative; bottom: auto; right: auto; text-align: left; margin-top: 40px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer { flex-direction: column; gap: 20px; align-items: flex-start; }
}
