/* --- Reset e Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden; 
}

sup { font-size: 10px; }

.site-container {
    width: 100%;
    max-width: 1550px;
    background-color: #fff;
    margin: 0 auto;
}

.destaque { font-weight: bolder; }

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background-color: #fff;
    margin: 80px 0;
    position: relative; 
    z-index: 500;
}

.social-icons {
    display: inline-flex;
    gap: 15px;
    font-size: 14px;
    color: inherit;
    align-items: center;
}

.social-link, .social-icons i {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.social-icons i:hover { color: #777676; }

.logo {
    font-size: 20px;
    font-weight: 400;
    position: relative;
    left: 50px; 
}

.work-inquiry-btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-inquiry-btn:hover {
    background-color: rgba(236, 236, 236, 0.5);
    color: #000;
    border-color: rgba(236, 236, 236, 0.5);
}

/* --- Portfolio Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px; 
    background-color: #fff; 
    gap: 0; 
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    margin: 30px 20px; 
    padding: 0;
}

.portfolio-item {
    background-color: #fff;
    height: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer; 
}

.portfolio-item:hover { background-color: #f9f9f9; }

.portfolio-item img {
    max-width: 240px; 
    max-height: 140px; 
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
    mix-blend-mode: multiply; 
}

.portfolio-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.portfolio-url {
    font-size: 12px;
    color: #bbb;
    position: absolute;
    bottom: 15px;
    left: 20px;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    margin-top: 20px;
}

.footer-text {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 650px;
    margin: 30px auto 30px;
    color: #333;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    margin-top: 60px;
}

.footer-action {
    cursor: pointer;
    transition: color 0.2s;
}

.footer-action:hover { color: #333; }

/* --- Overlays (Geral) --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    max-width: 800px;
    padding-top: 60px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.overlay.active .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.close-btn {
    position: fixed;
    top: 40px;
    left: 40px;
    background-color: #333;
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1001;
}

.close-btn:hover {
    background-color: #000;
    transform: scale(1.05);
}

.overlay-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.overlay-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.overlay-description {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 50px;  
    text-align: justify;  
}

/* --- Sobre Overlay --- */
.about-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5;
    margin: 40px 0;
}

.about-profile-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-image-container { flex-shrink: 0; }

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* --- Work Inquiry Overlay --- */
.process-steps { margin-bottom: 60px; }
.step { margin-bottom: 40px; }

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-number {
    font-size: 24px;
    margin-right: 12px;
    font-weight: 300;
    color: #333;
}

.step-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.overlay-footer h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.overlay-footer p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 30px;
}

.contact-email {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.location {
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
}

.location i { margin-right: 8px; }

/* --- Projetos Overlay --- */
.overlay.project-overlay-mode {
    display: block; 
    padding: 0; 
    overflow-y: scroll; 
}

.project-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    margin-top: 140px; 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
    padding-bottom: 0;
}

.overlay.active .project-content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.project-header-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-bottom: 50px;
}

.project-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.project-title-large {
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 30px;
    color: #000;
}

.project-description-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    max-width: 90%;
    margin-bottom: 40px;
    text-align: justify;
}

.project-meta-right {
    display: flex;
    flex-direction: column;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-row.no-border { border-bottom: none; }

.meta-label {
    color: #999;
    font-family: 'Courier New', Courier, monospace; 
}

.meta-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
}

.project-hero-section {
    width: 100%;
    margin-bottom: 0; 
}

.project-detail-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px; 
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.212);
}

.project-dark-section {
    background-color: #000;
    color: #fff;
    padding: 80px 60px;
    width: 100vw; 
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.dark-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.dark-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dark-label {
    color: #666;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    text-transform: uppercase;
}

.dark-text {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    max-width: 90%;
    text-align: justify;
}

/* --- Responsividade --- */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
        gap: 25px;
        margin: 40px 0;
    }

    .logo {
        order: 1; 
        left: 0;
        text-align: center;
    }

    .social-icons {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .work-inquiry-btn {
        order: 3;
        width: 100%;
        max-width: 320px;
    }

    .project-top-grid, .dark-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-title-large { font-size: 50px; }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .portfolio-item { height: 320px; }

    .project-detail-img { border-radius: 10px; }
}

@media (max-width: 600px) {
    .about-profile-wrapper {
        flex-direction: column;
        text-align: center;
    }
}