/* Base & Variables */
:root {
    /* Paleta de Cores Monocromática da Identidade Visual */
    --bg-color: #121212; /* Um tom um pouco mais escuro que Eerie Black para dar contraste */
    --surface-color: #1E1E1E; /* Eerie Black original */
    --surface-lighter: #2a2a2a; 
    --text-main: #E6E6E6; /* Platinum */
    --text-muted: #9D9D9D; /* Concrete Grey */
    --accent: #E6E6E6; /* Platinum como Destaque em vez de dourado */
    --accent-hover: #ffffff;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Tipografia (Fontes mais próximas de Olney e General Sans no Google Fonts) */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

/* Typography & Utilities */
.section-label {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.line-decorator {
    width: 60px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #111;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
}

nav.scrolled {
    background-color: rgba(13, 13, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center; /* Garantir que todos os itens na lista estejam alinhados verticalmente */
    gap: 25px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    display: flex;
    align-items: center;
    height: 100%;
}

.portal-link {
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    transition: all 0.3s;
}

.portal-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.portal-link i {
    font-size: 1.1rem;
}

.btn-portal {
    display: none;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 13, 15, 0.9) 0%, rgba(13, 13, 15, 0.4) 100%);
}

.hero-content {
    max-width: 600px;
    margin-left: 10%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
}

/* Expertise Section (Áreas de Atuação) */
.projects-section {
    background-color: var(--bg-color);
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 50px;
}

.expertise-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise-card.reverse {
    direction: rtl;
}

.expertise-card.reverse > * {
    direction: ltr; /* Reset direction for child text */
}

.expertise-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.expertise-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.expertise-img {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.expertise-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

/* About Section */
.about-section {
    background-color: var(--surface-color);
}

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.feature-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.image-stack {
    position: relative;
    aspect-ratio: 3/4;
}

.image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    position: relative;
    z-index: 2;
}

.accent-box {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    z-index: 1;
    border-radius: 4px;
}

/* Process Section */
.process-section {
    background-color: var(--surface-color);
}

.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.center-line {
    margin: 0 auto 40px auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: rgba(230,230,230,0.1);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -20px;
    width: 40px;
    height: 2px;
    background-color: rgba(230,230,230,0.1);
    z-index: 1;
}

.process-step:nth-child(3n)::before,
.process-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: rgba(255,255,255,0.03);
    line-height: 1;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 230, 230, 0.05); /* Usando E6E6E6 com opacidade */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--bg-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-fast);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.portfolio-overlay span {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portal Section */
.portal-section {
    background-color: var(--surface-color);
}

.portal-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.login-container {
    max-width: 400px;
    margin: 40px auto 0;
    text-align: center;
}

.login-hint {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.hidden {
    display: none !important;
}

.client-dashboard {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.dashboard-header h3 {
    font-size: 1.5rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    color: var(--accent);
}

.files-grid {
    display: grid;
    gap: 15px;
}

.file-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--surface-color);
    border-radius: 6px;
    gap: 20px;
    transition: background-color var(--transition-fast);
}

.file-card:hover {
    background-color: var(--surface-lighter);
}

.file-card i {
    font-size: 2rem;
    color: var(--accent);
}

.file-info {
    flex-grow: 1;
}

.file-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.file-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-download {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-fast);
}

.btn-download:hover {
    background-color: var(--accent);
    color: #111;
}

.w-full {
    width: 100%;
    justify-content: center;
}

/* Nav Portal Button */
.btn-portal {
    background-color: rgba(230, 230, 230, 0.05);
    padding: 8px 15px !important;
    border-radius: 4px;
    border: 1px solid rgba(230, 230, 230, 0.1);
    color: var(--accent) !important;
}

.btn-portal:hover {
    background-color: var(--accent);
    color: #111 !important;
}

/* Contact Section */
.contact-section {
    position: relative;
    background-color: var(--bg-color);
}

.contact-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(207, 168, 110, 0.05) 0, transparent 70%);
}

.relative {
    position: relative;
    z-index: 2;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info-panel {
    padding: 60px;
    background: linear-gradient(135deg, var(--surface-lighter) 0%, var(--surface-color) 100%);
}

.contact-info-panel h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.contact-info-panel > p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.method-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(207, 168, 110, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.method-item p {
    color: var(--text-muted);
}

.contact-form-panel {
    padding: 60px;
}

.glass-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 15px;
    border-radius: 4px;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px;
    margin-top: 10px;
}

/* Admin Section Styles */
.admin-section {
    background-color: var(--bg-color);
    min-height: 100vh;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #111;
}

.tab-btn:hover:not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

.admin-card {
    background-color: var(--surface-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
}

.admin-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--accent);
}

.simple-form input:not([type="file"]) {
    width: 100%;
    background-color: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Admin UI Improvements */
.admin-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 30px 0;
}

.form-group-admin {
    margin-bottom: 20px;
}

.form-group-admin label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-input-wrapper {
    position: relative;
    width: 100%;
}

.btn-file-dummy {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-color);
    border: 1px dashed rgba(255,255,255,0.2);
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input-wrapper:hover .btn-file-dummy {
    border-color: var(--accent);
    color: var(--accent);
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name-display {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-header {
    margin-bottom: 25px;
}

.tab-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-client-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-client-item.drag-active {
    background-color: rgba(230,230,230,0.05);
    border: 2px dashed var(--accent);
    transform: scale(1.02);
}

.client-admin-info h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-admin-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-client-actions {
    display: flex;
    gap: 10px;
}

.btn-admin {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    background-color: var(--surface-lighter);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-admin.delete {
    color: #ff4d4d;
}

.btn-admin:hover {
    background-color: var(--accent);
    color: #111;
}

.empty-msg, .empty-msg-dark {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

.empty-msg-dark {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

/* Admin Projects Grid */
.admin-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-project-item {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.admin-project-item:hover {
    transform: translateY(-5px);
}

.project-preview {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-admin-info {
    padding: 15px;
}

.project-admin-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.project-admin-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-project-item .btn-admin.delete {
    width: 100%;
    border-radius: 0;
    padding: 10px;
    background: rgba(255,0,0,0.05);
}

.admin-project-item .btn-admin.delete:hover {
    background: #ff4d4d;
    color: white;
}

.admin-choice-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.choice-btn {
    flex: 1;
    padding: 6px;
    font-size: 0.75rem;
    background: var(--surface-lighter);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.choice-btn.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.tip-msg {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

.mini-file-list {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.mini-file-list span {
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
}

/* Footer Control */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.admin-access-btn {
    opacity: 0.2;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.admin-access-btn:hover {
    opacity: 1;
    color: var(--accent);
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.footer-logo a span {
    color: var(--accent);
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background-color: var(--accent);
    color: #111;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .expertise-card, .expertise-card.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:nth-child(2n)::before {
        display: none;
    }
    
    .process-step:nth-child(3n)::before {
        display: block;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: left var(--transition-fast);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-info-panel, .contact-form-panel {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .process-step::before {
        display: none !important;
    }
}

/* Project Modal - Novo Estilo Robusto */
.project-modal-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: none; /* Escondido por padrão */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.project-modal-window.is-active {
    display: flex !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background-color: #111;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 8px;
    z-index: 100001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

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

.modal-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    height: 100%;
    overflow: hidden;
}

.project-detail-gallery {
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #0a0a0a;
}

.project-detail-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-detail-info {
    padding: 50px 40px;
    background-color: #161616;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.detail-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.project-detail-info h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: white;
}

.detail-description {
    color: #aaa;
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}

@media (max-width: 992px) {
    .modal-content {
        grid-template-columns: 1fr;
        display: block;
        overflow-y: auto;
    }
    .modal-container {
        max-height: 95vh;
    }
    .project-detail-info {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
}

/* Edit Modal specific */
.modal-content-edit {
    padding: 40px;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.modal-content-edit h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--accent);
}

.edit-form-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

.edit-gallery-section {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.edit-gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.edit-image-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.edit-image-item:hover .image-controls {
    opacity: 1;
}

.ctrl-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.ctrl-btn:hover {
    background: var(--accent);
}

.ctrl-btn.del {
    background: #ff4d4d;
    color: white;
}

.mt-20 { margin-top: 20px; }
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}
