* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #0a0a0a; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* HEADER */
.header { background: #0a0e1a; padding: 20px 0; position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.logo-icon { width: 32px; height: 32px; background: #2563eb; border-radius: 6px; }
.nav { display: flex; gap: 32px; }
.nav a { color: #fff; font-size: 14px; }
.nav a.active { color: #2563eb; border-bottom: 2px solid #2563eb; padding-bottom: 4px; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 14px; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid #fff; color: #fff; background: transparent; }

/* HERO */
.hero { background: #0a0e1a; padding: 80px 0 120px; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 56px; font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.highlight { color: #2563eb; }
.hero-text p { color: #94a3b8; font-size: 16px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; }
.cube-3d { width: 400px; height: 400px; background: linear-gradient(135deg, #2563eb, #1e3a8a); border-radius: 20px; margin: 0 auto; transform: rotate(15deg) perspective(1000px) rotateY(-20deg); box-shadow: 0 20px 60px rgba(37,99,235,0.4); }

/* BRANDS */
.brands { background: #fff; padding: 40px 0; border-bottom: 1px solid #eee; }
.brands .container { display: flex; align-items: center; gap: 40px; }
.brands-label { font-size: 12px; color: #666; letter-spacing: 1px; }
.brands-list { display: flex; gap: 48px; flex-wrap: wrap; }
.brands-list span { color: #94a3b8; font-weight: 600; }

/* SERVICES */
.services { padding: 100px 0; background: #fff; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.label { display: block; font-size: 12px; color: #2563eb; letter-spacing: 1px; margin-bottom: 12px; font-weight: 600; }
h2 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.services-image { width: 100%; height: 300px; background: #0a0e1a; border-radius: 12px; margin-top: 32px; }
.services-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card { background: #f8fafc; padding: 32px; border-radius: 12px; transition: 0.3s; cursor: pointer; }
.service-card:hover { background: #eff6ff; transform: translateY(-4px); }
.service-card .icon { width: 48px; height: 48px; background: #dbeafe; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #2563eb; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: #666; margin-bottom: 20px; }
.arrow { color: #2563eb; font-size: 20px; }

/* PORTFOLIO */
.portfolio { background: #0a0e1a; color: #fff; padding: 100px 0; }
.portfolio-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.link-arrow { color: #2563eb; font-size: 14px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card { background: #1a1f36; border-radius: 12px; overflow: hidden; transition: 0.3s; cursor: pointer; }
.project-card:hover { transform: translateY(-4px); }
.project-image { width: 100%; height: 180px; background: #2a2f4a; overflow: hidden; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-card h3 { padding: 16px 16px 4px; font-size: 16px; }
.project-card p { padding: 0 16px 16px; color: #94a3b8; font-size: 13px; }

/* PROCESS */
.process { background: #f8fafc; padding: 100px 0; }
.process-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { text-align: center; }
.step-icon { width: 48px; height: 48px; background: #dbeafe; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: #2563eb; }
.step-num { color: #2563eb; font-weight: 700; }
.step h4 { margin: 8px 0; }
.step p { font-size: 13px; color: #666; }

/* FOOTER */
.footer { background: #0a0e1a; color: #fff; padding: 80px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer h5 { color: #2563eb; font-size: 12px; letter-spacing: 1px; margin-bottom: 20px; }
.footer ul li { padding: 6px 0; color: #94a3b8; font-size: 14px; }
.footer-info p { color: #94a3b8; font-size: 14px; margin-top: 16px; }
.footer-bottom { border-top: 1px solid #1a1f36; padding-top: 20px; display: flex; justify-content: space-between; color: #64748b; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid, .services-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
    .portfolio-grid, .steps, .services-cards { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .hero-text h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .cube-3d { width: 250px; height: 250px; }
}

/* ============ MODAL ============ */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.3s; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
}
.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    animation: slideUp 0.4s;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: 0.2s;
}
.modal-close:hover { background: #dc2626; color: #fff; transform: rotate(90deg); }
.modal-image {
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    min-height: 400px;
    overflow: hidden;
}
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 40px; }
.modal-tag {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.modal-body h2 { font-size: 32px; margin-bottom: 20px; color: #0a0e1a; }
.modal-meta {
    display: flex; gap: 30px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
.modal-body p { color: #475569; margin-bottom: 24px; line-height: 1.7; }

/* ============ PROJETO CARD (overlay hover) ============ */
.project-card { position: relative; }
.project-image { position: relative; }
.project-overlay {
    position: absolute; inset: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    font-weight: 600;
}
.project-card:hover .project-overlay { opacity: 1; }

/* ============ PÁGINA TODOS PROJETOS ============ */
.page-header {
    background: #0a0e1a;
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}
.page-header h1 { font-size: 56px; margin: 12px 0; }
.page-header p { color: #94a3b8; font-size: 18px; }

.projects-section { padding: 60px 0 100px; background: #f8fafc; }

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}
.filter-btn {
    padding: 10px 22px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    transition: 0.3s;
}
.filter-btn:hover { border-color: #2563eb; color: #2563eb; }
.filter-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.project-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.project-item.show { opacity: 1; transform: translateY(0); }
.project-item:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.project-item-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f1f5f9;
}
.project-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.project-item:hover .project-item-image img { transform: scale(1.05); }
.no-image {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #94a3b8;
}
.project-info { padding: 20px; }
.tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}
.project-info h3 { font-size: 18px; color: #0a0e1a; }

/* ANIMAÇÕES */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* RESPONSIVE MODAL & GRID */
@media (max-width: 768px) {
    .modal-content { grid-template-columns: 1fr; max-height: 95vh; }
    .modal-image { min-height: 250px; }
    .modal-body { padding: 24px; }
    .modal-body h2 { font-size: 24px; }
    .projects-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 36px; }
    .filters { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}