:root {
    --primary: #18a19a;
    --white: #ffffff;
    --black: #0f0f0f;
    --gray: #666666;
    --gray-light: #f8f8f8;
    --border: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-icon {
    width: 140px;
    height: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

nav a:hover {
    color: var(--primary);
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav .nav-links a:hover::after {
    width: 100%;
}



/* Hero */
.hero {
    padding: 180px 10rem 120px;
    text-align: center;
    background: var(--gray-light);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 850;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    font-family: 'Outfit', sans-serif;
}

.hero .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 10rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 32px;
    transition: all 0.3s;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #159087);
}

.btn-primary:hover {
    background: #159087;
    background: linear-gradient(135deg, #17a198, #0b645e);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(24, 161, 154, 0.2);
}

.icon {
    padding-left: 1rem;
}

.btn-primary:hover .icon {
    display: none;
}

/* About */
.about {
    padding: 100px 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.about p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-gif {
    height: 400px;
    background: var(--primary);
    border-radius: 16px;
}

/* Services */
.services {
    padding: 100px 2rem;
    background: var(--gray-light);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.service-item {
    padding: 2.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-number {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

.service-item p {
    color: var(--gray);
    line-height: 1.7;
}

/* Portfolio */
.portfolio {
    padding: 100px 2rem;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    aspect-ratio: 1;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact */
.contact {
    padding: 100px 2rem 20px 2rem;
    background: var(--gray-light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    font-size: 1.1rem;
    font-weight: 200;
    color: var(--black);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #159087;
}

.social {
    text-align: center;
}

.social a {
    margin: 0 1rem;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--black);
}

.social a:hover {
    color: var(--primary);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: #eeeeee;
}

footer p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-gif {
        height: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
    
@media (max-width: 768px) {
    nav ul, .about-gif {
        display: none;
    }

    .btn-primary{
        width: 100%;
    }

    .hero {
        padding: 140px 1.5rem 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about h2,
    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.about-container,
.service-item,
.portfolio-item,
.contact-item {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 28px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* Mobile - quando a tela for pequena */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        /* escondido por padrão no mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        /* mostrado quando ativo */
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
    }

    /* Animação do X quando aberto */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}