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

:root {
    /* Primary Colors */
    --bg-dark: #080808;
    --bg-card: #121212;
    --accent-green: #00a651;
    --accent-green-glow: rgba(0, 166, 81, 0.3);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --grid-color: rgba(0, 166, 81, 0.05);

    /* Spacing */
    --section-padding: 100px 5%;
    --border-radius: 4px;
    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Engineering Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent-green);
    text-shadow: 0 0 10px var(--accent-green-glow);
}

/* Typography */
h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 2rem; position: relative; }
p { font-size: 1.1rem; color: var(--text-dim); }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
    display: block;
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--section-padding);
    background: radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
}

.hero-content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-green);
    color: var(--bg-dark);
    box-shadow: 0 0 30px var(--accent-green-glow);
}

/* Services Section */
.services {
    padding: var(--section-padding);
}

/* Contact Section */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-card);
}

.section-subtitle {
    margin-bottom: 3rem;
    color: var(--text-dim);
    max-width: 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-green);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 20px;
    margin-top: 40px;
}
/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 5%;
    }

    nav {
        padding: 15px 5%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background: rgba(8, 8, 8, 0.95); /* Fundo mais opaco no mobile */
    }

    .logo img {
        height: 35px; /* Logo um pouco menor no mobile */
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        transition: var(--transition);
        border-radius: 2px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent-green);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent-green);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 2px;
    }

    .hero {
        padding-top: 180px; /* Aumentado de 140px para 180px */
        text-align: center;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 1.8rem; /* Reduzido para melhor encaixe */
        line-height: 1.2;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    .service-card.large {
        grid-column: span 1;
        min-height: 250px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent-green);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card.large {
    grid-column: span 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

/* Portfolio Placeholder */
.portfolio {
    padding: var(--section-padding);
    background: #0d0d0d;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item {
    height: 400px;
    background: #111;
    overflow: hidden;
    position: relative;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.project-item:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}
/* Blog Section */
.blog-section {
    padding: var(--section-padding);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, #1a1a1a, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
}

.blog-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-green);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #fff;
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more {
    padding-left: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 968px) {
    h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .service-card.large { grid-column: span 1; }
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── MARCAS CAROUSEL ──────────────────────── */
.marcas-section {
    background: #080808;
    padding: 60px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.marcas-wrapper {
    transform: perspective(100rem) translate3d(0, 0, 10rem) rotatey(-10deg) scale(1, 1) !important;
    left: -3%;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}
.marcas-track {
    display: flex;
    gap: 120px;
    width: max-content;
    animation: marcas-scroll 35s linear infinite;
    align-items: center;
}
.marca-item {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #444;
    opacity: 0.4;
    white-space: nowrap;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: default;
}
.marca-item:hover {
    opacity: 0.9;
    color: #fff;
}
@keyframes marcas-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── BRANDS CAROUSEL ──────────────────────── */
.brands-section {
    padding: 60px 0;
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.brands-section h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.brands-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 30s linear infinite;
    align-items: center;
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 2)); }
}

/* ── WHATSAPP FLOAT ───────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* ── TIMELINE CAROUSEL ──────────────────── */
.timeline-section {
    padding: var(--section-padding);
    background: var(--bg-dark);
    overflow: hidden;
}

.timeline-section .section-subtitle {
    margin-bottom: 3rem;
}

.timeline-carousel {
    position: relative;
    max-width: 100%;
}

/* Progress bar */
.timeline-progress {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), #00ff88);
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 10%;
    box-shadow: 0 0 12px var(--accent-green-glow);
}

/* Track wrapper */
.timeline-track-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.timeline-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem;
    flex: 1;
    scrollbar-width: none;
}

.timeline-track::-webkit-scrollbar {
    display: none;
}

/* Card */
.timeline-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 320px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.timeline-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), #00ff88);
    opacity: 0;
    transition: var(--transition);
    border-radius: 12px 12px 0 0;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

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

.timeline-month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    background: rgba(0,166,81,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.timeline-duration {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 400;
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.timeline-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-card ul li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0.35rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.timeline-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

/* Arrows */
.timeline-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.timeline-arrow:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: #000;
    box-shadow: 0 0 20px var(--accent-green-glow);
}

.timeline-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.timeline-arrow:disabled:hover {
    background: var(--bg-card);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
    box-shadow: none;
}

/* Dots */
.timeline-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.timeline-dot.active {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green-glow);
    width: 28px;
    border-radius: 5px;
}

.timeline-dot:hover {
    background: var(--accent-green);
}

/* Responsive */
@media (max-width: 968px) {
    .timeline-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .timeline-card {
        flex: 0 0 calc(100% - 0.5rem);
        min-width: 0;
    }

    .timeline-arrow {
        display: none;
    }

    .timeline-track {
        gap: 1rem;
    }

    .timeline-progress {
        margin-bottom: 2rem;
    }
}

