/* style.css */

:root {
    /* Cores principais */
    --primary: #00856F;
    --primary-dark: #006B59;
    --primary-light: #00A98D;
    --secondary: #1E88E5;
    --accent: #FF8A65;
    --innovation: #7E57C2;
    
    /* Cores neutras */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #6c757d;
    --dark-gray: #333333;
    --black: #212121;
    
    /* Fontes */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Estilos Gerais */
body {
    font-family: var(--font-secondary);
    color: var(--dark-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

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

a:hover {
    color: var(--primary-dark);
}

.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-link {
    color: var(--primary);
    padding: 0;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover i {
    transform: translateX(5px);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Header/Navbar */
.header {
    transition: all 0.5s;
    z-index: 997;
    padding: 20px 0;
}

.header.header-scrolled {
    background: var(--primary);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0;
}

.navbar-brand h1 {
    font-size: 28px;
    margin: 0;
    color: var(--white);
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    font-weight: 500;
    font-family: var(--font-primary);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--white);
}

/* Hero Section */
.hero {
    width: 100%;
    height: 100vh;
    background: linear-gradient(rgba(0, 133, 111, 0.9), rgba(0, 133, 111, 0.9)), url('../img/hero-bg.jpg') center center;
    background-size: cover;
    position: relative;
    padding: 120px 0;
    color: var(--white);
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 700;
}

.hero p {
    margin-bottom: 30px;
    font-size: 20px;
}

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

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--white);
    font-size: 32px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--black);
}

.service-card p {
    margin-bottom: 20px;
    color: var(--gray);
}

/* Methodology Section */
.methodology {
    background-color: var(--light-gray);
}

.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 0 0 5px var(--white);
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

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

.portfolio-filters {
    margin-bottom: 30px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card img {
    transition: all 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 133, 111, 0.9);
    padding: 15px;
    color: var(--white);
    transition: all 0.3s ease;
    opacity: 0;
}

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

.portfolio-card:hover .portfolio-info {
    bottom: 0;
    opacity: 1;
}

.portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.portfolio-info p {
    margin-bottom: 0;
    font-size: 14px;
    opacity: 0.8;
}

.portfolio-link {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: var(--primary-dark);
    color: var(--white);
}

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

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
    padding: 30px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-block {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    left: 50%;
    top: 20px;
    margin-left: -10px;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--white);
}

.timeline-block:nth-child(odd) .timeline-content {
    margin-right: 50%;
    padding-right: 30px;
    text-align: right;
}

.timeline-block:nth-child(even) .timeline-content {
    margin-left: 50%;
    padding-left: 30px;
}

/* Team Section */
.team {
    background-color: var(--white);
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    margin-bottom: 20px;
}

.team-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--light-gray);
}

.team-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Contact Section */
.contact {
    background-color: var(--light-gray);
}

.contact-info {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 15px;
}

.contact-item .text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-item .text p {
    margin-bottom: 0;
    color: var(--gray);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-control {
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 133, 111, 0.25);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 14px;
}

.footer h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer h4 {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    display: block;
    width: 30px;
    height: 2px;
    background: var(--white);
    bottom: 0;
    left: 0;
}

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

.footer-links ul li {
    padding: 7px 0;
}

.footer-links ul li:first-child {
    padding-top: 0;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter input {
    border: 0;
    padding: 10px 15px;
    width: 100%;
    border-radius: 50px 0 0 50px;
}

.footer-newsletter button {
    background: var(--primary);
    border: 0;
    padding: 10px 15px;
    border-radius: 0 50px 50px 0;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: var(--primary-light);
}

.footer-newsletter form {
    display: flex;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
}

.credits a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

.credits a:hover {
    color: var(--white);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.4s;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.back-to-top:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Portfolio Modal */
.portfolio-modal .modal-content {
    border-radius: 10px;
    border: none;
}

.portfolio-modal .modal-header {
    border-bottom: 1px solid var(--light-gray);
}

.portfolio-modal .modal-title {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }
    
    .timeline::before,
    .timeline-wrapper::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-number {
        left: 0;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-block:nth-child(odd) .timeline-content,
    .timeline-block:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        padding-left: 20px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .service-card,
    .team-card,
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}
