/* Global Styles */
:root {
    --primary-color: #38B6FF; /* Azul da logo */
    --secondary-color: #222; /* Preto/Cinza escuro */
    --text-color: #333;
    --bg-color: #fff;
    --bg-alt-color: #f8f9fa;
    --border-color: #e0e0e0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

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

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.4rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a9bdb; /* Azul um pouco mais escuro */
}

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

section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1a9bdb;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo img {
    height: 50px;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 25px;
}

.nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}

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

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.hero h2 {
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.hero-buttons .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.hero-buttons .btn-secondary:hover {
    background-color: #fff;
    color: var(--secondary-color);
}

/* Intro Section */
.intro {
    background-color: var(--bg-alt-color);
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
}

/* Services Section */
.services {
    background-color: var(--bg-color);
}

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

.service-card {
    background-color: var(--bg-alt-color);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    width: 50px;
    height: 50px;
    background-color: rgba(56, 182, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    margin-bottom: 0.8rem;
}

.service-card p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.service-tags {
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-alt-color);
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: #e0e0e0;
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block; /* Default: show all */
}

.portfolio-item.hide {
    display: none;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: #fff;
    padding: 20px;
}

.portfolio-info h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    font-size: 0.9rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 3rem;
}

.portfolio-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.portfolio-cta .btn i {
    margin-right: 8px;
}

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
}

.about-image {
    flex: 0 0 40%;
    text-align: center;
}

.about-image img {
    max-width: 80%;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: #fff;
}

.contact .section-title, .contact .section-description {
    color: #fff;
}

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

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #fff;
    margin-bottom: 0.8rem;
}

.contact-card p {
    margin-bottom: 1.5rem;
}

.contact-card p a {
    color: #fff;
    font-weight: 500;
}

.contact-card .btn {
    background-color: #fff;
    color: var(--primary-color);
}

.contact-card .btn:hover {
    background-color: #eee;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #aaa;
}

.footer h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #fff;
}

.footer-contact ul li a i {
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-top: 30px;
        flex-basis: auto;
    }
    .about-image img {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .nav {
        position: relative; /* Needed for absolute positioning of mobile menu */
    }
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--bg-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        width: 250px;
        padding: 15px 0;
        border-radius: 5px;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        margin: 0;
    }
    .nav-link {
        display: block;
        padding: 10px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-link::after {
        display: none; /* Remove underline effect on mobile */
    }
    .nav-link:hover {
        background-color: var(--bg-alt-color);
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 { font-size: 2rem; }
    .hero h2 { font-size: 1.5rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%;
        max-width: 300px;
    }
    .features, .services-grid, .portfolio-grid, .contact-info, .footer-content {
        grid-template-columns: 1fr;
    }
    .about-image img {
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    .container {
        padding: 0 15px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .logo img {
        height: 40px;
    }
    .portfolio-filter {
        margin-bottom: 2rem;
    }
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

