/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #111111;
    --dark-bg-secondary: #1a1a1a;
    --green-accent: #00C851;
    --green-hover: #00E676;
    --text-primary: #FFFFFF;
    --text-secondary: #EAEAEA;
    --text-muted: #999999;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--green-accent);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(0, 200, 81, 0.05));
    background-image: url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?w=1600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.75);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--green-accent);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
}

.btn-primary:hover {
    background: var(--green-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 200, 81, 0.5);
}

/* Sobre Section */
.sobre {
    padding: 6rem 0;
    background: var(--dark-bg-secondary);
}

.sobre-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Projetos Section */
.projetos {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.projetos-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.projetos-grid::-webkit-scrollbar {
    height: 8px;
}

.projetos-grid::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
    border-radius: 10px;
}

.projetos-grid::-webkit-scrollbar-thumb {
    background: var(--green-accent);
    border-radius: 10px;
}

.projetos-grid::-webkit-scrollbar-thumb:hover {
    background: var(--green-hover);
}

.projeto-card {
    background: var(--dark-bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    width: 380px;
    max-width: 100%;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 200, 81, 0.2);
}

.projeto-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.projeto-card:hover .projeto-image img {
    transform: scale(1.05);
}

.projeto-info {
    padding: 1.5rem;
}

.projeto-nome {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.projeto-tipo {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Metodologia Section */
.metodologia {
    padding: 6rem 0;
    background: var(--dark-bg-secondary);
}

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

.metodo-item {
    text-align: center;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.metodo-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 200, 81, 0.05);
}

.metodo-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-accent);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.metodo-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.metodo-texto {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Final Section */
.cta-final {
    padding: 6rem 0;
    background: var(--dark-bg);
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    background: var(--dark-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.logo-img-footer {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-copyright {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

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

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        background-attachment: scroll;
        min-height: 80vh;
    }

    .projeto-card {
        width: 320px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projeto-card {
        width: 280px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll to Top */
.scroll-top {
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

