/* 
==============================================
ESTILO MASTER - PORTFÓLIO CLÁUDIO ALVES (REMASTER)
==============================================
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* --- CORES ORIGINAIS --- */
    --primary-color: #034AA6;
    --primary-hover: #023a85;
    --bg-color: #F8F9FA;
    --surface-color: #ffffff;
    --text-color: #1A1D21;
    --title-color: #050505;
    --secondary-text-color: #5E6368;
    --border-color: #E8EAED;
    --stage-bg: #fcfcfc;

    /* --- SETUP --- */
    --container-width: 1200px;
    --header-height: 80px;
    --font-main: 'Poppins', sans-serif;
}

/* --- RESET --- */
* { box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0; padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; padding: 0; margin: 0; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* --- UTILS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- HEADER --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%; top: 0; z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03); /* Sombra suave premium */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

nav ul { display: flex; align-items: center; }
nav ul li { margin-left: 2.5rem; }

nav ul li a {
    color: var(--title-color);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px; /* More breathing room */
    opacity: 0.7;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav ul li a:hover, nav ul li a.active, .nav-active {
    color: var(--primary-color) !important;
    opacity: 1;
}

/* Elegant Underline */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.nav-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- HERO (CAPA) --- */
.page-hero {
    height: 50vh;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    margin-top: var(--header-height); /* Evita sobreposição */
    /* Imagem Original */
    background: url('../assets/img/capa.avif') no-repeat center center/cover;
    position: relative;
}

/* Máscara suave para leitura */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Clareia levemente mantendo a foto */
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #000; /* Contraste original */
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
}

/* --- SECTIONS GERAL --- */
section { padding: 6rem 0; }

.intro-section { background-color: var(--surface-color); }

.intro-text, .intro-text-center {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: left;
}

.intro-text h2, .intro-text-center h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.intro-text p, .intro-text-center p {
    font-size: 1.15rem;
    color: var(--secondary-text-color);
    line-height: 1.8;
}

/* --- SLIDER HOME (Estrutura Original Otimizada) --- */
.slider-container {
    position: relative;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-item {
    min-width: calc(33.333% - 1.34rem);
    transition: transform 0.3s ease;
}

.slider-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* Sombra mais sofisticada */
}

.slider-caption { margin-top: 1.2rem; }
.slider-caption h3 { font-size: 1.3rem; font-weight: 700; color: var(--title-color); margin-bottom: 0.2rem; }
.slider-caption p { font-size: 0.9rem; color: var(--secondary-text-color); font-weight: 500; }

.slider-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--title-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* --- WORKS GRID (Listagem) --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.work-card { display: block; }

.work-thumb {
    background-color: var(--stage-bg);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.work-thumb img {
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.work-card:hover .work-thumb { background-color: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.work-card:hover .work-thumb img { transform: scale(1.03) translateY(-5px); }

.work-info h3 { font-size: 1.6rem; font-weight: 700; color: var(--title-color); margin-bottom: 0.5rem; }
.work-info p { color: var(--secondary-text-color); font-weight: 500; }

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(3, 74, 166, 0.08); /* Glow azul suave */
    transform: translateY(-5px);
}

.service-card h3 { 
    color: var(--primary-color); 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 1.2rem;
}

.service-list li { margin-bottom: 0.8rem; color: var(--secondary-text-color); font-weight: 500; }

/* --- CONTACT FORM (Minimalist & Refined) --- */
.contact-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    max-width: 900px; /* Wider */
    margin: 4rem auto 0;
    box-shadow: none;
}

.form-group { margin-bottom: 2.5rem; position: relative; }

.input-icon {
    position: absolute;
    bottom: 12px; /* Align with input text */
    left: 0;
    width: 20px;
    height: 20px;
    color: var(--secondary-text-color);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ .input-icon,
.form-group textarea:focus ~ .input-icon {
    color: var(--title-color);
}

.form-group textarea ~ .input-icon {
    bottom: auto;
    top: 3.2rem; /* Adjust based on label height + margin */
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-text-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 0 0.8rem 35px; /* Added left padding for icon */
    border: none;
    border-bottom: 1px solid #d1d1d1;
    border-radius: 0;
    font-family: var(--font-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--title-color);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--title-color);
    background: transparent;
    box-shadow: none;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: #ccc;
    font-weight: 300;
}

.submit-btn {
    display: inline-block;
    width: auto;
    min-width: 200px;
    padding: 1rem 2.5rem;
    background-color: var(--title-color); /* Black/Dark for elegance */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- PROJECT DETAIL (Galeria) --- */
.project-full-image {
    background: var(--stage-bg);
    padding: 4rem;
    border-radius: 20px;
    margin: 4rem 0;
    text-align: center;
}

.project-body { max-width: var(--container-width); margin: 0 auto; padding-bottom: 4rem; }
.project-body h3 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; margin-top: 3rem; }

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

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition: 0.3s;
}

.gallery-item:hover { transform: scale(1.02); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

/* --- PROJECT NAVIGATION --- */
.project-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
}
.nav-btn { font-weight: 700; color: var(--title-color); }
.nav-btn span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--secondary-text-color); margin-bottom: 5px; }
.nav-btn:hover { color: var(--primary-color); }

/* --- FOOTER --- */
footer {
    background: #fff;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.social-links { display: flex; justify-content: flex-start; gap: 2rem; margin-bottom: 2rem; }
.social-icon { color: var(--text-color); transition: 0.3s; }
.social-links a:hover .social-icon { color: var(--primary-color); transform: translateY(-3px); }

/* --- LIGHTBOX --- */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 8, 23, 0.98); /* Deep Navy Almost Black */
    z-index: 2000;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-img { 
    max-width: 90%; 
    max-height: 85vh; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.lightbox-overlay.active .lightbox-img {
    opacity: 1;
    transform: scale(1);
}
.lightbox-close { 
    position: absolute; top: 30px; right: 40px; 
    font-size: 3rem; color: #fff; /* White for contrast */
    line-height: 1; transition: 0.3s;
}
.lightbox-close:hover { color: rgba(255,255,255,0.7); transform: rotate(90deg); }

/* --- ANIMATION UTILS (Compatibilidade JS) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-up.active { opacity: 1; transform: translateY(0); }

/* --- ABOUT PAGE LAYOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    text-align: left;
}

.about-image {
    position: relative;
    width: 100%;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image:hover img {
    transform: scale(1.03);
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn svg {
    width: 30px;
    height: 30px;
    stroke: var(--title-color);
    transition: 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .slider-item { min-width: calc(50% - 1rem); }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    
    header .container {
        justify-content: space-between; /* Logo and Button on opposite sides */
    }

    .page-hero h1 { font-size: 2.2rem; }
    
    .works-grid, .gallery-grid, .services-grid { grid-template-columns: 1fr; }
    .slider-item { min-width: 100%; }
    .slider-btn { display: none; }
    
    /* Mobile Menu Logic */
    .mobile-menu-btn { display: block; }

    nav { 
        position: fixed; top: 0; left: 0; 
        width: 100%; height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        display: flex; flex-direction: column; 
        justify-content: flex-start; /* Alinhamento vertical no topo */
        align-items: flex-start; /* Alinhamento horizontal na esquerda */
        padding: 120px 10% 0; /* Padding superior para não cobrir a logo */
        opacity: 0; visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: translateY(-20px);
        z-index: 999;
    }

    nav.active { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0);
    }

    nav ul { 
        flex-direction: column; 
        gap: 2.5rem; 
        align-items: flex-start; /* Ensure items align to left */
        width: 100%; /* Take full width to respect padding */
    }
    nav ul li { margin: 0; }
    nav ul li a { font-size: 1.8rem; font-weight: 700; color: var(--title-color); }
    
    .contact-container { padding: 2rem; }
    .project-full-image { padding: 1.5rem; }
}
