/* Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    text-align: center;
}

.top-bar {
    background-color: #2c3e50;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    height: 50px;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}


.main-header {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(30, 30, 30, 0.9);
    z-index: 999;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.hero {
    height: 100vh;
    background: url('src/img/tech-bg.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease;
    padding-top: 100px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s;
}

.hero button {
    padding: 15px 30px;
    font-size: 1rem;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero button:hover {
    background-color: #388E3C;
}

.dark-mode-toggle {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.dark-mode-toggle:hover {
    background-color: #555;
}

/* Seção Quem Somos */
.about {
    padding: 80px 0;
    background-color: #fff;
    animation: fadeInUp 1s ease-out;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-item {
    display: none;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.carousel-item.active {
    display: block;
    opacity: 1;
}

.carousel img {
    width: 100%;
    border-radius: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 10;
}

.carousel-btn.prev {
    left: -30px;
}

.carousel-btn.next {
    right: -30px;
}


.solutions {
    padding: 80px 0;
    background-color: #f0f0f0;
    animation: fadeInUp 1s ease-out;
}

.solutions h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.solutions p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease-in-out;
}

.timeline-item img {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 50%;
}

.timeline-item .content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: left;
}

.timeline-item h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}


.contact {
    padding: 80px 0;
    background-color: #fff;
    animation: fadeInUp 1s ease-out;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.contact input, .contact button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.contact input {
    background-color: #fafafa;
}

.contact button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #388E3C;
}

footer {
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

.back-button {
    color: #BA68C8;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #BA68C8;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #BA68C8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(186, 104, 200, 0.3);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

body.dark-mode {
    background-color: #121212;
    color: #fff;
}

body.dark-mode .hero {
    background: url('src/img/tech-bg-dark.jpg') no-repeat center center/cover;
}

body.dark-mode .hero .overlay {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-mode .about,
body.dark-mode .solutions,
body.dark-mode .contact {
    background-color: #1e1e1e;
}

body.dark-mode .contact input, 
body.dark-mode .contact button {
    background-color: #333;
    color: #fff;
}

body.dark-mode footer {
    background-color: #1a1a1a;
}

body.dark-mode .top-bar {
    background-color: #1a1a1a;
}

body.dark-mode .main-header {
    background-color: rgba(20, 20, 20, 0.9);
}


@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .timeline-item .content {
        text-align: center;
    }
}