/* --- VARIÁVEIS LIGHT MODE --- */
:root {
    --bg-color: #F8FAFC; /* Slate 50 - Very Light Gray */
    --surface-color: #FFFFFF; /* Pure White */
    --surface-light: #F1F5F9; /* Slate 100 */
    --text-primary: #1E293B; /* Slate 800 - Dark Blue/Gray */
    --text-secondary: #475569; /* Slate 600 - Medium Gray */
    
    /* Using Royal Blue/Sky Blue for accent to fit light tech vibe */
    --accent-color: #2563EB; /* Royal Blue */
    --accent-hover: #1D4ED8; 
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 8vh 5vw;
}

/* Background Utilities */
.bg-white {
    background-color: var(--surface-color);
}

.bg-light-blue {
    background-color: #F0F9FF; /* Sky 50 - Azul muito claro e suave */
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin: 0 auto 3rem auto;
    color: var(--text-primary);
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* --- REVEAL ANIMATION (SCROLL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER & NAV --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5vw;
    background: rgba(255, 255, 255, 0.85); /* Light glassmorphism */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

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

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.btn-contact {
    border: 2px solid var(--accent-color);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    color: var(--accent-color);
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5vw;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3);
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(248,250,252,0) 70%);
    z-index: 1;
    filter: blur(40px);
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #0EA5E9); /* Gradient tech line */
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- DIFFERENTIALS --- */
.diff-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.diff-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 2rem;
}

.diff-item h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 800;
}

.diff-item h3::before {
    content: '❯';
    font-size: 0.8em;
}

.diff-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- PORTFOLIO SYSTEM MODERNO --- */
.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle-dark {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Filtros */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(30, 41, 59, 0.1); /* Bordas escuras suaves */
    color: var(--text-secondary); /* Cinza médio */
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Grid de Projetos */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-card {
    background-color: var(--surface-color); /* Fundo branco para contrastar com azul */
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Borda suave */
    box-shadow: var(--shadow-sm); /* Sombra leve natural */
    transition: var(--transition);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg); /* Aumenta a sombra no hover */
    border-color: rgba(37, 99, 235, 0.3); /* Borda azul da tech lab */
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    /* Limitando a imagem para um tamanho contido agradável */
    height: 240px; 
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modern-card:hover .card-image-wrapper img {
    transform: scale(1.08); /* Efeito zoom */
}

/* Overlay Interativa */
.hover-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.6); /* Overlay escuro no card ao invés de no fundo da section */
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.modern-card:hover .hover-overlay-modern {
    opacity: 1;
}

.view-project-btn {
    background: #fff;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.modern-card:hover .view-project-btn {
    transform: translateY(0);
}

.view-project-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Conteúdo do Card */
.card-content {
    padding: 2rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-tag {
    background: rgba(37, 99, 235, 0.1); /* Fundo azul ultra claro */
    color: var(--accent-color); /* Categoria em destaque */
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary); /* Titulo principal escuro */
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- ABOUT / CEO SECTION --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-image {
    flex: 0 0 350px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text h3 span {
    color: var(--accent-color);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.about-credentials {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--surface-light);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* --- FOOTER --- */
.footer {
    background-color: #0F172A; /* Slate 900 - Dark Footer */
    padding: 5rem 5vw 2rem;
    color: #F8FAFC;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.footer-brand span {
    color: var(--accent-color);
    font-weight: 300;
}

.footer-brand p {
    color: #94A3B8; /* Slate 400 */
    max-width: 300px;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #F8FAFC;
}

.social-link {
    display: block;
    color: #94A3B8;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: #94A3B8;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B; /* Slate 500 */
    font-size: 0.85rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Official WhatsApp color */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: float-wa 3s ease-in-out infinite;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.whatsapp-float:hover {
    background-color: #1EBE5D;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff;
    animation-play-state: paused;
}

@keyframes float-wa {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* --- LEAD CAPTURE FORM --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #CBD5E1; /* Slate 300 */
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--surface-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 2rem;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    
    .about-credentials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70vw;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-item.tall, .masonry-item:not(.tall) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}
